BoxError Database error
-
I'm gettin gthis error on repeat:
2025-01-22T13:47:11.689Z box:server ========================================== 2025-01-22T13:47:11.690Z box:server Cloudron 8.2.3 2025-01-22T13:47:11.690Z box:server ========================================== 2025-01-22T13:47:11.690Z box:platform initialize: start platform 2025-01-22T13:47:11.721Z box:tasks stopAllTasks: stopping all tasks 2025-01-22T13:47:11.722Z box:shell tasks /usr/bin/sudo -S /home/yellowtent/box/src/scripts/stoptask.sh all 2025-01-22T13:47:11.752Z box:shell All tasks stopped 2025-01-22T13:47:11.765Z Error: Error starting server: {"name":"BoxError","reason":"Database Error","details":{},"message":"ER_NO_SUCH_TABLE: Table 'box.locks' doesn't exist","nestedError":{"code":"ER_NO_SUCH_TABLE","errno":1146,"sqlMessage":"Table 'box.locks' doesn't exist","sqlState":"42S02","index":0,"sql":"DELETE FROM locks"},"code":"ER_NO_SUCH_TABLE","sqlMessage":"Table 'box.locks' doesn't exist"} 2025-01-22T13:47:11.765Z at main (/home/yellowtent/box/box.js:58:41) 2025-01-22T13:47:11.765Z at process.processTicksAndRejections (node:internal/process/task_queues:95:5) -
Tried to restor the box.mqysl database in mysql via the instructions here:
https://docs.cloudron.io/troubleshooting/Now running into more issues:
there was this error while trying to import that database:
ERROR 1046 (3D000) at line 22: No database selectedAnd currently having this issue with starting box:
2025-01-22T14:15:44.936Z box:server ========================================== 2025-01-22T14:15:44.937Z box:server Cloudron 8.2.3 2025-01-22T14:15:44.937Z box:server ========================================== 2025-01-22T14:15:44.937Z box:platform initialize: start platform 2025-01-22T14:15:44.968Z box:tasks stopAllTasks: stopping all tasks 2025-01-22T14:15:44.968Z box:shell tasks /usr/bin/sudo -S /home/yellowtent/box/src/scripts/stoptask.sh all 2025-01-22T14:15:45.003Z box:shell All tasks stopped 2025-01-22T14:15:45.023Z Error: Error starting server: {"name":"BoxError","reason":"Database Error","details":{},"message":"ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client","nestedError":{"code":"ER_NOT_SUPPORTED_AUTH_MODE","errno":1251,"sqlMessage":"Client does not support authentication protocol requested by server; consider upgrading MySQL client","sqlState":"08004","fatal":true},"code":"ER_NOT_SUPPORTED_AUTH_MODE","sqlMessage":"Client does not support authentication protocol requested by server; consider upgrading MySQL client"} 2025-01-22T14:15:45.023Z at main (/home/yellowtent/box/box.js:58:41) 2025-01-22T14:15:45.023Z at process.processTicksAndRejections (node:internal/process/task_queues:95:5) -
J joseph marked this topic as a question on
-
well that did something weird...
it had me setup a new box but somehow the apps are still running in the background...
Maybe I lost the backup I had tried to recover somehow?
When does the migration run? what is that a part of?
I had recently upgraded Cloudron...
I want to get my old admin settings back but the recovery instructions seem to be failing...
-
well that did something weird...
it had me setup a new box but somehow the apps are still running in the background...
Maybe I lost the backup I had tried to recover somehow?
When does the migration run? what is that a part of?
I had recently upgraded Cloudron...
I want to get my old admin settings back but the recovery instructions seem to be failing...
-
@Supaiku said in BoxError Database error:
well that did something weird...
do you have the output? it won't set up a new box unless the database is empty.
@joseph the dashboard had me reconfigure the domain, and then the box was empty - no apps or settings - meanwhile everything was running in the background.
I've tried recovering the last database dump, and also from backups, but the error I was getting was interrupting it.
I needed to add the database name into the mysql dump file manually, but now i'm getting:
2025-01-23T13:50:49.964Z box:server Cloudron 8.2.3 2025-01-23T13:50:49.964Z box:server ========================================== 2025-01-23T13:50:49.964Z box:platform initialize: start platform 2025-01-23T13:50:49.994Z box:tasks stopAllTasks: stopping all tasks 2025-01-23T13:50:49.994Z box:shell tasks /usr/bin/sudo -S /home/yellowtent/box/src/scripts/stoptask.sh all 2025-01-23T13:50:50.039Z box:shell All tasks stopped 2025-01-23T13:50:50.050Z Error: Error starting server: {"name":"BoxError","reason":"Database Error","details":{},"message":"ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client","nestedError":{"code":"ER_NOT_SUPPORTED_AUTH_MODE","errno":1251,"sqlMessage":"Client does not support authentication protocol requested by server; consider upgrading MySQL client","sqlState":"08004","fatal":true},"code":"ER_NOT_SUPPORTED_AUTH_MODE","sqlMessage":"Client does not support authentication protocol requested by server; consider upgrading MySQL client"} 2025-01-23T13:50:50.050Z at main (/home/yellowtent/box/box.js:58:41) 2025-01-23T13:50:50.050Z at process.processTicksAndRejections (node:internal/process/task_queues:95:5) -
Ok, it seemed running the /home/yellowtent/box/setup/start.sh to trigger the migration after restoring the database (because of the ERROR 1046 (3D000) at line 22: No database selected i needed to add these two lines to the dump file:
CREATE DATABASE box; USE box;Then it was able to backup the database and run the migration.
-
J joseph has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login