Unable to install apps ➜ cURL error 7

Hello everyone!

I recently installed a Nextcloud Hub 7 (28.0.3) on Ubuntu 22.04.4 LTS at the web host Hetzner and put it into operation. The underlying server is a “CAX11”, i.e. a shared Arm64 machine (2 vCPU Ampere, 4 GB RAM, 40 GB Disk space).

Everything works so far, only when installing apps I get a cURL error message. Here is an example for the calendar app: “Error: cURL error 7: (see libcurl - Error Codes) for https://github.com/nextcloud-releases/calendar/releases/download/v4.6.6/calendar-v4.6.6.tar.gz”.

I also get the same error message on the command line:

sudo -u www-data php /var/www/html/occ app:install calendar
Error: cURL error 7:  (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://github.com/nextcloud-releases/calendar/releases/download/v4.6.6/calendar-v4.6.6.tar.gz

What have I missed or done wrong?

It says the host was not found. Not sure if they are blocking outgoing connections for security reasons, or you need to enable it?

You can try on command line to load the file with curl or wget, if that works, then it is very likely a php setting.

wget https://github.com/nextcloud-releases/calendar/releases/download/v4.6.6/calendar-v4.6.6.tar.gz
curl https://github.com/nextcloud-releases/calendar/releases/download/v4.6.6/calendar-v4.6.6.tar.gz