question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] conan install/inspect not working after conan server migration

See original GitHub issue

Hi,

I am having some issues with a conan server migration. I have copied the conan data directory to the new server, package search works but inspect or install fails on the existing packages. A new package on the new server all works as expected, upload, search, inspect, and install.

The old server is using a venv and the data is on a NAS share, inherited so don’t know much about the history but it is time expiring for a couple things so needs to be moved. The new server is not using a venv and a local drive for the conan files.

I have tried a couple different versions v1.9.2 and v1.9.3 but neither seem to work for me.

Search from the client:

DEBUG :tracer.py      [157]: CONAN_API: search_recipes(remote_name=conan1,case_sensitive=False) [2021-04-26 09:32:00,871]
DEBUG :rest_client_common.py[160]: REST: ping: http://conan1:9300/v1/ping [2021-04-26 09:32:00,880]
DEBUG :rest_client.py [58]: REST: Cached capabilities for the remote: ['complex_search', 'revisions', 'revisions'] [2021-04-26 09:32:00,894]
DEBUG :rest_client_common.py[188]: REST: get: http://conan1:9300/v1/conans/search?q=jsoncpp%2F%2A [2021-04-26 09:32:00,894]
DEBUG :conan_api.py   [176]: INIT: Using config '/home/user/.conan/conan.conf' [2021-04-26 09:32:02,580]
DEBUG :tracer.py      [157]: CONAN_API: get_remote_by_name() [2021-04-26 09:32:02,587]
Existing package recipes:

jsoncpp/1.8.4@3rdparty/stable

Inspect from the client:

DEBUG :rest_client.py [58]: REST: Cached capabilities for the remote: ['complex_search', 'revisions', 'revisions'] [2021-04-22 09:28:17,570]
DEBUG :rest_client_common.py[188]: REST: get: http://conan1:9300/v1/conans/jsoncpp/1.8.4/3rdparty/stable/digest [2021-04-22 09:28:17,579]
DEBUG :rest_client_common.py[30]: REST ERROR: <class 'conans.errors.NotFoundException'> [2021-04-22 09:28:17,586]
ERROR: Recipe not found: 'jsoncpp/1.8.4@3rdparty/stable'

From the server:

Apr 26 09:32:00 conan1 gunicorn[1659]: [2021-04-26 09:32:00 -0700] [1662] [DEBUG] GET /v1/ping
Apr 26 09:32:00 conan1 gunicorn[1659]: [2021-04-26 09:32:00 -0700] [1662] [DEBUG] GET /v1/conans/search
Apr 22 09:28:17 conan1 gunicorn[4208]: [2021-04-22 09:28:17 -0700] [4213] [DEBUG] GET /v1/ping
Apr 22 09:28:17 conan1 gunicorn[4208]: [2021-04-22 09:28:17 -0700] [4213] [DEBUG] GET /v1/conans/jsoncpp/1.8.4/3rdparty/stable/digest

Thanks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jonliubjcommented, Apr 27, 2021

i copied the venv to the new server, ran the venv server package and checked the functionality. Shut down the venv conan server. Ran conan_server --migrate outside of the venv. Then started the conan_server outside of the venv. Everything is working as expected now. Thanks for pointing me to the older versions not being compatible with the newer versions.

0reactions
memshardedcommented, Apr 27, 2021

Happy to know it is solved now.

For the future, I would recommend:

  • Using the free ArtifactoryCE: It is almost the same effort as running conan_server, but superior in all aspects.
  • Take into account that 1.10 introduced revisions, and the layout changes (not sure if you upgraded to 1.9.3 or above 1.10). If you plan to migrate to ArtifactoryCE, the best is to download everything to the client (conan download) and re-upload to the new server.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems creating the server - Funcom Forums
Running the port with the official software has a green light. But when entering the game and going to the server list, it...
Read more >
Conan Exiles down? Current problems and outages
Real-time problems and outages for Conan Exciles. Online gaming not working? Is the server down? Here you see what is going on.
Read more >
Adding Mods to your Conan Exiles Server - Nodecraft
Learn how to add mods to your Nodecraft hosted Conan Exiles server. ... as uploads can be resumable in-case of any network problems....
Read more >
Conan Exiles All Server Settings | GPORTAL Wiki
Conan Exiles was developed by Funcom and is an open-world survival game. The most important questions about the Conan Franchise Game are answered...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found