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.
See https://www.howtoforge.com/community/threads/please-read-before-posting.58408/ -> ISPConfig is not writing changes to disk.
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. root@server1:/etc/apache2/sites-available# grep -rli 'www-data' ispconfig.conf The error I am getting is bad group name www-data.
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.
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.
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.
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.
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.
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.
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.
"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)