Low File Transfer Rate (~1Mbit/s) w. PHP7.2-FPM and NGINX

Support intro

We’ve deployed a Nextcloud Instance on a dedicated Server from a big hoster (HP ProLiant DL360 G8; 2x Intel Xeon E5 2650 (8x2.6GHz); 64GB RAM; 500GB SSD) and are experiencing some performance issues in Nextcloud. Particularly in the file transfer via webinterface. This is persistent and I can’t remember of a different behaviour since the deployment.

The Client (tested on multiple PCs) has verified good internet connection (Vodafone DE Frankfurt 100/50 Mbit/s), the Server too (1GB testfile via FTP 150/150 Mbit/s) (speedtest-cli Vodafone DE Frankfurt 150/150Mbit/s).
Despite all of that the file transfer seems stuck at 1Mbit/s upload and download.

When testing the file transfer processes, I used dstat to monitor system performance.


----swap--- --total-cpu-usage-- ---procs--- ------memory-usage----- -net/total- -dsk/total-
 used  free|usr sys idl wai stl|run blk new| used  free  buff  cach| recv  send| read  writ
1280k 8191M|  2   0  98   0   0|1.0   0 5.4|2366M 21.9G 1326M 36.2G|   0     0 | 221k  285k
1280k 8191M|  4   0  96   0   0|2.0   0  19|2441M 21.8G 1326M 36.2G|8801B 1172B|   0     0
1280k 8191M|  4   0  96   0   0|1.0   0  10|2377M 21.9G 1326M 36.2G|6561B 1218B|   0     0
1280k 8191M|  3   0  97   0   0|1.0   0  11|2365M 21.9G 1326M 36.2G|8359B  442B|   0    76k
1280k 8191M|  3   0  96   0   0|1.0   0 6.0|2367M 21.9G 1326M 36.2G|6310B  458B|   0     0
1280k 8191M|  3   0  96   0   0|1.0   0 7.0|2377M 21.9G 1326M 36.2G|7374B 1218B|   0     0
1280k 8191M|  3   0  97   0   0|1.0   0 6.0|2380M 21.9G 1326M 36.2G|6569B  442B|   0     0
1280k 8191M|  3   0  96   0   0|1.0   0  11|2364M 21.9G 1326M 36.2G|6867B  442B|   0     0
1280k 8191M|  3   0  96   0   0|1.0   0 8.0|2363M 21.9G 1326M 36.2G| 314k 9054B|   0   488k
1280k 8191M|  3   0  96   0   0|1.0   0 6.0|2363M 21.9G 1326M 36.2G|1008k   25k|   0   640k
1280k 8191M|  3   0  97   0   0|1.0   0 7.0|2370M 21.9G 1326M 36.2G| 913k   24k|   0    32k
1280k 8191M|  3   0  96   0   0|1.0   0 7.0|2361M 21.9G 1326M 36.2G| 844k   22k|   0    32k
1280k 8191M|  5   0  95   0   0|1.0   0  27|2363M 21.9G 1326M 36.2G| 550k   15k|   0     0
1280k 8191M|  4   0  95   0   0|2.0   0  21|2428M 21.8G 1326M 36.2G| 590k   18k|   0  7712k
1280k 8191M|  4   0  96   0   0|1.0   0 7.0|2366M 21.9G 1326M 36.2G| 361k   10k|   0    60k
1280k 8191M|  3   0  97   0   0|1.0   0 7.0|2374M 21.9G 1326M 36.2G| 467k   12k|   0   172k
1280k 8191M|  3   0  96   0   0|1.0   0 6.0|2386M 21.9G 1326M 36.2G| 652k   18k|   0    36k
1280k 8191M|  3   0  96   0   0|1.0   0  11|2364M 21.9G 1326M 36.2G| 617k   16k|   0    40k
1280k 8191M|  3   0  97   0   0|1.0   0 8.0|2366M 21.9G 1326M 36.2G| 719k   19k|   0  5332k
1280k 8191M|  3   0  96   0   0|1.0   0 7.0|2375M 21.9G 1326M 36.2G| 792k   20k|   0     0
1280k 8191M|  3   0  97   0   0|1.0   0 6.0|2384M 21.9G 1326M 36.2G| 786k   21k|   0     0
1280k 8191M|  3   0  97   0   0|1.0   0  11|2365M 21.9G 1326M 36.2G| 521k   15k|   0     0
1280k 8191M|  4   0  96   0   0|1.0   0 6.0|2364M 21.9G 1326M 36.2G| 206k 7236B|   0    40k
1280k 8191M|  3   0  97   0   0|1.0   0 7.0|2373M 21.9G 1326M 36.2G| 286k 7653B|   0     0
1280k 8191M|  3   0  96   0   0|1.0   0 6.0|2373M 21.9G 1326M 36.2G|   0     0 |   0     0
1280k 8191M|  3   0  96   0   0|1.0   0 6.0|2374M 21.9G 1326M 36.2G| 483k   13k|   0     0
1280k 8191M|  3   0  96   0   0|1.0   0  11|2360M 21.9G 1326M 36.2G| 436k   12k|   0   156k
1280k 8191M|  3   0  96   0   0|1.0   0 6.0|2362M 21.9G 1326M 36.2G| 441k   12k|   0   496k
1280k 8191M|  3   0  97   0   0|1.0   0 8.0|2364M 21.9G 1326M 36.2G| 559k   15k|   0  5976k
1280k 8191M|  3   0  96   0   0|1.0   0 7.0|2368M 21.9G 1326M 36.2G| 491k   13k|   0    60k
1280k 8191M|  3   0  97   0   0|1.0   0 6.0|2382M 21.9G 1326M 36.2G| 770k   21k|   0     0
1280k 8191M|  3   0  96   0   0|1.0   0  11|2362M 21.9G 1326M 36.2G| 447k   13k|   0     0
1280k 8191M|  4   0  96   0   0|1.0   0 6.0|2361M 21.9G 1326M 36.2G| 360k   11k|   0     0
1280k 8191M|  3   0  97   0   0|1.0   0 6.0|2363M 21.9G 1326M 36.2G| 586k   15k|   0     0
1280k 8191M|  4   0  96   0   0|1.0   0 2.0|2359M 21.9G 1326M 36.2G| 585k   16k|   0  5240k
1280k 8191M|  5   1  95   0   0|1.0   0  26|2361M 21.9G 1326M 36.2G| 852k   23k|   0     0
1280k 8191M|  3   0  96   0   0|1.0   0 6.0|2363M 21.9G 1326M 36.2G| 921k   28k|   0  3212k
1280k 8191M|  3   0  96   0   0|1.0   0 6.0|2363M 21.9G 1326M 36.2G|1016k   25k|   0    32k
1280k 8191M|  3   0  96   0   0|1.0   0 9.0|2378M 21.9G 1326M 36.2G|1055k   25k|   0    44k
1280k 8191M|  3   0  97   0   0|1.0   0  11|2362M 21.9G 1326M 36.2G| 935k   26k|   0     0
1280k 8191M|  3   0  97   0   0|1.0   0 6.0|2364M 21.9G 1326M 36.2G| 668k   18k|   0     0
1280k 8191M|  3   0  97   0   0|1.0   0 8.0|2373M 21.9G 1326M 36.2G| 574k   16k|   0     0
1280k 8191M|  4   0  96   0   0|1.0   0 6.0|2376M 21.9G 1326M 36.2G| 465k   13k|   0     0
1280k 8191M|  3   0  96   0   0|1.0   0  11|2364M 21.9G 1326M 36.2G| 488k   13k|   0   140k
1280k 8191M|  3   0  96   0   0|1.0   0 6.0|2366M 21.9G 1326M 36.2G| 423k   12k|   0  8392k
1280k 8191M|  3   0  97   0   0|1.0   0 6.0|2366M 21.9G 1326M 36.2G| 326k 8897B|   0    32k
1280k 8191M|  3   0  96   0   0|1.0   0 7.0|2378M 21.9G 1326M 36.2G| 539k   14k|   0    40k
1280k 8191M|  4   0  96   0   0|1.0   0  11|2365M 21.9G 1326M 36.2G| 754k   19k|   0     0

