Php FPM error before install, php-fpm.sock

Nextcloud version (eg, 18.0.2): 19.0.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu Server 20.04
Apache or nginx version (eg, Apache 2.4.25): nginx version: nginx/1.18.0 (Ubuntu)
PHP version (eg, 7.1): php 7.4

The issue you are facing:
when I go to my site to install i get a 502 Bad Gateway from nginx

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

Steps to replicate it:

  1. goto https://sturtz.ml

The output of your Nextcloud log in Admin > Logging:

Dont have/ have not installed yet

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

dont have 

The output of your Apache/nginx/system log in /var/log/____:

2020/08/14 17:29:40 [notice] 7039#7039: signal process started
2020/08/14 17:29:42 [error] 7040#7040: *2852 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:29:42 [crit] 7040#7040: *2852 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:31:42 [crit] 7040#7040: *2852 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:31:42 [error] 7040#7040: *2852 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:32:10 [crit] 7040#7040: *2852 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:32:10 [error] 7040#7040: *2852 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:32:11 [error] 7040#7040: *2852 no live upstreams while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:32:20 [notice] 7124#7124: signal process started
2020/08/14 17:32:22 [error] 7125#7125: *2912 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:32:22 [crit] 7125#7125: *2912 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:32:54 [crit] 7125#7125: *2912 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:32:54 [error] 7125#7125: *2912 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:37:02 [error] 7263#7263: *26 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:37:02 [crit] 7263#7263: *26 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:40:04 [notice] 7473#7473: signal process started
2020/08/14 17:40:27 [error] 7474#7474: *99 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:40:27 [crit] 7474#7474: *99 connect() to unix:/var/lib/dpkg/alternatives/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/lib/dpkg/alternatives/php-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:40:35 [error] 7474#7474: *105 no live upstreams while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"

my nextcloud.conf nginx file

    server 127.0.0.1:9000;
    #server unix:/var/run/php/php7.4-fpm.sock;
    server unix:/var/lib/dpkg/alternatives/php-fpm.sock;
}


