Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

nginx 1.21.3 taking down all sites

Comments

31 comments

  • maisondasilva
    Same here after update for 106.0.8 -- Unit nginx.service has begun starting up. Sep 29 22:06:42 XXXXXXX nginx[23553]: nginx: [emerg] unknown "cpanel_service_subdomain" variable Sep 29 22:06:42 XXXXXXX systemd[1]: nginx.service: control process exited, code=exited status=1 Sep 29 22:06:42 XXXXXXX systemd[1]: Failed to start nginx - high performance web server. -- Subject: Unit nginx.service has failed -- Defined-By: systemd -- Support: systemd-devel Info Page -- -- Unit nginx.service has failed. -- -- The result is failed. Sep 29 22:06:42 XXXXXXX systemd[1]: Unit nginx.service entered failed state. Sep 29 22:06:42 XXXXXXX systemd[1]: nginx.service failed.
    0
  • matt1206
    Seeing this on multiple servers as well. Nice to see the cPanel price increase if going to be worth it again!
    0
  • danfbach
    Yes, also have multiple crashed servers. I do not work for cpanel but I'm working on a temporary fix. I'll post here when i figure something out to get things moving again.
    0
  • matt1206
    Yes, also have multiple crashed servers. I do not work for cpanel but I'm working on a temporary fix. I'll post here when i figure something out to get things moving again.

    I'm just uninstalling it from all the affected servers I have.
    0
  • matt1206
    Seems that ea-nginx-1.23.1-3.3.4.cpanel.x86_64 was working OK, and the broken version is ea-nginx-1.23.1-5.5.2.cpanel.x86_64
    0
  • danfbach
    As you all know, It's looking for the variable "cpanel_service_subdomain." It looks like the variable is being declared here ./nginx/ea-nginx/server.conf.tt: set $CPANEL_SERVICE_SUBDOMAIN 1; So i'm just trying to find where I can either inject that declaration earlier, or remove the invalid reference.
    0
  • matt1206
    yum downgrade ea-nginx-1.23.1-3.3.4.cpanel.x86_64
    to roll back to the working version of nginx. and then stick ea-nginx* on the end of the exclude list in yum.conf until they sort their crap out.
    0
  • danfbach
    yes, i suppose that would be easiest. thanks for the tip
    0
  • matt1206
    0
  • danfbach
    interesting that they suggest enabling service subdomains because my servers already have that enabled and was enabled at the time the update ran and they still crashed... anyway, not really a problem after the downgrade.
    0
  • Umang Parekh
    Yum downgrade works only with cPanel running on CentOS platform. Ubuntu still faces the similar issues Following worked for UBUNTU versions == apt remove ea-nginx apt install ea-nginx=1.23.1-3+3.2.cpanel /scripts/ea-nginx config --all
    0
  • Bentok
    Same issue here, all my sites and a few server went down...
    0
  • cPRex Jurassic Moderator
    Hey everyone! We did find an issue with the ea-nginx package in relation to the Service Subdomains on the machine. It has been fixed as of this morning, so any forced updates at this point will resolve the issue.
    0
  • maisondasilva
    Hey everyone! We did find an issue with the ea-nginx package in relation to the Service Subdomains on the machine. It has been fixed as of this morning, so any forced updates at this point will resolve the issue.

    Problem fix
    0
  • Thimempapa
    I"m Trying to install a new machine and get similar error when restarting service. Nginx appears not to run. It"s fresh install on centOS7.9 : Error: [2022-10-04 16:22:05 +0200] info [restartsrv_nginx] systemd failed to start the service "nginx" (The "/usr/bin/systemctl restart nginx.service --no-ask-password" command (process 2843) reported error number 1 when it ended.): Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. Waiting for "nginx" to start "failed. Cpanel::Exception::Services::StartError Service Status undefined status from Cpanel::ServiceManager::Services::Nginx Service Error (XID 4pb5hw) The "nginx" service failed to start. Startup Log Oct 04 16:22:05 20-157-97-74.cprapid.com systemd[1]: Starting nginx - high performance web server... Oct 04 16:22:05 20-157-97-74.cprapid.com nginx[2844]: nginx: [emerg] unknown "cpanel_service_subdomain" variable Oct 04 16:22:05 20-157-97-74.cprapid.com systemd[1]: nginx.service: control process exited, code=exited status=1 Oct 04 16:22:05 20-157-97-74.cprapid.com systemd[1]: Failed to start nginx - high performance web server. Oct 04 16:22:05 20-157-97-74.cprapid.com systemd[1]: Unit nginx.service entered failed state. Oct 04 16:22:05 20-157-97-74.cprapid.com systemd[1]: nginx.service failed. Log Messages Oct 4 16:22:05 20-157-97-74 nginx: nginx: [emerg] unknown "cpanel_service_subdomain" variable nginx has failed. Contact your system administrator if the service does not automagically recover.
    0
  • cPRex Jurassic Moderator
    @Thimempapa - since you mentioned this was a new server, your issue is likely this one:
    0
  • Thimempapa
    Thank you. I thought something is wrong. It runs after I added my backup packages. Problem fixed.
    0
  • cPRex Jurassic Moderator
    I'm glad things are working well now!
    0
  • flashweb
    I run /scripts/upcp --force
    nginx still failing, but different error now nginx: [emerg] invalid number of arguments in "client_max_body_size" directive in /etc/nginx/conf.d/ea-nginx.conf:19
    0
  • nasthik
    not fixed. still facing the same issue.
    0
  • rbairwell
    not fixed. still facing the same issue.

    It's fixed for me (and by looks of things many others). What is the version of cPanel you are running, which OS are you on, when was the last time you ran EasyApache to update and what is the exact error message you are getting from which logs?
    0
  • nasthik
    It's fixed for me (and by looks of things many others). What is the version of cPanel you are running, which OS are you on, when was the last time you ran EasyApache to update and what is the exact error message you are getting from which logs?

    OS: CloudLinux v7.9.0 STANDARD standard cPanel Ver: 106.0.8 nginx ver: 1.23.1-5.el7.cloudlinux Last ran EA4: same time as original post Error in log files: 2022/10/06 11:47:40 [emerg] 17570#17570: unknown "cpanel_service_subdomain" variable 2022/10/06 11:47:50 [emerg] 20319#20319: unknown "cpanel_service_subdomain" variable 2022/10/06 11:48:42 [emerg] 20485#20485: unknown "cpanel_service_subdomain" variable 2022/10/06 12:04:04 [emerg] 26663#26663: invalid number of arguments in "client_max_body_size" directive in /etc/nginx/conf.d/ea-nginx.conf:19 2022/10/06 12:04:06 [emerg] 27148#27148: unknown "cpanel_service_subdomain" variable 2022/10/06 12:04:09 [emerg] 27177#27177: unknown "cpanel_service_subdomain" variable 2022/10/06 12:04:18 [emerg] 27660#27660: unknown "cpanel_service_subdomain" variable 2022/10/06 12:04:23 [emerg] 27948#27948: unknown "cpanel_service_subdomain" variable 2022/10/06 12:04:37 [emerg] 28059#28059: unknown "cpanel_service_subdomain" variable 2022/10/06 12:04:42 [emerg] 28090#28090: unknown "cpanel_service_subdomain" variable 2022/10/06 12:05:27 [emerg] 28357#28357: unknown "cpanel_service_subdomain" variable
    0
  • rbairwell
    OS: CloudLinux v7.9.0 STANDARD standard cPanel Ver: 106.0.8 nginx ver: 1.23.1-5.el7.cloudlinux Last ran EA4: same time as original post

    I'd first try going to Software->Nginx Manager and selecting "Rebuild configuration" then "Restart nginx". If that doesn't work, I'd say try re-running EasyApache and disabling/removing nginx. Once that's been provisioned, try re-running EasyApache re-enabling nginx. Still doesn't work? Remove nginx again, wipe /etc/nginx/ and then try again. (I'd be interested in what your "client_max_body_size" setting is in etc/nginx/conf.d/ea-nginx.conf though - mine looks like: ... server_names_hash_bucket_size 128; client_max_body_size 128m; ssl_protocols TLSv1.2 TLSv1.3; ... )
    0
  • risecompany
    not fixed. still facing the same issue with cloudlinux. * the server crashed and went down also cpanel stoppedworking untill we uninstall it and then /scripts/upcp --force
    0
  • rbairwell
    not fixed. still facing the same issue with cloudlinux. * the server crashed and went down also cpanel stoppedworking untill we uninstall it and then /scripts/upcp --force

    So that's a totally different issue - this thread is about just nginx failing when service domains are disabled (and appropriate log entries being made in nginx's error logs). If cPanel/WHM has failed, then that's totally different. I actually suggest you open a ticket with either your datracentre/licence provider or cPanel Inc as I've got a feeling the problem you are experiencing is specific to your setup.
    0
  • vytas
    I got same issue. Still can't use NGINX, unless I downgrade to: yum downgrade ea-nginx-1.23.1-3.3.4.cpanel.x86_64. OS: CentOS v7.9.2009 STANDARD hyper-v nginx version: nginx/1.23.1 (3:1.23.1-5.el7.cloudlinux) cpanel version: 106.0.9 Litespeed version: 6.0.12 (build 9) Got errors: 2022/10/12 10:35:51 [emerg] 14773#14773: invalid number of arguments in "client_max_body_size" directive in /etc/nginx/conf.d/ea-nginx.conf:19 2022/10/12 10:36:01 [emerg] 15022#15022: unknown "cpanel_service_subdomain" variable 2022/10/12 10:36:06 [emerg] 15056#15056: unknown "cpanel_service_subdomain" variable 2022/10/12 10:36:34 [emerg] 15255#15255: unknown "cpanel_service_subdomain" variable 2022/10/12 10:36:41 [emerg] 15263#15263: unknown "cpanel_service_subdomain" variable 2022/10/12 10:40:02 [emerg] 17004#17004: unknown "cpanel_service_subdomain" variable 2022/10/12 10:42:38 [emerg] 18023#18023: unknown "cpanel_service_subdomain" variable 2022/10/12 10:42:41 [emerg] 18044#18044: unknown "cpanel_service_subdomain" variable 2022/10/12 10:42:42 [emerg] 18051#18051: unknown "cpanel_service_subdomain" variable /etc/nginx/conf.d/ea-nginx.conf looks like: server_names_hash_bucket_size 128; client_max_body_size 128m; ssl_protocols TLSv1.2; Tried to remove nginx again, wipe /etc/nginx/ - nothing. If I click "Rebuild configuration" i get error "Error: Completed with warnings"
    0
  • cPRex Jurassic Moderator
    @vytas - do you have any cPanel accounts created on that system?
    0
  • vytas
    @vytas - do you have any cPanel accounts created on that system?

    Yes, I do have 9 accounts at a moment. This system is not new, previuosly it was all fine, and this issue started in the similar way as in post #1, after an automated update.
    0
  • cPRex Jurassic Moderator
    @vytas - it might be best to submit a ticket to our team so we can check this out directly, as the previous issues with the nginx updates were quickly resolved.
    0
  • Steve Kemp
    not sure if its related but ive also found my engintron based installed has failed as well but i get the error: Failed to start nginx.service: Unit not found
    0

Please sign in to leave a comment.