espidev / ebackup

An easy and reliable plugin for backups on Spigot servers! Supports SFTP!
https://www.spigotmc.org/resources/ebackup-simple-and-reliable-backups-for-your-server-supports-ftp-sftp.69917/
GNU General Public License v3.0
54 stars 16 forks source link

session.lock warnings, backups not complete. #31

Closed IonizedBacon closed 2 years ago

IonizedBacon commented 3 years ago

Ebackup 1.2.0 Paper 261 Windows install

Recently started seeing the following warnings and error about files being locked by other processes. Nothing has changed recently other then paper updates.

[12:02:36 ERROR]: Nag author: 'EspiDev' of 'eBackup' about the following: This plugin is not properly shutting down its async tasks when it is being shut down. This task may throw errors during the final shutdown logs and might not complete before process dies.

[04:00:00 INFO]: [eBackup] Starting backup... [04:00:00 WARN]: A manual (plugin-induced) save has been detected while server is configured to auto-save. This may affect performance. [04:00:01 INFO]: [eBackup] Backing up world world world... [04:01:19 WARN]: [eBackup] Error while backing up file world/session.lock, backup will ignore this file: The process cannot access the file because another process has locked a portion of the file [04:01:19 INFO]: [eBackup] Backing up world world_nether world_nether... [04:01:35 WARN]: [eBackup] Error while backing up file world_nether/session.lock, backup will ignore this file: The process cannot access the file because another process has locked a portion of the file [04:01:36 INFO]: [eBackup] Backing up world world_the_end world_the_end... [04:01:41 WARN]: [eBackup] Error while backing up file world_the_end/session.lock, backup will ignore this file: The process cannot access the file because another process has locked a portion of the file [04:01:41 INFO]: [eBackup] Backing up other files... [04:02:21 WARN]: [eBackup] Error while backing up file plugins/LuckPerms/luckperms-h2.mv.db, backup will ignore this file: The process cannot access the file because another process has locked a portion of the file [04:17:46 INFO]: [eBackup] Backup complete!

IonizedBacon commented 3 years ago

Not sure if this is helpful.

image

espidev commented 3 years ago

Sorry for the late response.

[12:02:36 ERROR]: Nag author: 'EspiDev' of 'eBackup' about the following: This plugin is not properly shutting down its async tasks when it is being shut down. This task may throw errors during the final shutdown logs and might not complete before process dies.

This issue either is caused by a backup being ongoing during a server shutdown, or something else that I missed, I'll have to look into it.

Recently started seeing the following warnings and error about files being locked by other processes.

I'm guessing you're using Windows? If a plugin or Paper has a file open, eBackup will throw that error because Windows will prevent it from opening the file as well. I can't really do anything about that unfortunately. The session.lock files are harmless, but the LuckPerms database file may need to be backed up separately.

espidev commented 2 years ago

closed to inactivity