mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 09:26:00 +03:00
[GH-ISSUE #1547] can't create identities (new fresh install with apache) #1217
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#1217
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 @JayBeRayBearGun on GitHub (Aug 5, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1547
Hi all,
Subject says it all. No identities can be created. I am using appache currently and will also test it with nginx and report here.
cheers,
JBR
Impacted versions
Steps to reproduce
Current behavior
No result. The dialog windows with the 'Submit' button stays on screen.
Expected behaviour
Create an identity (i.e. user in this case)
Javascript Console, output
@JayBeRayBearGun commented on GitHub (Aug 5, 2018):
Aha,.. using nginx it works,... Could it be that apache can't access the pdfcredentials directory perhaps?
How do I fix this if this indeed is the case? Add a corresponding directory stanza? (use an Alias?)
@JayBeRayBearGun commented on GitHub (Aug 5, 2018):
Using apache to delete the just created identity I get this response at the top of the browser:
This does not happen with nginx. It just deletes as it's supposed to do.
@JayBeRayBearGun commented on GitHub (Aug 5, 2018):
PS: the apache.conf already contains this,...
@tonioo commented on GitHub (Aug 7, 2018):
@JayBeRayBearGun Looks like the user running apache has not the permission to run doveadm.
@JayBeRayBearGun commented on GitHub (Aug 7, 2018):
Hi Antoine,
Thanks for the response.
That would be www-data the same user as nginx is using. What else could it be? Could it be some missing or disabled module perhaps?
How can I test this? By the way I tried the DEBUG=True but where do I find the output? In the browser?
JBR
@tonioo commented on GitHub (Aug 7, 2018):
Look at this: http://modoboa.readthedocs.io/en/latest/configuration.html#host-configuration (check your sudoers file).
@JayBeRayBearGun commented on GitHub (Aug 7, 2018):
That is something I suspected initially due to the message generated in the browser:
However the /etc/sudoers.d/ already contains a file named modoboa with this content:
This is correct I presume when you have used the automated installer, right?
@tonioo commented on GitHub (Aug 7, 2018):
Yes, it is correct because uwsgi runs as modoboa. Since apache runs as www-data, you can update this line and replace modoboa by www-data.
@JayBeRayBearGun commented on GitHub (Aug 7, 2018):
Hmm,.. did as directed. Restarted webserver, uwsgi etc. Also turned DEBUG=True no succes no output
@JayBeRayBearGun commented on GitHub (Aug 7, 2018):
Another unrelated thing i noticed is that apache and nginx apparentlyt use different selfsigned certificates. Eventually I want to remedy this by employing a letsencrypt certificate (for both). In the end though when all works I'd like to switch to apache which i know better :)
@tonioo commented on GitHub (Sep 16, 2018):
@JayBeRayBearGun Any news?
@ByteSizedMarius commented on GitHub (Feb 11, 2021):
Sorry for bumping this 3yr old thread, but I had the exact same problem and as this is the first resource you find on google, I would like to maybe help the next desperate person searching for the answer.
My problem was that the www-data user didnt have any perms for the /srv/modoboa/pdfcredentials/ directory. chowning it/ giving it perms manually fixed it for me.
@ksaadDE commented on GitHub (Apr 21, 2021):
Same weirdity occured here. I did the same. In my case chmod 755 -R /srv/modoboa/pdfcredentials was NOT enough.
Sadly it's so annoying you need 7777 otherwise the admin panel won't create the user (why ever!)