server {
    listen 80;
    listen [::]:80;
    server_name sturtz.ml;
    # enforce https
    return 301 https://$server_name$request_uri;
}

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name sturtz.ml;

    # Use Mozilla's guidelines for SSL/TLS settings
    # https://mozilla.github.io/server-side-tls/ssl-config-generator/
    # NOTE: some settings below might be redundant
    #ssl_certificate /etc/ssl/nginx/cloud.example.com.crt;
   # ssl_certificate_key /etc/ssl/nginx/cloud.example.com.key;

    # Add headers to serve security related headers
    # Before enabling Strict-Transport-Security headers please read into this
    # topic first.
    # add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
    #
    # WARNING: Only add the preload option once you read about
    # the consequences in https://hstspreload.org/. This option
    # will add the domain to a hardcoded list that is shipped
    # in all major browsers and getting removed from this list
    # could take several months.
    add_header X-Content-Type-Options nosniff;
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Robots-Tag none;
    add_header X-Download-Options noopen;
    add_header X-Permitted-Cross-Domain-Policies none;
    add_header Referrer-Policy no-referrer;

    # Remove X-Powered-By, which is an information leak
    fastcgi_hide_header X-Powered-By;

    # Path to the root of your installation
    root /var/www/nextcloud/;

    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }

    # The following 2 rules are only needed for the user_webfinger app.
    # Uncomment it if you're planning to use this app.
    #rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
    #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;

    location = /.well-known/carddav {
      return 301 $scheme://$host/remote.php/dav;
    }
    location = /.well-known/caldav {
      return 301 $scheme://$host/remote.php/dav;
    }

    # set max upload size
    client_max_body_size 512M;
    fastcgi_buffers 64 4K;

    # Enable gzip but do not remove ETag headers
    gzip on;
    gzip_vary on;
    gzip_comp_level 4;
    gzip_min_length 256;
    gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
    gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;

    # Uncomment if your server is build with the ngx_pagespeed module
    # This module is currently not supported.
    #pagespeed off;

    location / {
        rewrite ^ /index.php$request_uri;
    }

    location ~ ^\/(?:build|tests|config|lib|3rdparty|templates|data)\/ {
        deny all;
    }
    location ~ ^\/(?:\.|autotest|occ|issue|indie|db_|console) {
        deny all;
    }

    location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|ocs-provider\/.+)\.php(?:$|\/) {
        fastcgi_split_path_info ^(.+?\.php)(\/.*|)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param HTTPS on;
        #Avoid sending the security headers twice
        fastcgi_param modHeadersAvailable true;
        fastcgi_param front_controller_active true;
        fastcgi_pass php-handler;
        fastcgi_intercept_errors on;
        fastcgi_request_buffering off;
    }

    location ~ ^\/(?:updater|ocs-provider)(?:$|\/) {
        try_files $uri/ =404;
        index index.php;
    }

    # Adding the cache control header for js, css and map files
    # Make sure it is BELOW the PHP block
    location ~ \.(?:css|js|woff2?|svg|gif|map)$ {
        try_files $uri /index.php$request_uri;
        add_header Cache-Control "public, max-age=15778463";
        # Add headers to serve security related headers (It is intended to
        # have those duplicated to the ones above)
        # Before enabling Strict-Transport-Security headers please read into
        # this topic first.
        # add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
        #
        # WARNING: Only add the preload option once you read about
        # the consequences in https://hstspreload.org/. This option
        # will add the domain to a hardcoded list that is shipped
        # in all major browsers and getting removed from this list
        # could take several months.
        add_header X-Content-Type-Options nosniff;
        add_header X-XSS-Protection "1; mode=block";
        add_header X-Robots-Tag none;
        add_header X-Download-Options noopen;
        add_header X-Permitted-Cross-Domain-Policies none;
        add_header Referrer-Policy no-referrer;

        # Optional: Don't log access to assets
        access_log off;
    }

    location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
        try_files $uri /index.php$request_uri;
        # Optional: Don't log access to other assets
        access_log off;
    }

    ssl_certificate /etc/letsencrypt/live/sturtz.ml/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/sturtz.ml/privkey.pem; # managed by Certbot
}









Comment out this line with a # and restart nginx

# server unix:/var/lib/dpkg/alternatives/php-fpm.sock;

1 Like

Ok and still a 502 Bad Gateway error

Execute

sudo ps aux | grep 'php'

And check if a php-fpm: master process is running. If not the problem is on nextcloud side cause
Php-fpm isn’t running.

1 Like

how do I check if php-fpm: master process is running? is that systemctl status php-fpm: master?

and the output of sudo ps aux | grep 'php' is

root@mail:/var/log/nginx# sudo ps aux | grep 'php'
root        8311  0.0  0.4 240340 36464 ?        Ss   17:49   0:00 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
www-data    8323  0.0  0.2 240732 16152 ?        S    17:49   0:00 php-fpm: pool inet
www-data    8324  0.0  0.2 240732 16208 ?        S    17:49   0:00 php-fpm: pool inet
www-data    8325  0.0  0.2 240732 16208 ?        S    17:49   0:00 php-fpm: pool inet
www-data    8326  0.0  0.2 240732 16156 ?        S    17:49   0:00 php-fpm: pool inet
www-data    8327  0.0  0.2 240732 16156 ?        S    17:49   0:00 php-fpm: pool inet
root       11119  0.0  0.0   6432   672 pts/0    S+   18:07   0:00 grep --color=auto php

the output to systemctl status php7.4-fpm
is

