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

unable to open database #2

Closed
danielezer opened this issue May 3, 2018 · 8 comments
Closed

unable to open database #2

danielezer opened this issue May 3, 2018 · 8 comments

Comments

@danielezer
Copy link

Hi,
I am using your registry UI and I see an error messages in stdout:
Error selecting from table: unable to open database file2018-05-03 10:42:53

what does this mean? should I be worried about that?

@stubbsd
Copy link

stubbsd commented May 3, 2018

Not sure how you're using it. I when running it on Kubernetes I needed to mount a volume at /opt/data as the system couldn't write to that location otherwise.

@danielezer
Copy link
Author

I am using it with a docker-compose file.
It should be able to write to that directory even without a volume. Do you think this is a permissions issue?

@roman-vynar
Copy link
Contributor

You need to mount any folder to the container’s /opt/data so the ui can write sqlitedb file. Also container runs from user nobody which should be able to write to the mounted folder.

@roman-vynar
Copy link
Contributor

roman-vynar commented May 4, 2018

If you don’t mount a folder to /opt/data the sqlite file will be written locally within container and this means you can’t run it with —read-only option.

@danielezer
Copy link
Author

ok, thank you!

@rvernica
Copy link

Might be good to add this to the README.

@roman-vynar
Copy link
Contributor

@rvernica I added a week ago.

@goelprateek
Copy link

Hi roman-vynar,
I am getting following error "events.event_listener - ERROR - Error creating a table: unable to open database file" even after mounting a folder with permission 777.

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

5 participants