No internet connection using nginx proxy manager

Nextcloud version (eg, 20.0.5): 22.2.0
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.3
Apache or nginx version (eg, Apache 2.4.25): 2.4.41
PHP version (eg, 7.4): 7.4

The issue you are facing:
Hi together, I’m running a Nextcloud instance on ubuntu. It’s running on an Proxmox LXC. On another LXC I’m running a Nginx proxy manager.
After setting up both systems, everything worked really well. I’m reaching the Nextcloud over ssl, the app is working, I uploaded my files and can access them from all my devices.
Talk also is working.

But my Nextcloud is having struggle with internet connection.

Dieser Server hat keine funktionierende Internetverbindung: Mehrere Ziele konnten nicht erreicht werden. Dies bedeutet, dass einige Funktionen, wie das Einhängen externen Speicher, Benachrichtigungen über Updates oder die Installation von Drittanbieter-Apps nicht funktionieren. Der Zugriff auf entfernte Dateien und das Senden von E-Mail-Benachrichtigungen wird wahrscheinlich ebenfalls nicht funktionieren. Um alle Funktionen nutzen zu können, stelle eine Internet-Verbindung für diesen Server her.

Some more information I’m getting over the protocol:

[internet_connection_check] Error: Cannot connect to: www.edri.org
GET /index.php/settings/ajax/checksetup
from 77.180.231.199 by xxx.xxxx at 2021-11-17T21:01:31+00:00

GuzzleHttp\Exception\RequestException: cURL error 56: Received HTTP code 400 from proxy after CONNECT (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.edri.org/

It seems like the requests of the Nextcloud are getting through the proxy, but there might be some communication problems.

Is there someone, who might be able to help me?

THANKS A LOT!!
Maik

Your Nextcloud (server) needs access to internet e.g. through NAT.
You can test it with:

traceroute 8.8.8.8
wget https://www.google.de

Perhaps there is a routing problem (Ubuntu, Proxmox LXC, …).
route -n

No internet connection using nginx proxy manager

I think this is not the problem. This is the opposite way.

Hi, thank you for your response!

The Terminal gives me good feedback on typing traceroute 8.8.8.8 and wget https://www.google.de. But it is the Container itself. With this I’m getting access to the internet. The problem is just for Nextcloud :frowning:
Du you have any idea?

Thank you very much
Maik

And this is the feedback on route -n:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.xxx.1 0.0.0.0 UG 0 0 0 eth0
192.168.xxx.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

Sorry i do not use Ubuntu on Proxmox LXC.
Search proxmox lxc ubuntu gateway internet
Perhaps there is an option in Proxmox LXC and/or you must configure something in Ubuntu.