Modify

Ticket #2571 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 years ago

Could not open the config file /etc/ebox/80dns.conf

Reported by: Josep <josep.spam@…> Owned by: jsoriano@…
Milestone: Component: dns
Severity: normal Keywords:
Cc:

Description

After installing the DNS module I get the error

Could not open the config file /etc/ebox/80dns.conf

on the dashboard.

In /var/log/ebox/ebox.log:

2010/12/02 09:44:12 ERROR> Service.pm:74 EBox::Service::running - No such daemon: ebox.bind9
2010/12/02 09:44:18 DEBUG> ModelManager.pm:167 EBox::Model::ModelManager::model - model /dns/DomainTable does not exist.
2010/12/02 09:44:18 DEBUG> Run.pm:183 EBox::CGI::Run::__ANON__ - {data} {value} does not exist.
2010/12/02 09:44:18 ERROR> Run.pm:105 EBox::CGI::Run::run - Unable to import cgi: EBox::CGI::DNS::View::DomainTable Eval error: Can't locate EBox/CGI/DNS/View/D                          omainTable.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/                          share/perl/5.10 /usr/local/lib/site_perl . ) at (eval 1955) line 2.
BEGIN failed--compilation aborted at (eval 1955) line 2.
2010/12/02 09:44:40 ERROR> Sudo.pm:212 EBox::Sudo::_rootError - root command test -e /etc/bind/keys failed.
Error output:
Command output: .
Exit value: 1
2010/12/02 09:44:40 INFO> ServiceManager.pm:634 EBox::ServiceManager::__ANON__ - File /etc/bind/keys does not exist. So we won't compute its digest
2010/12/02 09:44:40 ERROR> Sudo.pm:212 EBox::Sudo::_rootError - root command test -e /etc/bind/keys failed.
Error output:
Command output: .
Exit value: 1
2010/12/02 09:44:40 INFO> ServiceManager.pm:634 EBox::ServiceManager::__ANON__ - File /etc/bind/keys does not exist. So we won't compute its digest
2010/12/02 09:44:41 ERROR> Sudo.pm:212 EBox::Sudo::_rootError - root command test -e /etc/bind/keys failed.
Error output:
Command output: .
Exit value: 1
2010/12/02 09:44:41 INFO> ServiceManager.pm:634 EBox::ServiceManager::__ANON__ - File /etc/bind/keys does not exist. So we won't compute its digest
2010/12/02 09:44:41 ERROR> Sudo.pm:212 EBox::Sudo::_rootError - root command test -e /etc/bind/keys failed.
Error output:
Command output: .
Exit value: 1
2010/12/02 09:44:41 INFO> ServiceManager.pm:634 EBox::ServiceManager::__ANON__ - File /etc/bind/keys does not exist. So we won't compute its digest
2010/12/02 09:44:49 INFO> Global.pm:471 EBox::Global::saveAllModules - Saving config and restarting services: firewall logs dns
2010/12/02 09:44:49 INFO> Base.pm:151 EBox::Module::Base::save - Restarting service for module: firewall
2010/12/02 09:44:52 INFO> Base.pm:798 EBox::Module::Base::_hook - Running hook: /etc/ebox/hooks/firewall.postservice 1
2010/12/02 09:44:52 INFO> Base.pm:151 EBox::Module::Base::save - Restarting service for module: logs
2010/12/02 09:44:53 INFO> Base.pm:151 EBox::Module::Base::save - Restarting service for module: dns
2010/12/02 09:44:53 DEBUG> Config.pm:72 EBox::Config::configkeyFromFile - Could not open the config file /etc/ebox/80dns.conf.
2010/12/02 09:49:19 ERROR> Service.pm:74 EBox::Service::running - No such daemon: ebox.bind9
2010/12/02 09:55:32 INFO> Global.pm:471 EBox::Global::saveAllModules - Saving config and restarting services: firewall dns
2010/12/02 09:55:32 INFO> Base.pm:151 EBox::Module::Base::save - Restarting service for module: firewall
2010/12/02 09:55:35 INFO> Base.pm:798 EBox::Module::Base::_hook - Running hook: /etc/ebox/hooks/firewall.postservice 1
2010/12/02 09:55:35 INFO> Base.pm:151 EBox::Module::Base::save - Restarting service for module: dns
2010/12/02 09:55:36 DEBUG> Config.pm:72 EBox::Config::configkeyFromFile - Could not open the config file /etc/ebox/80dns.conf.
2010/12/02 09:55:41 ERROR> Service.pm:74 EBox::Service::running - No such daemon: ebox.bind9
2010/12/02 09:55:46 INFO> Service.pm:705 EBox::Module::Service::restartService - Restarting service for module: dns
2010/12/02 09:55:46 DEBUG> Config.pm:72 EBox::Config::configkeyFromFile - Could not open the config file /etc/ebox/80dns.conf.
2010/12/02 09:55:46 ERROR> Service.pm:710 EBox::Module::Service::__ANON__ - Error restarting service: Could not open the config file /etc/ebox/80dns.conf.
2010/12/02 09:55:46 ERROR> Service.pm:74 EBox::Service::running - No such daemon: ebox.bind9

The file /etc/ebox/80dns.conf does not exist, but /etc/ebox/80dns.conf.dpkg-new does.

I have managed to update a number of entries in the DNS module, but still it does not start.

Attachments

Change History

comment:1 Changed 2 years ago by Josep <josep.spam@…>

Manually renaming 80dns.conf.dpkg-new to 80dns.conf resolves previous issue but raises a new one:

No such daemon: ebox.bind9

I can see a /etc/init/ebox.bind9.conf.dpkg-new Renaming it to /etc/init/ebox.bind9.conf seems to allow the DNS module to be started.

The root cause to this error appears to be that some script is not executed to properly configure the module after unpackaging it.

comment:2 Changed 2 years ago by Josep <josep.spam@…>

Just to confirm the previous point, I got an error when updating the System Updates.

root@zenbox:~# aptitude update
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Hit http://pt.archive.ubuntu.com lucid Release.gpg
Ign http://pt.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
...
Hit http://security.ubuntu.com lucid-security/multiverse Sources
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
E: Couldn't rebuild package cache
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

root@zenbox:~# dpkg --configure -a
Setting up libcrypt-openssl-random-perl (0.04-1build2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Setting up bind9 (1:9.7.0.dfsg.P1-1ubuntu0.1) ...
wrote key file "/etc/bind/rndc.key"
#
chgrp: cannot access `/var/run/named': No such file or directory
dpkg: error processing bind9 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ebox-dns:
 ebox-dns depends on bind9; however:
  Package bind9 is not configured yet.
dpkg: error processing ebox-dns (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 bind9
 ebox-dns
root@zenbox:~#

comment:3 Changed 2 years ago by jacalvo@…

  • Owner changed from ejhernandez@… to ejhernandez@…

comment:4 Changed 2 years ago by jacalvo@…

  • Owner changed from ejhernandez@… to jsoriano@…

comment:5 Changed 2 years ago by jsoriano@…

  • Status changed from new to closed
  • Resolution set to worksforme

Hi,

It seems that bind9 installation couldn't unpack all its files or that some of them where removed for any unkown reason. I recommend you to create by hand all the files needed by the installation script (like /var/run/named in the last error) until dpkg --configure -a can finish, and then reinstall ebox-dns and bind9 with sudo apt-get install --reinstall bind9 ebox-dns.

Regards,

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.