Plugin Name: @nocobase/plugin-backups
Display Name: Backup manager
Version: 1.6.4 & 1.6.19
My understanding of this plugin is to allow us to create backup and restore a backup copy in case of recovery required.
I created a backup copy, deleted few collections under Data sources, performed the restore action, but the deleted collections are not restored.
Did anyone experience the same?
Wonder if I understand the plugin’s functionality wrongly or my steps were wrong?
Hello, your steps and expectations for this plugin’s behavior are correct, it seems the restoration was not successful.
May I ask if you can provide the following information to help us further investigate the problem you are facing?
Did the UI display any error messages when you restored?
Is there any error in the server logs?
Can you provide the system logs of that day for us to analyze? (You can go to the Logger menu to download, need logs starting with system_ and request_)
I found the following error in system_error file:
[error] Error decrypting file: error:1C80006B:Provider routines::wrong final block length. module=backups submodule=restore
Then I just noticed that I overlooked the “Restore password” setting under “Settings” tab folder, which I thought mainly for the setup of the backup schedules. I was entering the account login password and system didn’t prompt that it was wrong, so I thought the process was started and running long. When I retry the restore process with blank password, as I didn’t assign any “Restore password”, the process completed quick and everything works well.
It seems like the plugin module didn’t handle the exception properly, hence the error was not captured and displayed on UI.
Suggestion: enhance the plugin to handle the exception properly.
The connection was running long until web server terminated the connection due to timeout limit reached, and the error prompt was auto closed causing the users not aware of the error occurred.
Suggestion: not to auto close the error prompt so that users will definitely see error prompt.