Nextcloud instalation error

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2):
Operating system and version (eg, Ubuntu 17.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

The issue you are facing:

hi first up

  1. I have little knowledge of Servers
  2. The IT person set it up and left for the states and is not returning emails or crys for help
  3. when the server has been plugged into the network I get a 502 Nginx 1.14.0 Error (Ubuntu) 502 bad gateway
  4. I have no idea where to start to fix this previous work experience was a plumber lol or military
  5. Need help please but if possible step by step whether here on the terminal of the server or off the network
    6 Thank you in advance

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. Tried to access it both local network and through ip address

The output of your Nextcloud log in Admin > Logging:
admin@nextcloud:~$ Logging**:
Logging**:: command not found
admin@nextcloud:~$ Logging**
Logging**: command not found
admin@nextcloud:~$ logging
logging: command not found
admin@nextcloud:~$ Admin > Logging**:
Admin: command not found

I have no Idea what to type to get the logs that you are after:```
PASTE HERE


The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

PASTE HERE


The output of your Apache/nginx/system log in `/var/log/____`:
```bash: /var/log: Is a directory

PASTE HERE

the system has done a update just now as well error still there```

most likely fpm-php is not working.

  • did you reboot?

  • you should cd into /var/log and search for the nginx logs. most likely in /var/log/nginx
    so do a sudo ls /var/log/nginx. if you found the nginx.log or error.log or what ever is the error log of your nginx do a sudo tail -f /var/log/nginx/nginx.log and click reload in your browser.
    If nothing happens you didn’t found the right log. check the timestamp of the files to find out which one changed when you reload the browser. sudo ls -l /var/log/nginx

admin@nextcloud:~$ cd /var/log
admin@nextcloud:/var/log$ sudo ls /var/log/nginx
[sudo] password for admin:
access.log access.log.4.gz error.log.11.gz error.log.7.gz
access.log.1 access.log.5.gz error.log.12.gz error.log.8.gz
access.log.10.gz access.log.6.gz error.log.13.gz error.log.9.gz
access.log.11.gz access.log.7.gz error.log.14.gz yourdomain-access.log
access.log.12.gz access.log.8.gz error.log.2.gz yourdomain-access.log.1
access.log.13.gz access.log.9.gz error.log.3.gz yourdomain-error.log
access.log.14.gz error.log error.log.4.gz
access.log.2.gz error.log.1 error.log.5.gz
access.log.3.gz error.log.10.gz error.log.6.gz
admin@nextcloud:/var/log$

dmin@nextcloud:/var/log$ sudo tail -f /var/log/nginx/nginx.log
tail: cannot open ‘/var/log/nginx/nginx.log’ for reading: No such file or directory
tail: no files remaining
admin@nextcloud:/var/log$

date
sudo ls -l /var/log/nginx

# click reload in browser

sudo ls -l /var/log/nginx

check which file changed. -> sudo more //var/log/nginx/this_file

i don’t know whats identifiable and whats not sorry

admin@nextcloud:/var/log$ sudo ls -l /var/log/nginx
total 708
-rw-r----- 1 www-data adm 56381 Mar 31 18:06 access.log
-rw-r----- 1 www-data adm 145967 Mar 31 00:05 access.log.1
-rw-r----- 1 www-data adm 1292 Mar 21 23:42 access.log.10.gz
-rw-r----- 1 www-data adm 507 Mar 9 16:14 access.log.11.gz
-rw-r----- 1 www-data adm 92 Feb 24 19:07 access.log.12.gz
-rw-r----- 1 www-data adm 250 Feb 19 18:21 access.log.13.gz
-rw-r----- 1 www-data adm 317 Feb 18 15:28 access.log.14.gz
-rw-r----- 1 www-data adm 3308 Mar 30 00:08 access.log.2.gz
-rw-r----- 1 www-data adm 6466 Mar 28 22:39 access.log.3.gz
-rw-r----- 1 www-data adm 5769 Mar 27 23:14 access.log.4.gz
-rw-r----- 1 www-data adm 5427 Mar 27 00:05 access.log.5.gz
-rw-r----- 1 www-data adm 2363 Mar 25 23:37 access.log.6.gz
-rw-r----- 1 www-data adm 2179 Mar 24 23:05 access.log.7.gz
-rw-r----- 1 www-data adm 3592 Mar 23 23:44 access.log.8.gz
-rw-r----- 1 www-data adm 2103 Mar 22 23:19 access.log.9.gz
-rw-r----- 1 www-data adm 98757 Mar 31 18:06 error.log
-rw-r----- 1 www-data adm 254441 Mar 31 00:05 error.log.1
-rw-r----- 1 www-data adm 985 Mar 21 23:42 error.log.10.gz
-rw-r----- 1 www-data adm 123 Mar 18 13:47 error.log.11.gz
-rw-r----- 1 www-data adm 173 Mar 13 19:30 error.log.12.gz
-rw-r----- 1 www-data adm 122 Mar 12 12:12 error.log.13.gz
-rw-r----- 1 www-data adm 123 Mar 11 15:42 error.log.14.gz
-rw-r----- 1 www-data adm 3574 Mar 30 00:08 error.log.2.gz
-rw-r----- 1 www-data adm 9292 Mar 28 22:39 error.log.3.gz
-rw-r----- 1 www-data adm 6028 Mar 27 23:14 error.log.4.gz
-rw-r----- 1 www-data adm 5560 Mar 27 00:05 error.log.5.gz
-rw-r----- 1 www-data adm 3093 Mar 25 23:37 error.log.6.gz
-rw-r----- 1 www-data adm 1323 Mar 24 23:05 error.log.7.gz
-rw-r----- 1 www-data adm 4504 Mar 23 23:44 error.log.8.gz
-rw-r----- 1 www-data adm 1878 Mar 22 23:19 error.log.9.gz
-rw-r----- 1 www-data adm 0 Dec 10 03:30 yourdomain-access.log
-rw-r–r-- 1 root root 307 Dec 9 21:13 yourdomain-access.log.1
-rw-r–r-- 1 root root 0 Dec 8 19:17 yourdomain-error.log

I hope that i am helping

admin@nextcloud:/var/log$ sudo more //var/log/nginx/this_file
more: stat of //var/log/nginx/this_file failed: No such file or directory
a

i assume it’s around 6pm where you live.

sudo more /var/log/nginx/error.log
or just
sudo more /var/log/nginx/error.log

Yes AWST
Western Australia

Body is limited to 32000 characters; you entered 99871.

the file is to big

Body is limited to 32000 characters; you entered 99871.

sorry. copy&paste error.

admin@nextcloud:~$ sudo tail -n 20 /var/log/nginx/error.log
[sudo] password for admin:
2020/03/31 16:17:49 [crit] 1712#1712: *6181 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.12, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”
2020/03/31 16:17:50 [crit] 1712#1712: *6181 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.12, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”, referrer: “http://192.168.15.15/
2020/03/31 16:24:43 [crit] 1854#1854: *1 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.1, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “58.171.44.12”
2020/03/31 16:24:50 [crit] 1856#1856: *4 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.12, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”
2020/03/31 16:24:50 [crit] 1856#1856: *4 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.12, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”, referrer: “http://192.168.15.15/
2020/03/31 16:24:44 [crit] 1854#1854: *1 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.1, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “58.171.44.12”, referrer: “http://58.171.44.12/
2020/03/31 16:24:56 [crit] 1856#1856: *5 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.12, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”
2020/03/31 16:24:56 [crit] 1856#1856: *5 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.12, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”, referrer: “http://192.168.15.15/
2020/03/31 16:25:13 [crit] 1854#1854: *11 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.12, server: 192.168.0.214, request: “HEAD / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “nextcloud”
2020/03/31 18:06:01 [crit] 1702#1702: *1 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.5, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.12”
2020/03/31 18:06:01 [crit] 1702#1702: *1 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.5, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.12”, referrer: “http://192.168.15.12/
2020/03/31 18:27:28 [crit] 1702#1702: *5 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.5, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.12”
2020/03/31 18:27:29 [crit] 1702#1702: *5 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.5, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.12”, referrer: “http://192.168.15.12/
2020/03/31 18:31:14 [crit] 1702#1702: *9 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.1, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “58.171.44.12”
2020/03/31 18:31:16 [crit] 1702#1702: *9 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.1, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “58.171.44.12”, referrer: “http://58.171.44.12/
2020/03/31 18:31:25 [crit] 1702#1702: *9 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.1, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “58.171.44.12”
2020/03/31 18:31:26 [crit] 1702#1702: *9 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.1, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “58.171.44.12”, referrer: “http://58.171.44.12/
2020/03/31 18:31:46 [crit] 1702#1702: *16 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.5, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”
2020/03/31 18:31:47 [crit] 1702#1702: *16 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.5, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”, referrer: “http://192.168.15.15/
2020/03/31 18:32:17 [crit] 1702#1702: *21 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 187.85.150.145, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “58.171.44.12:80”

2020/03/31 16:24:50 [crit] 1856#1856: *4 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.12, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”, referrer: “http://192.168.15.15/”

php7.0-fpm is not running.

sudo systemctl status php7.0-fpm

admin@nextcloud:~$ sudo systemctl status php7.0-fpm
[sudo] password for admin:
Unit php7.0-fpm.service could not be found.
admin@nextcloud:~$

systemctl | grep php