nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.56k stars 4.08k forks source link

server run out memory #10947

Closed dewomser closed 6 years ago

dewomser commented 6 years ago

Entire Server run out memory, when I opend a pdf with nextcloud. Apache ,SSH did not respond. After few minutes ssh came back. systemctl restart apache2 ->Ok

Operating system: Debian8 Web server: Apache2 Database: Art: mysql Version: 10.0.35 Größe: 20.6 MB

PHP version: Version: 7.2.7 Arbeitspeicher-Grenzwert: 128 MB Maximale Ausführungszeit: 3600 Maximale Größe zum Hochladen: 50 MB

Nextcloud version: (see Nextcloud admin page) Art: mysql

Version: 10.0.35

Größe: 20.6 MB Updated from an older Nextcloud/ownCloud or fresh install: updated Where did you install Nextcloud from:

Signing status:

Signing status ``` Login as admin user into your Nextcloud and access http://example.com/index.php/settings/integrity/failed paste the results here. ```

List of activated apps:

Enabled: - activity: 2.6.1 - admin_notifications: 1.0.1 - audioplayer: 2.3.0-beta.1 - bookmarks: 0.12.1 - bruteforcesettings: 1.1.0 - caniupdate: 0.1.3 - cms_pico: 0.9.7 - comments: 1.3.0 - contacts: 2.1.5 - dav: 1.4.7 - external: 3.0.4 - federatedfilesharing: 1.3.1 - federation: 1.3.0 - files: 1.8.0 - files_external: 1.4.1 - files_markdown: 2.0.4 - files_pdfviewer: 1.2.1 - files_sharing: 1.5.0 - files_texteditor: 2.5.1 - files_trashbin: 1.3.0 - files_versions: 1.6.0 - files_videoplayer: 1.2.0 - firstrunwizard: 2.2.1 - gallery: 18.0.0 - gpxedit: 0.0.8 - logreader: 2.0.0 - lookup_server_connector: 1.1.0 - mail: 0.8.3 - music: 0.9.0 - nextcloud_announcements: 1.2.0 - notes: 2.4.1 - notifications: 2.1.2 - oauth2: 1.1.1 - passman: 2.1.4 - password_policy: 1.3.0 - provisioning_api: 1.3.0 - qownnotesapi: 18.8.0 - radio: 0.6.1 - serverinfo: 1.3.0 - sharebymail: 1.3.0 - socialsharing_diaspora: 1.0.2 - socialsharing_email: 1.0.3 - socialsharing_facebook: 1.0.2 - socialsharing_googleplus: 1.0.2 - socialsharing_twitter: 1.0.2 - spreed: 3.2.5 - survey_client: 1.1.0 - systemtags: 1.3.0 - theming: 1.4.5 - twofactor_backupcodes: 1.2.3 - updatenotification: 1.3.0 - workflowengine: 1.3.0 Disabled: - admin_audit - circles - encryption - user_external ``` If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your Nextcloud installation folder ```

Nextcloud configuration:

Config report ``` If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your Nextcloud installation folder or Insert your config.php content here. Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …) ```

Are you using external storage, no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

LDAP configuration (delete this part if not used)

LDAP config ``` With access to your command line run e.g.: sudo -u www-data php occ ldap:show-config from within your Nextcloud installation folder Without access to your command line download the data/owncloud.db to your local computer or access your SQL server remotely and run the select query: SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap'; Eventually replace sensitive data as the name/IP-address of your LDAP server or groups. ```

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log ``` [Fri Aug 31 12:19:32.949903 2018] [php7:error] [pid 15462] [client 188.107.164.126:57999] PHP Fatal error: Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1135] Can't create a new thread (errno 11 "Resource temporarily unavailable"); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug in /var/www/html/nextcloud/lib/private/DB/Connection.php:64\nStack trace:\n#0 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\\DB\\Connection->connect()\n#1 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\\DBAL\\Connection->getDatabasePlatformVersion()\n#2 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\\DBAL\\Connection->detectDatabasePlatform()\n#3 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\\DBAL\\Connection->getDatabasePlatform()\n#4 /var/www/html/nextcloud/lib/private/DB/Connection.php(151): Doctrine\\DBAL\\Connection->setTransactionIsolation( in /var/www/html/nextcloud/lib/private/DB/Connection.php on line 64 [Fri Aug 31 12:19:43.033067 2018] [mpm_prefork:error] [pid 9859] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Fri Aug 31 12:19:54.034229 2018] [mpm_prefork:error] [pid 9859] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Fri Aug 31 12:20:04.034481 2018] [mpm_prefork:error] [pid 9859] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Fri Aug 31 12:20:14.034799 2018] [mpm_prefork:error] [pid 9859] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` Insert your Nextcloud log here ```

Browser log

Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```
nextcloud-bot commented 6 years ago

GitMate.io thinks possibly related issues are https://github.com/nextcloud/server/issues/2945 (server info should be more clear), https://github.com/nextcloud/server/issues/979 (Easier Server migration), https://github.com/nextcloud/server/issues/6994 (Internal Server Error), https://github.com/nextcloud/server/issues/10140 (Internal server error), and https://github.com/nextcloud/server/issues/4440 (Issues running tests).

kesselb commented 6 years ago

Looks like a configuration issue to me. In your webserver log is a message from apache that there is not enough memory to spawn new processes. How many memory has your server? Recommend memory limit for PHP is 512mb.

dewomser commented 6 years ago

Hallo danielkesselberg , There is 4GB Memory on the server. php was only allowed to use 128 M php.ini: new parmeter set to 512 M I hope this will help
Thank you for your quick response … ; Maximum amount of memory a script may consume (128MB) ; http://php.net/memory-limit memory_limit = 128M …

kesselb commented 6 years ago

Good luck! Please keep in mind that github is for software issues. For questions about your configuration please use https://help.nextcloud.com/categories