At the beginning, everything looks fine, we can create new customers, domains etc, but when the cron job executes it deletes
/etc/php/7.4/fpm/pool.d/www.conf
and we get 502 Bad Gateway.
Looking at the error logs, we can determine that the problem is somewhere in the php configuration because even though it seems that it creates the users, the log says
Feb 03 22:59:16 name_of_server php-fpm7.4[48278]: [03-Feb-2021 22:59:16] ERROR: [pool fully_qualified_domain_name] cannot get uid for user 'test'
Additionally, when we check ls -al /var/customers/webs/, the response is
drwxr-x--- 3 10000 10000 4096 Feb 3 22:54 test
which doesn't make sense to us (to be 10k).
When it deletes the www.conf, we manually put it back, so it can work again, but when the next cron job executes, it deletes from the file again.
Here is the response when we force the cron job, with debug on.
php /var/www/froxlor/scripts/froxlor_master_cronjob.php --force --debug
[information] TasksCron: Searching for tasks to do
[information] Creating new FTP-home
[information] Task4 started - Rebuilding froxlor_bind.conf
[information] Cleaning dns zone files from /etc/bind/domains/
[debug] domId domain ismainbutsubto parent domain list of child domain ids
[debug] 2 xxxxx.xxxxxx.xxxxxxx 0 -
[information] `/etc/bind/domains/xxxxx.xxxxxx.xxxxxxx.zone` written
[debug] Generating dns config for xxxxx.xxxxxx.xxxxxxx
[information] froxlor_bind.conf written
sh: 1: /etc/init.d/bind9: not found
[error] Error while running `/etc/init.d/bind9 reload`: exit code (127) - please check your system logs
[information] Task4 finished
[information] TasksCron: Task2 started - create new home
[notice] Running: mkdir -p '/var/customers/webs/test/webalizer'
[notice] Running: mkdir -p '/var/customers/mail/test/'
[notice] Running: cp -a /var/www/froxlor//templates/misc/standardcustomer/* '/var/customers/webs/test/'
[notice] Running: chown -R 10000:10000 '/var/customers/webs/test/'
[notice] Running: chown -R 2000:2000 '/var/customers/mail/test/'
[information] nginx::createIpPort: creating ip/port settings for 172.105.91.128:80
[information] nginx::writeConfigs: rebuilding /etc/nginx/sites-enabled/
[information] Froxlor\Cron\Http\NginxFcgi::reload: running service php7.4-fpm restart
Job for php7.4-fpm.service failed because the control process exited with error code.
See "systemctl status php7.4-fpm.service" and "journalctl -xe" for details.
[information] Froxlor\Cron\Http\NginxFcgi::reload: reloading Froxlor\Cron\Http\NginxFcgi
[notice] Checking system's last guid
The error log after this failed cron job is, as mentioned above:
Feb 03 22:59:16 name_of_server php-fpm7.4[48278]: [03-Feb-2021 22:59:16] ERROR: [pool fully_qualified_domain_name] cannot get uid for user 'test'
We have tried every fix that we could find, even translated topics from German, but nothing seems to work.
We would love to have your thoughts about a possible solution, or maybe some detailed description of how to properly install and configure Froxlor on Ubuntu 20.04, with Nginx and PHP7+-FPM.
Question
Ilija Ivanovski
Hello friends,
In the last couple of weeks we were trying to install Froxlor on Ubuntu 20.04, with Nginx and php7.4-fpm using the following guides:
- https://github.com/Froxlor/Froxlor/wiki/Install-froxlor-on-ubuntu
- https://github.com/Froxlor/Froxlor/wiki/Install-froxlor-from-tarball (from step 3)
- https://github.com/Froxlor/Froxlor/wiki/nginx-with-php-fpm (this is outdated and we were configuring for libnss-extrausers from the configuration guide on the froxlor panel)
At the beginning, everything looks fine, we can create new customers, domains etc, but when the cron job executes it deletes
/etc/php/7.4/fpm/pool.d/www.conf
and we get 502 Bad Gateway.
Looking at the error logs, we can determine that the problem is somewhere in the php configuration because even though it seems that it creates the users, the log says
Feb 03 22:59:16 name_of_server php-fpm7.4[48278]: [03-Feb-2021 22:59:16] ERROR: [pool fully_qualified_domain_name] cannot get uid for user 'test'
Additionally, when we check ls -al /var/customers/webs/, the response is
drwxr-x--- 3 10000 10000 4096 Feb 3 22:54 test
which doesn't make sense to us (to be 10k).
When it deletes the www.conf, we manually put it back, so it can work again, but when the next cron job executes, it deletes from the file again.
Here is the response when we force the cron job, with debug on.
php /var/www/froxlor/scripts/froxlor_master_cronjob.php --force --debug [information] TasksCron: Searching for tasks to do [information] Creating new FTP-home [information] Task4 started - Rebuilding froxlor_bind.conf [information] Cleaning dns zone files from /etc/bind/domains/ [debug] domId domain ismainbutsubto parent domain list of child domain ids [debug] 2 xxxxx.xxxxxx.xxxxxxx 0 - [information] `/etc/bind/domains/xxxxx.xxxxxx.xxxxxxx.zone` written [debug] Generating dns config for xxxxx.xxxxxx.xxxxxxx [information] froxlor_bind.conf written sh: 1: /etc/init.d/bind9: not found [error] Error while running `/etc/init.d/bind9 reload`: exit code (127) - please check your system logs [information] Task4 finished [information] TasksCron: Task2 started - create new home [notice] Running: mkdir -p '/var/customers/webs/test/webalizer' [notice] Running: mkdir -p '/var/customers/mail/test/' [notice] Running: cp -a /var/www/froxlor//templates/misc/standardcustomer/* '/var/customers/webs/test/' [notice] Running: chown -R 10000:10000 '/var/customers/webs/test/' [notice] Running: chown -R 2000:2000 '/var/customers/mail/test/' [information] nginx::createIpPort: creating ip/port settings for 172.105.91.128:80 [information] nginx::writeConfigs: rebuilding /etc/nginx/sites-enabled/ [information] Froxlor\Cron\Http\NginxFcgi::reload: running service php7.4-fpm restart Job for php7.4-fpm.service failed because the control process exited with error code. See "systemctl status php7.4-fpm.service" and "journalctl -xe" for details. [information] Froxlor\Cron\Http\NginxFcgi::reload: reloading Froxlor\Cron\Http\NginxFcgi [notice] Checking system's last guid
The error log after this failed cron job is, as mentioned above:
Feb 03 22:59:16 name_of_server php-fpm7.4[48278]: [03-Feb-2021 22:59:16] ERROR: [pool fully_qualified_domain_name] cannot get uid for user 'test'
We have tried every fix that we could find, even translated topics from German, but nothing seems to work.
We would love to have your thoughts about a possible solution, or maybe some detailed description of how to properly install and configure Froxlor on Ubuntu 20.04, with Nginx and PHP7+-FPM.
Thank you,
Ilija
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now