Though I’m not a pro, I’ve stumbled across many Ideas and tried so many things the last 48h. I can’t recreate them all anymore but I feel like I’ve gone through any performance related thread, chased so many points of possible failure. Meanwhile it is getting ridiculously detailed for me that I feel like I’m missing something quite obvious, so I need a different perspective from you people.


Memcache (APCu) is enabled

MySQL cache is properly configured

[mysqld]
innodb_buffer_pool_size=1G
innodb_io_capacity=4000

PHP-FPM is as followed configured

pm = dynamic
pm.max_children = 256
pm.start_servers = 36
pm.min_spare_servers = 12
pm.max_spare_servers = 96

php opcache is as followed configured

opcache.enable=1
opcache.interned_strings_buffer=128
opcache.max_accelerated_files=50000
opcache.memory_consumption=2048
opcache.save_comments=1
opcache.revalidate_freq=1

Nextcloud version: 17.0.0.9
Operating system and version: Ubuntu 18.04.3 LTS
Apache or nginx version: NGINX 1.14.0
PHP version: 7.2.24

The issue you are facing:
Very low file transfer rate in nextcloud webinterface despite of a fast server and client connection.

Is this the first time you’ve seen this error?: No, it’s persistent

Steps to replicate it: unknown

The output of your Nextcloud log in Admin > Logging:

Error	PHP	Undefined index: urlGenerator at /var/www/cloud/core/templates/loginflowv2/done.php#29	
2019-11-17T13:04:33+0100
Error	index	OCP\App\AppPathNotFoundException: Could not find path for spreed	
2019-11-17T12:08:48+0100
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-11-17T11:49:39+0100
Fatal	circles	{"circle_id":"XXXXXXXXXX","user_id":"XXXXXXXXXX","user_type":1,"display":"XXXXXXXXXX","error":"Benutzer wurde bereits zu diesem Kreis eingeladen"}	
2019-11-17T10:36:34+0100
Error	polls	XXXXXXXXXX
2019-11-17T10:34:59+0100
Error	polls	XXXXXXXXXX	
2019-11-17T10:34:53+0100
Error	polls	XXXXXXXXXX	
2019-11-17T10:34:47+0100
Error	polls	XXXXXXXXXX	
2019-11-17T10:34:34+0100
Fatal	webdav	Sabre\DAV\Exception\BadRequest: Expected filesize of 10485760 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 6234112 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.	
2019-11-17T04:13:33+0100
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10485760 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 6234112 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.	
2019-11-17T04:13:33+0100
Fatal	webdav	Sabre\DAV\Exception: Could not rename part file to final file	
2019-11-17T03:36:59+0100
Error	webdav	renaming part file to final file failed $renameOkay: false, $fileExists: false)	
2019-11-17T03:36:59+0100
Error	core	unable to rename, source directory is not writable : uploads/web-file-upload-9c2d26b7dee9bcc888ac46c4ba45d46b-1573958189880	
2019-11-17T03:36:59+0100
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-11-17T01:52:10+0100
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-11-17T01:52:01+0100
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-11-17T01:49:38+0100
Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist.	
2019-11-17T01:49:35+0100
Fatal	webdav	Sabre\DAV\Exception: Could not rename part file to final file	
2019-11-17T01:28:47+0100
Error	webdav	renaming part file to final file failed $renameOkay: false, $fileExists: false)	
2019-11-17T01:28:47+0100
Error	core	unable to rename, source directory is not writable : uploads/web-file-upload-9c2d26b7dee9bcc888ac46c4ba45d46b-1573950425407	
2019-11-17T01:28:47+0100

