MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: rAXv2 on 2014-10-20, 16:57:52

Title: Bind Error
Post by: rAXv2 on 2014-10-20, 16:57:52
Hi getting this error now

[root@srv1 ~]# sh /script/restart-all

*** Process for MYSQL/MARIADB service ***
  - No need started
  - Process: reload
No message for reload
-------------------------------------------------------------------

*** Process for BIND service ***
Starting named:
Error in named configuration:
/opt/configs/bind/conf/defaults/named.options.conf:148: unknown key 'rndckey'
                                                           [FAILED]
  - Process : restart
Stopping named:                                            [  OK  ]
Starting named:
Error in named configuration:
/opt/configs/bind/conf/defaults/named.options.conf:148: unknown key 'rndckey'
                                                           [FAILED]
-------------------------------------------------------------------

*** Process for HTTPD service ***
  - No need started
  - Process with 'apachectl': graceful
No message for graceful
-------------------------------------------------------------------

*** Process for QMAIL service ***
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Starting qmail-toaster: svscan.
-------------------------------------------------------------------

*** Process for XINETD (including Pure-FTPd) service ***
  - No need started
  - Process: reload
Reloading configuration:                                   [  OK  ]
-------------------------------------------------------------------

*** Process for KLOXO service ***
  - No need started
  - Process: reload
Execute fixlxphpexe for php53s...
Reloading kloxo-phpcgi:                                    [  OK  ]
Reloading kloxo-hiawatha:                                  [  OK  ]
-------------------------------------------------------------------

*** Process for PHP-FPM service ***
  - No need started
  - Process: reload
Reloading php-fpm:                                         [  OK  ]
-------------------------------------------------------------------

