Skip to main content

Cannot start dnsadmin due to PID file issue.

Comments

9 comments

  • andrew.n
    Looks like you are on OpenVZ virtualisation. This is cPanel advise for this problem:
    0
  • bobc02
    Thanks for the explanation and links! I verified that OpenVZ was the issue, and contacted my provider who said that they are aware, and are planning to move all accounts to a new environment. I have tried the workaround, but I am getting "Too many open files" when I do the reload. Here's the file after changes: [Unit] Description=cPanel DNS admin service After=cpanel.service # dnsonly server [Service] Type=forking # PIDFile=/var/run/dnsadmin.pid PIDFile=/run/dnsadmin.pid ExecStart=/usr/local/cpanel/scripts/restartsrv_dnsadmin --no-verbose --notconfigured-ok --systemd-service=dnsadmin ExecStop=/usr/local/cpanel/scripts/restartsrv_dnsadmin --stop --notconfigured-ok --systemd-service=dnsadmin [Install] WantedBy=multi-user.target
    And here are the actions I took: [root@dev scripts]# systemctl edit --full dnsadmin.service [root@dev scripts]# systemctl daemon-reload [root@dev scripts]# systemctl start dnsadmin.service Error: Too many open files Job for dnsadmin.service failed. See "systemctl status dnsadmin.service" and "journalctl -xe" for details.
    Thanks. Bob
    0
  • RoseHosting
    Thanks for the explanation and links! I verified that OpenVZ was the issue, and contacted my provider who said that they are aware, and are planning to move all accounts to a new environment. I have tried the workaround, but I am getting "Too many open files" when I do the reload. Here's the file after changes: [Unit] Description=cPanel DNS admin service After=cpanel.service # dnsonly server [Service] Type=forking # PIDFile=/var/run/dnsadmin.pid PIDFile=/run/dnsadmin.pid ExecStart=/usr/local/cpanel/scripts/restartsrv_dnsadmin --no-verbose --notconfigured-ok --systemd-service=dnsadmin ExecStop=/usr/local/cpanel/scripts/restartsrv_dnsadmin --stop --notconfigured-ok --systemd-service=dnsadmin [Install] WantedBy=multi-user.target
    And here are the actions I took: [root@dev scripts]# systemctl edit --full dnsadmin.service [root@dev scripts]# systemctl daemon-reload [root@dev scripts]# systemctl start dnsadmin.service Error: Too many open files Job for dnsadmin.service failed. See "systemctl status dnsadmin.service" and "journalctl -xe" for details.
    Thanks. Bob

    You can append these lines to /etc/security/limits.conf file to increase the limit. * soft nofile 35000 * hard nofile 65000
    0
  • bobc02
    Increasing the limits solved the problem. All services are now working. Thanks Andrew and RoseHosting for all your help! Bob
    0
  • andrew.n
    Glad to hear! Enjoy the weekend :)
    0
  • cPanelLauren
    Glad to see you were able to get the issue resolved and thanks to @andrew.n and @RoseHosting
    0
  • planetjoin
    You can append these lines to /etc/security/limits.conf file to increase the limit. * soft nofile 35000 * hard nofile 65000

    hello I"ve tried all this and still get : # systemctl start dnsadmin.service Error: Too many open files Job for dnsadmin.service failed. See "systemctl status dnsadmin.service" and "journalctl -xe" for details. I"m using DNSONLY whm in virtuozzo enviroment and it now working properly. First i got named errors with TCP_FASTOPEN : Jul 11 11:24:26 ns2 named[19416]: automatic empty zone: view internal: 8.B.D.0.1.0.0.2.IP6.ARPA Jul 11 11:24:26 ns2 named[19416]: automatic empty zone: view internal: EMPTY.AS112.ARPA Jul 11 11:24:26 ns2 named[19416]: automatic empty zone: view internal: HOME.ARPA Jul 11 11:24:26 ns2 named[19416]: none:104: 'max-cache-size 90%' - setting to 921MB (out of 1024MB) Jul 11 11:24:26 ns2 named[19416]: set up managed keys zone for view external, file 'external.mkeys' Jul 11 11:24:26 ns2 named[19416]: none:104: 'max-cache-size 90%' - setting to 921MB (out of 1024MB) Jul 11 11:24:26 ns2 named[19416]: ../../../../lib/isc/unix/socket.c:5682: unexpected error: Jul 11 11:24:26 ns2 named[19416]: setsockopt(23, TCP_FASTOPEN) failed with Protocol not available Jul 11 11:24:26 ns2 named[19416]: command channel listening on 127.0.0.1#953 Jul 11 11:24:26 ns2 systemd[1]: Started Berkeley Internet Name Domain (DNS).
    AND NOW.. dnsadmin can"t start. Jul 11 11:40:19 ns2 systemd[1]: Starting cPanel DNS admin service... Jul 11 11:40:19 ns2 systemd[1]: Can't open PID file /var/run/dnsadmin.pid (yet?) after start: Too many levels of symbolic links Jul 11 11:40:19 ns2 systemd[1]: Failed to set a watch for dnsadmin.service's PID file /var/run/dnsadmin.pid: Too many open files Jul 11 11:40:19 ns2 systemd[1]: Failed to start cPanel DNS admin service. Jul 11 11:40:19 ns2 systemd[1]: Unit dnsadmin.service entered failed state. Jul 11 11:40:19 ns2 systemd[1]: dnsadmin.service failed. /var/run/dnsadmin.pid is not exists... Any clue? Thanks Fabian
    0
  • andrew.n
    Open a support ticket with your provider and ask them to upgrade the kernel on the host your VPS resides.
    0
  • planetjoin
    Open a support ticket with your provider and ask them to upgrade the kernel on the host your VPS resides.

    Thanks for your reply. Finally, i fixed dnsadmin, but i still having issues with TCP_FASTOPEN. That is because this vps is a container with virtuozzo. The next week we will move it to a KVM vps to update kernels myself ;) Regards Fabian
    0

Please sign in to leave a comment.