[bug] Conan error on 1:st connection to server after reboot
See original GitHub issueEnvironment Details (include every applicable attribute)
- Operating System+version: Windows 10
- Compiler+version: N/A
- Conan version: 1.39.0
- Python version: 3.8.3
Steps to reproduce (Include if Applicable)
We use Conan to install dependencies for unattended nightly builds. This usually works perfectly, with one exception: the first build after rebooting the build machine always fails on conan install
- reboot the computer
- set CONAN_NON_INTERACTIVE=1
- run conan install
Logs (Executed commands with output) (Include/Attach if Applicable)
conan install -u -if build /path/to/conanfile.txt
--- SNIP ---
DEBUG :rest_client_common.py[160]: REST: ping: https://[redacted]/v1/ping [2021-10-04 20:33:33,001]
DEBUG :rest_client.py [58]: REST: Cached capabilities for the remote: ['complex_search', 'revisions', 'revisions'] [2021-10-04 20:33:33,115]
DEBUG :rest_client_common.py[188]: REST: get: https://[redacted]/v1/conans/[redacted]/stable/digest [2021-10-04 20:33:33,117]
DEBUG :rest_client_common.py[30]: REST ERROR: <class 'conans.errors.AuthenticationException'> [2021-10-04 20:33:33,119]
INFO :auth_manager.py[63]: Token expired or not valid, cleaning the saved token and retrying [2021-10-04 20:33:33,123]
ERROR: Conan interactive mode disabled. [Remote: XXXX]
There are no problems with subsequent invocations of conan install
, only the first attempt after a reboot fail, consistently. There are no indications of errors on the conan server.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Connection Failure - Could not connect to server. Your ...
I have disabled firewall, norton antivirus, allowed a specific program “Conan Exiles” and “Steam” client to run through windows firewall as an “ ......
Read more >This NEW BUG Is Why You Can't Join Your Server ... - YouTube
This is for PC players and server ownersForum post : ... conan -Direct connect with your servers IP -Let the server install mods...
Read more >Conan Exiles Lost Connection to Server: How to Fix [2022]
Guaranteed Solutions to Fix this Error. Fix #1: Restart Computer and Disable Other Running Programs.
Read more >Some Domain Controllers may restart unexpectedly after ...
Active Directory admins experiencing continually rebooting Domain Controllers share that they have stopped the reboots by disconnecting the ...
Read more >How To Fix Conan Exiles Errors, Server Issues, Not ...
1. Conan Exiles Server Issues · Try clicking “Show Invalid Servers” in your server list. The list should populate. · Make sure that...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Well, the client output says token has expired, so I do believe that is happening. I’m not sure that is the issue, though. The client computer is rebooted once a week, on schedule. The command
conan install
is invoked several times every night, connecting to the conan server. At least once every 24 hours, the token expiration timeout is exceeded, usually without any problems at all, with one exception: the first invocation ofconan install
after a reboot.I would expect the conan client to discard any expired token and retry, but if I were to interpret the output, apparently the client fails with that because interactive mode is disabled.
You have a great product, and this is not a serious issue, just a little annoying. Reported because I had the opportunity to observe a pattern.
/J,
https://github.com/conan-io/conan/pull/9781 merged, this will be released in 1.42