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

SQLite locking prevents creating access tokens while api-gateway is running #68

Open
bcongdon opened this issue Aug 28, 2017 · 1 comment
Assignees

Comments

@bcongdon
Copy link
Member

To reproduce:

  1. Start the groot-api-gateway docker container
  2. Run a second version of the api-gateway container with the -r command to try to create a new access token.
  3. The operation fails, giving timeout as the error message.
    (Note that the both containers must share the same data volume to persist the clients.db file)

It seems like SQLite locks the database file, so it's not possible to create a new token while the api-gateway is running.

I feel like this is a bug with bolt, or our use of it. It might be due to how docker handles sharing files in volumes between containers, I haven't tried to do this locally.

@narendasan
Copy link
Member

Look at leveldb

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

No branches or pull requests

2 participants