ispCP - Board - Support
Cannot create accounts (account status is not ok) - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Cannot create accounts (account status is not ok) (/thread-2705.html)

Pages: 1 2


Cannot create accounts (account status is not ok) - Numicus - 03-12-2008 07:04 AM

I de-installed winCP and reinstalled it again today, but when adding an account I see a red traffic-sign (round with a diagonal stripe) indicating that the account is not succesfully created. When I switch to the account I see in red:
XXXX's account status is not ok!

ispcp_daemon-stdout.log.1205268350
and
ispcp_daemon-stderr.log.1205268350
are empty.

When running /var/www/ispcp/engine/ispcp-rqst-mngr (in debug mode=1)
I get this:

DEBUG: push_el() sub_name: mngr_start_up(), msg: Starting...
DEBUG: push_el() sub_name: lock_system(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('`which touch` /var/run/ispcp.lock'), msg: Ending...
DEBUG: push_el() sub_name: lock_system(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mngr_start_up(), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/var/www/ispcp/engine/ispcp-serv-mngr 2 0 0 0 1>/var/log/ispcp/ispcp-serv-mngr.stdout 2>/var/log/ispcp/ispcp-serv-mngr.stderr'), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: Ending...
DEBUG: push_el() sub_name: mngr_shut_down(), msg: Starting...
DEBUG: push_el() sub_name: unlock_system(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('`which rm` -rf /var/run/ispcp.lock'), msg: Ending...
DEBUG: push_el() sub_name: unlock_system(), msg: Ending...
DEBUG: push_el() sub_name: mngr_shut_down(), msg: Ending...

Can anyone point me to the right direction?


RE: Cannot create accounts (account status is not ok) - Kika - 03-12-2008 07:09 AM

Which version do you have? See the vmail uid and mail gid in the ispcp.conf. Don't forget to update the ispcp database status fields to "change" before run the rebuild process.


RE: Cannot create accounts (account status is not ok) - joximu - 03-12-2008 07:12 AM

which version of *ispCP* (what's winCP ???) ?

something in /var/log/ispcp/ispcp-serv-mngr.stderr??

what is the status (see directly in the database)

/J


RE: Cannot create accounts (account status is not ok) - Numicus - 03-12-2008 07:19 AM

Thanks for quick reply.
Sorry, it was a type, I use ispCP RC3

When I use ISPcp debugger I get the following error for each domain:
sys_command() | ERROR: External command '/usr/sbin/groupadd -g 2001 vu2001' returned '9' status !

Quick edit:
When I run /usr/sbin/groupadd -g 2001 vu2001 in SSH as root I get:
groupadd: group vu2001 exists


Will now look in SQL for the status


RE: Cannot create accounts (account status is not ok) - Numicus - 03-12-2008 07:22 AM

Also, the /var/www/virtual folder is completely empty


RE: Cannot create accounts (account status is not ok) - Kika - 03-12-2008 07:23 AM

joximu Wrote:what is the status (see directly in the database)

If you click to the "not ok" icon before the username in the ispCP then you can see the status of the user too, this is equal with the database status filed.


RE: Cannot create accounts (account status is not ok) - Kika - 03-12-2008 07:27 AM

Numicus Wrote:Thanks for quick reply.
Sorry, it was a type, I use ispCP RC3

When I use ISPcp debugger I get the following error for each domain:
sys_command() | ERROR: External command '/usr/sbin/groupadd -g 2001 vu2001' returned '9' status !

Quick edit:
When I run /usr/sbin/groupadd -g 2001 vu2001 in SSH as root I get:
groupadd: group vu2001 exists


Will now look in SQL for the status

Did you deleted the old ispCP and after reinstall that? You must remove the vu* gorup and user from the system before you create a new domain (except the vu2000).


RE: Cannot create accounts (account status is not ok) - Numicus - 03-12-2008 07:33 AM

ls -l
gives:

drwxr-xr-x 2 root root 4096 2008-03-11 16:33 awstats
drwxr-xr-x 3 vu2000 vu2000 4096 2008-03-11 16:35 fcgi
drwxr-xr-x 7 root root 4096 2008-03-11 16:35 ispcp
drwxr-xr-x 2 root root 4096 2008-03-11 16:33 scoreboards
drwxr-xr-x 2 vu2000 www-data 4096 2008-03-11 16:33 virtual

When clicking on the icon I get the domain details page, after status is:

Status sys_command() | ERROR: External command '/usr/sbin/groupadd -g 2002 vu2002' returned '9' status !


RE: Cannot create accounts (account status is not ok) - joximu - 03-12-2008 07:35 AM

The question is what means "de-install" in post 1.

Normally a ispcp-uninstall should remove the vu2xxx users and groups...

/J


RE: Cannot create accounts (account status is not ok) - Numicus - 03-12-2008 07:37 AM

"Did you deleted the old ispCP and after reinstall that? You must remove the vu* gorup and user from the system before you create a new domain (except the vu2000)"
What exactly do you mean by that?

I uninstalled using the ispCP uninstaller, it gave an error though, I deleted some folders manually. It may be that it did not delete the users/groups.
Should I dedelete al vu* groups in etc/groups?

UPDATE: deleted the vu* groups, the error changed now:
sys_command() | ERROR: External command '/usr/sbin/useradd -c virtual-user -d /var/www/virtual/zennid.nl -g vu2003 -s /bin/false -u 2003 vu2003' returned '9' status !

Looks like I need to remove the users..in which file will I find them / which command to run to delete them?