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

"attempt to write a readonly database" in ghcr.io/openflagr/flagr container #503

Closed
pdonovan-merit opened this issue Sep 19, 2022 · 3 comments

Comments

@pdonovan-merit
Copy link

After creating an instance of ghcr.io/openflagr/flagr 1.1.14, attempting to create a new flag results in "attempt to write a readonly database"

Attempting write operations on the demo flag yields the same result.

Expected Behavior

As with 1.1.13, we expect the UI to allow us to add and modify flags. The application/image does appear to work correctly with that version.

Current Behavior

image
This error is produced when we try to add a new flag.

Possible Solution

Steps to Reproduce (for bugs)

  1. Create and start a new instance of ghcr.io/openflagr/flagr:latest (1.1.14)
  2. Attempt to add a flag called "test"

Context

Your Environment

  • Version used (flagr version):
  • Server type and version:
  • Operating System and version (uname -a):
  • Link to your project:
michaeljs1990 added a commit to michaeljs1990/flagr that referenced this issue Oct 7, 2022
With adding the appuser when copying in the demo db the appuser doesn't have permission to write to it since docker defaults to adding this as root. This adds the demo db with the correct permissions. 

Closes openflagr#502 openflagr#503
marceloboeira pushed a commit that referenced this issue Oct 7, 2022
With adding the appuser when copying in the demo db the appuser doesn't have permission to write to it since docker defaults to adding this as root. This adds the demo db with the correct permissions. 

Closes #502 #503
@michaeljs1990
Copy link
Contributor

This can be closed out. Guess github doesn't let you close out multiple tickets with one Closes or I just did it wrong.

@ajbogh
Copy link

ajbogh commented Oct 30, 2022

@michaeljs1990 this might not have been published yet. Is that possible to do, or is there a workaround for this with 1.1.14?

@ajbogh
Copy link

ajbogh commented Oct 31, 2022

@zhouzhuojie this build requires your approval for the heroku deployment. Can you do this? It's currently blocking people from using the docker instance since the sqlite database is readonly. I've tried several workarounds without luck.

https://github.com/openflagr/flagr/actions/runs/3205461667/jobs/5238010792

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

4 participants