mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 01:16:01 +03:00
[GH-ISSUE #3299] An internal error occured - KeyError at /webmail/ 'password' #1826
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#1826
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 @TSKNF on GitHub (Aug 8, 2024).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3299
Originally assigned to: @tonioo on GitHub.
Impacted versions
Steps to reproduce
Step 1: Create a Debian 12 LXC container in Proxmox 8.2.1.
Step 2: Install Modoboa according to the instructions
Step 3: Create a simple user
Current behavior
If you now log in with this user everything seems to work but if you click on webmail you get this error message:
"Sorry An internal error occured."
An image of the error message with Debug True:
"KeyError at /webmail/ 'password'"
This message appears during setup:
"User dovocot already exists, skipping creation but please make sure the /srv/vmail directory exists."
When I try to delete a user, I get this error message:
Expected behavior
The webmail interface should work without errors.
Deleting accounts should also work without errors.
There should not already be a user with the name dovocot.
@VladislavGatsenko commented on GitHub (Aug 10, 2024):
same error
@nadihighlander commented on GitHub (Aug 13, 2024):
Hi
debian 11 , clean install (postwhite is not installed)
Database Type: PostgreSQL
Modoboa: 2.3.0
installer used: Yes
Webserver: Nginx
same error
calendar and contacts are ok
@ghost commented on GitHub (Aug 13, 2024):
Getting similar error. Install seems OK. After creating a domain and user in admin, when switching to added user, the webmail errors - first with a generic problem. I switched into debug and got this. I had read something a while back about no default session variable being set, but it was from 2015.
<html>KeyError at /webmail/
@theitmachine commented on GitHub (Aug 13, 2024):
Same error as donhalloway
Same versions. other pages all appear fine.
`<html>
Name | Installed version | Last version | Description -- | -- | -- | -- Modoboa | 2.3.0 | 2.2.4 | The core part of Modoboa Amavis frontend | 1.5.1 | 1.5.0 | Simple amavis management frontend Contacts | 1.1.2 | 1.1.2 | Address book Radicale management | 1.7.2 | 1.7.2 | Management frontend for Radicale, a simple calendar and contact server. Webmail | 1.9.0 | 1.9.0 | Simple IMAP webmail </html>`@TSKNF commented on GitHub (Aug 13, 2024):
That makes me confident that we can solve the problem.
The message in the setup that a Dovecot user already exists is irrelevant. I named the user differently in the setup. The message did not appear but the result was the same.
Whether MariaDB or Postresql is used makes no difference.
Can someone tell me if modoboa supports ipv6 only?
@VladislavGatsenko commented on GitHub (Aug 14, 2024):
By the way, connecting external clients doesn't work either. Who has the same thing?
And file2ban service starts with an error
@Spitfireap commented on GitHub (Aug 14, 2024):
The password thing on the webmail is logic, we need to push an update for webmail since we've added oauth2 login.
@VladislavGatsenko the external client should work though. Can you add detail on this error ?
@ghost commented on GitHub (Aug 14, 2024):
Excellent news. Is there a way that I can update the webmail code once it is finished? (or can I be a tester?)
@Spitfireap commented on GitHub (Aug 14, 2024):
The update will be fairly easy to apply.
I think that the hotfix will consist in asking the user password the first time you open the webmail for the session before we've got time to fully implement oauth2 flow (unless @tonioo gets more time to work on that :D ). I'll have time to work on this hotfix this weekend.
@ghost commented on GitHub (Aug 14, 2024):
Thanks, I have been a longtime django user, new to modoboa, so am anxious to start using it.
@Spitfireap commented on GitHub (Aug 18, 2024):
Ok can those affected by the issue try this :
sudo -u modoboa -i bash/srv/modoboa/env/bin/pip install modoboa-webmail==1.9.1b1systemctl restart uwsgiTo revert do all the steps but instead of 1.9.1b1 put 1.9.0 :)
@ultr41337h4xor commented on GitHub (Aug 19, 2024):
Same issue here I believe. I am also on Debian 12, used the run.py --upgrade script to update my installation. After the upgrade, I've noticed the new interface is used as default, however I can't log in (Internal Server Error when I enter my login data). Also can't send any emails from an external client.
Tried it, didn't help, unfortunately.
@Spitfireap commented on GitHub (Aug 19, 2024):
This is not the same issue. This issue is about strictly the webmail.
Please check the specific upgrade instructions for 2.3.0
@ghost commented on GitHub (Aug 19, 2024):
Tried it, went into webmail and now got a screen asking for password, so progress, then got "authentication error".
@jrosier commented on GitHub (Aug 25, 2024):
Works for me!