ispconfig3 - Tasks are getting stuck in control panel

Discussion in 'ISPConfig 3 Priority Support' started by pawan, Feb 27, 2021.

  1. pawan

    pawan Member HowtoForge Supporter

    for a specific website client1/web1 task are getting stuck. even the backup is not getting restored.
    one more thing I observed is on the webpage I am seeing the error like - Can't create directory /var/www/clients/client1/web9
    whereas the site is client1/web1 and not web9. it was running file all along.
    also trid removing the lock - rm -f /usr/local/ispconfig/server/temp/.ispconfig_lock
    but still making any changes it is getting stuck.
    how can I fix this.
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  3. pawan

    pawan Member HowtoForge Supporter

    I have set the defalut php to 7.2 for ubuntu 18.04.
    also run a apt-get update and upgrade.
    now ispconfig server is not starting. getting error in apache server.
    Code:
    systemctl status apache2.service
    * apache2.service - The Apache HTTP Server
       Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
      Drop-In: /lib/systemd/system/apache2.service.d
               `-apache2-systemd.conf
       Active: failed (Result: exit-code) since Sat 2021-02-27 17:22:24 IST; 13s ago
      Process: 3310 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE)
      Process: 3722 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
    
    Feb 27 17:22:24 server1 systemd[1]: Starting The Apache HTTP Server...
    Feb 27 17:22:24 server1 apachectl[3722]: AH00544: apache2: bad group name www-data
    Feb 27 17:22:24 server1 apachectl[3722]: Action 'start' failed.
    Feb 27 17:22:24 server1 apachectl[3722]: The Apache error log may have more information.
    Feb 27 17:22:24 server1 systemd[1]: apache2.service: Control process exited, code=exited status=1
    Feb 27 17:22:24 server1 systemd[1]: apache2.service: Failed with result 'exit-code'.
    Feb 27 17:22:24 server1 systemd[1]: Failed to start The Apache HTTP Server.
    [email protected]:/etc/apache2/sites-available# grep -rli 'www-data'
    ispconfig.conf
    
    The error I am getting is bad group name www-data.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The www-data group exists always on Ubuntu when apache is installed, it is not an ispconfig specific group. Did you delete any groups or did you edit the /etc/group file?

    And it's not the ispconfig server which is not starting, ispconfig is not a service, so it can't start. What fails on your system is Apache web server.
     
  5. pawan

    pawan Member HowtoForge Supporter

    No Till.
    Neither I deleted or edited any of these files.
     
  6. pawan

    pawan Member HowtoForge Supporter

    In /etc/group I can see just one entry.
    client1:x:1000:www-data
    could this be the reason for the error.
    any way to rebuild this file?
    I have a backup in /var/backup created by ispconfig which includes etc folder.
    but this is a very old backup.
    so this may not include group info for new clients created in ispconfig.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    No, that's the group client1 and not the group www-data. In /etc/group and /etc/gshadow, there must be a line that starts with www-data. If this line is missing, get the line from the files in your backup and add it.
     
    pawan likes this.
  8. pawan

    pawan Member HowtoForge Supporter

    Thanks Till,
    I have restored it from backup.
    I am able to start ispconfig.
    but not able to restore the backup.
    when I click on restore I am getting - There is already a pending backup restore job.
    and nothing is getting restored.
     
  9. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    See the debug instructions from the read before posting to run the server.sh script manually with debug mode on, so we can see what's wrong.
     
  10. pawan

    pawan Member HowtoForge Supporter

    Hi Th0m,
    1st I would like to fix the /etc/group file, which I restored from backup, which doesn't contain all client info.
    for example
    ispapps:x:5003:www-data
    ispconfig:x:5004:www-data
    client1:x:5005:www-data
    here if I am running the command for - id -u web1
    Web1 is under group client1.
    but I am getting the result as 5004 and not 5005.
    Please help me fix this.
     
  11. pawan

    pawan Member HowtoForge Supporter

    how I can get correct group ids for client:web to fix this.
     
  12. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You stated you had a backup from the /etc/group file, can you share this?
     
  13. pawan

    pawan Member HowtoForge Supporter

    Yes Th0M,
    I stated that as well that it is a old -backup. not having all group info in that. I have already restored that.
    altering the web module - it inserts the entry in /etc/group as well but the same is not happening for all websites.
    for some it is creating the entry and form some it is not.
    why this behavior is not uniform, not able to get that.
     
  14. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    "id -u web1" gives the user ID.
    Try
    Code:
    sudo -u web1 id
    . This will show something like:
    Code:
    uid=5004(web1) gid=5005(client0) groups=5005(client0),5002(sshusers)
     
    pawan likes this.

Share This Page