Troubles when restoring sharkey backup

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.16
What app is this about: Sharkey

Describe your issue

I had some troubles with sharkey. So I tried to delete the app and restore it from a “known good” previous backup.
It started the “first run” process to create an admin account but when I tried to use my account, it kept making an error.
So I tried to create a new admin account and it worked. But huge problem, my old account isn’t there at all. The server is empty, nothing there from the backup.

Share relevant logs or error messages

I doubt the yunopaste is useful in my case, but here goes nothing :

Here is the error code I get when trying to log with pre-existing admin account :


I tried to restore an older backup and got this log :

So the problem is the account is already there… How could I skip the admin creation process ?

It appears the restore of the Sharkey app did not completely restore the user data and triggered the original setup again, overwriting or skipping over the admin account you had already created. Since your old account is most likely still in the database but not recognized due to the “first run” triggering the creation of a new account, you may have to disable the initial setup flag manually or restore the database separately. If you want to avoid the admin creation process, look through the Sharkey config files (probably located in /var/www/sharkey or a .env` file) to find something like SETUP_COMPLETE or the like and set it to true. Also, take a look at the logs closely to see if the database from the backup was restored correctly.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.