Closed lexermal closed 1 year ago
I think I ran into the same issue: the website starts but when I ask for a password reset, it waits for ~25 seconds, then times out and displays the "An error occurred while processing your request." message mentioned in other issues (#427, #444). I reproduced the error on two host machines (Ubuntu 20.04, Fedora 34).
I tried debugging the problem. I exposed Postgres's port from the database container. This way, I could access Postgres:
psql -U mailman -h localhost -p 5432 mailmandb
I turned on the logging in Postgres but it didn't show any entries - presumably, the requests fail before reaching the DB.
I tried switching to MySQL by using docker-compose-mysql.yaml
but it exhibited the same issue. Here's the log entry in /opt/mailman/web/logs/uwsgi-error.log
(this location is for the host machine's file system):
01:08:52 [Q] ERROR reincarnated pusher Process-1:5 after sudden death
01:08:52 [Q] INFO Process-1:6 pushing tasks at 1686
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/usr/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 71, in execute
return self.cursor.execute(query, args)
File "/usr/lib/python3.8/site-packages/MySQLdb/cursors.py", line 209, in execute
res = self._query(query)
File "/usr/lib/python3.8/site-packages/MySQLdb/cursors.py", line 315, in _query
db.query(q)
File "/usr/lib/python3.8/site-packages/MySQLdb/connections.py", line 239, in query
_mysql.connection.query(self, query)
MySQLdb._exceptions.OperationalError: (2006, 'MySQL server has gone away')
I tried both release 0.3.11 and the main branch (9409942a316524b30120713b2888fd9c42c233e7). Please advise on how to work around this issue.
Can you try using 0.3.10 images using Postgres and see if you are getting the same error?
Closing due to inactivity.
Hello everyone,
Thanks to this repo I was able to set up mailman with docker!
The thing is just, I can't get my head around one tricky error. The startup page of mailman web is accessible but right after signing up or resetting my password after the first setup it ends up with "An error occurred while processing your request.".
I looked into uwsgi-error.log and it throws this error:
The connection to postgres works from all containers and all hosts are able to access mailman-core.
This is the docker-compose.yml file:
I hope you can help me, I'm out of ideas.