Mysqld process killed

Nextcloud version (eg, 10.0.2): 11.0.3
Operating system and version (eg, Ubuntu 16.04): Ubuntu 16.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.25
PHP version (eg, 5.6): 7.0.18
Is this the first time you’ve seen this error?: No

Can you reliably replicate it? (If so, please outline steps): I don’t have any specific steps. Restart the box and let it sits for a couple of hours and then this issue shows up.

The issue you are facing:
after installing NC on my Nextcloud Box with a Raspberry Pi 3, I’m running into the situation, that the mysqld gets killed every couple of hours and NC doesn’t work anymore. I’ve connected a screen and the output said:
"Out of memory: kill process 1880 (mysqld) total-vm:1209128KB, anon-rs: 126312KB
INFO: task systemd-journal:531 blocked for more than 120 seconds.

The output of your Nextcloud log in Admin > Logging:
nextcloud\/1288\/htdocs\/apps\/dav\/lib\/Server.php(231): Sabre\\DAV\\Server->exec()\n#17 \/snap\/nextcloud\/1288\/htdocs\/apps\/dav\/appinfo\/v2\/remote.php(30): OCA\\DAV\\Server->exec()\n#18 \/snap\/nextcloud\/1288\/htdocs\/remote.php(165): require_once(’\/snap\/nextcloud…’)\n#19 {main}",“File”:"\/snap\/nextcloud\/1288\/htdocs\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/AbstractMySQLDriver.php",“Line”:116,“User”:“ingo”}",“level”:4,“time”:“2017-05-08T06:43:14+00:00”,“method”:“PROPPATCH”,“url”:"/remote.php/dav/calendars/ingo/inbox/",“user”:“ingo”,“version”:“11.0.3.2”}
{“reqId”:“GQBWQjDjAuyP5JjaKMjW”,“remoteAddr”:“192.168.1.1”,“app”:“webdav”,“message”:“Exception: {“Message”:“An exception occurred while executing ‘INSERT INTO oc_properties (userid,propertypath,propertyname,propertyvalue) VALUES(?,?,?,?)’ with params [\“ingo\”, \“calendars\\\/ingo\\\/inbox\”, \”{urn:ietf:params:xml:ns:caldav}calendar-availability\”, \“BEGIN:VCALENDAR\\r\\nVERSION:2.0\\r\\nCALSCALE:GREGORIAN\\r\\nPRODID:-\\\/\\\/Apple Inc.\\\/\\\/Mac OS X 10.12.4\\\/\\\/EN\\r\\nBEGIN:VTIMEZONE\\r\\nTZID:America\\\/Los_Angeles\\r\\nBEGIN:DAYLIGHT\\r\\nTZOFFSETFROM:-0800\\r\\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\\r\\nDTSTART:20070311T020000\\r\\nTZNAME:PDT\\r\\nTZOFFSETTO:-0700\\r\\nEND:DAYLIGHT\\r\\nBEGIN:STANDARD\\r\\nTZOFFSETFROM:-0700\\r\\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\\r\\nDTSTART:20071104T020000\\r\\nTZNAME:PST\\r\\nTZOFFSETTO:-0800\\r\\nEND:STANDARD\\r\\nEND:VTIMEZONE\\r\\nBEGIN:VAVAILABILITY\\r\\nUID:ED4F14B0-C65B-4215-85FF-4E9346A69BAB\\r\\nDTSTAMP:20170508T064318Z\\r\\nBEGIN:AVAILABLE\\r\\nUID:C594CE6A-0EE0-40B9-8AF8-07A96909F061\\r\\nDTSTAMP:20170508T064318Z\\r\\nDTSTART;TZID=America\\\/Los_Angeles:20170408T080000\\r\\nRRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR\\r\\nDTEND;TZID=America\\\/Los_Angeles:20170408T180000\\r\\nEND:AVAILABLE\\r\\nEND:VAVAILABILITY\\r\\nEND:VCALENDAR\\r\\n\”]:\n\nSQLSTATE[22001]: String data, right truncated: 1406 Data too long for column ‘propertyvalue’ at row 1",“Exception”:“Doctrine\\DBAL\\Exception\\DriverException”,“Code”:0,“Trace”:"#0 \/snap\/nextcloud\/1288\/htdocs\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php(128): Doctrine\\DBAL\\Driver\\AbstractMySQLDriver->convertException(‘An exception oc…’, Object(Doctrine\\DBAL\\Driver\\PDOException))\n#1 \/snap\/nextcloud\/1288\/htdocs\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php(996): Doctrine\\DBAL\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\DBAL\\Driver\\PDOMySql\\Driver), Object(Doctrine\\DBAL\\Driver\\PDOException), ‘INSERT INTO oc...', Array)\\n#2 \\\/snap\\\/nextcloud\\\/1288\\\/htdocs\\\/lib\\\/private\\\/DB\\\/Connection.php(215): Doctrine\\\\DBAL\\\\Connection->executeUpdate('INSERT INTOoc…’, Array, Array)\n#3 \/snap\/nextcloud\/1288\/htdocs\/apps\/dav\/lib\/Files\/CustomPropertiesBackend.php(247): OC\\DB\\Connection->executeUpdate(‘INSERT INTO `oc…’, Array)\n#4 \/snap\/nextcloud\/1288\/htdocs\/apps\/dav\/lib\/Files\/CustomPropertiesBackend.php(125): OCA\\DAV\\Files\\CustomPropertiesBackend->updateProperties(‘calendars\/ingo\/…’, Array)\n#5 \/snap\/nextcloud\/1288\/htdocs\/3rdparty\/sabre\/dav\/lib\/DAV\/PropPatch.php(317): OCA\\DAV\\Files\\CustomPropertiesBackend->OCA\\DAV\\Files\\{closure}(Array)\n#6 \/snap\/nextcloud\/1288\/htdocs\/3rdparty\/sabre\/dav\/lib\/DAV\/PropPatch.php(245): Sabre\\DAV\\PropPatch->doCallBackMultiProp(Array, Object(Closure))\n#7 \/snap\/nextcloud\/1288\/htdocs\/3rdparty\/sabre\/dav\/lib\/CalDAV\/Schedule\/Plugin.php(329): Sabre\\DAV\\PropPatch->commit()\n#8 \/snap\/nextcloud\/1288\/htdocs\/3rdparty\/sabre\/dav\/lib\/DAV\/PropPatch.php(278): Sabre\\CalDAV\\Schedule\\Plugin->Sabre\\CalDAV\\Schedule\\{closure}(‘BEGIN:VCALENDAR…’)\n#9 \/snap\/nextcloud\/1288\/htdocs\/3rdparty\/sabre\/dav\/lib\/DAV\/PropPatch.php(243): Sabre\\DAV\\PropPatch->doCallBackSingleProp(’{http:\/\/calenda…’, Object(Closure))\n#10 \/snap\/nextcloud\/1288\/htdocs\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(1242): Sabre\\DAV\\PropPatch->commit()\n#11 \/snap\/nextcloud\/1288\/htdocs\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(385): Sabre\\DAV\\Server->updateProperties(‘calendars\/ingo\/…’, Array)\n#12 [internal function]: Sabre\\DAV\\CorePlugin->httpPropPatch(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#13 \/snap\/nextcloud\/1288\/htdocs\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#14 \/snap\/nextcloud\/1288\/htdocs\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit(‘method:PROPPATC…’, Array)\n#15 \/snap\/nextcloud\/1288\/htdocs\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#16 \/snap\/nextcloud\/1288\/htdocs\/apps\/dav\/lib\/Server.php(231): Sabre\\DAV\\Server->exec()\n#17 \/snap\/nextcloud\/1288\/htdocs\/apps\/dav\/appinfo\/v2\/remote.php(30): OCA\\DAV\\Server->exec()\n#18 \/snap\/nextcloud\/1288\/htdocs\/remote.php(165): require_once(’\/snap\/nextcloud…’)\n#19 {main}",“File”:"\/snap\/nextcloud\/1288\/htdocs\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/AbstractMySQLDriver.php",“Line”:116,“User”:“ingo”}",“level”:4,“time”:“2017-05-08T06:43:20+00:00”,“method”:“PROPPATCH”,“url”:"/remote.php/dav/calendars/ingo/inbox/",“user”:“ingo”,“version”:“11.0.3.2”}
{“reqId”:“psFgqeehhaA40iq7UU6x”,“remoteAddr”:“192.168.1.1”,“app”:“core”,“message”:“OC_Image::preciseResize(): No image loaded”,“level”:3,“time”:“2017-05-08T06:50:08+00:00”,“method”:“GET”,“url”:"/index.php/apps/files/api/v1/thumbnail/128/128/InstantUpload/Photo-2016-03-02-21-51-28_2247.JPG",“user”:“ingo”,“version”:“11.0.3.2”}
{“reqId”:“psFgqeehhaA40iq7UU6x”,“remoteAddr”:“192.168.1.1”,“app”:“core”,“message”:“OC_Image::crop(): No image loaded”,“level”:3,“time”:“2017-05-08T06:50:08+00:00”,“method”:“GET”,“url”:"/index.php/apps/files/api/v1/thumbnail/128/128/InstantUpload/Photo-2016-03-02-21-51-28_2247.JPG",“user”:“ingo”,“version”:“11.0.3.2”}
{“reqId”:“psFgqeehhaA40iq7UU6x”,“remoteAddr”:“192.168.1.1”,“app”:“PHP”,“message”:“Missing argument 2 for OC\Files\Storage\Wrapper\Wrapper::file_put_contents(), called in /snap/nextcloud/1288/htdocs/lib/private/Files/View.php on line 1124 and defined at /snap/nextcloud/1288/htdocs/lib/private/Files/Storage/Wrapper/Wrapper.php#250”,“level”:3,“time”:“2017-05-08T06:50:09+00:00”,“method”:“GET”,“url”:"/index.php/apps/files/api/v1/thumbnail/128/128/InstantUpload/Photo-2016-03-02-21-51-28_2247.JPG",“user”:“ingo”,“version”:“11.0.3.2”}
{“reqId”:“psFgqeehhaA40iq7UU6x”,“remoteAddr”:“192.168.1.1”,“app”:“PHP”,“message”:“Undefined variable: data at /snap/nextcloud/1288/htdocs/lib/private/Files/Storage/Wrapper/Wrapper.php#251”,“level”:3,“time”:“2017-05-08T06:50:09+00:00”,“method”:“GET”,“url”:"/index.php/apps/files/api/v1/thumbnail/128/128/InstantUpload/Photo-2016-03-02-21-51-28_2247.JPG",“user”:“ingo”,“version”:“11.0.3.2”}
{“reqId”:“73ejYcMHPlTBVaX6M25D”,“remoteAddr”:“192.168.1.1”,“app”:“PHP”,“message”:“Allowed memory size of 134217728 bytes exhausted (tried to allocate 12288 bytes) at /snap/nextcloud/1288/htdocs/lib/private/legacy/image.php#450”,“level”:3,“time”:“2017-05-09T04:34:36+00:00”,“method”:“GET”,“url”:"/index.php/apps/files/api/v1/thumbnail/128/128/InstantUpload/Photo-2016-03-06-12-15-22_2257.JPG",“user”:“ingo”,“version”:“11.0.3.2”}
{“reqId”:“H/Edgi3ORvKbWuY0NshH”,“remoteAddr”:“192.168.1.1”,“app”:“PHP”,“message”:“Allowed memory size of 134217728 bytes exhausted (tried to allocate 12288 bytes) at /snap/nextcloud/1288/htdocs/lib/private/legacy/image.php#450”,“level”:3,“time”:“2017-05-09T04:34:36+00:00”,“method”:“GET”,“url”:"/index.php/apps/files/api/v1/thumbnail/128/128/InstantUpload/Photo-2016-03-06-12-04-28_2256.JPG",“user”:“ingo”,“version”:“11.0.3.2”}
{“reqId”:“jaWyDc+XadDcrIA1oPN7”,“remoteAddr”:“192.168.1.1”,“app”:“PHP”,“message”:“Allowed memory size of 134217728 bytes exhausted (tried to allocate 12288 bytes) at /snap/nextcloud/1288/htdocs/lib/private/legacy/image.php#450”,“level”:3,“time”:“2017-05-09T04:34:36+00:00”,“method”:“GET”,“url”:"/index.php/apps/files/api/v1/thumbnail/128/128/InstantUpload/Photo-2016-02-28-14-53-23_2239.JPG",“user”:“ingo”,“version”:“11.0.3.2”}
{“reqId”:“mhqcysR7PiztPohYzIHh”,“remoteAddr”:“192.168.1.1”,“app”:“PHP”,“message”:“Allowed memory size of 134217728 bytes exhausted (tried to allocate 12288 bytes) at /snap/nextcloud/1288/htdocs/lib/private/legacy/image.php#450”,“level”:3,“time”:“2017-05-09T04:34:36+00:00”,“method”:“GET”,“url”:"/index.php/apps/files/api/v1/thumbnail/128/128/InstantUpload/Photo-2016-02-28-12-14-38_2238.JPG",“user”:“ingo”,“version”:“11.0.3.2”}
{“reqId”:“Tauh2bmT/L3qhqdeadPf”,“remoteAddr”:“192.168.1.1”,“app”:“PHP”,“message”:“Allowed memory size of 134217728 bytes exhausted (tried to allocate 12288 bytes) at /snap/nextcloud/1288/htdocs/lib/private/legacy/image.php#450”,“level”:3,“time”:“2017-05-09T04:56:28+00:00”,“method”:“GET”,“url”:"/index.php/apps/files/api/v1/thumbnail/128/128/InstantUpload/Photo-2016-02-28-14-53-23_2239.JPG",“user”:“ingo”,“version”:“11.0.3.2”}
{“reqId”:“9drlVpD+GMkdzNyO0lMe”,“remoteAddr”:“192.168.1.1”,“app”:“PHP”,“message”:“Allowed memory size of 134217728 bytes exhausted (tried to allocate 12288 bytes) at /snap/nextcloud/1288/htdocs/lib/private/legacy/image.php#450”,“level”:3,“time”:“2017-05-09T04:56:28+00:00”,“method”:“GET”,“url”:"/index.php/apps/files/api/v1/thumbnail/128/128/InstantUpload/Photo-2016-03-06-12-15-22_2257.JPG",“user”:“ingo”,“version”:“11.0.3.2”}
{“reqId”:“HlaluhZ7xCL/KIIslNdq”,“remoteAddr”:“192.168.1.1”,“app”:“PHP”,“message”:“Allowed memory size of 134217728 bytes exhausted (tried to allocate 12288 bytes) at /snap/nextcloud/1288/htdocs/lib/private/legacy/image.php#450”,“level”:3,“time”:“2017-05-09T04:56:29+00:00”,“method”:“GET”,“url”:"/index.php/apps/files/api/v1/thumbnail/128/128/InstantUpload/Photo-2016-02-28-12-14-38_2238.JPG",“user”:“ingo”,“version”:“11.0.3.2”}

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

<?php $CONFIG = array ( 'apps_paths' => array ( 0 => array ( 'path' => '/snap/nextcloud/current/htdocs/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps', 'url' => '/extra-apps', 'writable' => true, ), ), 'supportedDatabases' => array ( 0 => 'mysql', ), 'memcache.locking' => '\\OC\\Memcache\\Redis', 'memcache.local' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => '/tmp/sockets/redis.sock', 'port' => 0, ), 'instanceid' => 'ocybgmf58nu7', 'passwordsalt' => '***', 'secret' => '***', 'trusted_domains' => array ( 2 => 'cloud-familie-richter.homelinux.com', 1 => '192.168.1.99', ), 'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data', 'overwrite.cli.url' => 'http://192.168.1.99', 'dbtype' => 'mysql', 'version' => '11.0.3.2', 'dbname' => 'nextcloud', 'dbhost' => 'localhost:/tmp/sockets/mysql.sock', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => '***', 'dbpassword' => '***', 'logtimezone' => 'UTC', 'installed' => true ); The output of your Apache/nginx/system log in `/var/log/____`: [Fri May 05 06:23:12.982175 2017] [mpm_event:notice] [pid 8323:tid 1996251136] AH00491: caught SIGTERM, shutting down AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::ba27:ebff:fe7f:c159. Set the 'ServerName' directive globally t o suppress this message [Fri May 05 06:25:09.827918 2017] [mpm_event:notice] [pid 2329:tid 1995677696] AH00489: Apache/2.4.25 (Unix) configured -- resuming normal operations [Fri May 05 06:25:09.828451 2017] [core:notice] [pid 2329:tid 1995677696] AH00094: Command line: 'httpd -d /snap/nextcloud/1288 -D FOREGROUND' [Fri May 05 06:25:09.835814 2017] [unixd:alert] [pid 2332:tid 1995677696] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modif y the User directive [Fri May 05 06:25:09.835818 2017] [unixd:alert] [pid 2331:tid 1995677696] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modif y the User directive [Fri May 05 06:25:09.842033 2017] [unixd:alert] [pid 2333:tid 1995677696] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modif y the User directive [Fri May 05 06:26:32.925423 2017] [unixd:alert] [pid 2529:tid 1995677696] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modif y the User directive [Sat May 06 16:54:53.835547 2017] [mpm_event:notice] [pid 2329:tid 1995677696] AH00491: caught SIGTERM, shutting down [Sat May 06 16:55:10.638623 2017] [ssl:warn] [pid 31534:tid 1995558912] AH01909: fe80::ba27:ebff:fe7f:c159:443:0 server certificate does NOT include an ID which matches the server name AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::ba27:ebff:fe7f:c159. Set the 'ServerName' directive globally t o suppress this message [Sat May 06 16:55:10.724202 2017] [ssl:warn] [pid 31534:tid 1995558912] AH01909: fe80::ba27:ebff:fe7f:c159:443:0 server certificate does NOT include an ID which matches the server name [Sat May 06 16:55:10.730089 2017] [mpm_event:notice] [pid 31534:tid 1995558912] AH00489: Apache/2.4.25 (Unix) OpenSSL/1.0.2g configured -- resuming normal operat ions [Sat May 06 16:55:10.730345 2017] [core:notice] [pid 31534:tid 1995558912] AH00094: Command line: 'httpd -d /snap/nextcloud/1288 -D EnableHTTPS -D EnableHSTS -D FOREGROUND' [Sat May 06 16:55:10.733943 2017] [unixd:alert] [pid 31535:tid 1995558912] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modi fy the User directive [Sat May 06 16:55:10.734505 2017] [unixd:alert] [pid 31536:tid 1995558912] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modi fy the User directive [Sat May 06 16:55:10.735873 2017] [unixd:alert] [pid 31537:tid 1995558912] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modi fy the User directive [Sat May 06 16:55:20.748010 2017] [unixd:alert] [pid 31630:tid 1995558912] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modi fy the User directive [Sun May 07 00:58:24.989527 2017] [ssl:warn] [pid 2121:tid 1996353536] AH01909: fe80::ba27:ebff:fe7f:c159:443:0 server certificate does NOT include an ID which m atches the server name AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::ba27:ebff:fe7f:c159. Set the 'ServerName' directive globally t o suppress this message [Sun May 07 00:58:25.105810 2017] [ssl:warn] [pid 2121:tid 1996353536] AH01909: fe80::ba27:ebff:fe7f:c159:443:0 server certificate does NOT include an ID which m atches the server name [Sun May 07 00:58:25.111864 2017] [mpm_event:notice] [pid 2121:tid 1996353536] AH00489: Apache/2.4.25 (Unix) OpenSSL/1.0.2g configured -- resuming normal operations [Sun May 07 00:58:25.112100 2017] [core:notice] [pid 2121:tid 1996353536] AH00094: Command line: 'httpd -d /snap/nextcloud/1288 -D EnableHTTPS -D EnableHSTS -D FOREGROUND' [Sun May 07 00:58:25.116010 2017] [unixd:alert] [pid 2123:tid 1996353536] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Sun May 07 00:58:25.116420 2017] [unixd:alert] [pid 2124:tid 1996353536] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Sun May 07 00:58:25.117575 2017] [unixd:alert] [pid 2125:tid 1996353536] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Sun May 07 00:58:26.120585 2017] [unixd:alert] [pid 2211:tid 1996353536] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Sun May 07 01:05:38.244627 2017] [ssl:warn] [pid 2116:tid 1995890688] AH01909: fe80::ba27:ebff:fe7f:c159:443:0 server certificate does NOT include an ID which matches the server name AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::ba27:ebff:fe7f:c159. Set the 'ServerName' directive globally to suppress this message [Sun May 07 01:05:38.362912 2017] [ssl:warn] [pid 2116:tid 1995890688] AH01909: fe80::ba27:ebff:fe7f:c159:443:0 server certificate does NOT include an ID which matches the server name [Sun May 07 01:05:38.368525 2017] [mpm_event:notice] [pid 2116:tid 1995890688] AH00489: Apache/2.4.25 (Unix) OpenSSL/1.0.2g configured -- resuming normal operations [Sun May 07 01:05:38.368770 2017] [core:notice] [pid 2116:tid 1995890688] AH00094: Command line: 'httpd -d /snap/nextcloud/1288 -D EnableHTTPS -D EnableHSTS -D FOREGROUND' [Sun May 07 01:05:38.373031 2017] [unixd:alert] [pid 2120:tid 1995890688] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Sun May 07 01:05:38.374582 2017] [unixd:alert] [pid 2122:tid 1995890688] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Sun May 07 01:05:38.375079 2017] [unixd:alert] [pid 2121:tid 1995890688] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Sun May 07 01:05:39.377531 2017] [unixd:alert] [pid 2212:tid 1995890688] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Sun May 07 19:17:32.944031 2017] [ssl:warn] [pid 2094:tid 1996320768] AH01909: fe80::ba27:ebff:fe7f:c159:443:0 server certificate does NOT include an ID which matches the server name AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::ba27:ebff:fe7f:c159. Set the 'ServerName' directive globally to suppress this message [Sun May 07 19:17:33.041917 2017] [ssl:warn] [pid 2094:tid 1996320768] AH01909: fe80::ba27:ebff:fe7f:c159:443:0 server certificate does NOT include an ID which matches the server name [Sun May 07 19:17:33.047934 2017] [mpm_event:notice] [pid 2094:tid 1996320768] AH00489: Apache/2.4.25 (Unix) OpenSSL/1.0.2g configured -- resuming normal operations [Sun May 07 19:17:33.048200 2017] [core:notice] [pid 2094:tid 1996320768] AH00094: Command line: 'httpd -d /snap/nextcloud/1288 -D EnableHTTPS -D EnableHSTS -D FOREGROUND' [Sun May 07 19:17:33.052104 2017] [unixd:alert] [pid 2096:tid 1996320768] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Sun May 07 19:17:33.052589 2017] [unixd:alert] [pid 2097:tid 1996320768] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Sun May 07 19:17:33.053731 2017] [unixd:alert] [pid 2098:tid 1996320768] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Sun May 07 19:17:56.079713 2017] [unixd:alert] [pid 2212:tid 1996320768] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Mon May 08 06:05:18.012795 2017] [ssl:warn] [pid 2120:tid 1996189696] AH01909: fe80::ba27:ebff:fe7f:c159:443:0 server certificate does NOT include an ID which matches the server name AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::ba27:ebff:fe7f:c159. Set the 'ServerName' directive globally o suppress this message [Mon May 08 06:05:18.154202 2017] [ssl:warn] [pid 2120:tid 1996189696] AH01909: fe80::ba27:ebff:fe7f:c159:443:0 server certificate does NOT include an ID which matches the server name [Mon May 08 06:05:18.159735 2017] [mpm_event:notice] [pid 2120:tid 1996189696] AH00489: Apache/2.4.25 (Unix) OpenSSL/1.0.2g configured -- resuming normal operations [Mon May 08 06:05:18.159984 2017] [core:notice] [pid 2120:tid 1996189696] AH00094: Command line: 'httpd -d /snap/nextcloud/1288 -D EnableHTTPS -D EnableHSTS -D FOREGROUND' [Mon May 08 06:05:18.164382 2017] [unixd:alert] [pid 2122:tid 1996189696] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Mon May 08 06:05:18.165844 2017] [unixd:alert] [pid 2124:tid 1996189696] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Mon May 08 06:05:18.166194 2017] [unixd:alert] [pid 2123:tid 1996189696] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Mon May 08 06:05:25.174422 2017] [unixd:alert] [pid 2218:tid 1996189696] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Tue May 09 04:32:53.724157 2017] [ssl:warn] [pid 2190:tid 1995968512] AH01909: fe80::ba27:ebff:fe7f:c159:443:0 server certificate does NOT include an ID which matches the server name AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::ba27:ebff:fe7f:c159. Set the 'ServerName' directive globally to suppress this message [Tue May 09 04:32:53.860021 2017] [ssl:warn] [pid 2190:tid 1995968512] AH01909: fe80::ba27:ebff:fe7f:c159:443:0 server certificate does NOT include an ID which matches the server name [Tue May 09 04:32:53.866351 2017] [mpm_event:notice] [pid 2190:tid 1995968512] AH00489: Apache/2.4.25 (Unix) OpenSSL/1.0.2g configured -- resuming normal operations [Tue May 09 04:32:53.866600 2017] [core:notice] [pid 2190:tid 1995968512] AH00094: Command line: 'httpd -d /snap/nextcloud/1288 -D EnableHTTPS -D EnableHSTS -D FOREGROUND' [Tue May 09 04:32:53.870488 2017] [unixd:alert] [pid 2192:tid 1995968512] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Tue May 09 04:32:53.871086 2017] [unixd:alert] [pid 2193:tid 1995968512] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Tue May 09 04:32:53.873851 2017] [unixd:alert] [pid 2194:tid 1995968512] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Tue May 09 04:34:20.967159 2017] [unixd:alert] [pid 2370:tid 1995968512] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Tue May 09 06:11:33.555074 2017] [ssl:warn] [pid 2108:tid 1996111872] AH01909: fe80::ba27:ebff:fe7f:c159:443:0 server certificate does NOT include an ID which matches the server name AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::ba27:ebff:fe7f:c159. Set the 'ServerName' directive globally to suppress this message [Tue May 09 06:11:33.695050 2017] [ssl:warn] [pid 2108:tid 1996111872] AH01909: fe80::ba27:ebff:fe7f:c159:443:0 server certificate does NOT include an ID which matches the server name [Tue May 09 06:11:33.701402 2017] [mpm_event:notice] [pid 2108:tid 1996111872] AH00489: Apache/2.4.25 (Unix) OpenSSL/1.0.2g configured -- resuming normal operations [Tue May 09 06:11:33.701657 2017] [core:notice] [pid 2108:tid 1996111872] AH00094: Command line: 'httpd -d /snap/nextcloud/1288 -D EnableHTTPS -D EnableHSTS -D FOREGROUND' [Tue May 09 06:11:33.705218 2017] [unixd:alert] [pid 2109:tid 1996111872] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Tue May 09 06:11:33.705496 2017] [unixd:alert] [pid 2110:tid 1996111872] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Tue May 09 06:11:33.715065 2017] [unixd:alert] [pid 2111:tid 1996111872] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive [Tue May 09 06:11:58.735731 2017] [unixd:alert] [pid 2226:tid 1996111872] AH02155: getpwuid: couldn't determine user name from uid -1, you probably need to modify the User directive --- Remember, this information may be requested if it isn't supplied; for fastest response please provide as much as you can :heart: Feel free to use a pastebin service, otherwise log files can be indented with 4 spaces on each line to present them in a friendlier way on the forum.

You are running out of memory. It might be worth looking in the background processes started by your webserver, the database server usually has quite some potential to optimize the cache size (scripts like tuning-primer.sh or mysqltuner can be helpful). If you already tuned everything to perfection, you could consider using nginx rather than apache because it uses less resources.