mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 09:26:00 +03:00
[GH-ISSUE #3154] AttributeError 'NoneType' object has no attribute 'parameters' #1781
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#1781
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 @sleepingforest1024 on GitHub (Jan 2, 2024).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3154
Impacted versions
Steps to reproduce
Clean installed 2 times on Ubuntu Server with the commands below
and 1 time clean install with the instructions as shown in the LinuxBabe tutorial
Current behavior
After logging in, it shows...
If we click on "Forgot Password", then it will display this error:
We've tried to alter the settings below without success
Expected behavior
Work like a charm!
Video/Screenshot link (optional)
@HansHM commented on GitHub (Jan 4, 2024):
Here to.
Installed in various containers, Debian Ubuntu and also VM's.
All the time, the same error is reported.
Version 2.1.0 also
@HansHM commented on GitHub (Jan 7, 2024):
I did some digging.
tools.py line 258 in def get_global_parameter is calling guess_extension_name() in sysutils.py. This is because the app parameter is empty when calling get_global_parameter.
The problem is when def guess_extension_name() can't find a anything, he also returns None.
So from def guess_extension_name()
I am not a python programmer, so ik don't know how to debug if modname is set or anything.
@Spitfireap commented on GitHub (Jan 7, 2024):
Okay, thank you for the investigation. Could you post the list of the installed extensions in your venv ?
/srv/modoboa/env/bin/pip list@HansHM commented on GitHub (Jan 7, 2024):
Hello Spitfireap,
aiosmtplib 3.0.1
asgiref 3.7.2
async-timeout 4.0.3
attrs 23.2.0
bcrypt 4.1.2
caldav 1.3.6
certifi 2023.11.17
cffi 1.16.0
chardet 5.2.0
charset-normalizer 3.3.2
click 8.1.7
cryptography 41.0.7
defusedxml 0.7.1
dj-database-url 2.1.0
Django 4.2.9
django-ckeditor 6.7.0
django-filter 23.2
django-js-asset 2.2.0
django-otp 1.3.0
django-phonenumber-field 7.2.0
django-rename-app 0.1.5
django-reversion 5.0.9
django-rq 2.10.1
django-webpack-loader 2.0.1
django-xforwardedfor-middleware 2.0
djangorestframework 3.14.0
djangorestframework-simplejwt 5.3.1
dnspython 2.4.2
drf-nested-routers 0.93.5
drf-spectacular 0.27.0
feedparser 6.0.11
filelock 3.13.1
gevent 23.9.1
greenlet 3.0.3
html2text 2020.1.16
icalendar 5.0.11
idna 3.6
inflection 0.5.1
jsonschema 4.20.0
jsonschema-specifications 2023.12.1
lxml 5.0.0
modoboa 2.2.3
modoboa-amavis 1.5.1
modoboa-contacts 1.0.0
modoboa-postfix-autoreply 1.8.0
modoboa-radicale 1.7.0
modoboa-sievefilters 1.7.0
modoboa-webmail 1.9.0
oath 1.4.4
ovh 1.1.0
passlib 1.7.4
phonenumbers 8.13.27
pillow 10.2.0
pip 23.3.2
pkg_resources 0.0.0
progressbar33 2.4
psycopg 3.1.16
psycopg-binary 3.1.16
pycparser 2.21
PyJWT 2.8.0
pypng 0.20220715.0
python-dateutil 2.8.2
python-magic 0.4.27
pytz 2023.3.post1
PyYAML 6.0.1
qrcode 7.4.2
recurring-ical-events 2.1.2
redis 5.1.0b1
referencing 0.32.0
reportlab 4.0.8
requests 2.31.0
requests-file 1.5.1
rpds-py 0.16.2
rq 1.15.1
rrdtool 0.1.16
setuptools 57.5.0
sgmllib3k 1.0.0
sievelib 1.2.1
six 1.16.0
sqlparse 0.4.4
tldextract 5.1.1
typing_extensions 4.9.0
tzlocal 5.2
uritemplate 4.1.1
urllib3 2.1.0
vobject 0.9.6.1
x-wr-timezone 0.0.6
zope.event 5.0
zope.interface 6.1
@Spitfireap commented on GitHub (Jan 7, 2024):
Thanks ! Could switch DEBUG to True in /srv/modoboa/instance/instance/settings.py then
systemctl restart uwsgiand reload the page ? If you see an error, could you please post the whole trace back ?@HansHM commented on GitHub (Jan 7, 2024):
Hello Spitfireap,
here it is
AttributeError at accounts_login.pdf
@Spitfireap commented on GitHub (Jan 7, 2024):
Thank you ! I'm not sure where the issue comes from. Could you post the output of this command ?
sudo -u postgres -i psql -d modoboa -c "COPY (SELECT * FROM core_localconfig) TO '/tmp/localconfig.csv' WITH CSV DELIMITER ';' HEADER;" && cat /tmp/localconfig.csv@HansHM commented on GitHub (Jan 7, 2024):
root@mail:~# sudo -u postgres -i psql -d modoboa -c "COPY (SELECT * FROM core_localconfig) TO '/tmp/localconfig.csv' WITH CSV DELIMITER ';' HEADER;" && cat /tmp/localconfig.csv
COPY 0
id;api_pk;api_versions;site_id;_parameters;need_dovecot_update
@HansHM commented on GitHub (Jan 8, 2024):
Hello Spitfireap,
I installed al versions on a new Linux install. Always dovecot was already installed and modoboa asked every time if the folder vmail existed, and it was.
I did run a update and upgrade of the system. Now the output that you asked gave a need_dovecot_update. So i removed dovecot and reinstall modoboa.
Now i can login and don't see any error.