Page 1 of 1

Problem uploading setup created and package application import

Published: July 3, 2018 - 10:58 AM
by yoyox
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

Re: Problem uploading setup created and importing application package

Published: July 3, 2018 - 4:14 PM
by yoyox
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)

Re: Problem uploading setup created and importing application package

Published: July 4, 2018 - 9:50 AM
by yoyox
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

Re: Problem uploading setup created and importing application package

Published: July 4, 2018 - 11:52 AM
by yoyox
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.

Re: Problem uploading setup created and importing application package

Published: July 5, 2018 - 5:48 PM
by dcardon
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