HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Bind installtion (http://www.howtoforge.com/forums/showthread.php?t=44612)

jopa123 4th April 2010 05:15

Bind installtion
 
I am doing a fresh install of the perfect setup Karmic Koala. Not yet to the point of installing ISPConfig. I believe I followed the isntructions perfectly but I get to the point if installing bind and I have 2 issues.

1) On reboot I get the error message that says something to the effect of cannot start apparmor, error on line 40 of /etc/apparmor/functions. I tried to uninstall apparmor again, twice. Same issue.

2) At the point when it tells me to move the bind directory, I enter the line:

mv /etc/bind /var/lib/named/etc

It tells me cannot stat, "/etc/bind/" nosuch directory exists.

I'm stumped. I even tried starting all over reinstalling bind. No luck.

Any help is greatly appreciated

falko 5th April 2010 18:33

Quote:

Originally Posted by jopa123 (Post 224081)
1) On reboot I get the error message that says something to the effect of cannot start apparmor, error on line 40 of /etc/apparmor/functions. I tried to uninstall apparmor again, twice. Same issue.

http://www.howtoforge.com/forums/sho...pparmor_parser

Quote:

Originally Posted by jopa123 (Post 224081)
2) At the point when it tells me to move the bind directory, I enter the line:

mv /etc/bind /var/lib/named/etc

It tells me cannot stat, "/etc/bind/" nosuch directory exists.

Did you maybe previously move /etc/bind? What's the output of
Code:

ls -la /var/lib/named/etc/
?

jopa123 5th April 2010 18:57

Her ya go.
 
Falko,

Thanks for the help.

I got the apparmor issue fixed. Got the solution from another thread here.

As for the Bind issue. I'm somewhat of a rookie, so I was following the instructions step by step. So I don't think I moved the /etc/bind/

Here's the output you asked for:

total 8
drwxr-xr-x 2 root root 4096 2010-04-03 21:16 .
drwxr-xr-x 5 root root 4096 2010-04-03 21:17 ..

jopa123 5th April 2010 21:51

syslog
 
Falko,

I did

aptitude remove bind9 and then started the bind install process over. It seemed to work until I tried to restart bind. It failed. Here's the output of the syslog:


