Page 1 of 1

gateway timeout

Published: May 14, 2019 - 12:05 PM
by infotc
Hello,
Adobe has changed its licensing policy for Creative Cloud, so
I'm forced to uninstall the licensed CC 2018 apps and replace them with a 16GB setup using an anonymous license.
I've modified nginx to accept files larger than 4GB.
The package build and signature are correct. The upload completes but fails at the very end with the following error message:
Done uploading: xxxxx.wapt
FATAL ERROR: HTTError: 504 Server error: Gateway Time-out for url: https://mywaptserver.domain.lan/api/ ... d_packages.

On the server, the load average was over 2, so I think it was overloaded. Is there any way to extend the time required to complete the package upload on the server? (Obviously, a hardware upgrade is out of the question, as I have no budget for it.)
Thank you.

Re: Gateway timeout

Published: May 14, 2019 - 12:24
by htouvet
The HTTP upload method is not really optimized for very large packets like this one... improvements should be considered on our end.

One possibility is to

- Build/sign the package without uploading it using the command (in cmd on your development machine):

Code: Select all

wapt-get -i build-package c:\waptdev\<monpaquet-wapt>
Then upload the package (.wapt) via SSH using WinSCP3, for example, to the server's /var/www/wapt directory

then reindex the packages (update in the repository the index file "Packages") with the command (via ssh root on the Wapt server)

Code: Select all

 wapt-scanpackages /var/www/wapt/ -linfo

Re: Gateway timeout

Published: May 15, 2019 - 2:52 PM
by infotc
Hello,
thank you very much for the quick reply. Indeed, it works well for uploads.
However, I made the mistake of trying to deploy the package to all 31 PCs in a room (I was pressed for time, as classes were being held this morning using the CC suite). It was a disaster; only 2 or 3 completed the download and installed the package successfully. The others encountered connection errors with the server (probably due to network congestion). I had to urgently perform the installations manually.
But I will test it tomorrow in another room with only 2 or 3 computers at a time. I will report the final result.