Reputation: 2827
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?
Upvotes: 5
Views: 2454
Reputation: 3367
If you want a nice and short way to start artifactory CE with docker-compose:
The available tags are listed here: https://bintray.com/jfrog/reg2/jfrog%3Aartifactory-cpp-ce
...never the less, be sure to set your conan remote to the correct URI, which in case you run the Artifactory CE locally will look something like this: http://localhost/artifactory/api/conan/<repository_name>
Upvotes: 1
Reputation: 5972
The problem is that you are not downloading the correct version of Artifactory:
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
Upvotes: 3