Problem uploading setup created and package application import

Questions about WAPT Server / Requests and help related to the WAPT server
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
Locked
yoyox
Messages: 4
Registration: July 3, 2018 - 10:50

July 3, 2018 - 10:58

Good morning,

I installed Wapt on Debian as instructed on your website, and there were no problems
I install the console on the PC and create the certificate
When I create the agent, it does ask me for the passphrase, then right after that it tells me this

Code: Select all

[Window Title]
waptconsole

[Content]
Création impossible du paquet de mise à jour WAPT
HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: https://wapt.Mondom/api/v3/upload_packages

[OK]
So I upload it using scp

Then when I go to the repository to import 7-Zip, I get the message again

Code: Select all

[Window Title]
waptconsole

[Content]
Unable to import package : HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: https://wapt.Mondom/api/v3/upload_packages

[OK]
I don't think I made a mistake during installation; it seems the server is blocking connections, even though I haven't enabled the firewall on the server or on Windows. I tried again after disabling the firewall, but nothing changes

You wouldn't happen to have any ideas, would you?

THANKS
yoyox
Messages: 4
Registration: July 3, 2018 - 10:50

July 3, 2018 - 4:14 PM

Apparently it's a problem with Python

Code: Select all

Jul  3 16:12:10 wapt python[6259]: [2018-07-03 16:12:10,851] ERROR in app: Exception on /api/v3/upload_packages [POST]
Jul  3 16:12:10 wapt python[6259]: Traceback (most recent call last):
Jul  3 16:12:10 wapt python[6259]:   File "/opt/wapt/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
Jul  3 16:12:10 wapt python[6259]:     response = self.full_dispatch_request()
Jul  3 16:12:10 wapt python[6259]:   File "/opt/wapt/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
Jul  3 16:12:10 wapt python[6259]:     rv = self.handle_user_exception(e)
Jul  3 16:12:10 wapt python[6259]:   File "/opt/wapt/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
Jul  3 16:12:10 wapt python[6259]:     reraise(exc_type, exc_value, tb)
Jul  3 16:12:10 wapt python[6259]:   File "/opt/wapt/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
Jul  3 16:12:10 wapt python[6259]:     rv = self.dispatch_request()
Jul  3 16:12:10 wapt python[6259]:   File "/opt/wapt/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
Jul  3 16:12:10 wapt python[6259]:     return self.view_functions[rule.endpoint](**req.view_args)
Jul  3 16:12:10 wapt python[6259]:   File "/opt/wapt/waptserver/waptserver.py", line 199, in decorated
Jul  3 16:12:10 wapt python[6259]:     if not check_auth(auth.username, auth.password):
Jul  3 16:12:10 wapt python[6259]:   File "/opt/wapt/waptserver/waptserver.py", line 225, in check_auth
Jul  3 16:12:10 wapt python[6259]:     password.encode('utf8')).hexdigest()
Jul  3 16:12:10 wapt python[6259]: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 27: ordinal not in range(128)
yoyox
Messages: 4
Registration: July 3, 2018 - 10:50

July 4, 2018 - 9:50 AM

I changed the admin password to simple letters and it works, so it's the character conversion that's messed up. How can I fix this, please?

I also got another message after that:

[Window Title]
waptconsole

[Content]
Error loading WAPT agent to repository: unexpected: ((

[OK]

Does that make sense to you?

Thank you
yoyox
Messages: 4
Registration: July 3, 2018 - 10:50

July 4, 2018 - 11:52

So I changed my console login password, and the first message disappeared, and I was able to re-upload the file. Therefore, for those who might have this problem, it's because your password contains special characters like é, è, etc., so

be careful. Perhaps this could be fixed in a future version?

Thanks.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

July 5, 2018 - 5:48 PM

Hello Yoyox,
yoyox wrote: July 4, 2018 - 11:52 AM So I changed the console login password, and the first message disappeared, and I managed to re-upload the file. So for those who might have the problem, it comes from your password containing special characters like éè etc., so be careful.

Maybe this could be fixed in a future version?
Indeed, this needs to be corrected.
yoyox wrote: July 4, 2018 - 11:52 AM
Thank you
Which version of WAPT is this?

THANKS,

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
Locked