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, 29.0.5): 29.0.4
Operating system and version (eg, Ubuntu 24.04): Ubuntu Server 22
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52
PHP version (eg, 8.3): 8.1.2-1ubuntu2.18
The issue you are facing:
After the upgrade to v29.0.4, every time I edit any file online with onlyoffice under document_server (files are on the external storage if that matters), even though the changes to the file are commited and I can see them after reopening the file, the next time cron.php job is ran (and that is every five minutes) I will get the same error:
Error
Call to a member function getUID() on null
Error while running background job OCA\DocumentServer\BackgroundJob\Cleanup (id: 151, arguments: null).
This will go on indefinitely. The only way to stop this is delete the said file and reupload it’s copy which kills the point of online editing. I’ve spent two days trying to figure out the cuplrit, but I can’t. If it is any help, if I open the file for editing, close it and then open it again, nextcloud shows that there are 2 of me editing it, if I close it and open it again, there will be 3 of me editing the file.
This is definitely a culprit with community_document_server and ONLYOFFICE.
PLEASE HELP figuring this out, I am at the end of my wits.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Open online file for editing
- Edit the file
- Close the file and exit editor
The output of your Nextcloud log in Admin > Logging:
Error
Call to a member function getUID() on null
Error while running background job OCA\DocumentServer\BackgroundJob\Cleanup (id: 151, arguments: null).
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'ocenpeje4c9w',
'passwordsalt' => 'XXXXXXXX',
'secret' => 'XXXXXXXXXX',
'allow_local_remote_servers' => true,
'trusted_domains' =>
array (
0 => 'X.X.X.XX',
1 => 'cd.mydomain.tv',
2 => 'https://mydomain.tv',
),
'datadirectory' => '/var/www/html/nextcloud/data',
'dbtype' => 'mysql',
'version' => '29.0.4.1',
'overwrite.cli.url' => 'https://X.X.X.XX/nextcloud',
'dbname' => 'CloudDB',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'username',
'dbpassword' => 'XXXXXXXX',
'installed' => true,
'maintenance' => false,
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '127.0.0.1',
'port' => 6379,
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
'theme' => '',
'loglevel' => 2,
'overwriteprotocol' => 'https',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'info',
'mail_domain' => 'mydomain.ru',
'mail_smtphost' => 'smtp.mail.ru',
'mail_smtpport' => '465',
'default_locale' => 'ru_RU',
'default_phone_region' => 'RU',
'app_install_overwrite' =>
array (
0 => 'documentserver_community',
1 => 'flowupload',
2 => 'files_rightclick',
3 => 'metadata',
4 => 'files_archive',
),
'enable_previews' => true,
'preview_libreoffice_path' => '/usr/bin/libreoffice',
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\TXT',
1 => 'OC\\Preview\\MarkDown',
2 => 'OC\\Preview\\OpenDocument',
3 => 'OC\\Preview\\PDF',
4 => 'OC\\Preview\\MSOffice2003',
5 => 'OC\\Preview\\MSOfficeDoc',
6 => 'OC\\Preview\\Image',
7 => 'OC\\Preview\\Photoshop',
8 => 'OC\\Preview\\TIFF',
9 => 'OC\\Preview\\SVG',
10 => 'OC\\Preview\\Font',
11 => 'OC\\Preview\\MP3',
12 => 'OC\\Preview\\Movie',
13 => 'OC\\Preview\\MKV',
14 => 'OC\\Preview\\MP4',
15 => 'OC\\Preview\\AVI',
),
'mail_smtpsecure' => 'ssl',
'mail_smtpauth' => 1,
'mail_smtpname' => 'info@mydomain.ru',
'mail_smtppassword' => 'XXXXXXXXXXX',
'maintenance_window_start' => 22,
);
The output of your Apache/nginx/system log in /var/log/____
:
[Thu Jul 25 00:00:02.420040 2024] [ssl:warn] [pid 6111] AH01906: wookiee:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Jul 25 00:00:02.423484 2024] [mpm_prefork:notice] [pid 6111] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Thu Jul 25 00:00:02.423505 2024] [core:notice] [pid 6111] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jul 25 00:23:04.800942 2024] [access_compat:error] [pid 11550] [client 10.0.4.72:52552] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 00:23:04.803910 2024] [access_compat:error] [pid 14372] [client 10.0.5.79:56482] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 00:23:04.857639 2024] [access_compat:error] [pid 14395] [client 10.0.4.72:52554] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 00:23:04.860394 2024] [access_compat:error] [pid 11509] [client 10.0.4.72:52556] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 00:55:51.303545 2024] [access_compat:error] [pid 11528] [client 10.0.4.72:54130] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 00:55:51.305569 2024] [access_compat:error] [pid 11508] [client 10.0.5.79:60168] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 00:55:51.353009 2024] [access_compat:error] [pid 14395] [client 10.0.4.72:54132] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 00:55:51.355217 2024] [access_compat:error] [pid 11511] [client 10.0.4.72:54134] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 08:55:08.138618 2024] [access_compat:error] [pid 11508] [client 10.0.4.72:41626] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 08:55:08.141544 2024] [access_compat:error] [pid 81143] [client 10.0.5.79:52392] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 08:55:08.202062 2024] [access_compat:error] [pid 18734] [client 10.0.4.72:41628] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 08:55:08.204469 2024] [access_compat:error] [pid 11510] [client 10.0.4.72:41630] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 11:41:51.715889 2024] [access_compat:error] [pid 81143] [client 10.0.4.72:48838] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 11:41:51.717500 2024] [access_compat:error] [pid 18734] [client 10.0.5.79:45728] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 11:41:51.762840 2024] [access_compat:error] [pid 18743] [client 10.0.4.72:48840] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 11:41:51.790255 2024] [access_compat:error] [pid 14395] [client 10.0.4.72:48842] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 11:44:07.731795 2024] [access_compat:error] [pid 81143] [client 10.0.4.72:49140] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 11:44:07.733406 2024] [access_compat:error] [pid 14395] [client 10.0.5.79:53554] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 11:44:07.773811 2024] [access_compat:error] [pid 11508] [client 10.0.4.72:49142] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Thu Jul 25 11:44:07.776018 2024] [access_compat:error] [pid 11528] [client 10.0.4.72:49144] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
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.
PASTE HERE