unlink(/tmp/phpej0sip) No such file or directory
Hello there,
I have nextcloud installed in my raspberry. Full backup created successfully but never packed.
I can see once per hour in nextcloud log this error:
Error: unlink(/tmp/phpej0sip): No such file or directory at ../apps/backup/lib/Service/PackService.php#365
Hi,
i have the same issue
[PHP] Fehler: Error: unlink(/tmp/phpVOfQXg): No such file or directory at /share/DATA/.qpkg/NextCloud2481/nextcloud/apps/backup/lib/Service/PointService.php#539 at <<closure>>
Please let me know if you find something. Thanks
Hi,
I get a similar error message when trying to create a backup:
sudo -u http php74 -d memory_limit=1024M /volume1/web/nextcloud/occ backup:point:create
Terminal output (similar error message as in #97):
> maintenance mode: on
> initialization of the AppData
> initialization of the RestoringPoint: 20220824140814-full-abiCmBOKhge3B1r based on NC24.0.4.1
> initialization of the storage
> preparation of the data to be stored in the restoring point
> preparation of internal data
> creating chunks
* data: /volume1/nextcloud-data/, 104006 files
- data-e56d4215-8655-4af5-a8ea-0f1de1fbca83
- data-9ca49d7c-dc37-4122-9f41-565a180e698e
- data-43802639-d55e-4805-8496-7df9a047ac89
- data-a080d17b-82f1-4ed2-aca5-8be7186bf8af
* nextcloud: /volume1/web/nextcloud/, 9714 files
- nextcloud-d152a714-b289-4212-b3ef-69b39ed82b20
* apps: /volume1/web/nextcloud/apps/, 20177 files
- apps-21580dd1-fe2c-4ce9-9b4b-02af5b6b080e
* config: /volume1/web/nextcloud/config/, 1 files
- config-f0b3a6c5-7a54-473d-b39e-4f529a324b0d
* SqlDump: OCA\Backup\SqlDump\SqlDumpMySQL
- exporting sql to /volume1/@tmp/phph8xJkT
> maintenance mode: off
In SqlDumpMySQL.php line 91:
Connection to mysql failed with message: SQLSTATE[HY000] [2002] Connection refused
Nextcloud log:
Error: unlink(/volume1/@tmp/phph8xJkT): No such file or directory at /volume1/web/nextcloud/apps/backup/lib/Service/PointService.php#539
Backup 1.1.2, Nextcloud 24.0.4, DSM 7.1, Nginx 1.20.1, Apache 2.4, PHP 7.4, MariaDB 10
i also have the same issue with NEXTCLOUD 24.0.3 - snap installed
[PHP] Error: Error: unlink(/tmp/phpMBq3TS): No such file or directory at /var/snap/nextcloud/31222/nextcloud/extra-apps/backup/lib/Service/PointService.php#539 at <<closure>>
0. <<closure>>
OC\Log\ErrorHandler::onError()
1. /var/snap/nextcloud/31222/nextcloud/extra-apps/backup/lib/Service/PointService.php line 539
unlink()
2. /var/snap/nextcloud/31222/nextcloud/extra-apps/backup/lib/Service/PointService.php line 259
OCA\Backup\Service\PointService->backupSql()
3. /var/snap/nextcloud/31222/nextcloud/extra-apps/backup/lib/Cron/Backup.php line 137
OCA\Backup\Service\PointService->create()
4. /var/snap/nextcloud/31222/nextcloud/extra-apps/backup/lib/Cron/Backup.php line 124
OCA\Backup\Cron\Backup->runFullBackup()
5. /var/snap/nextcloud/31222/nextcloud/extra-apps/backup/lib/Cron/Backup.php line 115
OCA\Backup\Cron\Backup->runBackup()
6. /var/snap/nextcloud/31222/nextcloud/extra-apps/backup/lib/Cron/Backup.php line 97
OCA\Backup\Cron\Backup->manage()
7. /snap/nextcloud/31222/htdocs/lib/private/BackgroundJob/Job.php line 54
OCA\Backup\Cron\Backup->run()
8. /snap/nextcloud/31222/htdocs/lib/private/BackgroundJob/TimedJob.php line 60
OC\BackgroundJob\Job->execute()
9. /snap/nextcloud/31222/htdocs/cron.php line 151
OC\BackgroundJob\TimedJob->execute()
at 2022-08-25T12:54:42+00:00
i also have the same issue with NEXTCLOUD 24.0.3 - snap installed
the appdata_oc6g9hhzrst1 folder has lots of folders totaling to some 500gb whereas my actual data is less than 2gb
I have : Policy for the local app data: 3 Policy for external storages: 5 Time interval between two full restoring points: 7 days Time interval between two partial restoring points: 1 day
Hi,
I get a similar error message when trying to create a backup:
sudo -u http php74 -d memory_limit=1024M /volume1/web/nextcloud/occ backup:point:createTerminal output (similar error message as in #97):
> maintenance mode: on > initialization of the AppData > initialization of the RestoringPoint: 20220824140814-full-abiCmBOKhge3B1r based on NC24.0.4.1 > initialization of the storage > preparation of the data to be stored in the restoring point > preparation of internal data > creating chunks * data: /volume1/nextcloud-data/, 104006 files - data-e56d4215-8655-4af5-a8ea-0f1de1fbca83 - data-9ca49d7c-dc37-4122-9f41-565a180e698e - data-43802639-d55e-4805-8496-7df9a047ac89 - data-a080d17b-82f1-4ed2-aca5-8be7186bf8af * nextcloud: /volume1/web/nextcloud/, 9714 files - nextcloud-d152a714-b289-4212-b3ef-69b39ed82b20 * apps: /volume1/web/nextcloud/apps/, 20177 files - apps-21580dd1-fe2c-4ce9-9b4b-02af5b6b080e * config: /volume1/web/nextcloud/config/, 1 files - config-f0b3a6c5-7a54-473d-b39e-4f529a324b0d * SqlDump: OCA\Backup\SqlDump\SqlDumpMySQL - exporting sql to /volume1/@tmp/phph8xJkT > maintenance mode: off In SqlDumpMySQL.php line 91: Connection to mysql failed with message: SQLSTATE[HY000] [2002] Connection refusedNextcloud log:
Error: unlink(/volume1/@tmp/phph8xJkT): No such file or directory at /volume1/web/nextcloud/apps/backup/lib/Service/PointService.php#539Backup 1.1.2, Nextcloud 24.0.4, DSM 7.1, Nginx 1.20.1, Apache 2.4, PHP 7.4, MariaDB 10
I could solve this issue by addressing the mysql error Connection to mysql failed with message: SQLSTATE[HY000] [2002] Connection refused. In my case, the database user was only allowed to access the database from localhost. However, in /nextcloud/config/config.php the variable dbhost was set to 127.0.0.1:3307. After I have changed it to 'dbhost' => 'localhost:3307' the unlink error disappeared and the backup was created successfully.
I'm not sure the database host config issue is the full story. In my snap install I have 'dbhost' => 'localhost:/tmp/sockets/mysql.sock', and am seeing the same errors about unlinking the temp file, and the backups never complete.
I could solve this issue by addressing the mysql error Connection to mysql failed with message: SQLSTATE[HY000] [2002] Connection refused. In my case, the database user was only allowed to access the database from localhost. However, in /nextcloud/config/config.php the variable dbhost was set to 127.0.0.1:3307. After I have changed it to 'dbhost' => 'localhost:3307' the unlink error disappeared and the backup was created successfully.
thanks, worked for me
DSM 7.2, Nextcloud 27, PHP 8.2
however the issue with "SQLSTATE[HY000] [2002] Connection refused" seems to be an offtopic here