Error creating a package (Upload_Package)

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
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
mart03
Messages: 47
Registration: December 26, 2017 - 11:03

December 26, 2017 - 11:23

Good morning,

First of all, here is the information needed for the post:

- Installed WAPT version (1.5.1.11)
- Server OS (Linux Debian 9)
- Operating system of the administration/package creation machine (Windows Server 2016 Standard)

I have been encountering a problem with package upload since this morning, specifically with the last phase of the package build.
Below is the log/error of the process launched via PyScripter; the error is the same when accessing it through the Microsoft console:

Code: Select all

Ligne de Commande : -ldebug -i build-upload "c:\waptdev\alti-SkiFlex-wapt"
Building packages 1 packages
Personal certificate is Altiservice
Please type the password to decrypt the private key
c:\python27\lib\getpass.py:92: GetPassWarning: Can not control echo on the terminal.
  return fallback_getpass(prompt, stream)
Warning: Password input may be echoed.
Password: Private key is <SSLPrivateKey 'c:\\private\\altikey.pem'>
Building  c:\waptdev\alti-SkiFlex-wapt
...done building. Package filename c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt
Signing c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt with key <SSLPrivateKey 'c:\\private\\altikey.pem'> and certificate Altiservice (c:\private\altikey.crt)
Package c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt signed : signature : ZUtUngbg9Y...d+oIFyA==
1 packages successfully built
0 packages failed 
Buildind and uploading packages to http://"IPSERVER"
Warning: Password input may be echoed.
Password:Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 2097152 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 4194304 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 6291456 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 8388608 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 10485760 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 12582912 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 14680064 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 16777216 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 18874368 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 20971520 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 23068672 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 25165824 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 27262976 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 29360128 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 31457280 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 33554432 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 35651584 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 37748736 / 38373900
Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt: 38373900 / 38373900
Done Uploading c:\waptdev\alti-SkiFlex_18.0.0-2_all.wapt
Warning: Password input may be echoed.
Password:FATAL ERROR : HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: http://"IPSERVER"/api/v3/upload_packages
Traceback (most recent call last):
  File "c:\wapt\wapt-get.py", line 1183, in <module>
    main()
  File "c:\wapt\wapt-get.py", line 870, in main
    res = mywapt.upload_package(waptfiles)
  File "c:\wapt\common.py", line 3029, in upload_package
    return self.http_upload_package(filenames,wapt_server_user=wapt_server_user,wapt_server_passwd=wapt_server_passwd)
  File "c:\wapt\common.py", line 3002, in http_upload_package
    res_partiel = self.waptserver.post('api/v3/upload_packages',data=f.get(),auth=auth,timeout=300)
  File "c:\wapt\common.py", line 1709, in post
    req.raise_for_status()
  File "c:\wapt\lib\site-packages\requests\models.py", line 935, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: http://"IPSERVER"/api/v3/upload_packages

"IPSERVER" corresponds to the IP address of my server, which I preferred to delete

When I get to the step where it asks for my WAPT server login (/api/v3/upload_packages), I enter the login correctly, but it returns a 500 error even though my server is working properly and I can access the URL. I tried with the Linux server login (system root), and it returns a 400 error with "NOT AUTHORIZE". So I imagine I have the correct login credentials, but the problem is with the server.

I hope you will be able to help me.

Thank you for your answers and future help.

Martin
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

December 26, 2017 - 11:37

To be absolutely sure, you can try the latest version:

https://wapt.tranquil.it/wapt/nightly/w ... -bc2d4dbe/

Make sure you reinstall the latest WaptSetup for the server:

https://wapt/wapt/waptsetup-tis.exe
mart03
Messages: 47
Registration: December 26, 2017 - 11:03

December 26, 2017 - 11:51

Thank you, I'll look into it and get back to you.
mart03
Messages: 47
Registration: December 26, 2017 - 11:03

December 26, 2017 - 12:22

It's perfect, problem solved with 1.5.1.12.
Great login windows during package build. ;)

Thank you.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

December 26, 2017 - 2:07 PM

mart03 wrote: Dec 26, 2017 - 12:22 The login windows during package build are great ;)
;) THANKS !
Locked