Page 1 of 2

Amahi DHCP server will not disable

Posted: Sun Aug 22, 2010 12:14 pm
by rhubarb
Hi
I have followed the instructions for disableing the Amahi DHCP server but it always restarts after system reboot (however the 2 server checkboxes remain unchecked)

(my HDA uses too much power to be left on continuously so I prefer getting my DHCP from the router)

Peter

Re: Amahi DHCP server will not disable

Posted: Tue Aug 24, 2010 9:55 am
by gboudreau
Try this, in a terminal (as root):

Code: Select all

chkconfig dhcpd off

Re: Amahi DHCP server will not disable

Posted: Wed Aug 25, 2010 12:46 am
by rhubarb
Hi
It did not help. I did

sudo chkconfig dhcpd off

and then rebooted the server. DHCP server still running in HDA. (But the 2 checkboxes are empty)

Peter

Re: Amahi DHCP server will not disable

Posted: Wed Aug 25, 2010 2:37 am
by cpg
this is something we would like to debug. can you copy the output of these commands here:

Code: Select all

chkconfig | grep dhcpd
(just to make sure)

Code: Select all

echo "Server.find_by_name 'dhcpd'" | /var/hda/platform/html/script/console
(skip the error)

Re: Amahi DHCP server will not disable

Posted: Wed Aug 25, 2010 4:25 am
by rhubarb
her you go

Code: Select all

[peter@cutting mnt]$ chkconfig | grep dhcpd dhcpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off dhcpd6 0:off 1:off 2:off 3:off 4:off 5:off 6:off

Re: Amahi DHCP server will not disable

Posted: Wed Aug 25, 2010 4:34 am
by cpg

Code: Select all

cd /var/hda/platform/html/ echo "Server.find_by_name 'dhcpd'" | ./script/console production

Re: Amahi DHCP server will not disable

Posted: Wed Aug 25, 2010 10:10 am
by rhubarb
for some reson the 2nd listing is disappearing from this post so I am adding it again this time as CODE and not LIST

Code: Select all

[peter@cutting mnt]$ echo "Server.find_by_name 'dhcpd'" | /var/hda/platform/html/script/console Loading development environment (Rails 2.3.4) Rails Error: Unable to access log file. Please ensure that /var/hda/platform/html/log/development.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed. >> Server.find_by_name 'dhcpd' Mysql::Error: Unknown database 'hda_development' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:585:in `real_connect' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:585:in `connect' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:199:in `initialize' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:71:in `new' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:71:in `mysql_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `send' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout' from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1271:in `columns' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1284:in `column_names' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1297:in `column_methods_hash' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1986:in `all_attributes_exists?' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:380:in `all?' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1986:in `each' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1986:in `all?' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1986:in `all_attributes_exists?' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1842:in `method_missing' from (irb):1>> [peter@cutting mnt]$

Re: Amahi DHCP server will not disable

Posted: Wed Aug 25, 2010 10:12 am
by rhubarb
and here is the 3rd listing

Code: Select all

[peter@cutting mnt]$ cd /var/hda/platform/html/ [peter@cutting html]$ echo "Server.find_by_name 'dhcpd'" | ./script/console production Loading production environment (Rails 2.3.4) Rails Error: Unable to access log file. Please ensure that /var/hda/platform/html/log/production.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed. >> Server.find_by_name 'dhcpd' => #<Server id: 3, name: "dhcpd", comment: "DHCP Server", pidfile: nil, start: nil, stop: nil, monitored: false, start_at_boot: false, created_at: "2010-05-19 13:15:53", updated_at: "2010-05-19 13:50:25"> >> [peter@cutting html]$

Re: Amahi DHCP server will not disable

Posted: Wed Sep 01, 2010 1:35 pm
by rhubarb
is anything happening about this problem?

Re: Amahi DHCP server will not disable

Posted: Tue Dec 07, 2010 1:53 am
by bbloqx
I'm having problem with the DHCP server starting on boot as well. Has anyone come up with a solution for this problem? Currently I have to manually stop the dhcp server every time I reboot.

Here is the output when I run "Server.find_by_name 'dhcpd'" | ./script/console production"

Code: Select all

# echo "Server.find_by_name 'dhcpd'" | ./script/console production Loading production environment (Rails 2.3.4) >> Server.find_by_name 'dhcpd' #<Server id: 4, name: "dhcpd", comment: "DHCP Server", pidfile: nil, start: nil, stop: nil, monitored: false, start_at_boot: false, created_at: "2010-07-31 16:22:55", updated_at: "2010-12-07 16:17:53">