● php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
     Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2020-08-14 17:49:58 UTC; 20min ago
       Docs: man:php-fpm7.4(8)
    Process: 8328 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.4/fpm/pool.d/www.conf 74 (code=exited, status=0/SUCCESS)
   Main PID: 8311 (php-fpm7.4)
     Status: "Processes active: 0, idle: 5, Requests: 389, slow: 0, Traffic: 0.3req/sec"
      Tasks: 6 (limit: 9297)
     Memory: 14.6M
     CGroup: /system.slice/php7.4-fpm.service
             ├─8311 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
             ├─8323 php-fpm: pool inet
             ├─8324 php-fpm: pool inet
             ├─8325 php-fpm: pool inet
             ├─8326 php-fpm: pool inet
             └─8327 php-fpm: pool inet

Aug 14 17:49:58 mail.sturtz.ml systemd[1]: Starting The PHP 7.4 FastCGI Process Manager...
Aug 14 17:49:58 mail.sturtz.ml php-fpm[8311]: [NOTICE] fpm is running, pid 8311
Aug 14 17:49:58 mail.sturtz.ml php-fpm[8311]: [NOTICE] ready to handle connections
Aug 14 17:49:58 mail.sturtz.ml php-fpm[8311]: [NOTICE] systemd monitor interval set to 10000ms
Aug 14 17:49:58 mail.sturtz.ml systemd[1]: Started The PHP 7.4 FastCGI Process Manager.

Check if root /var/www/nextcloud/; is correct path.

is the ; at the end make it /var/www/nextcloud/; or dose it read it as /var/www/nextcloud ? it should be /var/www/nextcloud/ and www-data is the owner of it and the data folder

It’s just the marker for end of line. Ignore it. Check if path /var/www/nextcloud is available

1 Like

It is correct

Do you think a reboot will help?

Give it a try…

1 Like

Ok, will do

Also check /var/log/nginx/error.log

when it starts back up I will post the full log

Maybe helpful, too:

I will look at the
here is the full log

