Hey guys!
after having lots of trouble with the NCP-images, I have moved on to installing a NextCloud snap! So far everything works fine and I have my instance up and running. I am using an Odroid HC4 SBC with 2x 2TB SATA drives connected. One drive is for the NextCloud data, the other one will be used to store the backups.
I am currently struggling with setting up a regular automatic backup. For this, I installed the Backup app and configured an external storage (local - my second backup hard drive). I enabled background tasks, set the restoring point location to my external storage and left the App Data on Local storage.
I then hit “Create full restoring point”. Cron is activated and should now begin the backup. In the logs I can see that Cron starts every 15 minutes and tries to create a backup. Problem is, that it is not added to the Restoring points history.
Can anyone help me to figure out, what the problem here is exactly?
Thanks in advance!
Best regards.
Nextcloud version (eg, 20.0.5): 25
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): 2.4
PHP version (eg, 7.4): 8.0
The output of your Nextcloud log in Admin > Logging:
Error PHP Error: unlink(/tmp/phpq9eRiH): No such file or directory at /var/snap/nextcloud/33060/nextcloud/extra-apps/backup/lib/Service/PointService.php#540
0: <<closure>>
OC\Log\ErrorHandler::onError()
1: /var/snap/nextcloud/33060/nextcloud/extra-apps/backup/lib/Service/PointService.php - line 540:
unlink()
2: /var/snap/nextcloud/33060/nextcloud/extra-apps/backup/lib/Service/PointService.php - line 260:
OCA\Backup\Service\PointService->backupSql()
3: /var/snap/nextcloud/33060/nextcloud/extra-apps/backup/lib/Cron/Backup.php - line 137:
OCA\Backup\Service\PointService->create()
4: /var/snap/nextcloud/33060/nextcloud/extra-apps/backup/lib/Cron/Backup.php - line 124:
OCA\Backup\Cron\Backup->runFullBackup()
5: /var/snap/nextcloud/33060/nextcloud/extra-apps/backup/lib/Cron/Backup.php - line 115:
OCA\Backup\Cron\Backup->runBackup()
6: /var/snap/nextcloud/33060/nextcloud/extra-apps/backup/lib/Cron/Backup.php - line 97:
OCA\Backup\Cron\Backup->manage()
7: /snap/nextcloud/33060/htdocs/lib/private/BackgroundJob/Job.php - line 54:
OCA\Backup\Cron\Backup->run()
8: /snap/nextcloud/33060/htdocs/lib/private/BackgroundJob/TimedJob.php - line 60:
OC\BackgroundJob\Job->execute()
9: /snap/nextcloud/33060/htdocs/cron.php - line 152:
OC\BackgroundJob\TimedJob->execute()
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,
'passwordsalt' => 'xxx',
'secret' => 'xxx',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '[0:0:0:0:0:0:0:0]',
),
'datadirectory' => '/media/myDataDrive/data',
'dbtype' => 'mysql',
'version' => '25.0.2.3',
'overwrite.cli.url' => 'http://localhost',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'xxx',
'installed' => true,
'instanceid' => 'xxx',
'maintenance' => true,
);