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.

[bug] Conan error on 1:st connection to server after reboot

See original GitHub issue

Environment 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

  1. reboot the computer
  2. set CONAN_NON_INTERACTIVE=1
  3. 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:closed
  • Created 2 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
foobar222commented, Oct 5, 2021

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 of conan 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,

0reactions
memshardedcommented, Oct 25, 2021

https://github.com/conan-io/conan/pull/9781 merged, this will be released in 1.42

Read more comments on GitHub >

github_iconTop 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 >

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