I’m having some problems figuring this out for myself so I’m asking here.
It was running fine for about a week now.
Nextcloud version: 13.0.2.1
Operating system and version: Raspian Stretch Lite build from 18. April 18
Apache or nginx version: nginx 1.10.3
PHP version: 7.0
The issue you are facing:
I can’t access NC over my DNS-Server; I’m getting 502 Bad Gateway
Accessing via IP while in the same LAN works.
I didn’t make any changes to my DNS-Server so I’m not sure why it stopped working when it was working just 2 days ago.
I also checked that the dns directs to the correct ip.
The desktop client returns this error:
Error transferring https://mydns.org/remote.php/webdav/ - server replied: Bad Gateway
Is this the first time you’ve seen this error?: Yes
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
$CONFIG = array (
'instanceid' => 'xx',
'passwordsalt' => 'xx',
'secret' => 'xx',
'trusted_domains' =>
array (
0 => 'mydns',
),
'datadirectory' => '/var/www/html/data',
'overwrite.cli.url' => 'https://mydns',
'dbtype' => 'pgsql',
'version' => '13.0.2.1',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'xx',
'dbpassword' => 'xx',
'installed' => true,
'memcache.local' => '\OC\Memcache\APCu',
);
The output of your Apache/nginx/system log in /var/log/____
:
nginx error.log:
2018/05/13 10:07:15 [error] 32740#32740: *13785 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 10:07:46 [error] 32740#32740: *13788 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 10:08:18 [error] 32740#32740: *13791 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 10:08:50 [error] 32740#32740: *13794 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 10:09:35 [error] 32740#32740: *13799 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 10:09:54 [error] 32740#32740: *13802 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 10:10:26 [error] 32740#32740: *13805 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 10:10:58 [error] 32740#32740: *13808 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 10:11:30 [error] 32740#32740: *13811 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 10:12:04 [error] 32740#32740: *13817 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 10:13:26 [error] 32740#32740: *13819 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 10:13:27 [error] 32740#32740: *13819 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "GET /favicon.ico HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 10:13:28 [error] 32740#32740: *13819 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "GET /favicon.ico HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 11:39:59 [error] 32740#32740: *13827 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "GET /favicon.ico HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 11:41:26 [error] 32740#32740: *13830 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 11:57:44 [error] 32740#32740: *13837 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "PROPFIND /remote.php/webdav HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 11:57:45 [error] 32740#32740: *13837 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "GET /ocs/v2.php/cloud/user?format=json HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 11:57:45 [error] 32740#32740: *13837 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "GET /ocs/v1.php/cloud/capabilities?format=json HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"
2018/05/13 11:57:45 [error] 32740#32740: *13837 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.2.1, server: mydns.org, request: "GET /ocs/v2.php/cloud/activity?format=json HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "mydns.org"