Hello,
I just installed the WAPT agent on a Raspberry Pi 3+ with the aim of setting it up as a secondary repository.
But when I run `sudo wapt-get register`,
I get the following error
: FATAL ERROR: EWaptException: Unable to register: waptserver https://xxx.xxx.xxx.xxx not available.
Do you have any idea what the problem might be?
I searched for the documentation to install WAPT but couldn't find it, so I adapted it from https://www.wapt.fr/en/doc-2.3/wapt-dep ... macos.html.
Thank you
. Best regards.
[SOLVED] Error on Raspberry Pi 3+
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
- dcardon
- WAPT Expert
- Messages: 1929
- Registration: June 18, 2014 - 09:58
- Location: Saint Sébastien sur Loire
- Contact :
Hello,
what version of WAPT are you using? What version of Linux are you using on your Raspberry Pi 3? Debian ARM packages are currently only compiled for Debian 10. Could you be using Debian 11?
Regards,
Denis
what version of WAPT are you using? What version of Linux are you using on your Raspberry Pi 3? Debian ARM packages are currently only compiled for Debian 10. Could you be using Debian 11?
Regards,
Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Hello,
I have indeed failed to complete all my homework.
root@raspberrypi:~# cat /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
Agent installed from deb https://wapt.tranquil.it/debian/wapt-2.2/buster main" > /etc/apt/sources.list.d/wapt.list
So, version 2.2 of the agent.
Thank you for your help
Sincerely
I have indeed failed to complete all my homework.
root@raspberrypi:~# cat /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
Agent installed from deb https://wapt.tranquil.it/debian/wapt-2.2/buster main" > /etc/apt/sources.list.d/wapt.list
So, version 2.2 of the agent.
Thank you for your help
Sincerely
- dcardon
- WAPT Expert
- Messages: 1929
- Registration: June 18, 2014 - 09:58
- Location: Saint Sébastien sur Loire
- Contact :
Good morning,
Thank you for the additional information. Is there a proxy or firewall filtering traffic between the agent and the server? Could you try running the register in debug mode?
Sincerely,
Denis
Thank you for the additional information. Is there a proxy or firewall filtering traffic between the agent and the server? Could you try running the register in debug mode?
Code: Select all
wapt-get -l debug registerDenis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Good morning,
There is no FW and/or proxy between the agent and the server at the moment.
For my tests, both are in the same network and on the same switch and VLAN.
Here is the result of the command.
Thank you for your help
Sincerely
There is no FW and/or proxy between the agent and the server at the moment.
For my tests, both are in the same network and on the same switch and VLAN.
Here is the result of the command.
Code: Select all
2022-12-27 08:13:27,196 DEBUG Default encoding : utf-8
2022-12-27 08:13:27,196 DEBUG Caller: ['/opt/wapt/wapt-get.py', '-l', 'debug', 'register']
2022-12-27 08:13:27,197 DEBUG Python path ['/opt/wapt', '/opt/wapt', '/opt/wapt/lib/python38.zip', '/opt/wapt/lib/python3.8', '/opt/wapt/lib/python3.8/lib-dynload', '/opt/wapt/lib/python3.8/site-packages']
2022-12-27 08:13:27,197 INFO Using local waptservice configuration /opt/wapt/wapt-get.ini
2022-12-27 08:13:27,198 DEBUG Config file: /opt/wapt/wapt-get.ini
2022-12-27 08:13:27,208 DEBUG Thread 1995895808 is connecting to wapt db
2022-12-27 08:13:27,212 DEBUG DB Start transaction
2022-12-27 08:13:27,213 DEBUG DB commit
Using config file: /opt/wapt/wapt-get.ini
2022-12-27 08:13:27,363 DEBUG Using host certificate /opt/wapt/private/raspberrypi.pem for repo global auth
2022-12-27 08:13:27,364 INFO User Groups:[]
2022-12-27 08:13:27,366 INFO WAPT base directory : /opt/wapt
2022-12-27 08:13:27,367 INFO Package cache dir : /opt/wapt/cache
2022-12-27 08:13:27,367 INFO WAPT DB Structure version: 20210420
Registering host against server: https://10.xxx.xxx.xxx
2022-12-27 08:13:27,369 DEBUG Loading ssl context with cert /opt/wapt/private/raspberrypi.crt and key /opt/wapt/private/raspberrypi.pem
2022-12-27 08:13:27,379 DEBUG Starting new HTTPS connection (1): 10.xxx.xxx.xxx:443
2022-12-27 08:13:27,434 DEBUG Wapt server https://10.xxx.xxx.xxx unavailable (SSLError: HTTPSConnectionPool(host='10xxx.xxx.xxx', port=443): Max retries exceeded with url: /ping (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1131)'))))
FATAL ERROR : EWaptException: Unable to register: waptserver https://10.xxx.xxx.xxx not available
Traceback (most recent call last):
File "/opt/wapt/wapt-get.py", line 1647, in <module>
main()
File "/opt/wapt/wapt-get.py", line 1341, in main
result['register'] = mywapt.register_computer(
File "/opt/wapt/common.py", line 5908, in register_computer
raise EWaptException('Unable to register: waptserver %s not available' % self.waptserver.server_url)
waptpackage.EWaptException: Unable to register: waptserver https://10.xxx.xxx.xxx not availableSincerely
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Hello,
could you please provide your wapt-get.ini file so I can check the value of verify_cert?
The message indicates:
CERTIFICATE_VERIFY_FAILED
could you please provide your wapt-get.ini file so I can check the value of verify_cert?
The message indicates:
CERTIFICATE_VERIFY_FAILED
Hello,
after running several tests, I had removed the line `verify_cert=0`.
I put it back, restarted the service, and then ran the command `wapt-get -l debug register`.
And now it works.
The issue is therefore closed.
Thank you all for your help.
Sincerely.
after running several tests, I had removed the line `verify_cert=0`.
I put it back, restarted the service, and then ran the command `wapt-get -l debug register`.
And now it works.
The issue is therefore closed.
Thank you all for your help.
Sincerely.
