-
Notifications
You must be signed in to change notification settings - Fork 84
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
Exercise 2 of chapter 5 #27
Comments
can you post what commands are you running when you:
|
Sure. |
I can't see to repro this error: Built the container, and ran it as you said:
Ctrl+C & start again
It does fetch. Comma separated subreddits work as well:
You can see it works: Are the subreddits private or quarantined? It might not work if that's the case, but I am happy to test out if you mention them. For the SQLite, maybe the volume is shared with a previous run? Can you try with a fresh volume by removing the existing one
And then trying again? |
fwiw I added a commit to fix the subreddit lists not showing right 04410b6 |
I inspected the sqlite db using DBeaver, and it is not saving anything there. That should be the reason |
How did you examine the sqlite DB? |
using db beaver, you select the path to the database and connect, then you can make queries, and it didn't contain my sources even I restarted the container. |
I meant to ask how are you getting the location of the db. Are you doing a docker volume inspect on the database to determine the location? Can you try using a bind mount and see that the data gets saved? docker run --rm --name newsbot-sqlite -e NBT_ACCESS_TOKEN -v $HOME/newsbot-data:/data sathyabhat/newsbot-sqlite |
Hello, I finally knew why the volume wasn't working, the problem is the path inside the container, because in the book says that you must mount the volume like so: But the correct path to save the newsbot.db of the container is: I figured it out entering to bash and navigating to the data folder where the db is stored and using pwd. The full command would be: |
The data persistency doesn't work with the sqlite db, I followed the steps as the book said and didn't change anything of the code. When I stop de container and run it again, it doesn't recognize my subreddit source. Also it doesn't allow put a list of subreddits as sources, it only takes the last one.
The text was updated successfully, but these errors were encountered: