Skip to content
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

docker #3

Open
scavru opened this issue Jan 29, 2024 · 2 comments
Open

docker #3

scavru opened this issue Jan 29, 2024 · 2 comments

Comments

@scavru
Copy link

scavru commented Jan 29, 2024

Good afternoon, can you tell me where in the prebuild docker container is the tgreddit folder, where to put config.
To make it work, I manually wrote the path to the config, but...
2024-01-29 17:28:34 [2024-01-29T14:28:34Z ERROR tgreddit::config] failed to read config: No such file or directory (os error 2) 2024-01-29 17:28:44 Error: error connecting to database 2024-01-29 17:28:44 2024-01-29 17:28:44 Caused by: 2024-01-29 17:28:44 0: unable to open database file: /data/data.db3 2024-01-29 17:28:44 1: Error code 14: Unable to open the database file

@raine
Copy link
Owner

raine commented Jan 29, 2024

Hello. Can you specify what you are running exactly?

I think the error suggests that you would have to provide a volume at /data when you run the image, so that the program can write the database file.

@scavru
Copy link
Author

scavru commented Jan 29, 2024

I run There's a prebuilt Docker image with dependencies included at [rainevi/tgreddit](https://hub.docker.com/repository/docker/rainevi/tgreddit). I add redacted https://github.com/raine/tgreddit/blob/master/config.example.toml in environment docker container config.toml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants