504 error and/or hanging at login after update to 19.0.5

I just updated to 19.0.5 via the browser updater.
Now the instance is useless.
Navigating to the web page results in either a 504 gateway error nginx/1.18.0 (Ubuntu), or the login page appears, only to hang when credentials are entered, resulting in finally showing the 504 error.
I have put nextcloud in and out of maintenance mode. The maintenance mode page loads quickly.
I have restarted nginx with sudo systemctl reload nginx
and sudo nginx -t shows that nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful
I tested the page on www.ssllabs.com and received an A rating, with this message: “HTTP request to this server failed”.

/usr/share/nginx/nextcloud/config/config.php

<?php
$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'www.dysoncloud.net',
  ),
  'datadirectory' => '/usr/share/nginx/nextcloud-data',
  'dbtype' => 'mysql',
  'version' => '19.0.5.2',
  'overwrite.cli.url' => 'https://www.dysoncloud.net',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextclouduser',
  'dbpassword' => 'xxx',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_from_address' => 'dysonsphere',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'startmail.com',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.startmail.com',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'dysonsphere@startmail.com',
  'mail_smtppassword' => 'xxxxxxxxxxxxxxxxx',
  'mail_smtpsecure' => 'ssl',
  'maintenance' => false,
  'updater.release.channel' => 'stable',
  'updater.secret' => 'xxx',
  'theme' => '',
  'loglevel' => 2,
);

/var/log/nginx/error.log

2020/12/05 00:10:43 [error] 368778#368778: *26402 open() "/usr/share/nginx/html/hudson" failed (2: No such file or directory), client: 192.>
2020/12/05 00:20:04 [error] 368778#368778: *26610 open() "/usr/share/nginx/html/.env" failed (2: No such file or directory), client: 3.238.>
2020/12/05 01:09:27 [error] 368778#368778: *27037 open() "/usr/share/nginx/html/phpmyadmin/index.php" failed (2: No such file or directory)>
2020/12/05 01:09:27 [error] 368778#368778: *27037 open() "/usr/share/nginx/html/pmd/index.php" failed (2: No such file or directory), clien>
2020/12/05 01:47:36 [error] 368778#368778: *27297 open() "/usr/share/nginx/html/.env" failed (2: No such file or directory), client: 3.238.>
2020/12/05 02:47:39 [error] 368778#368778: *27706 open() "/usr/share/nginx/html/GponForm/diag_Form" failed (2: No such file or directory), >
2020/12/05 02:55:40 [error] 368778#368778: *27772 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.>
2020/12/05 02:55:40 [error] 368778#368778: *27772 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.>
2020/12/05 02:55:40 [error] 368778#368778: *27775 no live upstreams while connecting to upstream, client: 192.168.1.1, server: collabra.ddn>
2020/12/05 04:16:45 [error] 374714#374714: *493 open() "/usr/share/nginx/html/robots.txt" failed (2: No such file or directory), client: 15>
2020/12/05 04:16:51 [error] 374714#374714: *495 open() "/usr/share/nginx/html/sitemap.xml" failed (2: No such file or directory), client: 1>
2020/12/05 04:38:33 [error] 374714#374714: *635 open() "/usr/share/nginx/html/sitemap_index.xml" failed (2: No such file or directory), cli>
2020/12/05 05:13:24 [error] 374714#374714: *890 open() "/usr/share/nginx/html/owa/auth/logon.aspx" failed (2: No such file or directory), c>
2020/12/05 05:14:56 [error] 374714#374714: *900 open() "/usr/share/nginx/html/sitemaps.xml" failed (2: No such file or directory), client: >
2020/12/05 05:22:47 [error] 374714#374714: *946 open() "/usr/share/nginx/html/robots.txt" failed (2: No such file or directory), client: 66>
2020/12/05 05:35:32 [error] 374714#374714: *1034 open() "/usr/share/nginx/html/api/jsonws/invoke" failed (2: No such file or directory), cl>
2020/12/05 05:35:32 [error] 374714#374714: *1033 open() "/usr/share/nginx/html/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php" failed (>
2020/12/05 05:35:35 [error] 374714#374714: *1035 open() "/usr/share/nginx/html/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php" failed (>
2020/12/05 05:35:35 [error] 374714#374714: *1036 open() "/usr/share/nginx/html/index.php" failed (2: No such file or directory), client: 91>
2020/12/05 05:35:37 [error] 374714#374714: *1037 open() "/usr/share/nginx/html/mifs/.;/services/LogService" failed (2: No such file or dire>
2020/12/05 05:35:39 [error] 374714#374714: *1038 open() "/usr/share/nginx/html/wp-content/plugins/wp-file-manager/readme.txt" failed (2: No>
2020/12/05 05:35:39 [error] 374714#374714: *1039 "/usr/share/nginx/html/console/index.html" is not found (2: No such file or directory), cl>
2020/12/05 05:35:42 [error] 374714#374714: *1042 open() "/usr/share/nginx/html/Autodiscover/Autodiscover.xml" failed (2: No such file or di>
2020/12/05 07:16:14 [error] 374714#374714: *1731 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: >
2020/12/05 08:12:12 [error] 374714#374714: *2112 open() "/usr/share/nginx/html/config/getuser" failed (2: No such file or directory), clien>
2020/12/05 08:47:45 [error] 374714#374714: *2401 open() "/usr/share/nginx/html/config/getuser" failed (2: No such file or directory), clien>
2020/12/05 09:56:18 [error] 374714#374714: *2923 open() "/usr/share/nginx/html/index.php" failed (2: No such file or directory), client: 91>
2020/12/05 09:56:19 [error] 374714#374714: *2924 open() "/usr/share/nginx/html/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php" failed (>
2020/12/05 09:56:19 [error] 374714#374714: *2925 open() "/usr/share/nginx/html/api/jsonws/invoke" failed (2: No such file or directory), cl>
2020/12/05 09:56:20 [error] 374714#374714: *2926 open() "/usr/share/nginx/html/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php" failed (>
2020/12/05 09:56:20 [error] 374714#374714: *2927 open() "/usr/share/nginx/html/solr/admin/info/system" failed (2: No such file or directory>
2020/12/05 09:56:21 [error] 374714#374714: *2930 open() "/usr/share/nginx/html/Autodiscover/Autodiscover.xml" failed (2: No such file or di>
2020/12/05 09:56:22 [error] 374714#374714: *2931 open() "/usr/share/nginx/html/wp-content/plugins/wp-file-manager/readme.txt" failed (2: No>
2020/12/05 09:56:22 [error] 374714#374714: *2932 "/usr/share/nginx/html/console/index.html" is not found (2: No such file or directory), cl>
2020/12/05 10:51:04 [error] 374714#374714: *3335 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1>
2020/12/05 10:51:04 [error] 374714#374714: *3335 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1>
2020/12/05 11:19:06 [error] 374714#374714: *4794 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1>
2020/12/05 11:19:06 [error] 374714#374714: *4794 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1>
2020/12/05 11:25:11 [error] 374714#374714: *5589 open() "/usr/share/nginx/html/portal/redlion" failed (2: No such file or directory), clien>
2020/12/05 11:52:13 [notice] 393087#393087: signal process started
2020/12/05 11:52:46 [crit] 393088#393088: *86 SSL_do_handshake() failed (SSL: error:14201044:SSL routines:tls_choose_sigalg:internal error)>

/var/log/nginx/nextcloud.error

2020/05/12 08:36:35 [crit] 2594#2594: *44 SSL_do_handshake() failed (SSL: error:14201044:SSL routines:tls_choose_sigalg:internal error) whi>
2020/05/12 08:40:35 [error] 2594#2594: *195 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Cannot declare class OCA\Talk\Migration>
2020/05/12 13:12:49 [error] 72129#72129: *25038 recv() failed (104: Connection reset by peer) while reading response header from upstream, >
2020/05/13 21:03:21 [error] 102673#102673: *19364 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught PDOException: SQLSTATE[4>
Stack trace:
#0 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(117): PDOStatement->execute()
#1 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1054): Doctrine\DBAL\Driver\PDOStatement->execute()
#2 /usr/share/nginx/nextcloud/lib/private/DB/Connection.php(220): Doctrine\DBAL\Connection->executeUpdate()
#3 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(203): OC\DB\Connection->executeUpdate()
#4 /usr/share/nginx/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(215): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /usr/share/nginx/nextcloud/lib/private/Lock/DBLockingProvider.php(316): OC\DB\QueryBuilder\QueryBuild" while reading upstream, client: 1>
2020/05/13 21:03:22 [error] 102673#102673: *19364 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught PDOException: SQLSTATE[4>
Stack trace:
#0 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(117): PDOStatement->execute()
#1 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1054): Doctrine\DBAL\Driver\PDOStatement->execute()
#2 /usr/share/nginx/nextcloud/lib/private/DB/Connection.php(220): Doctrine\DBAL\Connection->executeUpdate()
#3 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(203): OC\DB\Connection->executeUpdate()
#4 /usr/share/nginx/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(215): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /usr/share/nginx/nextcloud/lib/private/Lock/DBLockingProvider.php(316): OC\DB\QueryBuilder\QueryBuild" while reading upstream, client: 1>
2020/05/13 21:03:22 [error] 102673#102673: *19364 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught PDOException: SQLSTATE[4>
Stack trace:
#0 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(117): PDOStatement->execute()
#1 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1054): Doctrine\DBAL\Driver\PDOStatement->execute()
#2 /usr/share/nginx/nextcloud/lib/private/DB/Connection.php(220): Doctrine\DBAL\Connection->executeUpdate()
#3 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(203): OC\DB\Connection->executeUpdate()
#4 /usr/share/nginx/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(215): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /usr/share/nginx/nextcloud/lib/private/Lock/DBLockingProvider.php(316): OC\DB\QueryBuilder\QueryBuild" while reading response header fro>
2020/05/13 21:03:22 [error] 102673#102673: *19364 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught PDOException: SQLSTATE[4>
Stack trace:
#0 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(117): PDOStatement->execute()
#1 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1054): Doctrine\DBAL\Driver\PDOStatement->execute()
#2 /usr/share/nginx/nextcloud/lib/private/DB/Connection.php(220): Doctrine\DBAL\Connection->executeUpdate()
#3 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(203): OC\DB\Connection->executeUpdate()
#4 /usr/share/nginx/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(215): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /usr/share/nginx/nextcloud/lib/private/Lock/DBLockingProvider.php(316): OC\DB\QueryBuilder\QueryBuild" while reading upstream, client: 1>
2020/05/13 21:03:22 [error] 102673#102673: *19364 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught PDOException: SQLSTATE[4>
Stack trace:
#0 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(117): PDOStatement->execute()
#1 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1054): Doctrine\DBAL\Driver\PDOStatement->execute()
#2 /usr/share/nginx/nextcloud/lib/private/DB/Connection.php(220): Doctrine\DBAL\Connection->executeUpdate()
#3 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(203): OC\DB\Connection->executeUpdate()
#4 /usr/share/nginx/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(215): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /usr/share/nginx/nextcloud/lib/private/Lock/DBLockingProvider.php(316): OC\DB\QueryBuilder\QueryBuild" while reading upstream, client: 1>
2020/05/13 21:03:22 [error] 102673#102673: *19364 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught PDOException: SQLSTATE[4>
Stack trace:
#0 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(117): PDOStatement->execute()
#1 /usr/share/nginx/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1054): Doctrine\DBAL\Driver\PDOStatement->execute()
#2 /usr/share/nginx/nextcloud/lib/private/DB/Connection.php(220): Doctrine\DBAL\Connection->executeUpdate()