Apr 5 06:49:01 server1 rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="690" x-info="http://www.rsyslog.com"] rsyslogd was HUPed, type 'lightweight'.
Apr 5 06:49:02 server1 kernel: [39440.020066] ------------[ cut here ]------------
Apr 5 06:49:02 server1 kernel: [39440.020085] WARNING: at /build/buildd/linux-2.6.31/fs/quota/dquot.c:964 dquot_claim_space+0x147/0x170()
Apr 5 06:49:02 server1 kernel: [39440.020090] Hardware name: To Be Filled By O.E.M.
Apr 5 06:49:02 server1 kernel: [39440.020093] Modules linked in: quota_v2 quota_tree radeon ttm snd_atiixp snd_ac97_codec drm ac97_bus iptable_filter ip_tables snd_pcm snd_timer snd i2c_algo_bit x_tables soundcore psmouse snd_page_alloc shpchp i2c_piix4 lp serio_raw usbhid parport 8139too 8139cp mii
Apr 5 06:49:02 server1 kernel: [39440.020131] Pid: 29, comm: pdflush Tainted: G W 2.6.31-20-server #58-Ubuntu
Apr 5 06:49:02 server1 kernel: [39440.020134] Call Trace:
Apr 5 06:49:02 server1 kernel: [39440.020146] [<ffffffff8105e538>] warn_slowpath_common+0x78/0xb0
Apr 5 06:49:02 server1 kernel: [39440.020152] [<ffffffff8105e57f>] warn_slowpath_null+0xf/0x20
Apr 5 06:49:02 server1 kernel: [39440.020157] [<ffffffff8116ed07>] dquot_claim_space+0x147/0x170
Apr 5 06:49:02 server1 kernel: [39440.020164] [<ffffffff811dd08c>] ext4_mb_mark_diskspace_used+0x32c/0x380
Apr 5 06:49:02 server1 kernel: [39440.020169] [<ffffffff811dea19>] ext4_mb_new_blocks+0x2a9/0x560
Apr 5 06:49:02 server1 kernel: [39440.020178] [<ffffffff811d2b70>] ? ext4_ext_find_extent+0x130/0x2f0
Apr 5 06:49:02 server1 kernel: [39440.020182] [<ffffffff811d50ba>] ext4_ext_get_blocks+0x45a/0x620
Apr 5 06:49:02 server1 kernel: [39440.020190] [<ffffffff81279b95>] ? radix_tree_gang_lookup_tag_slot+0x95/0xe0
Apr 5 06:49:02 server1 kernel: [39440.020196] [<ffffffff811b4c51>] ext4_get_blocks+0x1e1/0x210
Apr 5 06:49:02 server1 kernel: [39440.020201] [<ffffffff811b5707>] mpage_da_map_blocks+0xa7/0x370
Apr 5 06:49:02 server1 kernel: [39440.020207] [<ffffffff811ed87e>] ? jbd2_journal_start+0xae/0x100
Apr 5 06:49:02 server1 kernel: [39440.020211] [<ffffffff811b5c98>] ext4_da_writepages+0x2c8/0x5c0
Apr 5 06:49:02 server1 kernel: [39440.020220] [<ffffffff810e3158>] do_writepages+0x28/0x50
Apr 5 06:49:02 server1 kernel: [39440.020226] [<ffffffff8113eb5c>] writeback_single_inode+0x1bc/0x450
Apr 5 06:49:02 server1 kernel: [39440.020231] [<ffffffff8113f478>] generic_sync_sb_inodes+0x418/0x530
Apr 5 06:49:02 server1 kernel: [39440.020236] [<ffffffff8113f69b>] writeback_inodes+0x5b/0x100
Apr 5 06:49:02 server1 kernel: [39440.020241] [<ffffffff810e1eec>] wb_kupdate+0xbc/0x140
Apr 5 06:49:02 server1 kernel: [39440.020246] [<ffffffff810e395e>] __pdflush+0x13e/0x260
Apr 5 06:49:02 server1 kernel: [39440.020251] [<ffffffff810e3a80>] ? pdflush+0x0/0x50
Apr 5 06:49:02 server1 kernel: [39440.020255] [<ffffffff810e3ac8>] pdflush+0x48/0x50
Apr 5 06:49:02 server1 kernel: [39440.020259] [<ffffffff810e1e30>] ? wb_kupdate+0x0/0x140
Apr 5 06:49:02 server1 kernel: [39440.020264] [<ffffffff810e3a80>] ? pdflush+0x0/0x50
Apr 5 06:49:02 server1 kernel: [39440.020270] [<ffffffff81078116>] kthread+0xa6/0xb0
Apr 5 06:49:02 server1 kernel: [39440.020276] [<ffffffff8101312a>] child_rip+0xa/0x20
Apr 5 06:49:02 server1 kernel: [39440.020280] [<ffffffff81078070>] ? kthread+0x0/0xb0
Apr 5 06:49:02 server1 kernel: [39440.020284] [<ffffffff81013120>] ? child_rip+0x0/0x20
Apr 5 06:49:02 server1 kernel: [39440.020288] ---[ end trace 4e3bac30ffaa92f1 ]---
Apr 5 06:49:02 server1 kernel: [39440.020290] ------------[ cut here ]------------
Apr 5 06:49:02 server1 kernel: [39440.020295] WARNING: at /build/buildd/linux-2.6.31/fs/quota/dquot.c:964 dquot_claim_space+0x15d/0x170()
Apr 5 06:49:02 server1 kernel: [39440.020298] Hardware name: To Be Filled By O.E.M.




Any idea what I did wrong?

Thanks

falko 6th April 2010 15:19

Did you create a zone in ISPConfig? BIND should be running afterwards (but you don't have to create a zone if you don't want to run your own nameserver).

jopa123 6th April 2010 16:28

No ISPConfig yet
 
I am not to the point of installing ISPConfig yet. I am on page 4 of the Perfect Server Ubuntu 9.10 setup.

http://www.howtoforge.com/perfect-se...ispconfig-2-p4

At the end of the "DNS Server" section

falko 7th April 2010 15:56

Ok, just move on with the tutorial. Once you've installed ISPConfig and created your first zone (which you don't have to do if you don't need your own nameserver), BIND should start to work. :)

jopa123 7th April 2010 16:08

Bind installation
 
Falko,

Will do. BTW, what are the benefits or drawbacks of running my own nameserver?

Also, It looks like the issue is that it's not finding named.conf file in /etc/bind. I've looked and the file is not there.

From syslog:

Apr 7 09:04:36 server1 named[2665]: loading configuration from '/etc/bind/named.conf'
Apr 7 09:04:36 server1 named[2665]: none:0: open: /etc/bind/named.conf: file not found


Thanks again for your help.

jopa123 21st April 2010 21:01

Are you certain
 
Falko,

I am continuing with the install despite my bind issues. However, in several parts of the setup, when installing packages, the install program attempts to start bind in order to , at which time it reads "fail", the install continues but I am worried that the lack of bind is affecting many of the other installs. For instance, when installing apache I get this:

--------
Setting up apache2-suexec (2.2.12-1ubuntu2.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
bind9
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up bind9 (1:9.6.1.dfsg.P1-3ubuntu0.3) ...
* Starting domain name service... bind9 [fail]
invoke-rc.d: initscript bind9, action "start" failed.
dpkg: error processing bind9 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
bind9
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
--------


Are you certain I am not just wasting my time here?

thanks,

Jopa123

LaurenJadeTaylor 22nd April 2010 18:04

nice infomation thnxx


All times are GMT +2. The time now is 16:46.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.