mirror of
https://github.com/slurdge/goeland.git
synced 2026-11-11 21:02:30 +00:00
[GH-ISSUE #213] Getting a daily digest from a Ghost blog? #37
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: slurdge/goeland#37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Wobak on GitHub (Jun 29, 2024).
Original GitHub issue: https://github.com/slurdge/goeland/issues/213
Hello,
I'm probably a bit stupid, but I can't get goeland to send emails on a regular basis when new entries appear in the rss feed.
Here is the config part that I used :
Docker compose :
Config.toml relevant parts :
I created a first blog entry, and then restarted the container, and I got the email. Great news ! But now, I added 2 more articles and no email was sent (after 48 hours). I restarted the container, got 3 emails. Restarted it again, got 3 emails again. I don't get why no goeland.db is created or why if I keep the container running, no email is sent.
Can you help me understand what's going on?
Thanks,
@slurdge commented on GitHub (Jun 29, 2024):
Yes,
I think it comes from 2 things:
I think with these two changes, it should work as you expect.
If you are inclined, I would welcome a full example so I will put it into the documentation for docker. Thanks !
@Wobak commented on GitHub (Jun 29, 2024):
Thank you for your prompt answer.
What format should the goeland.db be created? Is there a command I could use to generate it (I would have expected the container to create it, and then I could copy it and mount it, but when I do a
find / -name goeland.dbin the container, nothing shows up, so I'm assuming it's not created at all.Do you have documentation around the cron= line ? I want to understand how much control I have on that ?
Also, can I manually insert post entries in the goeland.db ? I've already spammed my contacts more than necessary with the existing 4 first posts (I guess I could change the email_to for the goeland.db to be populated, but I'd like to have a bit more control :))
Happy to provide the end config & setup once everything works fine if you want to !
@slurdge commented on GitHub (Jun 29, 2024):
I would too. I think this is a weakness, it would be better IMHO to either mount a folder and then instruct goeland to put the db inside it (no need to copy from container), or better yet, goeland should work with 0 byte initial db (that would be created by the bind I guess).
As for your immediate problem, try to put
database = <pathtoamountedfolder/goeland.db>and see if it gets created/correctly mounted. If not, i would have to try it on my side.Basically any cron syntax, e.g.:
No, and it would be difficult. However you can "populate" it by making the email_to empty and it should mark the entries as seen. I have too "spammed" by friends :-). The tricky part is that you would need to know the key that is used for the db.
I guess I could either add:
@Wobak commented on GitHub (Jun 29, 2024):
So I tried :
And then :
in the config.toml.
Nothing appeared in the folder, so I did a touch of goeland.db in that folder, with a chmod 777, and size remained to 0 after restarting the container.
Not sure what would be the next step. Is there a log I could look at (nothing relevant in docker compose logs despite being in debug mode)?
@slurdge commented on GitHub (Jun 29, 2024):
Ok I tried to recreate it on my side. I have the following config:
And I run with the following command line (note the '' on windows):
docker run -v .\data:/data -v .\config.docker.toml:/data/config.toml --rm slurdge/goelandIt seems to work as expected. So I'm not sure what's different in your scenario. It may be that goeland doesn't autocreate folders, but the bind mount should do so ?
@Wobak commented on GitHub (Jun 29, 2024):
Hmmm could it be due to permissions due to windows settings ?
I've put UID 1000 as the owner of the config.toml and the data folders, and still nothing happens when it comes to database creation.
Isn't there a goeland command I could use in the container to generate it ?
Current docker compose :
config.toml:
Folders:
@slurdge commented on GitHub (Jun 30, 2024):
You are right this is a right problem.
If you run with debug flags, you'll see (without changing owner):
time="2024-06-30T09:07:34Z" level=error msg="cannot open database: error opening seen database /data/goeland.db: open /data/goeland.db: permission denied"That being said, if I do the following:
The database is created. I think you are almost there ! I now realize documentation for docker is severely lacking...
I would suggest to try exactly as my steps and then try to convert it to docker compose, sometimes docker compose is doing strange stuff behind the scenes.
@Wobak commented on GitHub (Jun 30, 2024):
Hello,
Unfortunately, behaves the same with a docker run, and no database created. I tried moving to a different folder, doing a new Dockerfile with adding a VOLUME [ "/data" ] into it, using a docker compose volume instead of docker local folder and nothing worked. I'm going to try and run it from a different server to see if I can find another difference.
Also I don't have the error message even with the debug log. Are you running the 0.18.3 version or are you running a dev branch in your example?
(Sinon je suis français aussi, je sais pas si tu veux qu'on essaye de debug ça par un autre moyen que des échanges sur github même si on pourrait y mettre le résultat final).
@slurdge commented on GitHub (Jun 30, 2024):
However - I almost only use debian.
FR: Oui on peut tenter un autre canal, plutot vocal/partage d'écran ?
@slurdge commented on GitHub (Jun 30, 2024):
My guess if you don't have any message is that even the config file isn't the correct one...
@Wobak commented on GitHub (Jun 30, 2024):
Same version here :
FR: discord? J'ai le même @ que sur github si tu veux m'ajouter. Sinon je te laisse proposer un autre moyen :)
@Wobak commented on GitHub (Jul 1, 2024):
Ok so the issue lied in the config.toml file. I re-generated one from scratch, changed to match my blog URL and email settings and now it works fine.
Thanks for all the help !
[GH-ISSUE #213] Getting a daily digest from a Ghost blog?to [GH-ISSUE #213] Getting a daily digest from a Ghost blog?