Strange, I am running Centos 5.6 but when I followed this post
http://wiki.scalr.net/Installing_Scalr/OS_Specific_Installation_Guides/Ubuntu_10.04_Lucid
for Ubuntu and commented out the *** if (count($this->zonesConfig) ==
0) *** code, then it started working.  Additionally I had to symlink a
folder client_zones under /var/named to /var/named/etc/namedb/
client_zones and it started working.

Hope this helps someone else!

Cheers
Srini

On Dec 16, 3:10 pm, Srini <[email protected]> wrote:
> I think the problem is because my named.conf is incorrect.
>
> Can someone post a working named.conf example from their Scalr
> installation?  That will be a big help to go forward.
>
> Thanks in advance
> Srini
>
> On Dec 16, 9:17 am, Srini <[email protected]> wrote:
>
>
>
>
>
>
>
> > 1.  Brand new self hosted scalr with bind also running on the same
> > server.  Instructions as per wiki to configure bind followed.  Added a
> > farm and a DNS zone for that farm.  Status is pending create and never
> > gets created.  On further checking found that the cron job
> > DNSManagerPoll was having errors / exceptions.
>
> > 2.  rndc is able to query from command line, see excerpt below.
>
> > [root@int-logger cron]# rndc status
> > number of zones: 0
> > debug level: 0
> > xfers running: 0
> > xfers deferred: 0
> > soa queries in progress: 0
> > query logging is OFF
> > recursive clients: 0/1000
> > tcp clients: 0/100
> > server is up and running
>
> > 3.  When the DNSManagerPoll job is executed, a "Cannot fetch rndc
> > status on local server" error is returned.  To check this I ran it in
> > the console directly, rndc status as per output above is also returned
> > here, output below.
>
> > [root@int-logger cron]# /usr/bin/php /var/www/scalr/app/cron/cron.php
> > --DNSManagerPoll
> > 2011-12-16 09:43:07,543 - INFO [tran4eeac552d4b31:Logger@36] -
> > 'Starting DNSManagerPoll cronjob...'
> > 2011-12-16 09:43:07,543 - INFO [tran4eeac552d4b31:Logger@63] -
> > 'Execute rndc status: number of zones: 0\ndebug level: 0\nxfers
> > running: 0\nxfers deferred: 0\nsoa queries in progress: 0\nquery
> > logging is OFF\nrecursive clients: 0/1000\ntcp clients: 0/100\nserver
> > is up and running'
> > 2011-12-16 09:43:07,543 - ERROR [tran4eeac552d4b31:Logger@307] -
> > 'Cannot fetch RNDC status on local server'
> > 2011-12-16 09:43:07,543 - INFO [tran4eeac552d4b31:Logger@63] -
> > 'Execute rndc status: number of zones: 0\ndebug level: 0\nxfers
> > running: 0\nxfers deferred: 0\nsoa queries in progress: 0\nquery
> > logging is OFF\nrecursive clients: 0/1000\ntcp clients: 0/100\nserver
> > is up and running'
> > 2011-12-16 09:43:07,543 - ERROR [tran4eeac552d4b31:Logger@307] -
> > 'Cannot fetch RNDC status on local server'
> > 2011-12-16 09:43:08,543 - INFO [tran4eeac552d4b31:Logger@63] -
> > 'Execute rndc status: number of zones: 0\ndebug level: 0\nxfers
> > running: 0\nxfers deferred: 0\nsoa queries in progress: 0\nquery
> > logging is OFF\nrecursive clients: 0/1000\ntcp clients: 0/100\nserver
> > is up and running'
> > PHP Fatal error:  Uncaught exception 'Exception' with message 'Cannot
> > fetch RNDC status on local server' in /var/www/scalr/app/src/Scalr/Net/
> > Dns/Bind/Transports/LocalFs.php:25
> > Stack trace:
> > #0 /var/www/scalr/app/cron/class.DNSManagerPollProcess.php(33):
> > Scalr_Net_Dns_Bind_Transports_LocalFs->__construct('/usr/sbin/rndc', '/
> > var/named/etc/...')
> > #1 /var/www/scalr/app/src/LibWebta/library/IO/PCNTL/
> > class.ProcessManager.php(260): DNSManagerPollProcess->OnEndForking()
> > #2 /var/www/scalr/app/src/LibWebta/library/IO/PCNTL/
> > class.JobLauncher.php(130): 
> > ProcessManager->Run(Object(DNSManagerPollProcess))
>
> > #3 /var/www/scalr/app/cron/cron.php(38): JobLauncher->Launch(1, 180)
> > #4 {main}
> >   thrown in /var/www/scalr/app/src/Scalr/Net/Dns/Bind/Transports/
> > LocalFs.php on line 25
>
> > --------------------------------------------------------------------------- 
> > ----------
>
> > As can be seen rndc is getting the status but somehow LocalFs.php is
> > unable to get it?
>
> > Please help.
>
> > Regards
> > Srini

-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/scalr-discuss?hl=en.

Reply via email to