mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-27 09:55:58 +03:00
[GH-ISSUE #778] Can't create users who are not "Superadmins" #700
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#700
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 @torbenwilkening on GitHub (Nov 9, 2015).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/778
Hallo,
i'm using modoboa 1.3.5 and I don't know why, but i can't create users who are not a superadmin.
Reseller, User & Domain admins doesn't work.
I turned on Debug in settings.py, the response after click on submit is:
"DoesNotExist at /admin/accounts/new/
Group matching query does not exist."
Do you know what can be wrong and how to solve? It was a clean installation, did I forget something at the configuration?
Thanks
@tonioo commented on GitHub (Nov 9, 2015):
Hi,
have you installed extensions with Modoboa ?
@torbenwilkening commented on GitHub (Nov 9, 2015):
so i install fresh with the installer (for lazy people :) ) and i installed with all extensions.. postfix/dovecot works fine, i can receive and send mails. The only problem is this..
@tonioo commented on GitHub (Nov 9, 2015):
The installation must have failed at some point. Could you try to run it once again using the --debug option ? (remember to remove the /srv/modoboa/instance directory before)
@torbenwilkening commented on GitHub (Nov 9, 2015):
uh I'm a bit afraid to do that, else the configuration is running perfect. I had also several problems with the installer, especially with write permissions etc. I changed the home_dir to a different one.
I believe it's something with amavis, but i'm not sure. Thats the traceback of my error 500:
http://pastebin.com/i1gX5uGP
@tonioo commented on GitHub (Nov 10, 2015):
Can you try to run the following commands please:
@torbenwilkening commented on GitHub (Nov 10, 2015):
Now it works! Don't know why exactly but i can create simple users and edit them too.
By the way, the installer had a few errors at my installation. I had to create the directory <home_dir>/instance/media by hand and chown it, else it failed. I also tried to change the <home_dir> variable in installer.cfg but it still puts some files in /srv/modoboa which I merged to my <home_dir>, maybe it's a hardcoded path somewhere?
But else everything was good, now I'm running the current modoboa release with every plugin, the installer helped a lot. I like the development here.
Thanks
@tonioo commented on GitHub (Nov 10, 2015):
I'd be interested to know more about the errors you encountered. Do you have any trace ?
@torbenwilkening commented on GitHub (Feb 5, 2016):
Today I tried again with the newest version and a fresh and clean VM and it worked very well.
The only thing i noticed is, that the homedir must exist, else you get this:
Traceback (most recent call last):
File "run.py", line 64, in
main()
File "run.py", line 54, in main
scripts.install("modoboa", config)
File "/root/modoboa/modoboa-installer/modoboa_installer/scripts/init.py", line 21, in install
getattr(script, appname.capitalize())(config).run()
File "/root/modoboa/modoboa-installer/modoboa_installer/scripts/base.py", line 138, in run
self.post_run()
File "/root/modoboa/modoboa-installer/modoboa_installer/scripts/modoboa.py", line 113, in post_run
self._deploy_instance()
File "/root/modoboa/modoboa-installer/modoboa_installer/scripts/modoboa.py", line 73, in _deploy_instance
sudo_user=self.user, cwd=self.home_dir)
File "/root/modoboa/modoboa-installer/modoboa_installer/utils.py", line 61, in exec_cmd
process = subprocess.Popen(cmd, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: '/host/modoboa'
My homedir was /host/modoboa...
Else it works great, thanks. Good development here!
@tonioo commented on GitHub (Feb 8, 2016):
The homedir is automatically created when the user "modoboa" is added by the script. But, if the user already exists, it won't be added anymore. So, if the folder was deleted for some reason, it won't be recreated by the installer.