V64 Upgrade 502 Bad Gateway

Hi.

I just upgraded to v64 and when I tried the admin page, I received 502 Bad Gateway.
I logged in the server and ran sudo systemctl status mailinabox:
mailinabox.service - Mail-in-a-Box System Management Service
Loaded: loaded (/etc/systemd/system/mailinabox.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2023-10-09 21:34:24 PDT; 57s ago
Process: 1380 ExecStart=/usr/local/lib/mailinabox/start (code=exited, status=3)
Main PID: 1380 (code=exited, status=3)
CPU: 430ms

Oct 09 21:34:24 start[1390]: from .app import Flask as Flask
Oct 09 21:34:24 start[1390]: File “/usr/local/lib/python3.10/dist-packages/flask/app.py”, line 30, in
Oct 09 21:34:24 start[1390]: from werkzeug.urls import url_quote
Oct 09 21:34:24 start[1390]: ImportError: cannot import name ‘url_quote’ from ‘werkzeug.urls’ (/usr/local/lib/python3.10/dist-packages/werkzeug/urls.py)
Oct 09 21:34:24 start[1390]: [2023-10-09 21:34:24 -0700] [1390] [INFO] Worker exiting (pid: 1390)
Oct 09 21:34:24 start[1380]: [2023-10-09 21:34:24 -0700] [1380] [ERROR] Worker (pid:1390) exited with code 3
Oct 09 21:34:24 start[1380]: [2023-10-09 21:34:24 -0700] [1380] [ERROR] Shutting down: Master
Oct 09 21:34:24 start[1380]: [2023-10-09 21:34:24 -0700] [1380] [ERROR] Reason: Worker failed to boot.
Oct 09 21:34:24 systemd[1]: mailinabox.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
Oct 09 21:34:24 systemd[1]: mailinabox.service: Failed with result ‘exit-code’.

Anyone know how to resolve this issue?

Thank you in advance!

Searched and found the following post by matidau. I tried the recommendation and the issue is RESOLVED!

Steps I took from matidau’s post:
sudo apt list python*blinker*
sudo apt remove python3-blinker
sudo /usr/local/lib/mailinabox/env/bin/pip install --upgrade rtyaml "email_validator>=1.0.0" "exclusiveprocess" flask dnspython python-dateutil expiringdict gunicorn qrcode[pil] pyotp "idna>=2.0.0" "cryptography==37.0.2" psutil postfix-mta-sts-resolver b2sdk boto3
re-run Mail-in-a-Box setup.

Full post can be found here:

Thank you matidau!

Best regards

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.