Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Install service-bind9-1.17 fails with error failed with code 1  (Read 1819 times)

0 Members and 1 Guest are viewing this topic.

jominj

  • Guest
Install service-bind9-1.17 fails with error failed with code 1
« on: January 03, 2014, 02:34:13 pm »
Some times we will get this error on Plesk panel while upgrading Bind
Task name: Install service-bind9-1.17 (pkg_id = 652) on test.domain.tld (host_id = 6)
    Task description   
    Install service-bind9-1.17 (pkg_id = 652) on test.domain.tld (host_id = 6)
    Queue status:Failed
    Method name
    processOperation on SCREF:PPMOpManager:0
    Last execution output   
    Command '/bin/sh -c /tmp/make_rndc_key.sh > /tmp/make_rndc_key.log 2>&1' execution failed with code 1

  • Please make sure that /etc/rndc.key is link to /var/named/run-root/etc/rndc.key:
Code: [Select]
[root@test ~]# ls -la /etc/rndc.key
lrwxrwxrwx 1 root root  32 Dec 24 09:08 /etc/rndc.key -> /var/named/run-root/etc/rndc.key
  • If it is not a link, please compare them:
Code: [Select]
[root@test]# md5sum /var/named/run-root/etc/rndc.key /etc/rndc.key
380a919661cb3858416790c2e53c1056  /var/named/run-root/etc/rndc.key
380a919661cb3858416790c2e53c1056  /etc/rndc.key
  • If the are the same, rename /etc/rndc.key, example:
Code: [Select]
[root@test ~]# mv /etc/rndc.key  /etc/rndc.keyold
  • Create a link as below:
Code: [Select]
[root@test]# ln -s /var/named/run-root/etc/rndc.key /etc/rndc.key
[root@test]# ls -la /etc/rndc.key
lrwxrwxrwx 1 root root 32 Jan  3 02:05 /etc/rndc.key -> /var/named/run-root/etc/rndc.key
  • Run the task again.