The output of your config.php file in /var/www/cloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'XXXXXXXXXX',
  'passwordsalt' => 'XXXXXXXXXX',
  'secret' => 'XXXXXXXXXX',
  'trusted_domains' => 
  array (
    0 => 'XXXXXXXXXX',
  ),
  'datadirectory' => '/var/www/cloud/data',
  'dbtype' => 'mysql',
  'version' => '17.0.0.9',
  'overwrite.cli.url' => 'XXXXXXXXXX',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'XXXXXXXXXX',
  'dbpassword' => 'XXXXXXXXXX',
  'installed' => true,
  'app_install_overwrite' => 
  array (
    0 => 'defaultlinkopen',
    1 => 'admin_notifications',
    2 => 'forms',
    3 => 'ownpad',
  ),
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_from_address' => 'XXXXXXXXXX',
  'mail_domain' => 'XXXXXXXXXX',
  'mail_smtpsecure' => 'ssl',
  'mail_smtphost' => 'smtp.strato.de',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'XXXXXXXXXX',
  'mail_smtppassword' => 'XXXXXXXXXX',
  'theme' => '',
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'data-fingerprint' => 'XXXXXXXXXX',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'knowledgebaseenabled' => false,
  'memcache.local' => '\OC\Memcache\APCu',
);

The output of your nginx.conf file in /etc/nginx/nginx.conf (make sure you remove any identifiable information!):

user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
	worker_connections 768;
	# multi_accept on;
}

