Comments (10)
same problem here. after install can't access the webpage due to the "internal server error"....
from modoboa.
modoboa_pdfcredentials
shows up in your log. Please apply the specific instruction for 2.1.0.
from modoboa.
Having same problem, In my case uwsgi didn't restart.
To solve the problem, I have run systemctl restart uwsgi.service
from modoboa.
Same problem, Internal Server Error (500)
And the fix [adrians75] say, effectively not working.
Some solutions ?
I see error on debug mode (i just replace my domain by * ) :
Tue Dec 12 18:17:49 2023 - SIGINT/SIGQUIT received...killing workers...
Tue Dec 12 18:17:50 2023 - worker 1 buried after 1 seconds
Tue Dec 12 18:17:50 2023 - worker 2 buried after 1 seconds
Tue Dec 12 18:17:50 2023 - goodbye to uWSGI.
Tue Dec 12 18:17:50 2023 - VACUUM: unix socket /run/uwsgi/app/modoboa_instance/socket removed.
Tue Dec 12 17:17:50 2023 - *** Starting uWSGI 2.0.19.1-debian (64bit) on [Tue Dec 12 17:17:50 2023] ***
Tue Dec 12 17:17:50 2023 - compiled with version: 10.2.1 20210110 on 11 June 2021 09:08:33
Tue Dec 12 17:17:50 2023 - os: Linux-5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21)
Tue Dec 12 17:17:50 2023 - nodename: mail..
Tue Dec 12 17:17:50 2023 - machine: x86_64
Tue Dec 12 17:17:50 2023 - clock source: unix
Tue Dec 12 17:17:50 2023 - pcre jit disabled
Tue Dec 12 17:17:50 2023 - detected number of CPU cores: 2
Tue Dec 12 17:17:50 2023 - current working directory: /
Tue Dec 12 17:17:50 2023 - writing pidfile to /run/uwsgi/app/modoboa_instance/pid
Tue Dec 12 17:17:50 2023 - detected binary path: /usr/bin/uwsgi-core
Tue Dec 12 17:17:50 2023 - chdir() to /srv/modoboa/instance
Tue Dec 12 17:17:50 2023 - your processes number limit is 7637
Tue Dec 12 17:17:50 2023 - your memory page size is 4096 bytes
Tue Dec 12 17:17:50 2023 - detected max file descriptor number: 1024
Tue Dec 12 17:17:50 2023 - VirtualHosting mode enabled.
Tue Dec 12 17:17:50 2023 - lock engine: pthread robust mutexes
Tue Dec 12 17:17:50 2023 - thunder lock: disabled (you can enable it with --thunder-lock)
Tue Dec 12 17:17:50 2023 - uwsgi socket 0 bound to UNIX address /run/uwsgi/app/modoboa_instance/socket fd 3
Tue Dec 12 17:17:50 2023 - setgid() to 1000
Tue Dec 12 17:17:50 2023 - setuid() to 1000
Tue Dec 12 17:17:50 2023 - Python version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
Tue Dec 12 17:17:50 2023 - PEP 405 virtualenv detected: /srv/modoboa/env
Tue Dec 12 17:17:50 2023 - Set PythonHome to /srv/modoboa/env
Tue Dec 12 17:17:50 2023 - *** Python threads support is disabled. You can enable it with --enable-threads ***
Tue Dec 12 17:17:50 2023 - Python main interpreter initialized at 0x557d4e395fb0
Tue Dec 12 17:17:50 2023 - your server socket listen backlog is limited to 100 connections
Tue Dec 12 17:17:50 2023 - your mercy for graceful operations on workers is 60 seconds
Tue Dec 12 17:17:50 2023 - mapped 218808 bytes (213 KB) for 2 cores
Tue Dec 12 17:17:50 2023 - *** Operational MODE: preforking ***
Traceback (most recent call last):
File "./instance/wsgi.py", line 16, in
application = get_wsgi_application()
File "/srv/modoboa/env/lib/python3.9/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
django.setup(set_prefix=False)
File "/srv/modoboa/env/lib/python3.9/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/srv/modoboa/env/lib/python3.9/site-packages/django/apps/registry.py", line 124, in populate
app_config.ready()
File "/srv/modoboa/env/lib/python3.9/site-packages/modoboa_pdfcredentials/apps.py", line 13, in ready
from . import handlers
File "/srv/modoboa/env/lib/python3.9/site-packages/modoboa_pdfcredentials/handlers.py", line 8, in
from django.utils.translation import ugettext as _
ImportError: cannot import name 'ugettext' from 'django.utils.translation' (/srv/modoboa/env/lib/python3.9/site-packages/django/utils/translation/init.py)
Tue Dec 12 18:17:52 2023 - unable to load app 0 (mountpoint='') (callable not found or import error)
ue Dec 12 18:17:52 2023 - *** no app loaded. going in full dynamic mode ***
Tue Dec 12 18:17:52 2023 - spawned uWSGI master process (pid: 197462)
Tue Dec 12 18:17:52 2023 - spawned uWSGI worker 1 (pid: 197474, cores: 1)
Tue Dec 12 18:17:52 2023 - spawned uWSGI worker 2 (pid: 197475, cores: 1)
Traceback (most recent call last):
File "./instance/wsgi.py", line 16, in
application = get_wsgi_application()
File "/srv/modoboa/env/lib/python3.9/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
django.setup(set_prefix=False)
File "/srv/modoboa/env/lib/python3.9/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/srv/modoboa/env/lib/python3.9/site-packages/django/apps/registry.py", line 83, in populate
raise RuntimeError("populate() isn't reentrant")
RuntimeError: populate() isn't reentrant
Tue Dec 12 18:19:09 2023 - unable to load app 0 (mountpoint='mail..|') (callable not found or import error)
Tue Dec 12 18:19:09 2023 - --- no python application found, check your startup logs for errors ---
mail.**. [pid: 197475|app: -1|req: -1/1] 109.221.81.79 () {54 vars in 893 bytes} [Tue Dec 12 18:19:09 2023] GET /accounts/login/ => generated 21 bytes in 9 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
from modoboa.
Back to previous 2.1.0 temporarily : sudo ./run.py --version=2.1.0 mydomain.com
Next time i make a snapshot of the server before any updates!
from modoboa.
Hi @NeitsabTeguom,
It seems you are trying to perform an upgrade. Could you please check that you applied the specific upgrade instructions after your upgrade ?
As for @adrians75 and @redalert99 if it is indeed a fresh install : can you go to the modoboa-installer directory, type this command : git rev-parse HEAD
and post the result ? Also can you go to /srv/modoboa/instance/instance/settings.py
, set DEBUG to True
then restart uwsgi (systemctl restart uwsgi
) and reload the page ?
from modoboa.
I do it but not work
from modoboa.
New log : mail.example.com replaced :
Traceback (most recent call last):
File "./instance/wsgi.py", line 16, in
application = get_wsgi_application()
File "/srv/modoboa/env/lib/python3.9/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
django.setup(set_prefix=False)
File "/srv/modoboa/env/lib/python3.9/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/srv/modoboa/env/lib/python3.9/site-packages/django/apps/registry.py", line 83, in populate
raise RuntimeError("populate() isn't reentrant")
RuntimeError: populate() isn't reentrant
Wed Dec 13 22:08:18 2023 - unable to load app 0 (mountpoint='mail.example.com|') (callable not found or import error)
Wed Dec 13 22:08:18 2023 - --- no python application found, check your startup logs for errors ---
mail.example.com [pid: 1316687|app: -1|req: -1/5] 109.221.81.79 () {54 vars in 1008 bytes} [Wed Dec 13 22:08:18 2023] GET /core/ => generated 21 bytes in 3 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
from modoboa.
Having same problem here :
SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = [
'mail.domainwashere.com',
]
CSRF_TRUSTED_ORIGINS = ['https://*.domainwashere']
what logs file should be checked?
from modoboa.
If you are hitting this problem and you are doing an upgrade, you need to make certain you haven't missed any of the Upgrade Specific Instructions between your old version and the new.
Pay special attention to removing old extensions that have been moved into core. I had to remove modoboa_pdf_credentials and modoboa_stats from MODOBOA_APPS, because these are both replaced with new core versions. Once I did both of them the 500 errors went away.
You will have a much easier time finding the error if you enable debug mode (but do NOT leave it on in production):
cd /srv/modoboa/instance
cp settings.py settings.bak.py
sed -i -e 's/DEBUG = False/DEBUG = True/' settings.py
systemctl restart uwsgi
Then if you trigger the error you should get some clues about what is wrong, or at least which extension is responsible.
The old extensions are not compatible with the rest of the newer code, which causes the 500 errors.
Don't forget to turn off debug mode afterwards!
cd /srv/modoboa/instance
sed -i -e 's/DEBUG = True/DEBUG = False/' settings.py
systemctl restart uwsgi
from modoboa.
Related Issues (20)
- Can not access inbox HOT 2
- Mail stats not working in fresh install of 2.2.4 HOT 9
- Failed to decode some part of the version of modoboa HOT 5
- Broken links in API documentation HOT 1
- Allow programming emails HOT 3
- dovecot need restart after LE certificate reissue HOT 3
- bootstrap-datetimepicker requires jQuery to be loaded first
- DJango and deprecated functions HOT 3
- TypeError at /contacts/ string indices must be integers
- I can't send E-Mails
- latest installer didnt install v env for auto mx HOT 3
- After 30 domains I can't access domains at the bottom of the page HOT 4
- AuthenticationError at / HOT 1
- Upgrade from 2.0.3 to 2.0.4 error HOT 1
- Easy Install Fails to configure nginx HOT 1
- 'Calendars' tab from webmail fails with "Error reading /srv/modoboa/...../modoboa_radicale/webpack-stats.json. Are you sure webpack has generated the file and the path is correct?" HOT 3
- password_scheme [ '"sha512crypt" is not a valid choice.' ] HOT 4
- dkim_keys_storage_dir [ "Directory non-writable" ] HOT 1
- Problems after upgrade 2.0.4 to 2.1.0 HOT 11
- Alias of mainbox is not represents in UI HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modoboa.