2020/08/14 14:59:35 [notice] 34777#34777: signal process started
2020/08/14 14:59:35 [error] 34777#34777: invalid PID number "" in "/run/nginx.pid"
2020/08/14 14:59:35 [emerg] 34778#34778: bind() to 0.0.0.0:80 failed (98: Address already in use)
2020/08/14 14:59:35 [emerg] 34778#34778: bind() to [::]:80 failed (98: Address already in use)
2020/08/14 14:59:35 [emerg] 34778#34778: bind() to 0.0.0.0:80 failed (98: Address already in use)
2020/08/14 14:59:35 [emerg] 34778#34778: bind() to [::]:80 failed (98: Address already in use)
2020/08/14 14:59:35 [emerg] 34778#34778: bind() to 0.0.0.0:80 failed (98: Address already in use)
2020/08/14 14:59:35 [emerg] 34778#34778: bind() to [::]:80 failed (98: Address already in use)
2020/08/14 14:59:35 [emerg] 34778#34778: bind() to 0.0.0.0:80 failed (98: Address already in use)
2020/08/14 14:59:35 [emerg] 34778#34778: bind() to [::]:80 failed (98: Address already in use)
2020/08/14 14:59:35 [emerg] 34778#34778: bind() to 0.0.0.0:80 failed (98: Address already in use)
2020/08/14 14:59:35 [emerg] 34778#34778: bind() to [::]:80 failed (98: Address already in use)
2020/08/14 14:59:35 [emerg] 34778#34778: still could not bind()
2020/08/14 14:59:38 [notice] 34779#34779: signal process started
2020/08/14 14:59:38 [error] 34779#34779: invalid PID number "" in "/run/nginx.pid"
2020/08/14 14:59:38 [emerg] 34780#34780: bind() to 0.0.0.0:80 failed (98: Address already in use)
2020/08/14 14:59:38 [emerg] 34780#34780: bind() to [::]:80 failed (98: Address already in use)
2020/08/14 14:59:38 [emerg] 34780#34780: bind() to 0.0.0.0:80 failed (98: Address already in use)
2020/08/14 14:59:38 [emerg] 34780#34780: bind() to [::]:80 failed (98: Address already in use)
2020/08/14 14:59:38 [emerg] 34780#34780: bind() to 0.0.0.0:80 failed (98: Address already in use)
2020/08/14 14:59:38 [emerg] 34780#34780: bind() to [::]:80 failed (98: Address already in use)
2020/08/14 14:59:38 [emerg] 34780#34780: bind() to 0.0.0.0:80 failed (98: Address already in use)
2020/08/14 14:59:38 [emerg] 34780#34780: bind() to [::]:80 failed (98: Address already in use)
2020/08/14 14:59:38 [emerg] 34780#34780: bind() to 0.0.0.0:80 failed (98: Address already in use)
2020/08/14 14:59:38 [emerg] 34780#34780: bind() to [::]:80 failed (98: Address already in use)
2020/08/14 14:59:38 [emerg] 34780#34780: still could not bind()
2020/08/14 15:16:25 [notice] 3297#3297: signal process started
2020/08/14 15:16:28 [notice] 3300#3300: signal process started
2020/08/14 15:17:19 [notice] 3350#3350: signal process started
2020/08/14 15:17:52 [error] 3351#3351: *71 open() "/var/www/html/icons/ubuntu-logo.png" failed (2: No such file or directory), client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "GET /icons/ubuntu-logo.png HTTP/2.0", host: "sturtz.ml", referrer: "https://sturtz.ml/"
2020/08/14 15:18:16 [notice] 3418#3418: signal process started
2020/08/14 15:19:25 [notice] 3451#3451: signal process started
2020/08/14 15:19:28 [error] 3452#3452: *118 FastCGI sent in stderr: "PHP message: PHP Warning:  fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 85PHP message: {"reqId":"azaNpSk4Y6vHGWZXclb3","level":3,"time":"2020-08-14T15:19:28+00:00","remoteAddr":"2604:99c0:8:2f60:e1a9:3831:cb4c:6569","user":"--","app":"PHP","method":"GET","url":"/","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36","version":""}" while reading response header from upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://127.0.0.1:9999", host: "sturtz.ml"
2020/08/14 15:21:25 [error] 3452#3452: *165 open() "/var/www/nextcloud/data/htaccesstest.txt" failed (2: No such file or directory), client: 2604:99c0:8:2f60:223:24ff:fe08:581f, server: sturtz.ml, request: "GET /data/htaccesstest.txt HTTP/1.1", host: "sturtz.ml"
2020/08/14 15:21:25 [error] 3452#3452: *167 open() "/var/www/nextcloud/data/htaccesstest.txt" failed (2: No such file or directory), client: 2604:99c0:8:2f60:223:24ff:fe08:581f, server: sturtz.ml, request: "GET /data/htaccesstest.txt HTTP/1.1", host: "sturtz.ml"
2020/08/14 15:21:39 [error] 3452#3452: *118 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9999", host: "sturtz.ml", referrer: "https://sturtz.ml/"
2020/08/14 15:24:18 [emerg] 3591#3591: "root" directive is duplicate in /etc/nginx/sites-enabled/00-default-ssl.conf:36
2020/08/14 15:24:25 [emerg] 3598#3598: "root" directive is duplicate in /etc/nginx/sites-enabled/00-default-ssl.conf:36
2020/08/14 15:25:11 [emerg] 3623#3623: "root" directive is duplicate in /etc/nginx/sites-enabled/00-default-ssl.conf:36
2020/08/14 15:25:16 [emerg] 3629#3629: "root" directive is duplicate in /etc/nginx/sites-enabled/00-default-ssl.conf:36
2020/08/14 15:26:37 [emerg] 3672#3672: duplicate location "/robots.txt" in /etc/nginx/sites-enabled/00-default-ssl.conf:41
2020/08/14 15:26:41 [emerg] 3677#3677: duplicate location "/robots.txt" in /etc/nginx/sites-enabled/00-default-ssl.conf:41
2020/08/14 15:27:40 [notice] 3709#3709: signal process started
2020/08/14 15:32:25 [emerg] 3856#3856: invalid number of arguments in "set" directive in /etc/nginx/sites-enabled/00-default-ssl.conf:65
2020/08/14 15:33:35 [notice] 3888#3888: signal process started
2020/08/14 17:24:47 [emerg] 6667#6667: directive "server" has no opening "{" in /etc/nginx/sites-enabled/nextcloud.conf:1
2020/08/14 17:25:40 [notice] 6697#6697: signal process started
2020/08/14 17:26:05 [notice] 6722#6722: signal process started
2020/08/14 17:26:17 [notice] 6731#6731: signal process started
2020/08/14 17:26:21 [error] 6732#6732: *2772 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:26:23 [error] 6732#6732: *2772 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:27:29 [notice] 6968#6968: signal process started
2020/08/14 17:27:30 [error] 6969#6969: *2798 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:27:30 [crit] 6969#6969: *2798 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:27:32 [error] 6969#6969: *2798 no live upstreams while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:27:50 [crit] 6969#6969: *2810 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:27:50 [error] 6969#6969: *2810 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:29:13 [emerg] 7026#7026: no port in upstream "php-handler" in /etc/nginx/sites-enabled/nextcloud.conf:102
2020/08/14 17:29:40 [notice] 7039#7039: signal process started
2020/08/14 17:29:42 [error] 7040#7040: *2852 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:29:42 [crit] 7040#7040: *2852 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:31:42 [crit] 7040#7040: *2852 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:31:42 [error] 7040#7040: *2852 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:32:10 [crit] 7040#7040: *2852 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:32:10 [error] 7040#7040: *2852 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:32:11 [error] 7040#7040: *2852 no live upstreams while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:32:20 [notice] 7124#7124: signal process started
2020/08/14 17:32:22 [error] 7125#7125: *2912 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:32:22 [crit] 7125#7125: *2912 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:32:54 [crit] 7125#7125: *2912 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:32:54 [error] 7125#7125: *2912 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:37:02 [error] 7263#7263: *26 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:37:02 [crit] 7263#7263: *26 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:40:04 [notice] 7473#7473: signal process started
2020/08/14 17:40:27 [error] 7474#7474: *99 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:40:27 [crit] 7474#7474: *99 connect() to unix:/var/lib/dpkg/alternatives/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/var/lib/dpkg/alternatives/php-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:40:35 [error] 7474#7474: *105 no live upstreams while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:50:08 [notice] 8396#8396: signal process started
2020/08/14 17:50:23 [error] 8397#8397: *308 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:50:23 [crit] 8397#8397: *308 connect() to unix:/var/lib/dpkg/alternatives/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/lib/dpkg/alternatives/php-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:50:32 [error] 8397#8397: *308 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:50:32 [error] 8397#8397: *308 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET /favicon.ico HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:50:33 [error] 8397#8397: *308 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:50:33 [error] 8397#8397: *308 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:51:32 [notice] 8435#8435: signal process started
2020/08/14 17:51:36 [error] 8436#8436: *337 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:51:36 [crit] 8436#8436: *337 connect() to unix:/var/run/php/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:51:36 [error] 8436#8436: *337 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:51:37 [error] 8436#8436: *337 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:51:39 [error] 8436#8436: *337 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:51:40 [error] 8436#8436: *337 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:51:43 [error] 8436#8436: *337 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:52:34 [notice] 8461#8461: signal process started
2020/08/14 17:52:37 [error] 8462#8462: *362 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:52:37 [crit] 8462#8462: *362 connect() to unix:/var/run/php/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:52:37 [crit] 8462#8462: *362 connect() to unix:/etc/alternatives/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/etc/alternatives/php-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:52:38 [error] 8462#8462: *362 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:52:38 [error] 8462#8462: *362 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:52:38 [error] 8462#8462: *362 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:52:39 [error] 8462#8462: *362 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:52:50 [crit] 8462#8462: *362 connect() to unix:/etc/alternatives/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/etc/alternatives/php-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:52:50 [crit] 8462#8462: *362 connect() to unix:/var/run/php/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:52:50 [error] 8462#8462: *362 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "sturtz.ml"
2020/08/14 17:52:54 [error] 8462#8462: *362 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:53:12 [notice] 8485#8485: signal process started
2020/08/14 17:53:14 [error] 8486#8486: *384 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 17:53:14 [crit] 8486#8486: *384 connect() to unix:/etc/alternatives/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/etc/alternatives/php-fpm.sock:", host: "sturtz.ml"
2020/08/14 17:53:15 [error] 8486#8486: *384 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:53:15 [error] 8486#8486: *384 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 17:54:52 [notice] 8514#8514: signal process started
2020/08/14 17:54:59 [error] 8515#8515: *424 rewrite or internal redirection cycle while processing "/index.php/", client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", host: "sturtz.ml"
2020/08/14 17:54:59 [error] 8515#8515: *424 rewrite or internal redirection cycle while processing "/index.php/", client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", host: "sturtz.ml"
2020/08/14 17:55:33 [notice] 8556#8556: signal process started
2020/08/14 17:55:35 [error] 8557#8557: *439 rewrite or internal redirection cycle while processing "/index.php/", client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", host: "sturtz.ml"
2020/08/14 17:55:36 [error] 8557#8557: *439 rewrite or internal redirection cycle while processing "/index.php/", client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", host: "sturtz.ml"
2020/08/14 17:55:36 [error] 8557#8557: *439 rewrite or internal redirection cycle while processing "/index.php/", client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", host: "sturtz.ml"
2020/08/14 17:55:37 [error] 8557#8557: *439 rewrite or internal redirection cycle while processing "/index.php/", client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", host: "sturtz.ml"
2020/08/14 17:56:54 [error] 8557#8557: *439 rewrite or internal redirection cycle while processing "/index.php/", client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", host: "sturtz.ml"
2020/08/14 17:57:09 [error] 8638#8638: *4 rewrite or internal redirection cycle while processing "/index.php/", client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", host: "sturtz.ml"
2020/08/14 17:57:09 [error] 8638#8638: *4 rewrite or internal redirection cycle while processing "/index.php/", client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", host: "sturtz.ml"
2020/08/14 17:58:27 [emerg] 8666#8666: unknown directive "Avoid" in /etc/nginx/sites-enabled/nextcloud.conf:103
2020/08/14 17:59:21 [error] 8738#8738: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:00:28 [error] 8803#8803: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:00:28 [crit] 8803#8803: *4 connect() to unix:/var/run/php/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "sturtz.ml"
2020/08/14 18:00:28 [error] 8803#8803: *4 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 18:00:29 [error] 8803#8803: *4 no live upstreams while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://php-handler", host: "sturtz.ml"
2020/08/14 18:01:06 [error] 8857#8857: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:01:07 [error] 8857#8857: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:03:38 [notice] 10775#10775: signal process started
2020/08/14 18:03:41 [error] 10776#10776: *61 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:03:42 [error] 10776#10776: *61 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:05:41 [error] 10776#10776: *61 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET /mail HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:05:44 [error] 10776#10776: *61 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:06:52 [error] 10776#10776: *61 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:06:53 [error] 10776#10776: *61 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:15:42 [error] 10776#10776: *312 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:fb95:c522:472c:3421, server: sturtz.ml, request: "GET /apps/sharingpath/nsturtz/Blocks/jack.txt HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:16:04 [error] 10776#10776: *321 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:18:52 [notice] 11538#11538: signal process started
2020/08/14 18:18:55 [error] 11539#11539: *384 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:18:56 [error] 11539#11539: *384 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:19:00 [error] 11539#11539: *384 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:19:01 [error] 11539#11539: *384 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:19:05 [error] 11539#11539: *393 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:19:13 [error] 11539#11539: *397 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:19:13 [error] 11539#11539: *399 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "GET /apple-touch-icon-precomposed.png HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:19:13 [error] 11539#11539: *399 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "GET /apple-touch-icon.png HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:19:13 [error] 11539#11539: *402 connect() failed (111: Connection refused) while connecting to upstream, client: 2604:99c0:8:2f60:e1a9:3831:cb4c:6569, server: sturtz.ml, request: "GET /favicon.ico HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml", referrer: "https://sturtz.ml/"
2020/08/14 18:20:53 [notice] 11701#11701: signal process started
2020/08/14 18:20:56 [error] 11702#11702: *441 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:20:57 [error] 11702#11702: *441 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:25:25 [emerg] 11882#11882: bind() to 0.0.0.0:443 failed (98: Address already in use)
2020/08/14 18:25:25 [emerg] 11882#11882: bind() to [::]:443 failed (98: Address already in use)
2020/08/14 18:25:25 [emerg] 11882#11882: bind() to 0.0.0.0:80 failed (98: Address already in use)
2020/08/14 18:25:25 [emerg] 11882#11882: bind() to [::]:80 failed (98: Address already in use)
2020/08/14 18:25:25 [emerg] 11882#11882: bind() to 0.0.0.0:443 failed (98: Address already in use)
2020/08/14 18:25:25 [emerg] 11882#11882: bind() to [::]:443 failed (98: Address already in use)
2020/08/14 18:25:25 [emerg] 11882#11882: bind() to 0.0.0.0:80 failed (98: Address already in use)
2020/08/14 18:25:25 [emerg] 11882#11882: bind() to [::]:80 failed (98: Address already in use)
2020/08/14 18:25:25 [emerg] 11882#11882: bind() to 0.0.0.0:443 failed (98: Address already in use)
2020/08/14 18:25:25 [emerg] 11882#11882: bind() to [::]:443 failed (98: Address already in use)
2020/08/14 18:25:25 [emerg] 11882#11882: bind() to 0.0.0.0:80 failed (98: Address already in use)
2020/08/14 18:25:25 [emerg] 11882#11882: bind() to [::]:80 failed (98: Address already in use)
2020/08/14 18:26:23 [notice] 11929#11929: signal process started
2020/08/14 18:26:27 [error] 11930#11930: *558 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:26:27 [error] 11930#11930: *558 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET /favicon.ico HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:26:27 [error] 11930#11930: *558 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"
2020/08/14 18:28:46 [error] 11930#11930: *558 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: sturtz.ml, request: "GET / HTTP/2.0", upstream: "fastcgi://192.168.1.8:9000", host: "sturtz.ml"


I don’t know if this is useful but the output of netstat -plant | grep '80\|443' is

tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      3730/nginx: master  
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      809/systemd-resolve 
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      3730/nginx: master  
tcp        0      0 127.0.0.1:38990         127.0.0.1:443           ESTABLISHED 2952/go.d.plugin    
tcp        0      0 127.0.0.1:443           127.0.0.1:38990         ESTABLISHED 3982/nginx: worker  
tcp        0      0 127.0.0.1:443           127.0.0.1:38992         ESTABLISHED 3982/nginx: worker  
tcp        0      0 127.0.0.1:9999          127.0.0.1:58880         TIME_WAIT   -                   
tcp        0      0 192.168.1.8:443         192.168.1.6:59612       TIME_WAIT   -                   
tcp        0      0 127.0.0.1:38992         127.0.0.1:443           ESTABLISHED 2952/go.d.plugin    
tcp6       0      0 :::80                   :::*                    LISTEN      3730/nginx: master  
tcp6       0      0 fe80::223:24ff:fe08::53 :::*                    LISTEN      871/named           
tcp6       0      0 :::443                  :::*                    LISTEN      3730/nginx: master  
tcp6       0      0 2604:99c0:8:2f60:22:443 2604:99c0:8:2f60::59662 TIME_WAIT   -        

also when I run locate fpm.sock I get

/etc/alternatives/php-fpm.sock
/var/lib/dpkg/alternatives/php-fpm.sock

I wonder why this is still giving me a 502 error.
I have paused Cloudflare