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

500 Internal Server Error #21

Open
rwanwork opened this issue Aug 19, 2022 · 0 comments
Open

500 Internal Server Error #21

rwanwork opened this issue Aug 19, 2022 · 0 comments

Comments

@rwanwork
Copy link

Hi,

I'm trying to get this work and similar to Issue #16, I'm encountering a "500 Internal Server Error". I ran it in non-daemon mode (i.e., without -d), and I'm getting lots of messages on the screen. I noticed this message before I accessed the site:

web_1       | mapped 802120 bytes (783 KB) for 10 cores
web_1       | *** Operational MODE: preforking ***
web_1       | /bin/sh: 1: docker: not found
web_1       | Failed getting docker IPs, using fallback values!
web_1       | WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x55f0e1053e60 pid: 27 (default app)
web_1       | *** uWSGI is running in multiple interpreter mode ***
web_1       | spawned uWSGI master process (pid: 27)
web_1       | spawned uWSGI worker 1 (pid: 61, cores: 1)
web_1       | spawned uWSGI worker 2 (pid: 62, cores: 1)
web_1       | spawned uWSGI worker 3 (pid: 63, cores: 1)
web_1       | spawned uWSGI worker 4 (pid: 64, cores: 1)
web_1       | spawned uWSGI worker 5 (pid: 65, cores: 1)
web_1       | spawned uWSGI worker 6 (pid: 66, cores: 1)
web_1       | spawned uWSGI worker 7 (pid: 67, cores: 1)
web_1       | spawned uWSGI worker 8 (pid: 68, cores: 1)
web_1       | spawned uWSGI worker 9 (pid: 69, cores: 1)
web_1       | spawned uWSGI worker 10 (pid: 70, cores: 1)
web_1       | subprocess 35 exited with code 1

Afterwards I accessed http://localhost:5000 and I got this message:

postgres_1  | 2022-08-19 11:17:32.171 UTC [28] FATAL:  password authentication failed for user "dna_sim"
postgres_1  | 2022-08-19 11:17:32.171 UTC [28] DETAIL:  Role "dna_sim" does not exist.
postgres_1  | 	Connection matched pg_hba.conf line 100: "host all all all scram-sha-256"
web_1       | [2022-08-19 11:17:32,172] ERROR in app: Exception on / [GET]
web_1       | Traceback (most recent call last):
web_1       |   File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3280, in _wrap_pool_connect
web_1       |     return fn()
...
web_1       |     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
web_1       | psycopg2.OperationalError: connection to server at "postgres" (172.30.0.3), port 5432 failed: FATAL:  password authentication failed for user "dna_sim"

I've tried both the default password stored in docker-compose.yml and test1337 from Issue #16.

I then started up the container and ran docker exec -it mesa_dna_sim_postgres_1 bash (as mentioned in Issue #16) to try to change the password and I got this:

bash-5.1# psql -U postgres
psql (14.5)
Type "help" for help.

postgres=# \password dna_sim
Enter new password for user "dna_sim": 
Enter it again: 
ERROR:  role "dna_sim" does not exist

so, it seems like this user does not exist? I'm not sure what I can do next... Any suggestions would be appreciated; thank you!

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

1 participant