I am at a loss for what to do at this point.
Any advice would be much appreciated.
Thanks

Update:
The “files” page finally loaded and I get this message across the top:
“you don’t have permission to upload or create files here”

Gateway error sounds like if the php-fpm stuff is not running any more…

I think something got messed up in the update.
I managed to get to the “Settings” page after multiple browser refreshes, and the overview says I am at 19.0.5, and that there is an update available…to 19.0.5.
Trying the web update stops with the first step returning an error.
Can this installation be saved?

Logged out and back in after many a browser refresh and now I get the following on the “settings” page:

## Security & setup warnings

It's important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the linked documentation for more information.

There are some warnings regarding your setup.

* Your web server is not properly set up to resolve "/ocm-provider/". This is most likely related to a web server configuration that was not updated to deliver this folder directly. Please compare your configuration against the shipped rewrite rules in ".htaccess" for Apache or the provided one in the documentation for Nginx at it's [documentation page](https://docs.nextcloud.com/server/19/go.php?to=admin-nginx). On Nginx those are typically the lines starting with "location ~" that need an update.
* Your web server is not properly set up to deliver .woff2 files. This is typically an issue with the Nginx configuration. For Nextcloud 15 it needs an adjustement to also deliver .woff2 files. Compare your Nginx configuration to the recommended configuration in our [documentation](https://docs.nextcloud.com/server/19/go.php?to=admin-nginx).

Please double check the [installation guides ↗](https://docs.nextcloud.com/server/19/go.php?to=admin-install), and check for any errors or warnings in the [log](https://www.dysoncloud.net/settings/admin/logging).

Check the security of your Nextcloud over [our security scan ↗](https://scan.nextcloud.com).

## Version

**[dysoncloud](https://nextcloud.com) 19.0.5**

A new version is available: **Nextcloud 20.0.2**
**1** app has no update for this version available

### Apps missing updates

* [Cookbook ↗](https://apps.nextcloud.com/apps/cookbook)

### Apps with available updates

I had no warnings before the update. But at least it now says I am running 19.0.5 and can update to 20.0.2

contents of /etc/nginx/conf.d/nextcloud.conf:

server {
    server_name www.dysoncloud.net;

    # Add headers to serve security related headers
    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;

    #I found this header is needed on Ubuntu, but not on Arch Linux. 
    add_header X-Frame-Options "SAMEORIGIN";

    # Path to the root of your installation
    root /usr/share/nginx/nextcloud/;

    access_log /var/log/nginx/nextcloud.access;
    error_log /var/log/nginx/nextcloud.error;

    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;
    }

    location ~ /.well-known/acme-challenge {
      allow all;
    }

    # set max upload size
    client_max_body_size 16G;
    fastcgi_buffers 64 4K;

    # Disable gzip to avoid the removal of the ETag header
gzip off;

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

    #error_page 403 /core/templates/403.php;
    #error_page 404 /core/templates/404.php;

    location / {
       rewrite ^ /index.php$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/.+|core/templates/40[34])\.php(?:$|/>
       include fastcgi_params;
       fastcgi_split_path_info ^(.+\.php)(/.*)$;
       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
       fastcgi_param PATH_INFO $fastcgi_path_info;
       #Avoid sending the security headers twice
       fastcgi_param modHeadersAvailable true;
       fastcgi_param front_controller_active true;
       fastcgi_pass unix:/run/php/php7.4-fpm.sock;
       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 and css files
    # Make sure it is BELOW the PHP block
    location ~* \.(?:css|js)$ {
        try_files $uri /index.php$uri$is_args$args;
        add_header Cache-Control "public, max-age=7200";
        # Add headers to serve security related headers (It is intended to
        # have those duplicated to the ones above)
        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 ~* \.(?:svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$ {
        try_files $uri /index.php$uri$is_args$args;
        # Optional: Don't log access to other assets
        access_log off;
   }


    listen 443 ssl http2; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/www.dysoncloud.net/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/www.dysoncloud.net/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

    add_header Strict-Transport-Security "max-age=31536000" always;

    ssl_trusted_certificate /etc/letsencrypt/live/www.dysoncloud.net/chain.pem; # managed by Certbot
    ssl_stapling on; # managed by Certbot
    ssl_stapling_verify on; # managed by Certbot

}
server {
    if ($host = www.dysoncloud.net) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    server_name www.dysoncloud.net;
    listen 80;
    return 404; # managed by Certbot

}

Strange though that running my server through the Nextcloud Security Scan web site it says I am running Nextcloud 18.0.4.2

OK so I was able to now upgrade to 20.0.2.
The Dashboard shows up, but everything is painfully slow, and leads to that 504 error again.
Perhaps it is php related.
I am not sure how the php setting were changed or whatever.
If anyone has any advice, what output I can share, whatever, let me know.
Thanks.

systemctl status php7.4-fpm

● 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 Sat 2020-12-05 17:43:01 EST; 1h 26min ago
       Docs: man:php-fpm7.4(8)
    Process: 1010 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=>
   Main PID: 842 (php-fpm7.4)
     Status: "Processes active: 5, idle: 0, Requests: 1258, slow: 0, Traffic: 0req/sec"
      Tasks: 6 (limit: 28592)
     Memory: 4.0G
     CGroup: /system.slice/php7.4-fpm.service
             ├─ 842 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
             ├─6815 php-fpm: pool www
             ├─7219 php-fpm: pool www
             ├─7222 php-fpm: pool www
             ├─7343 php-fpm: pool www
             └─7345 php-fpm: pool www

Dec 05 17:43:00 dysoncloudserver systemd[1]: Starting The PHP 7.4 FastCGI Process Manager...
Dec 05 17:43:01 dysoncloudserver systemd[1]: Started The PHP 7.4 FastCGI Process Manager.

sudo nano /usr/share/nginx/html/info.php
<?php phpinfo(); ?>

HOWEVER
putting localhost/info.php asks me to open a file, it does not show me php info in the browser as expected.

Seems something is fishy with php-fpm.
I checked:
/var/log/php7.4.log
and found many lines of this
‘05-Dec-2020 12:06:50] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it’
I went to:
/etc/php/fpm/pool.d/www.conf
and increased the max_children to 40
I am monitoring the server with NetHogs and see that when I contact the server from a remote web browser a large number of php-fpm: pool www processes are engaged, but only sending/receiving ~1KB/sec.
The nextcloud instance is still painfully slow so as to be pretty much useless.

FIXED!!!
I set the time_out to 600s in /etc/nginx/nginx.conf:
http {

        ##
        # Basic Settings
        ##
        proxy_connect_timeout 600s;
        proxy_send_timeout 600s;
        proxy_read_timeout 600s;
        fastcgi_send_timeout 600s;
        fastcgi_read_timeout 600s;
        sendfile on;

Then I could navigate to the apps page and disable Collabora which was featured in those error messages above.
That did the trick.
I will see if I can reimplement Collabora but in the mean time I am very please to have my Nextcloud back!