Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication problem - Failed to patch SSL settings #952

Closed
nona00 opened this issue Jul 23, 2023 · 15 comments
Closed

Authentication problem - Failed to patch SSL settings #952

nona00 opened this issue Jul 23, 2023 · 15 comments

Comments

@nona00
Copy link

nona00 commented Jul 23, 2023

I have an issue after upgrading to check-mk 2.2.0p6.

When resuming from standby there occurs an "Authentication problem" on two different systems. I already upgraded to the debug version Nagstamon-3.13-20230720-win64_debug but this did not help, the following error is shown:

pip_system_certs\wrapt_requests.py:71: UserWarning: Failed to patch SSL settings for unverified requests (unsupported version of urllib3?)

On my screenshot there are two sites. The first one is check-mk 2.2.0p6, the second one - which works - is running 2.1.0p2
nagstamon

@nona00
Copy link
Author

nona00 commented Jul 23, 2023

When I manually press "Authenticate" the connection is established again.

@HenriWahl
Copy link
Owner

@nona00 due to vacation I am not able to look at this issue right now. When being back I think we will find a solution.

@nona00
Copy link
Author

nona00 commented Sep 13, 2023

can I help to debug the issue?

@HenriWahl
Copy link
Owner

@nona00 sorry for the late reply: maybe you could run Nagstamon in terminal to get more output.
In the meantime this behaviour happened to me too so I will have a closer look to it.

@nona00
Copy link
Author

nona00 commented Oct 3, 2023

here is the debug output of 3.13-20230720

`QLayout: Attempting to add QLayout "" to StatusWindow "", which already has a layout
QLayout: Attempting to add QLayout "" to StatusWindow "", which already has a layout
QLayout: Attempting to add QLayout "" to StatusWindow "", which already has a layout
QLayout: Attempting to add QLayout "" to StatusWindow "", which already has a layout
QLayout: Attempting to add QLayout "" to StatusWindow "", which already has a layout
pip_system_certs\wrapt_requests.py:71: UserWarning: Failed to patch SSL settings for unverified requests (unsupported version of urllib3?)
This may lead to errors when urllib3 tries to modify verify_mode.
Please report an issue at https://gitlab.com/alelec/pip-system-certs with your
python version included in the description

Traceback (most recent call last):
File "Nagstamon\Servers\Multisite.py", line 238, in _get_status
File "Nagstamon\Servers\Multisite.py", line 197, in _get_url
File "", line 1, in
NameError: name 'ERROR' is not defined
Traceback (most recent call last):
File "Nagstamon\Servers\Multisite.py", line 238, in _get_status
File "Nagstamon\Servers\Multisite.py", line 197, in _get_url
File "", line 1, in
NameError: name 'ERROR' is not defined
Traceback (most recent call last):
File "Nagstamon\Servers\Multisite.py", line 238, in _get_status
File "Nagstamon\Servers\Multisite.py", line 197, in _get_url
File "", line 1, in
NameError: name 'ERROR' is not defined
Traceback (most recent call last):
File "Nagstamon\Servers\Multisite.py", line 238, in _get_status
File "Nagstamon\Servers\Multisite.py", line 197, in _get_url
File "", line 1, in
NameError: name 'ERROR' is not defined
Traceback (most recent call last):
File "Nagstamon\Servers\Multisite.py", line 238, in _get_status
File "Nagstamon\Servers\Multisite.py", line 197, in _get_url
File "", line 1, in
NameError: name 'ERROR' is not defined`

@HenriWahl
Copy link
Owner

@nona00 what are your settings regarding certificate verfication? Do you ignore certifiate validity?

@nona00
Copy link
Author

nona00 commented Oct 10, 2023

Ignore SSL/TLS certificate is enabled. Same issue with Nagstamon-3.13-20231010-win64, Authentication problem after standby.

@HenriWahl
Copy link
Owner

@nona00 sorry for the late reply... you wrote 'Authentication problem after standby.' - does it mean this only happens after standby?

@nona00
Copy link
Author

nona00 commented Nov 1, 2023

yes it happens after resume from standby

@nona00
Copy link
Author

nona00 commented Dec 9, 2023

issue is still present in Nagstamon-3.13-20231208-win64. I have to manually press Authenticate to get rid of the issue.

Would it be possible to do Authenticate automatically if the Authentifaction problem occurs?

@HenriWahl
Copy link
Owner

@nona00 sorry I somehow lost focus on this issue. Yes, will be investigated further.

@nona00
Copy link
Author

nona00 commented Jan 24, 2024

issue still present in 3.13-20240108

grafik

@HenriWahl
Copy link
Owner

Meanwhile Checkmk 2.2.0p18 is out at least - what is the version you do run Nagstamon with?

@HenriWahl
Copy link
Owner

@nona00 I am sorry but I can't reproduce this with latest Nagstamon testing and a Checkmk 2.2.0p18 instance. After waking up the sleeping Windows Nagstamon continues to work.

@nona00
Copy link
Author

nona00 commented Feb 5, 2024

I updated to 2.2.0p21 now and can not reproduce the issue any more.

@nona00 nona00 closed this as completed Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants