mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 08:56:02 +03:00
[GH-ISSUE #2286] Sorry an internal error occured #1565
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1565
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jamielsharief on GitHub (Jun 25, 2021).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2286
Ubuntu 20.04
I have just installed the software, and when trying to login for the first time, i get this screen after submitting the username and password.
@zQueal commented on GitHub (Jun 26, 2021):
Result of a 500 error. Unsure why. Can't seem to get this to work.
@tonioo commented on GitHub (Jun 28, 2021):
Can one of you enable debug traces and try again please? (set DEBUG to True inside settings.py and reload uwsgi)
@jamielsharief commented on GitHub (Jun 28, 2021):
I am guessing the problem is related to this fix #2285 , I am going to try again now. Is the detail of the 500 error logged somewhere?
@jamielsharief commented on GitHub (Jun 28, 2021):
Same problem again, i think some package that it needs is not available since i am installing it inside a lxd container. You should put here instructions how people can debug and restart uwsgi whatever that is.
@drlight17 commented on GitHub (Jun 28, 2021):
Hi. Just installed modoboa for the first time and faced this error. Temporary fixed this with setting USE_TZ to False in /srv/modoboa/instance/instance/settings.py file and /etc/init.d/uwsgi restart.
@jamielsharief commented on GitHub (Jun 28, 2021):
I just reinstalled and tested and it worked with your fix.
@tonioo commented on GitHub (Jun 28, 2021):
@drlight17 Could you provide a trace with DEBUG setting set to True?
@jamielsharief commented on GitHub (Jun 28, 2021):
@tonioo commented on GitHub (Jun 28, 2021):
Ok, this is an issue with the postgresql library. I've pushed a fix recently but it has not been released yet (
github.com/modoboa/modoboa@3835c3e953).Just ensure the installed psycopg2 library is <2.9.0
@drlight17 commented on GitHub (Jun 29, 2021):
My debug trace is the same as @jamielsharief. I've faced another set of troubles (with jquery and some others) so I decided to use something more heavy like mailcow.
@stale[bot] commented on GitHub (Aug 28, 2021):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@solick commented on GitHub (Aug 31, 2021):
I can confirm that setting USE_TZ to False works for me too.
@JettBurns14 commented on GitHub (Sep 2, 2021):
@drlight17 Your fix worked for me as well, thank you! I had just done a fresh install on Ubuntu 20.04.2 with the auto-installer and was disappointed to see it didn't work out of the box. Glad I can use Modoboa now!
@stale[bot] commented on GitHub (Nov 1, 2021):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@gianks commented on GitHub (Mar 15, 2022):
Upgrading 1.14.0 to 1.17.0 we are in the same situation... the error 500 is reported within the modoboa instance log file but there is no explanation of what is causing the issue.
How can I debug it?
@gianks commented on GitHub (Mar 15, 2022):
Btw the USE_TZ = False wordaround did not work.
@angeloluidens commented on GitHub (Jun 17, 2022):
Hi, after making a snapshot of my Modoboa server, on Debian 10 (buster, updated and upgraded), I tried to upgrade it from version 1.17.1 to 2.0.1, using 'python3 run.py --upgrade [domain]. I too encountered the same issue: Sorry An internal error occured.
The workaround: USE_TZ = False and restart the UWSGI, did not work.
@angeloluidens commented on GitHub (Jul 24, 2022):
Tried the "USE_TZ" fix a second time. It worked!
@coderexpress commented on GitHub (Feb 24, 2023):
Hope this helps anyone else who ran into this issue, the issue is from the script files not being updated.
PRIMARY_APPS = [
"amavis",
"fail2ban",
"modoboa",
"automx",
"radicale",
"uwsgi",
"nginx",
"opendkim",
"postfix",
"dovecot"
]
to this
PRIMARY_APPS = [
"amavis",
"modoboa",
"automx",
"radicale",
"uwsgi",
"nginx",
"opendkim",
"postfix",
"dovecot"
]
4) I restored the file installer.cfg from the backup directory and then ran:
sudo ./run.py --upgrade
worked like a charm!!
hope this help other frustrated users as I have been trying to update for a while.
Thank you for the developer!!!! I love Modoboa!!!
@mtlqc commented on GitHub (Apr 7, 2023):
Yep! Worked for me.
Thanks for sharing!
@Spitfireap commented on GitHub (Apr 7, 2023):
Just so you know, the installer has been updated and now includes a configuration update tool. No need for the workaround now, simply
git fetch && git pullwithin modoboa-installer thenpython run.py ....;)And to disable fail2ban, simply open installer.cfg and set
enabled =tofalse