Search code examples
artifactoryconan

Artifactory's Conan repository is Not Found


I am trying to setup Artifactory OSS repository with Conan. Everything seems to work fine in Artifactory console. In instructions of "Set me up" in Artifacory OSS it says:

To add the repository to your conan CLI, use:

conan remote add <REMOTE> http://192.168.0.1:8081/artifactory/api/conan/random-project

And replace with a name that identifies the repository (for example: "my-conan-repo")

To login use the conan user command:

conan user -p <PASSWORD> -r <REMOTE> <USERNAME>

In Conan I've followed the instruction:

$ conan remote add some-random-project http://192.168.0.1:8081/artifactory/api/conan/random-project
> WARN: Remotes registry file missing, creating default one in /home/homie/.conan/registry.txt

And when I try to add user:

$ conan user -p admin -r some-random-project admin
> ERROR: b'{\n  "errors" : [ {\n    "status" : 404,\n    "message" : "Not Found"\n     } ]\n}'

  Invalid server response, check remote URL and try again. [Remote: some-random-project]

Also, when I trying to access http://192.168.0.1:8081/artifactory/api/conan/random-project with GET request, it gives:

{
    "errors": [
        {
            "status": 404,
            "message": "Not Found"
        }
    ]
}

Before I was using Artifactory Pro and I was following the same procedure, and it worked.

Could you tell me what the problem is?


Solution

  • The problem is that you are not downloading the correct version of Artifactory:

    • Artifactory OSS: It has support for Java and generic repositories
    • Artifactory Community Edition (CE) for C/C++: It has support for Conan packages and generic repositories.

    Make sure to download the Artifactory CE to use it with Conan, follow this link: https://bintray.com/jfrog/product/JFrog-Artifactory-Cpp-CE/view. The links from the conan.io downloads page should work too: https://www.conan.io/downloads.html