Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 20.0.5): 26.0.1
Operating system and version (eg, Ubuntu 20.04): Ununtu 20.04.05 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache2 2.2.41
PHP version (eg, 7.4): 8.1.18
The issue you are facing:
With Nextcloud Office and Collabora online - Built-in CODE server active as soon as Files is access PHP starts to spawn new processes, which is good. But they never stop, they just sit there as active untill max_children is reached at which point everything else stops. Each action within with Files, such as open a directory, open a file etc causes more processes to spawn.
Other apps don’t cause a problem.
If Nextcloud Office and CODE are disabled then browsing folders and opening .md files causes no problems, and office docs are downloaded so again no problems. It seems Office/CODE is the issue - and I’m seeing this on two separate systems - the Test one I created for a community group and the Dev box I created so I can poke around at this without disrupting their exploration of other features.
PHP real-time status reports all of the stuck processes have Request URI of one of two forms:
/index.php?fileId=[num]&x=250&y=250
/index.php?file=[num]&c=[32 hex digit number]&x=313&y=313%forceIcon=0&a=1
On current test run processes have served between 2-130 requests before getting stuck. Leaving it to run overnight made no difference - the processes don’t time out.
Host has 2GB RAM, less than half in use, swap not touched. max_children currently set to 32, I’ve had issues even with it set to 60 - which is just stupidly high. Using ondemand makes no difference as the processes are seen as active so never get reaped.
Is this the first time you’ve seen this error? (Y/N): N
Steps to replicate it:
- Enable Office & Code
- Open Files folders and office and .md docs
- Watch the active process count increase
The output of your Nextcloud log in Admin > Logging:
same as nextcloud.log below
[PHP] Error: Trying to access array offset on value of type null at /srv/nextcloud/www/apps/richdocuments/lib/WOPI/DiscoveryManager.php#132
GET /index.php/apps/richdocuments/index?fileId=10&requesttoken=2EqhkVw5Z%2BoJqkNRY7YQw36C7NPlfzFsk7EbXMGaI%2BY%3D%3AjAzExA4AI7M5nnIdGdBkiAnIhIHdNnYa4clWP5TcRLU%3D&path=%2FDocuments%2FWelcome%20to%20Nextcloud%20Hub.docx
from 192.168.42.64 by docadmin at 2023-05-14T19:02:24+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '2258',
'passwordsalt' => 'andvinegar',
'secret' => 'squirrel',
'trusted_domains' =>
array (
0 => 'nextcloud-doc.public.example.com',
),
'datadirectory' => '/srv/nextcloud/data',
'dbtype' => 'mysql',
'version' => '26.0.1.1',
'overwrite.cli.url' => 'http://nextcloud-doc.public.example.com',
'dbname' => 'dbdbname',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'dbusername',
'dbpassword' => 'dbuserpasswd',
'installed' => true,
'default_phone_region' => 'GB',
'memcache.local' => '\OC\Memcache\APCu',
);
The output of your Apache/nginx/system log in /var/log/____
:
200 responses from phpstatus....
PASTE HERE
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
{“reqId”:“xGe83Pw10udnIGZIaECZ”,“level”:3,“time”:“2023-05-14T19:02:24+00:00”,“remoteAddr”:“192.168.42.64”,“user”:“docadmin”,“app”:“PHP”,“method”:“GET”,“url”:“/index.php/apps/richdocuments/index?fileId=10&requesttoken=2EqhkVw5Z%2BoJqkNRY7YQw36C7NPlfzFsk7EbXMGaI%2BY%3D%3AjAzExA4AI7M5nnIdGdBkiAnIhIHdNnYa4clWP5TcRLU%3D&path=%2FDocuments%2FWelcome%20to%20Nextcloud%20Hub.docx”,“message”:“Trying to access array offset on value of type null at /srv/nextcloud/www/apps/richdocuments/lib/WOPI/DiscoveryManager.php#130”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“xGe83Pw10udnIGZIaECZ”,“level”:3,“time”:“2023-05-14T19:02:24+00:00”,“remoteAddr”:“192.168.42.64”,“user”:“docadmin”,“app”:“PHP”,“method”:“GET”,“url”:“/index.php/apps/richdocuments/index?fileId=10&requesttoken=2EqhkVw5Z%2BoJqkNRY7YQw36C7NPlfzFsk7EbXMGaI%2BY%3D%3AjAzExA4AI7M5nnIdGdBkiAnIhIHdNnYa4clWP5TcRLU%3D&path=%2FDocuments%2FWelcome%20to%20Nextcloud%20Hub.docx”,“message”:“Trying to access array offset on value of type null at /srv/nextcloud/www/apps/richdocuments/lib/WOPI/DiscoveryManager.php#131”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“xGe83Pw10udnIGZIaECZ”,“level”:3,“time”:“2023-05-14T19:02:24+00:00”,“remoteAddr”:“192.168.42.64”,“user”:“docadmin”,“app”:“PHP”,“method”:“GET”,“url”:“/index.php/apps/richdocuments/index?fileId=10&requesttoken=2EqhkVw5Z%2BoJqkNRY7YQw36C7NPlfzFsk7EbXMGaI%2BY%3D%3AjAzExA4AI7M5nnIdGdBkiAnIhIHdNnYa4clWP5TcRLU%3D&path=%2FDocuments%2FWelcome%20to%20Nextcloud%20Hub.docx”,“message”:“Trying to access array offset on value of type null at /srv/nextcloud/www/apps/richdocuments/lib/WOPI/DiscoveryManager.php#132”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}