I have recently installed Nextcloud 25.0.1 manually. At first I got some errors but I managed to solve them with the help of different tutorials.
I have it all with http, since when using it through a VPN, there is no need to use https. I say this in case it has something to do with the problem that I am going to explain below.
With Nextcloud already installed, running, the cron running fine and everything ok, I had almost claimed victory, until I tried to install an app and saw that there is no way to do it. Every time I try to install (whatever the app is), I get the following error message.
GuzzleHttp\Exception\ConnectException: cURL error 28: SSL connection timeout (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://objects.githubusercontent.com/github-production-release-asset-2e65be/377456681/3ab88a35-ed32-4d92-92d6-97767ee756d7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221115%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221115T080857Z&X-Amz-Expires=300&X-Amz-Signature=eae3298e672440c82b49021696dbba5c02559bb4a2fb0b99b771acf648deb137&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=377456681&response-content-disposition=attachment%3B%20filename%3Dcalendar-v4.1.0.tar.gz&response-content-type=application%2Foctet-stream
I have searched many internet sites and have not found any answers that help me.
Is it possible that the problem is because I installed the minimum version of Ubuntu Server? I have another Nextcloud working, but with docker, so I rule out the router’s firewall and I don’t know what other configuration files to edit anymore
It finally turned out to be an incompatibility with the network adapter of the proxmox virtual machine. I switched from virtIO to Intel and now it works perfectly.
I have encountered the error with certain apps with large download on installation, like Recognize.
In the logs, I could see that the timeout happened always after exactly 120 seconds, which helped to find the culprit:
$timeout = $this->isCLI ? 0 : 120;
in _data/www/nextcloud/lib/private/Installer.php.
Since I could see in the logs what fraction of the download completed before the timeout, I found that I needed to increase the timeout to ca. 600 s. After this, I could install the app without problems.