ISPConfig is not creating users or user homes

Discussion in 'Installation/Configuration' started by robbiebit, Feb 20, 2014.

  1. robbiebit

    robbiebit New Member

    My ISPConfig 3.0.5.3 installation on CentOS 6.5 (i686-32-bit) is not creating the users, or their respective user homes, when I create the client accounts in the admin panel.
    I have attached two files; the server delf check and server debug log.

    I can't see anything to indicate the cause, although I'm a newb to ISPConfig and fairly new to Linux.

    Any help would be appreciated.

    **EDITED**
    This is preventing me from being able to FTP into my client account. I receive the following error, client-side;

    Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    Response: 220-You are user number 1 of 50 allowed.
    Response: 220-Local time is now 12:48. Server port: 21.
    Response: 220-This is a private system - No anonymous login
    Response: 220-IPv6 connections are also welcome on this server.
    Response: 220 You will be disconnected after 15 minutes of inactivity.
    Command: AUTH TLS
    Response: 234 AUTH TLS OK.
    Status: Initializing TLS...
    Status: Verifying certificate...
    Command: USER test4
    Status: TLS/SSL connection established.
    Response: 331 User test4 OK. Password required
    Command: PASS ********
    Response: 530 Login authentication failed
    Error: Critical error
    Error: Could not connect to server
     

    Attached Files:

    Last edited: Feb 20, 2014
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats ok, your server is working fine. A client is a virtual user in ispconfig to configure limts and provide a login for yur client to the controlpanel, so it does not need anything to be created on the shell for a client. A directory and shell user for the site gets added when you add a website.
     
  3. robbiebit

    robbiebit New Member

    Till,

    Appreciate the quick response. I guess I should have mentioned that I'm not able to ftp in to these client's I create. When I attempt FTP connection;

    Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    Response: 220-You are user number 1 of 50 allowed.
    Response: 220-Local time is now 12:48. Server port: 21.
    Response: 220-This is a private system - No anonymous login
    Response: 220-IPv6 connections are also welcome on this server.
    Response: 220 You will be disconnected after 15 minutes of inactivity.
    Command: AUTH TLS
    Response: 234 AUTH TLS OK.
    Status: Initializing TLS...
    Status: Verifying certificate...
    Command: USER test4
    Status: TLS/SSL connection established.
    Response: 331 User test4 OK. Password required
    Command: PASS ********
    Response: 530 Login authentication failed
    Error: Critical error
    Error: Could not connect to server
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Off course, as a client is not a FTP user.

    You missed to create a website and then a ftp user and with this FT user, you can login with ftp. Like I explained above, a client is a controlpanel login in ispconfig, its neither a FTp nor ssh account.
     
  5. robbiebit

    robbiebit New Member

    I have an FTP account created and am unable to connect. Under the FTP user account options I see a "/var/www/clients/client8/web1" for the Directory option.

    When I attempt to locate that directory using root access to shell, there is no clients folder uner /var/www.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok. Please post the output of:

    ls -la /var
     
  7. robbiebit

    robbiebit New Member

    drwxr-xr-x. 28 root root 4096 Feb 20 00:35 .
    dr-xr-xr-x. 25 root root 4096 Feb 20 09:35 ..
    drwxr-xr-x. 2 root root 4096 Feb 19 13:12 account
    drwxr-x--- 2 root root 4096 Feb 20 00:30 backup
    drwxr-xr-x. 16 root root 4096 Feb 19 22:36 cache
    drwxr-xr-x. 2 root root 4096 Feb 19 16:10 crash
    drwxr-xr-x. 2 root root 4096 Nov 22 07:28 cvs
    drwxr-xr-x. 3 root root 4096 Feb 19 13:12 db
    drwxr-xr-x. 3 root root 4096 Feb 19 13:12 empty
    drwxr-xr-x 2 root root 4096 Mar 15 2011 ftp
    drwxr-xr-x. 2 root root 4096 Sep 23 2011 games
    drwxr-xr-x. 41 root root 4096 Feb 19 23:11 lib
    drwxr-xr-x. 2 root root 4096 Sep 23 2011 local
    drwxrwxr-x. 6 root lock 4096 Feb 20 09:36 lock
    drwxr-xr-x. 15 root root 4096 Feb 20 09:35 log
    lrwxrwxrwx. 1 root root 10 Feb 19 13:00 mail -> spool/mail
    drwxr-x--- 6 root named 4096 Feb 19 23:23 named
    drwxr-xr-x. 2 root root 4096 Sep 23 2011 nis
    drwxr-xr-x. 2 root root 4096 Sep 23 2011 opt
    drwxr-xr-x. 2 root root 4096 Sep 23 2011 preserve
    drwxr-xr-x. 33 root root 4096 Feb 20 09:37 run
    drwxr-xr-x 56 ispconfig ispconfig 4096 Feb 20 00:43 softaculous
    drwx------ 2 apache apache 4096 Feb 20 00:57 softtmp
    drwxr-xr-x 2 apache apache 4096 Feb 20 00:17 softwww
    drwxr-xr-x. 15 root root 4096 Feb 19 23:11 spool
    drwxrwxrwt. 4 root root 4096 Feb 19 23:47 tmp
    drwx------ 3 vmail vmail 4096 Feb 19 23:23 vmail
    drwxr-xr-x 10 root root 4096 Feb 20 00:07 www
    drwxr-xr-x. 3 root root 4096 Feb 19 13:06 yp
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats ok so far as ww is not a symlink.


    Please disable the ispconfig cronjob as described in the debug guide, then create a new website in ispconfig and then run:

    /usr/local/ispconfig/server/server.sh
     
  9. robbiebit

    robbiebit New Member

    [[email protected] var]# /usr/local/ispconfig/server/server.sh
    20.02.2014-13:23 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    20.02.2014-13:23 - DEBUG - Found 17 changes, starting update process.
    20.02.2014-13:23 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    20.02.2014-13:23 - DEBUG - Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    20.02.2014-13:23 - DEBUG - Adding the group: client8
    useradd: warning: the home directory already exists.
    Not copying any file from skel directory into it.
    20.02.2014-13:23 - DEBUG - Adding the user: web1
    20.02.2014-13:23 - DEBUG - Creating symlink: ln -s /var/www/clients/client8/web1/ /var/www/bidingerfamily.com
    20.02.2014-13:23 - DEBUG - Creating symlink: ln -s /var/www/clients/client8/web1/ /var/www/clients/client8/bidingerfamily.com
    20.02.2014-13:23 - DEBUG - exec: chown -R web1:client8 /var/www/clients/client8/web1/web
    20.02.2014-13:23 - DEBUG - exec: chown web1:client8 /var/www/clients/client8/web1/web
    20.02.2014-13:23 - DEBUG - exec: usermod --groups sshusers web1 2>/dev/null
    20.02.2014-13:23 - DEBUG - Creating fastcgi starter script directory: /var/www/php-fcgi-scripts/web1/
    20.02.2014-13:23 - DEBUG - Creating fastcgi starter script: /var/www/php-fcgi-scripts/web1/.php-fcgi-starter
    20.02.2014-13:23 - DEBUG - Writing the vhost file: /etc/httpd/conf/sites-available/bidingerfamily.com.vhost
    20.02.2014-13:23 - DEBUG - Creating symlink: /etc/httpd/conf/sites-enabled/100-bidingerfamily.com.vhost->/etc/httpd/conf/sites-available/bidingerfamily.com.vhost
    20.02.2014-13:23 - DEBUG - Apache status is: running
    20.02.2014-13:23 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    20.02.2014-13:23 - DEBUG - Apache restart return value is: 0
    20.02.2014-13:23 - DEBUG - Apache online status after restart is: running
    20.02.2014-13:23 - DEBUG - Processed datalog_id 203
    20.02.2014-13:23 - DEBUG - Processed datalog_id 204
    20.02.2014-13:23 - DEBUG - Processed datalog_id 205
    20.02.2014-13:23 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
    20.02.2014-13:23 - DEBUG - Calling function 'update' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
    20.02.2014-13:23 - DEBUG - Creating fastcgi starter script: /var/www/php-fcgi-scripts/web1/.php-fcgi-starter
    20.02.2014-13:23 - DEBUG - Writing the vhost file: /etc/httpd/conf/sites-available/bidingerfamily.com.vhost
    20.02.2014-13:23 - DEBUG - Apache status is: running
    20.02.2014-13:23 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    20.02.2014-13:23 - DEBUG - Apache restart return value is: 0
    20.02.2014-13:23 - DEBUG - Apache online status after restart is: running
    20.02.2014-13:23 - DEBUG - Processed datalog_id 206
    20.02.2014-13:23 - DEBUG - Calling function 'insert' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_insert'.
    20.02.2014-13:23 - DEBUG - Processed datalog_id 207
    20.02.2014-13:23 - DEBUG - Calling function 'ftp_user_delete' from plugin 'apache2_plugin' raised by event 'ftp_user_delete'.
    20.02.2014-13:23 - DEBUG - Calling function 'delete' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_delete'.
    20.02.2014-13:23 - DEBUG - Ftpuser: deleted.
    20.02.2014-13:23 - DEBUG - Processed datalog_id 208
    20.02.2014-13:23 - DEBUG - Calling function 'insert' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_insert'.
    20.02.2014-13:23 - DEBUG - Processed datalog_id 209
    20.02.2014-13:23 - DEBUG - Calling function 'ftp_user_delete' from plugin 'apache2_plugin' raised by event 'ftp_user_delete'.
    20.02.2014-13:23 - DEBUG - Calling function 'delete' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_delete'.
    20.02.2014-13:23 - DEBUG - Ftpuser: deleted.
    20.02.2014-13:23 - DEBUG - Processed datalog_id 210
    20.02.2014-13:23 - DEBUG - Calling function 'insert' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_insert'.
    20.02.2014-13:23 - DEBUG - Processed datalog_id 211
    20.02.2014-13:23 - DEBUG - Calling function 'ftp_user_delete' from plugin 'apache2_plugin' raised by event 'ftp_user_delete'.
    20.02.2014-13:23 - DEBUG - Calling function 'delete' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_delete'.
    20.02.2014-13:23 - DEBUG - Ftpuser: deleted.
    20.02.2014-13:23 - DEBUG - Processed datalog_id 212
    20.02.2014-13:23 - DEBUG - Calling function 'insert' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_insert'.
    20.02.2014-13:23 - DEBUG - Processed datalog_id 213
    20.02.2014-13:23 - DEBUG - Calling function 'ftp_user_delete' from plugin 'apache2_plugin' raised by event 'ftp_user_delete'.
    20.02.2014-13:23 - DEBUG - Calling function 'delete' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_delete'.
    20.02.2014-13:23 - DEBUG - Ftpuser: deleted.
    20.02.2014-13:23 - DEBUG - Processed datalog_id 214
    20.02.2014-13:23 - DEBUG - Calling function 'insert' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_insert'.
    20.02.2014-13:23 - DEBUG - Processed datalog_id 215
    20.02.2014-13:23 - DEBUG - Processed datalog_id 216
    20.02.2014-13:23 - DEBUG - Processed datalog_id 217
    20.02.2014-13:23 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    20.02.2014-13:23 - DEBUG - Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    useradd: warning: the home directory already exists.
    Not copying any file from skel directory into it.
    20.02.2014-13:23 - DEBUG - Adding the user: web2
    20.02.2014-13:23 - DEBUG - Creating symlink: ln -s /var/www/clients/client8/web2/ /var/www/rbitnet.com
    20.02.2014-13:23 - DEBUG - Creating symlink: ln -s /var/www/clients/client8/web2/ /var/www/clients/client8/rbitnet.com
    20.02.2014-13:23 - DEBUG - exec: chown -R web2:client8 /var/www/clients/client8/web2/web
    20.02.2014-13:23 - DEBUG - exec: chown web2:client8 /var/www/clients/client8/web2/web
    20.02.2014-13:23 - DEBUG - exec: usermod --groups sshusers web2 2>/dev/null
    20.02.2014-13:23 - DEBUG - Creating fastcgi starter script directory: /var/www/php-fcgi-scripts/web2/
    20.02.2014-13:23 - DEBUG - Creating fastcgi starter script: /var/www/php-fcgi-scripts/web2/.php-fcgi-starter
    20.02.2014-13:23 - DEBUG - Writing the vhost file: /etc/httpd/conf/sites-available/rbitnet.com.vhost
    20.02.2014-13:23 - DEBUG - Creating symlink: /etc/httpd/conf/sites-enabled/100-rbitnet.com.vhost->/etc/httpd/conf/sites-available/rbitnet.com.vhost
    20.02.2014-13:23 - DEBUG - Apache status is: running
    20.02.2014-13:23 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    20.02.2014-13:23 - DEBUG - Apache restart return value is: 0
    20.02.2014-13:23 - DEBUG - Apache online status after restart is: running
    20.02.2014-13:23 - DEBUG - Processed datalog_id 218
    20.02.2014-13:23 - DEBUG - Calling function 'insert' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_insert'.
    20.02.2014-13:23 - DEBUG - Processed datalog_id 219
    20.02.2014-13:23 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    finished.
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    This looks fine. Please post the output of:

    ls -la /var/www
     
  11. robbiebit

    robbiebit New Member

    OK....weird.

    NOW I see a clients folder and all the appropriate folders for that client!

    AND...FTP WORKS!

    Not sure what did it.
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess i know what you did:

    1) You added a client. as you expected that this will create some kind of directory on the shell, you enabled debugging in ispconfig and disabled the ispconfig cronjob.
    2) ispconfig could not process any further actions, as you disabled the cronjob in the root crontab, so the website, ftp user etc. that you added were not created.
    3) now you run the script for debug purposes manually again, so it created all the missing items on the shell.

    so to finally solve your problem, dont forget to activate the cronjob again :)
     
  13. robbiebit

    robbiebit New Member

    Thank you VERY much!


     

Share This Page