http {

	##
	# Basic Settings
	##

	sendfile on;
	tcp_nopush on;
	tcp_nodelay on;
	keepalive_timeout 65;
	types_hash_max_size 2048;
	# server_tokens off;

	# server_names_hash_bucket_size 64;
	# server_name_in_redirect off;

	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	##
	# SSL Settings
	##

	ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
	ssl_prefer_server_ciphers on;

	##
	# Logging Settings
	##

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

	##
	# Gzip Settings
	##

	gzip on;

	# gzip_vary on;
	# gzip_proxied any;
	# gzip_comp_level 6;
	# gzip_buffers 16 8k;
	# gzip_http_version 1.1;
	# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

	##
	# Virtual Host Configs
	##

	include /etc/nginx/conf.d/*.conf;
	include /etc/nginx/sites-enabled/*;
}


#mail {
#	# See sample authentication script at:
#	# http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
# 
#	# auth_http localhost/auth.php;
#	# pop3_capabilities "TOP" "USER";
#	# imap_capabilities "IMAP4rev1" "UIDPLUS";
# 
#	server {
#		listen     localhost:110;
#		protocol   pop3;
#		proxy      on;
#	}
# 
#	server {
#		listen     localhost:143;
#		protocol   imap;
#		proxy      on;
#	}
#}

The output of your NGINX config file in /etc/nginx/sites-enabled/cloud.conf (make sure you remove any identifiable information!):

server {
    listen 80;
    listen [::]:80;
    server_name XXXXXXXXXX;
	
    # enforce https
    return 301 https://$server_name:443$request_uri;
}

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name XXXXXXXXXX;

    ssl_certificate /etc/letsencrypt/live/XXXXXXXXXX/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/XXXXXXXXXX/privkey.pem;
    ssl_protocols TLSv1.2 TLSv1.3;
    # openssl dhpa ram -ou /etc/nginx/dhparam.pem 4096
    # ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
    server_name XXXXXXXXXX;

    # enable HSTS (HTTP Strict Transport Security)
    add_header Strict-Transport-Security "max-age=63072000; includeSubdomains;";

    # 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-Frame-Options SAMEORIGIN;
    add_header X-Download-Options noopen;
    add_header X-Permitted-Cross-Domain-Policies none;
    add_header Referrer-Policy no-referrer;

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

    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/webfinger {
       return 301 $scheme://$host/remote.php?service=webfinger;
    }

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

    # set max upload size
    client_max_body_size 512M;
    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;
    }

    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;
       try_files $fastcgi_script_name =404;
       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.2-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;
        # 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;
   }
}

The output of your NGINX log in /var/log/nginx/error.log: The conflicting server name was probably due to a backup file of the conf in /etc/nginx/sites-enabled.

2019/11/16 22:04:15 [info] 56742#56742: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63
2019/11/16 22:04:15 [warn] 56742#56742: conflicting server name "XXXXXXXXXX" on 0.0.0.0:80, ignored
2019/11/16 22:04:15 [warn] 56742#56742: conflicting server name "XXXXXXXXXX" on [::]:80, ignored
2019/11/16 22:04:15 [warn] 56742#56742: conflicting server name "XXXXXXXXXX" on 0.0.0.0:443, ignored
2019/11/16 22:04:15 [warn] 56742#56742: conflicting server name "XXXXXXXXXX" on 0.0.0.0:443, ignored
2019/11/16 22:04:15 [warn] 56742#56742: conflicting server name "XXXXXXXXXX" on 0.0.0.0:443, ignored
2019/11/16 22:04:15 [warn] 56742#56742: conflicting server name "XXXXXXXXXX" on [::]:443, ignored
2019/11/16 22:04:15 [warn] 56742#56742: conflicting server name "XXXXXXXXXX" on [::]:443, ignored
2019/11/16 22:04:15 [warn] 56742#56742: conflicting server name "XXXXXXXXXX" on [::]:443, ignored
2019/11/16 22:04:15 [warn] 56753#56753: conflicting server name "XXXXXXXXXX" on 0.0.0.0:80, ignored
2019/11/16 22:04:15 [warn] 56753#56753: conflicting server name "XXXXXXXXXX" on [::]:80, ignored
2019/11/16 22:04:15 [warn] 56753#56753: conflicting server name "XXXXXXXXXX" on 0.0.0.0:443, ignored
2019/11/16 22:04:15 [warn] 56753#56753: conflicting server name "XXXXXXXXXX" on 0.0.0.0:443, ignored
2019/11/16 22:04:15 [warn] 56753#56753: conflicting server name "XXXXXXXXXX" on 0.0.0.0:443, ignored
2019/11/16 22:04:15 [warn] 56753#56753: conflicting server name "XXXXXXXXXX" on [::]:443, ignored
2019/11/16 22:04:15 [warn] 56753#56753: conflicting server name "XXXXXXXXXX" on [::]:443, ignored
2019/11/16 22:04:15 [warn] 56753#56753: conflicting server name "XXXXXXXXXX" on [::]:443, ignored
2019/11/17 02:00:14 [crit] 56766#56766: *6913 SSL_do_handshake() failed (SSL: error:1420918C:SSL routines:tls_early_post_process_client_hello:version too low) while SSL handshaking, client: 216.218.206.67, server: 0.0.0.0:443
2019/11/17 04:27:29 [crit] 56766#56766: *9240 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol) while SSL handshaking, client: 77.247.109.38, server: 0.0.0.0:443
2019/11/17 04:27:29 [crit] 56766#56766: *9239 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol) while SSL handshaking, client: 77.247.109.38, server: 0.0.0.0:443
2019/11/17 04:27:29 [crit] 56766#56766: *9238 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol) while SSL handshaking, client: 77.247.109.38, server: 0.0.0.0:443
2019/11/17 04:27:29 [crit] 56766#56766: *9241 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol) while SSL handshaking, client: 77.247.109.38, server: 0.0.0.0:443
2019/11/17 04:27:29 [crit] 56766#56766: *9242 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol) while SSL handshaking, client: 77.247.109.38, server: 0.0.0.0:443
2019/11/17 04:27:29 [crit] 56766#56766: *9243 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol) while SSL handshaking, client: 77.247.109.38, server: 0.0.0.0:443
2019/11/17 04:27:29 [crit] 56766#56766: *9244 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol) while SSL handshaking, client: 77.247.109.38, server: 0.0.0.0:443
2019/11/17 04:27:29 [crit] 56766#56766: *9245 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol) while SSL handshaking, client: 77.247.109.38, server: 0.0.0.0:443
2019/11/17 04:27:29 [crit] 56766#56766: *9246 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol) while SSL handshaking, client: 77.247.109.38, server: 0.0.0.0:443
2019/11/17 04:27:29 [crit] 56766#56766: *9247 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol) while SSL handshaking, client: 77.247.109.38, server: 0.0.0.0:443
2019/11/17 06:25:02 [warn] 60248#60248: conflicting server name "XXXXXXXXXX" on 0.0.0.0:80, ignored
2019/11/17 06:25:02 [warn] 60248#60248: conflicting server name "XXXXXXXXXX" on [::]:80, ignored
2019/11/17 06:25:02 [warn] 60248#60248: conflicting server name "XXXXXXXXXX" on 0.0.0.0:443, ignored
2019/11/17 06:25:02 [warn] 60248#60248: conflicting server name "XXXXXXXXXX" on 0.0.0.0:443, ignored
2019/11/17 06:25:02 [warn] 60248#60248: conflicting server name "XXXXXXXXXX" on 0.0.0.0:443, ignored
2019/11/17 06:25:02 [warn] 60248#60248: conflicting server name "XXXXXXXXXX" on [::]:443, ignored
2019/11/17 06:25:02 [warn] 60248#60248: conflicting server name "XXXXXXXXXX" on [::]:443, ignored
2019/11/17 06:25:02 [warn] 60248#60248: conflicting server name "XXXXXXXXXX" on [::]:443, ignored
2019/11/17 06:25:02 [notice] 60248#60248: signal process started

The output of your System log in /var/log/syslog:

Nov 17 01:55:17 cloud snmpd[27040]: message repeated 3 times: [ Connection from UDP: [116.203.217.149]$
Nov 17 01:55:17 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:35775->[185.165.171.131]:161
Nov 17 01:55:17 cloud snmpd[27040]: message repeated 3 times: [ Connection from UDP: [116.203.217.149]$
Nov 17 01:55:17 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:36498->[185.165.171.131]:161
Nov 17 01:55:17 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:47010->[185.165.171.131]:161
Nov 17 01:55:17 cloud snmpd[27040]: message repeated 7 times: [ Connection from UDP: [116.203.217.149]$
Nov 17 01:55:17 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:47604->[185.165.171.131]:161
Nov 17 01:55:17 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:54866->[185.165.171.131]:161
Nov 17 01:55:17 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:58422->[185.165.171.131]:161
Nov 17 01:55:17 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:50378->[185.165.171.131]:161
Nov 17 01:55:18 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:46360->[185.165.171.131]:161
Nov 17 01:55:18 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:55707->[185.165.171.131]:161
Nov 17 01:55:18 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:45526->[185.165.171.131]:161
Nov 17 01:55:18 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:45659->[185.165.171.131]:161
Nov 17 01:55:18 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:51977->[185.165.171.131]:161
Nov 17 01:55:18 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:49232->[185.165.171.131]:161
Nov 17 01:55:18 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:52747->[185.165.171.131]:161
Nov 17 01:55:18 cloud snmpd[27040]: message repeated 2 times: [ Connection from UDP: [116.203.217.149]$
Nov 17 01:55:18 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:55518->[185.165.171.131]:161
Nov 17 01:55:18 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:46954->[185.165.171.131]:161
Nov 17 01:55:18 cloud snmpd[27040]: message repeated 8 times: [ Connection from UDP: [116.203.217.149]$
Nov 17 01:55:18 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:42645->[185.165.171.131]:161
Nov 17 01:55:19 cloud snmpd[27040]: message repeated 11 times: [ Connection from UDP: [116.203.217.149$
Nov 17 01:55:19 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:56511->[185.165.171.131]:161
Nov 17 01:55:19 cloud snmpd[27040]: message repeated 9 times: [ Connection from UDP: [116.203.217.149]$
Nov 17 01:55:19 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:53901->[185.165.171.131]:161
Nov 17 01:55:19 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:56302->[185.165.171.131]:161
Nov 17 01:55:19 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:56302->[185.165.171.131]:161
Nov 17 01:55:19 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:54915->[185.165.171.131]:161
Nov 17 01:55:19 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:54915->[185.165.171.131]:161
Nov 17 01:55:19 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:55063->[185.165.171.131]:161
Nov 17 01:55:19 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:55063->[185.165.171.131]:161
Nov 17 01:55:20 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:37525->[185.165.171.131]:161
Nov 17 01:55:20 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:46457->[185.165.171.131]:161
Nov 17 01:55:20 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:57700->[185.165.171.131]:161
Nov 17 01:55:20 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:45843->[185.165.171.131]:161
Nov 17 01:55:20 cloud snmpd[27040]: message repeated 12 times: [ Connection from UDP: [116.203.217.149$
Nov 17 01:55:20 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:34762->[185.165.171.131]:161
Nov 17 01:55:20 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:34762->[185.165.171.131]:161
Nov 17 01:55:20 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:52084->[185.165.171.131]:161
Nov 17 01:55:20 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:52084->[185.165.171.131]:161
Nov 17 01:55:20 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:41071->[185.165.171.131]:161
Nov 17 01:55:20 cloud snmpd[27040]: Connection from UDP: [116.203.217.149]:37388->[185.165.171.131]:161

The output of your PHP log in /var/log/php7.2-fpm.log:

[16-Nov-2019 21:04:53] NOTICE: fpm is running, pid 16849
[16-Nov-2019 21:04:53] NOTICE: ready to handle connections
[16-Nov-2019 21:04:53] NOTICE: systemd monitor interval set to 10000ms
[16-Nov-2019 21:11:40] NOTICE: Terminating ...
[16-Nov-2019 21:11:40] NOTICE: exiting, bye-bye!
[16-Nov-2019 21:11:40] NOTICE: fpm is running, pid 26446
[16-Nov-2019 21:11:40] NOTICE: ready to handle connections
[16-Nov-2019 21:11:40] NOTICE: systemd monitor interval set to 10000ms
[16-Nov-2019 21:26:08] NOTICE: Terminating ...
[16-Nov-2019 21:26:08] NOTICE: exiting, bye-bye!
[16-Nov-2019 21:26:08] NOTICE: fpm is running, pid 34589
[16-Nov-2019 21:26:08] NOTICE: ready to handle connections
[16-Nov-2019 21:26:08] NOTICE: systemd monitor interval set to 10000ms
[16-Nov-2019 21:28:22] NOTICE: Terminating ...
[16-Nov-2019 21:28:22] NOTICE: exiting, bye-bye!
[16-Nov-2019 21:28:22] NOTICE: fpm is running, pid 36013
[16-Nov-2019 21:28:22] NOTICE: ready to handle connections
[16-Nov-2019 21:28:22] NOTICE: systemd monitor interval set to 10000ms
[16-Nov-2019 21:29:42] NOTICE: Terminating ...
[16-Nov-2019 21:29:42] NOTICE: exiting, bye-bye!
[16-Nov-2019 21:29:42] NOTICE: fpm is running, pid 36793
[16-Nov-2019 21:29:42] NOTICE: ready to handle connections
[16-Nov-2019 21:29:42] NOTICE: systemd monitor interval set to 10000ms
[16-Nov-2019 21:34:38] NOTICE: Reloading in progress ...
[16-Nov-2019 21:34:38] NOTICE: reloading: execvp("/usr/sbin/php-fpm7.2", {"/usr/sbin/php-fpm7.2", "--n$
[16-Nov-2019 21:35:04] NOTICE: fpm is running, pid 39723
[16-Nov-2019 21:35:04] NOTICE: ready to handle connections
[16-Nov-2019 21:35:04] NOTICE: systemd monitor interval set to 10000ms
[16-Nov-2019 21:35:51] NOTICE: Terminating ...
[16-Nov-2019 21:35:51] NOTICE: exiting, bye-bye!
[16-Nov-2019 21:35:51] NOTICE: fpm is running, pid 40158
[16-Nov-2019 21:35:51] NOTICE: ready to handle connections
[16-Nov-2019 21:35:51] NOTICE: systemd monitor interval set to 10000ms