-
Notifications
You must be signed in to change notification settings - Fork 10
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
Server error first login as admin using docker #59
Comments
Have you defined the DATABASE_URL environment variable for the running container? Is there a database created for the project? |
I've used the defaults, so it's possible it's wrong. The readme seems to suggest that running "docker build -t dbca-wa/biosys ." should have built the database? There were no errors when running the build. Do I need to run another script to fill the database?
|
Note that docker build biosys only builds the biosys docker image locally. It does nothing related to generating the database. Thereafter the image needs to be run as a container with environment variables, e.g. docker container run --publish 8080:8080 --env DEBUG=True --env DATABASE_URL=postgis://user:pass@host/database biosys |
Belay what I said earlier: reviewing the Dockerfile, it runs a bunch of commands on build (including piping env vars into a .env file). This is contrary to how the Dockerfile should be written (which should be able to build the application "stateless", with no environment vars defined), and is not according to our (DBCA) current practices. You may need to pester the author of that file about the issue (via git blame). |
I have ended up using the normal (non-docker) python setup and it works fine. |
I have tried to get the docker branch version up and running for testing using docker desktop for Mac. I am able to start Biosys no problem, however logging in using admin/admin username and password I get a server error. The console outputs the following error multiple times:
Any clue as to what the issue is?
The text was updated successfully, but these errors were encountered: