Page 1 of 1

Import a big package into private repo.

Published: March 15, 2015 - 00:29
by elpiafo
Hello,

I built a package from an executable .exe and when I want to import the package in the private deposit, this error occurs:
- HTTPError: 502 Server Error: Bad Gateway.

This error happens from CLI or GUI.
The package size is 2.3 GB.

My OS: Windows Server 2012 R2.

Maybe the connection to the server closes because the transfer is too long. Anyone how to set this?

Re: Import a big package into private repo.

Published: March 16, 2015 - 10:52
by Guillaume
Hello,

I'm getting the exact same error with version 1.1.1.0,
whether I use a package I built (1.3 GB)
or try with a 630 MB wapt package.

Can you help me?

Thank you.

Re: Import a big package into private repo.

Published: March 16, 2015 - 11:11
by Frédéric Bonnier
Hello,
The current method for uploading a package from the console has a timeout that is too short for large packages or slow networks. This is one of the things that will be changed in future versions.

For now, if you have a WAPT server on Windows:
copy your new package to the directory C:\WAPT\waptserver\repository\wapt and run the command:
#wapt-get update-packages C:\WAPT\waptserver\repository\wapt

If you have a WAPT server on Linux:
copy your package to /var/www/wapt on your WAPT server using WinSCP.

Then run the command on the WAPT server:
#python /opt/wapt/wapt-scanpackages.py /var/www/wapt

Frédéric

Re: Import a big package into private repo.

Published: March 23, 2015 - 8:47 PM
by elpiafo
Hello and thank you for your reply.

I will test it soon and keep you posted.

Best regards.

Re: Import a big package into private repo.

Published: March 26, 2015 - 11:54 PM
by elpiafo
Great, it works. Thank you very much.

Re: Import a big package into private repo.

Published: June 21, 2018 - 1:53 PM
by CasseThor
Apparently, the same error exists in version 1.5.
I just tested your commands and it works.

I get a message:
Processed packages: SolidWorks.wapt etc...

It was added correctly to my repository; all that's left is to test the deployment.


However, with version 1.5, is there now a variable to modify this timeout?

Here is the console log:

Uploading c:\waptdev\iut-solidworks_22.2.0.40-1_all.wapt: 7058648134 / 7058648134
Done Uploading c:\waptdev\iut-solidworks_22.2.0.40-1_all.wapt
FATAL ERROR: HTTPError: 504 Server Error: Gateway Time-out for url: https://wapt.iut.lan/api/v3/upload_packages
Exit code: 3

(I should mention that I previously had to modify the nginx.conf file by changing client_max_body_size to 10GB
from client_max_body_size to 10000m; to get the gateway timeout error.)


Regards