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.

Log connection error in remote manager

See original GitHub issue

For an unknown reason, I cannot connect the Conan server on my LAN from a Windows 7 machine. It was working before but now I get the following error when installing:

WARN: Unable to connect to myconan=http://myconan/

My others machine are still able to connect to the server.

Looking in the code, I found the message is printed when a ConnectionError is raised in remote_manager.py but there is no details about the error.

It could be nice if the error was logged. At least I hope it could help me to understand why the connection is not possible anymore.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
osechetcommented, Nov 23, 2016

I’m now able to reproduce the error on any OS with any conan server.

  • On Windows, in the control panel, set a proxy to a fake ip.
  • On Linux, export the http_proxy and https_proxy variables (i.e. export http_proxy=http://not.a.proxy:8080; export https_proxy=http://not.a.proxy:8080)

Then call conan search -r conan.io. Since conan cannot go through the given proxy, it raises a ConnectionError. I tried from the sources and logged the error and I get: ERROR :remote_manager.py[154]: HTTPSConnectionPool(host='server.conan.io', port=443): Max retries exceeded with url: /v1/conans/search (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fdc96cb2610>: Failed to establish a new connection: [Errno -2] Name or service not known',))) [2016-11-23 11:07:31,995]

It’s quite verbose but I can see that the error is caused by a ProxyError. With such a log, I would have found my mistake faster.

0reactions
memshardedcommented, Nov 29, 2016

Released in 0.16.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Remote desktop disconnected errors
After making sure that you are logged on to the network, try connecting to the server again. Remote desktop disconnected. Because of a...
Read more >
Fixing the "Remote Desktop Connection: An Internal Error Has ...
How to fix the “Remote Desktop Connection: An internal error has occurred” error. 1. Allow remote connections; 2. Change Remote Desktop ...
Read more >
How to fix 8 common remote desktop connection problems
First, try to establish a session from a client that has been able to successfully connect in the past. The goal is to...
Read more >
Tracking and Analyzing Remote Desktop Connection Logs in ...
Logon refers to an RDP login to Windows. EventID 21 – this event appears after a user has been successfully authenticated ( Remote...
Read more >
Remote Desktop Connection Manager throws an error when ...
The "servers" that cannot be logged off individually or as a group using the RDC Manager menu options are Windows 7 machines.
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