Amahi DHCP server will not disable

rhubarb
Posts: 54
Joined: Wed May 05, 2010 1:59 pm

Amahi DHCP server will not disable

Postby rhubarb » Sun Aug 22, 2010 12:14 pm

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

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Amahi DHCP server will not disable

Postby gboudreau » Tue Aug 24, 2010 9:55 am

Try this, in a terminal (as root):

Code: Select all

chkconfig dhcpd off
- Guillaume Boudreau

rhubarb
Posts: 54
Joined: Wed May 05, 2010 1:59 pm

Re: Amahi DHCP server will not disable

Postby rhubarb » Wed Aug 25, 2010 12:46 am

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

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Amahi DHCP server will not disable

Postby cpg » Wed Aug 25, 2010 2:37 am

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)
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

rhubarb
Posts: 54
Joined: Wed May 05, 2010 1:59 pm

Re: Amahi DHCP server will not disable

Postby rhubarb » Wed Aug 25, 2010 4:25 am

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

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Amahi DHCP server will not disable

Postby cpg » Wed Aug 25, 2010 4:34 am

Code: Select all

cd /var/hda/platform/html/ echo "Server.find_by_name 'dhcpd'" | ./script/console production
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

rhubarb
Posts: 54
Joined: Wed May 05, 2010 1:59 pm

Re: Amahi DHCP server will not disable

Postby rhubarb » Wed Aug 25, 2010 10:10 am

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]$

rhubarb
Posts: 54
Joined: Wed May 05, 2010 1:59 pm

Re: Amahi DHCP server will not disable

Postby rhubarb » Wed Aug 25, 2010 10:12 am

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]$

rhubarb
Posts: 54
Joined: Wed May 05, 2010 1:59 pm

Re: Amahi DHCP server will not disable

Postby rhubarb » Wed Sep 01, 2010 1:35 pm

is anything happening about this problem?

bbloqx
Posts: 1
Joined: Thu Sep 30, 2010 8:54 pm

Re: Amahi DHCP server will not disable

Postby bbloqx » Tue Dec 07, 2010 1:53 am

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">

Who is online

Users browsing this forum: No registered users and 3 guests