Shutting down system logger:                               [  OK  ]
Starting system logger:                                    [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-all --help' or '/script/restart-all -h'
Title: Re: Bind Error
Post by: rAXv2 on 2014-10-20, 17:00:06
[root@srv1 ~]# sh /script/sysinfo

A. Kloxo-MR: 7.0.0.b-2014102004

B. OS: CentOS release 6.5 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.40-1.ius.el6.x86_64
   2. PHP: php53u-5.3.29-1.ius.el6.x86_64
   3. Httpd: httpd-2.2.29-1.mr.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.8.0-f.2.mr.el6.x86_64
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.5-1.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.16.mr.el6.x86_64

D. Php-type (for Httpd/proxy):

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          2024        300       1723          0          0        166
   -/+ buffers/cache:        133       1890
   Swap:         2024          0       2024
Title: Re: Bind Error
Post by: MRatWork on 2014-10-21, 02:59:09
Run:
Code: [Select]
sed -i 's/rndc-key/rndckey/' /etc/rndc.key
Title: Re: Bind Error
Post by: kennethwu on 2014-10-26, 23:12:36
Run:
Code: [Select]
sed -i 's/rndc-key/rndckey/' /etc/rndc.key

Named Still fail to start up after run the sed -i 's/rndc-key/rndckey/' /etc/rndc.key
Title: Re: Bind Error
Post by: MRatWork on 2014-10-26, 23:26:29
Update your Kloxo-MR 7.
Title: Re: Bind Error
Post by: Andi on 2014-10-27, 01:52:07
Run:
Code: [Select]
sed -i 's/rndc-key/rndckey/' /etc/rndc.key

Named Still fail to start up after run the sed -i 's/rndc-key/rndckey/' /etc/rndc.key

first try, go to server ->switch program -> change bind to bind, change spam to bogofilter --> reboot

if it doesn't work,
second try
1. cd /var/log
2. mkdir named
3. chmod 777 named

then restart again
4. service named restart
5. cd /var/log/named
6. chmod 777 *
7. service named restart

does it helps you?
Title: Re: Bind Error
Post by: kennethwu on 2014-10-27, 22:23:51
Run:
Code: [Select]
sed -i 's/rndc-key/rndckey/' /etc/rndc.key

Named Still fail to start up after run the sed -i 's/rndc-key/rndckey/' /etc/rndc.key

first try, go to server ->switch program -> change bind to bind, change spam to bogofilter --> reboot

if it doesn't work,
second try
1. cd /var/log
2. mkdir named
3. chmod 777 named

then restart again
4. service named restart
5. cd /var/log/named
6. chmod 777 *
7. service named restart

does it helps you?

service named can start right now, but the web show 500, don't know is the bind problem, all service start up normal, any idea?
Title: Re: Bind Error
Post by: MRatWork on 2014-10-27, 22:41:04
If you don't use Kloxo-MR 7.0.0-2014102701, possible it's related to permissions or ownership. Run 'sh /script/fix-chownchmod'. This issue (error 500) found if using php-fpm/fcgid as php-type.
Title: Re: Bind Error
Post by: durjoy on 2014-10-30, 13:47:28
Run:
Code: [Select]
sed -i 's/rndc-key/rndckey/' /etc/rndc.key

Named Still fail to start up after run the sed -i 's/rndc-key/rndckey/' /etc/rndc.key

first try, go to server ->switch program -> change bind to bind, change spam to bogofilter --> reboot

if it doesn't work,
second try
1. cd /var/log
2. mkdir named
3. chmod 777 named

then restart again
4. service named restart
5. cd /var/log/named
6. chmod 777 *
7. service named restart

does it helps you?

This solution works 100%. All of my BIND servers are working fine now.
Title: Re: Bind Error
Post by: rAXv2 on 2014-11-16, 02:30:32
[root@srv1 ~]# sh /script/restart-all

*** Process for MYSQL/MARIADB service ***
  - Process: reload
No message for reload
-------------------------------------------------------------------

*** Process for BIND service ***
Starting named:
Error in named configuration:
/opt/configs/bind/conf/defaults/named.options.conf:148: unknown key 'rndc-key'
                                                           [FAILED]
  - Process : restart
Stopping named:                                            [  OK  ]
Starting named:
Error in named configuration:
/opt/configs/bind/conf/defaults/named.options.conf:148: unknown key 'rndc-key'
                                                           [FAILED]
-------------------------------------------------------------------

Stopping Varnish Cache:                                    [  OK  ]
Starting Varnish Cache:                                    [  OK  ]
-------------------------------------------------------------------

*** Process for NGINX service ***
  - No need started
  - Process: reload
Reloading nginx:                                           [  OK  ]
-------------------------------------------------------------------

*** Process for QMAIL service ***
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Starting qmail-toaster: svscan.
-------------------------------------------------------------------

*** Process for XINETD (including Pure-FTPd) service ***
  - No need started
  - Process: reload
Reloading configuration:                                   [  OK  ]
-------------------------------------------------------------------

*** Process for KLOXO service ***
  - No need started
  - Process: reload
Execute fixlxphpexe for php53s...
Reloading kloxo-phpcgi:                                    [  OK  ]
Reloading kloxo-hiawatha:                                  [  OK  ]
-------------------------------------------------------------------

*** Process for PHP-FPM service ***
  - No need started
  - Process: reload
Reloading php-fpm:                                         [  OK  ]
-------------------------------------------------------------------

Shutting down system logger:                               [  OK  ]
Starting system logger:                                    [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-all [--help|-h]'
Title: Re: Bind Error
Post by: rAXv2 on 2014-11-16, 02:31:34
getting the error again
Title: Re: Bind Error
Post by: MRatWork on 2014-11-16, 03:06:10
The same way to resolved.
Title: Re: Bind Error
Post by: ibuxxi on 2014-11-16, 03:10:46
i have to same:

Error in named configuration:
/opt/configs/bind/conf/defaults/named.options.conf:148: unknown key 'rndc-key'
                                                           [FEHLGESCHLAGEN]
  - Process : restart
Named beenden:                                             [  OK  ]
Named starten:
Error in named configuration:
/opt/configs/bind/conf/defaults/named.options.conf:148: unknown key 'rndc-key'
                                                           [FEHLGESCHLAGEN]

Code: [Select]
sh /script/sysinfo

A. Kloxo-MR: 7.0.0.b-2014111401

B. OS: CentOS release 6.6 (Final) i686

C. Apps:
   1. MySQL: mysql55-5.5.40-1.ius.el6.i686
   2. PHP: php54-5.4.34-1.ius.el6.i686
   3. Httpd: httpd-2.2.29-1.mr.el6.i386
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.8.0-f.2.mr.el6.i386
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.5-1.el6.i686
   9. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.i386
      - with: courier-imap-toaster-4.1.2-1.3.17.mr.el6.i386

D. Php-type (for Httpd/proxy): php-fpm_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          1893       1291        602         24         35       1033
   -/+ buffers/cache:        222       1670
   Swap:         2047          2       2045

Title: Re: Bind Error
Post by: ibuxxi on 2014-11-16, 03:31:02
The same way to resolved.

not resolved
Title: Re: Bind Error
Post by: rAXv2 on 2014-11-16, 04:27:32
me too
Title: Re: Bind Error
Post by: rAXv2 on 2014-11-16, 04:29:09
switched to nsd for now
Title: Re: Bind Error
Post by: dlozev on 2015-05-25, 11:33:58
Hello, I also have the same problem. Can anybody help?
Title: Re: Bind Error
Post by: MRatWork on 2015-05-25, 11:36:35
If using Kloxo-MR 7.0, switch to 'none' and then switch back to bind but recommend to use nsd instead bind because less memory usage.