-
-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"no such table: tasks" when adding a new item #666
Comments
Hey, can you try deleting |
Hi, thanks for your answer. I tried that fix, but unfortunately it did not work. queue.db was indeed recreated but is still empty. Don't know if it's important, but the database was not recreated during container restart but after I tried to add a new item. |
I am getting this error as well on a fresh install. I tried the removal of queue.db and result is the same |
hmmm, that's unexpected. The |
Can you also share your compose file and redacted env file? |
Sure. I deleted queue.db once again and here are the logs of "hoarder-web-1" and "hoarder-chrome-1" (I don't know which one is relevant here). hoarder-web-1:
hoarder-chrome-1:
Once again, I don't if it's important, but a few seconds after restart I get this error several times in hoarder-web-1 container:
Here is docker-compose.yml (I didn't change anything from the file linked in installation doc):
And here is .env (I just removed next url and both secret keys):
At that time, container is restarted since a few minutes, I did not try to connect to hoarder and queue.db is still missing in data repository. |
yeah clearly there's something wrong here. There are no logs coming from the worker job which explains why the queue db was not getting initialized. The corepack errors does seem relevant yeah. I'll need to debug this further and think I have some idea of what might be going wrong here. |
I have a repro, will send a fix. |
Ok, managed to fix it in ae78ef5. If you can't wait for the next release, you can use the nightly image by changing |
Just tried with the latest version and it works perfectly fine. Thank you very much! |
tested with latest and error persists. My docker compose is below. Worth noting I also attempted with the latest docker-compose.yml from here and wiping out everything and starting fresh.
|
@stayupthetree did you try the nightly build? Also can you share the logs of the web container on startup? |
the error doesnt present until I try to add a bookmark or if I go to the admin settings
|
Ah found the problem. You're using the 'hoarder-app/hoarder-web' image while you should be using 'hoarder-app/hoarder' instead. The hoarder web images doesn't contain the worker container so it doesn't run the db migration |
Actually, you see to be using the old docker compose and some things have changed since then, check the upgrade guide of version 0.16. We don't need redis anymore and we don't need a separate container for the workers. |
And your main problem in the old docker compose is that both the web and worker containers had different mountpaths for You have |
Nailed it! Apologies for missing the upgrade guide! Fully upgraded to new docker compose and seems to working splendidly. Thank you sir! |
Describe the Bug
Hi,
I just installed the last version of Hoarder (v 0.19.0) following the steps here : https://docs.hoarder.app/Installation/docker/
Installation, sign up and log in worked just fine but when I'm trying to add a new item from the home page, I get a red alert saying "no such table: tasks". But when I refresh the page, the item appears.
By the way, I got a similar mistake when trying to delete an item, with a red alert bow saying "Something went wrong. There was a problem with your request." Mention that because I assume both errors could be linked.
I found another bug report with the same error and found out that my queue.db is also empty this might come from a database migration error, but I have no idea how to fix that since I'm pretty new to all of this.
Thanks for your help.
Steps to Reproduce
Expected Behaviour
I guess item should be immediately added and visible and no error should be shown.
Screenshots or Additional Context
No response
Device Details
No response
Exact Hoarder Version
v0.19.0
The text was updated successfully, but these errors were encountered: