Nextcloud version: 24.0.3, installed as a snap.
Operating system and version: Ubuntu Server 22.04, fully updated, latest core version
Apache or nginx version: Don’t know but likely to be Apache, in the newest version
PHP version 8.0.21
Since a few days ago my Nextcloud box is only syncing some files, while completely ignoring most, and even deleting others!
When I save a Microsoft Office file or make a new local folder, the files and folders aren’t synced, even if I try to force it.
If I create a simple .txt file, the file gets synced, but only in some folder, not all.
Yesterday, I tried to upload a folder and Nextcloud deleted it after a few seconds! I couldn’t even recover the folder from the Bin. I tried to set up a video capture, because it was so ridiculous I had to record it, but then it stopped doing it.
As the log excerpt show, I seem to get a Trusted domain error. I have tried to add the “mydomain” to config.php , but that didn’t help at all.
The box has worked fine until a few days ago. As a note of interest, I see a warning that syncing failed (the red circle with an X), on a daily basis. It’s the same folder everytime. It holds about 200 GB of data and rarely updates. When I force sync the folder I get a green mark.
Any help is greatly appreciated!
Thanks!
Is this the first time you’ve seen this error?: Yes
The output of your Nextcloud log in Admin > Logging:
Warnings core Trusted domain error. "someip" tried to access using " myip" as host. 2022-09-01T16:20:00+0200
Error PHP Error: mkdir(): File exists at /var/snap/nextcloud/31222/nextcloud/extra-apps/news/lib/AppInfo/Application.php#95 2022-09-01T15:01:34+0200
Warnings core Trusted domain error. "someip" tried to access using " myip" as host. 2022-09-01T12:44:47+0200
Warnings core Trusted domain error. "someip" tried to access using " myip" as host. 2022-09-01T12:44:46+0200
Warnings core Trusted domain error. "someip" tried to access using " myip:443" as host. 2022-09-01T12:34:08+0200
Warnings core Trusted domain error. "someip" tried to access using " myip" as host. 2022-09-01T10:45:24+0200
Warnings core Trusted domain error. "someip" tried to access using " myip:443" as host. 2022-09-01T10:37:52+0200
Warnings core Trusted domain error. "someip" tried to access using " myip:443" as host. 2022-09-01T08:24:40+0200
[This pattern goes on for a couple of days]
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,
),
'log_type' => 'file',
'logfile' => '/var/snap/nextcloud/current/logs/nextcloud.log',
'logfilemode' => 416,
'instanceid' => 'ocbrhmto4zj5',
'passwordsalt' => 'SALT',
'secret' => 'SECRET',
'trusted_domains' =>
array (
0 => '10.0.0.10',
1 => 'SOMEDOMAIN.ddns.net',
2 => '10.0.0.224',
),
'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
'dbtype' => 'mysql',
'version' => '24.0.3.2',
'overwrite.cli.url' => 'http://10.0.0.224',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'PASSWORD',
'installed' => true,
'default_phone_region' => 'DK',
'maintenance' => false,
'loglevel' => 2,
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpport' => '587',
'mail_smtpauth' => 1,
'mail_smtpname' => '',
'mail_smtppassword' => '',
'mail_smtpsecure' => 'ssl',
);
The output of your Apache/nginx/system log in /var/log/____
:
Not sure where to look :-/
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors.
Error: mkdir(): File exists at /var/snap/nextcloud/31222/nextcloud/extra-apps/news/lib/AppInfo/Application.php#95
<>
OC\Log\ErrorHandler::onError()
/var/snap/nextcloud/31222/nextcloud/extra-apps/news/lib/AppInfo/Application.php - line 95:
mkdir()
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php - line 162:
OCA\News\AppInfo\Application->OCA\News\AppInfo{closure}(“*** sensiti … *”)
/snap/nextcloud/31222/htdocs/3rdparty/pimple/pimple/src/Pimple/Container.php - line 122:
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(“*** sensiti … *”)
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php - line 129:
Pimple\Container->offsetGet()
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 459:
OC\AppFramework\Utility\SimpleContainer->query()
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 437:
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php - line 89:
OC\AppFramework\DependencyInjection\DIContainer->query()
<>
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(“*** sensiti … *”)
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php - line 108:
array_map()
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php - line 116:
OC\AppFramework\Utility\SimpleContainer->buildClass()
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php - line 133:
OC\AppFramework\Utility\SimpleContainer->resolve()
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 465:
OC\AppFramework\Utility\SimpleContainer->query()
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 437:
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php - line 89:
OC\AppFramework\DependencyInjection\DIContainer->query()
<>
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(“*** sensiti … *”)
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php - line 108:
array_map()
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php - line 116:
OC\AppFramework\Utility\SimpleContainer->buildClass()
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php - line 133:
OC\AppFramework\Utility\SimpleContainer->resolve()
/snap/nextcloud/31222/htdocs/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 465:
OC\AppFramework\Utility\SimpleContainer->query()
/snap/nextcloud/31222/htdocs/lib/private/ServerContainer.php - line 145:
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
/snap/nextcloud/31222/htdocs/lib/private/Console/Application.php - line 217:
OC\ServerContainer->query()
/snap/nextcloud/31222/htdocs/lib/private/Console/Application.php - line 128:
OC\Console\Application->loadCommandsFromInfoXml()
/snap/nextcloud/31222/htdocs/console.php - line 99:
OC\Console\Application->loadCommands()
/snap/nextcloud/31222/htdocs/occ - line 11:
require_once(“/snap/nextc … p”)