/srv/irclogs.ubuntu.com/2010/12/11/#ubuntu-server.txt

JanCnot all folders are 4k in size, folders with a lot of files in them might be (a lot) larger00:00
=== jjohansen is now known as jj-afk
lolufailhi!02:18
lolufailforgot there's a special channel for _server ;)02:18
lolufailon 10.04, my dm_crypt randomly crashes when writing ~300-700GB large files, need to reboot the machine... any idea? should I try maverick kernel? here's the trace: http://www.abload.de/img/captureoby2.png02:18
Patrickdkhmm, I have no single files that large02:28
Patrickdkbut I have a 6tb drive that is dm_crypt, and it's happy with 20gig files02:28
Patrickdkbut that really should go to the kernel channel :)02:29
DjKiDDhttp://pastebin.com/HQzf9fxk05:56
DjKiDDWhats this error mean?05:56
DjKiDDpermissions problem?05:56
DatzDjKiDD: run as root?06:05
=== Psi-Jack_ is now known as Psi-Jack
adrianrallyI have a public static IP and a subnet routed behind it. I configurate it on ubuntu server and I have internet on my PC, but the server gives me the IP address of the linux not the one I picked up from the subnet. What to do ? http://img573.imageshack.us/img573/1244/capturewn.jpg10:45
=== jdrab is now known as cortex|sk
uvirtbotNew bug: #688922 in samba (main) "package samba 2:3.4.0-3ubuntu5.7 failed to install/upgrade:" [Undecided,New] https://launchpad.net/bugs/68892213:01
cap_00just wondering which virtual server deployment is best, kvm vmware, openvz? other?13:23
cap_00i've been having some issues with kvm, and it seems to be less universal cause it requires vt on the processor, so i guess it's less universal..13:25
gorkhaanHey. Does anybody know a web frontend for apt-get? :)14:01
Nafallogorkhaan: landscape14:06
gorkhaanwell ty... but I prefer a free solution.14:09
=== smoser` is now known as smoser
KenDire need to assistance. After receiving so much network traffic, my headless server stops responding to ping/ssh/ftp.. everything. Ubuntu Server Maverick 10.10. I'm using it to back up some 200GB of files over FTP on local network but this isn't the first time this happens - it seems to lose connection quite often. Any tips to help remedy it?15:06
DevoKunWhat kind of network card?15:07
KenHm, One second.15:07
KenPCI.. uh..15:07
KenOh. For the first time i've plugged a monitor into the headless server before starting it and it's not responding to anything via keyboard.15:08
DevoKunWhat kind of keyboard?15:08
KenPS/2 keyboard. Screen went blank somewhere along the way and the keyboard didn't do anything. Restarting it now to check the network card details. this is new, though15:09
Ken00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78) - that's my network card15:10
DevoKunEthernet is onboard? Or a PCI card?15:11
KenIt's onboard.15:11
KenMaybe it isn't to do with the network activity after all - maybe it's just general activity. Sometimes the server sits on for a few days and I don't access it much bar to upload a small text file or the like. Other times it'll just stop responding.15:11
KenWait, sorry. I'm pretty useless. I used "lspci" to view the network card. That means it's PCI, right?15:12
DevoKunNo neccesarily15:12
DevoKunlspci shows the pci bus15:12
DevoKunonboard cards can be hooked through the pci bus15:12
KenAah. Of course. In that case i'll go with my answer of "onboard" i've had the tower open before and it doesn't slot into a PCI slot.15:13
penguin42what does lspci | grep -i ethernet    say ?15:13
penguin42oh, you had it above, the Via15:13
KenYeah, that's the one.15:13
penguin42Ken: So you have a keyboard/monitor on it15:13
DevoKunAnd you say it's locking up randomly?15:13
Kenpenguin42: I do now, yes. Normally I ssh.15:13
penguin42ken: When it stops responding what is shown on the monitor?15:13
KenDevoKun: It is. I can't seem to find any pattern to be honest. It's usually during heavy network traffic, either locally or ftp access via a dyndns name15:14
Kenpenguin42: I've never had it connected in time to see. I'll try and trigger a lock up, though. It was connected prior to the most recent (a few minutes ago) but the screen was blank and it didn't respond to keyboard.15:14
jpdsYou're backing up 200G over FTP? Tried rsync?15:14
penguin42Ken: Does it come back or does it stay dead?15:14
KenIt stayed dead.15:15
penguin42Ken: Anything in dmesg / /var/log/messages or the like?15:15
KenI'll check now15:15
Kendmesg is just showing me information from the reset I just carried out. How can I view a longer log?15:16
KenSorry for the really newbie questions. Troubleshooting a server is well beyond what i'm used to. I've got it reasonably well set up but I'm not even sure where to start with this.15:17
penguin42 /var/log/messages and /var/log/kern.log15:17
penguin42however, if it died in an odd way then they won't make it to ther15:17
KenIt's giving an error for my wireless card, which I don't ever actually use.15:18
penguin42meh15:18
KenMay or may not be of use:15:19
Ken[    9.467313] ACPI: resource vt596_smbus [io  0x5000-0x5007] conflicts with ACPI region SM06 [??? 0x00005006 flags 0x36]15:19
Ken[    9.467319] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver15:19
KenThat's on boot though15:19
penguin42wouldn't worry too much about that one15:19
KenI'm seeing if I can make it do the same again. I'm transferring some large files over15:20
KenThis is part of the problem. The only pattern I seem to find is it's after a period of heavy activity. Time makes no difference. As i've said, it can happily sit on for days, barely used, with no issues.15:20
KenOther times It'll be on for no more than a few minutes whilst I'm doing a lot of heavy traffic file transfers and it stops responding to ssh, ping, etc. Resetting manually is the option i've used.15:21
DevoKunKen: this sounds like bad hardware to me. You should try running memtest86 on the machine to see what happens.15:21
KenMemtest using a Live CD, right?15:22
DevoKunyes15:22
KenI did have a hard drive die. It was years old though and it's since been replaced. The change of hard drive hasn't made a difference though - this happened before and after the replacement.15:22
KenThanks, DevoKun and Penguin42. I really appreciate you taking the time to help me.15:23
KenHmm. 2GB file just transferred without a problem.15:25
KenI'll send another few larger files then run memtest.15:25
DevoKunKen: If the machine survives memtest86 without crashing, then you can run some other hardware testing tools like cpuburn or smartctl (part of smartmontools). However, if you suspect the problem may be with your Linux installation, then download and boot from the "System Rescue CD" project liveCD: http://www.sysresccd.org/Main_Page you can startup the network then copy files on mass to see what happens.15:27
KenDevoKun: Brilliant. That should really narrow it down. I've already switched out my router to see if that made a difference (I wanted to change my router anyway because my provider-branded one doesn't allow Wake On LAN), so I can rule that out as a possible problem.15:29
KenAnother question, somewhat unrelated to servers. Fastest protocol for transferring files over local network? I'm assuming FTP?15:32
DevoKunFastest?15:32
KenYeah. To transfer from my laptop to my server. Two wired connections and ftp?15:33
KenIn terms of transfer speeds that is.15:33
DevoKunActually, there is some data out there to suggest that Samba-to-Samba (smb) connections are the fastest. However, I always use, and recommend, rsync over ssh or scp.15:34
DevoKunYou should train yourself not to use FTP.15:34
KenI've been following an rsync  tutorial to have incremental, automated backups15:34
DevoKunIt's a bad habbit ;)15:34
KenHaha. I'll heed that advice.15:34
DevoKunrsync is dead simple. Create a cron job that does: rsync -avz -e 'ssh' <local-source-dir> <user>@<remote-server>:<remote-dest-dir>15:36
adrianrallyWhat to do if dnsmsq is using the same port as named ?15:38
DevoKunsomething like: 0,15,30,45 * * * * /usr/bin/rsync -avz -e 'ssh' /home/ken ken@192.168.0.5:.15:38
RoyKDevoKun: -e ssh is implicit since five years ago or so15:39
DevoKunOld habbit15:40
Ken2I followed a tutorial and made a bash file, then i'm going to link it to cron.15:40
Ken2"rsync -e ssh -varuzP /media/DATA/College/ <server>:/home/kenneth/backup/College/"15:40
Ken2Ooh, I just got an error although nothing bad has happened to my network connection15:41
Ken2Segfault in miniserve.pl - that's webmin as far as I know15:41
Ken2Okay, woah15:41
Ken2I think we have success.15:41
Ken2I see an error on the server screen. It's talking abut er... kthread+0x74/0x80 and bdi+start_fn15:42
Ken2I'll have to do a reboot and then i'll try to dig that out of the dmesg log if anyone can advise me how I might go about it.15:43
penguin42Ken2: Can you get a full copy of the whole error?15:43
SlybootsHmm.15:43
SlybootsIs it possibel to have Squid to act as a transprent proxy with oly one network card15:43
RoyKKen2: -r is part of -a15:44
Ken2penguin42: I'll give it a go. I used watch "dmesg | tail" on my server and it all appeared on the monitor. I'll have to reboot then i'll try to ssh and view the dmesg log fully to get a copy of it unless you have a better suggestion15:44
DevoKunadrianrally: you probably don't need both DNSmsq and named running at the same time. If you are trying to use just DNSmsq, then stop and disable named.15:44
penguin42Ken2: If you can't get it any other way then try a picture!15:45
Ken2penguin42: Haha, good idea.15:45
Ken2Is it possible webmin is causing the issue? It showed a segfault with miniserv.pl which, as far as i know, is what webmin runs on.15:45
Ken2Then a lot of scroll happened (rebooting to find it)15:46
RoyK!webmin15:47
ubottuwebmin is no longer supported in Debian and Ubuntu. It is not compatible with the way that Ubuntu packages handle configuration files, and is likely to cause unexpected issues with your system.15:47
adrianrallyDevoKun. The thing is like this. I use my saver as a webserver. I have domains parked on it.15:47
adrianrallyI use bind9 for that.15:47
nRyhello, are there any Ubuntu Server admins for hire out there?15:47
nRyI have a project I need an ubuntu server OS expert right away to help me set up a custom config by Monday15:48
nRyVirtualBox is already setup on my server but I need to build some VM's and and then configure some special software that has full documentation and tech supper. However I need an expert with Ubuntu Server OS to make sure it is all running optimally. I must place this server into a client's location on Monday.15:48
adrianrallyDevoKun: This is my problem: http://img529.imageshack.us/img529/9469/captureqf.jpg15:48
Ken2Okay, the first error I saw:15:49
Ken2[   38.155224] miniserv.pl[1519]: segfault at 19 ip 080cdcb3 sp bfefc100 error 4 in perl[8048000+12d000]15:49
DevoKunadrianrally: looking now15:49
Ken2It doesn't give me much else aside from that. I'll try to dig out the rest from somewhere and use pastebin.15:50
adrianrallyThat's my server's ip addres. I should have an ip from the subnet(62.231*).15:50
Ken2Does /var/log/kern.log be over written every time I reboot? If so, can I find older logs?15:50
Ken2Ah. Scroll bad was limited in my terminal.15:52
adrianrallyiptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE15:54
adrianrallyIf I put this rule... I get the server's ip address. If not, I can resolve dns but no incoming traffic. What am I missing here ?15:54
adrianrallyIf I ping the gateway, it's ok. If I ping the PC from the server... no ping.15:56
Ken2Alright, having trouble locating the previous log when I crashed. It's showing mostly reboot information and nothing before it. I am getting a segfault from miniserv.pl though15:57
DevoKunadrianrally: you need to be able to forward packets to the aliased subnets, so the masquerading rule is required.15:57
adrianrallyYes but it makes my subnet work as a intranet.15:58
adrianrallyThe subnet is routed behind the public ip address.15:58
adrianrally62.231.69.58 should be my public ip address.15:58
penguin42Ken2: It's possible, but the bdi+ blah error is a kernel oops, and that looks like the real issue15:59
DevoKunadrianrally: do you have multiple ethernet ports in the machine?15:59
adrianrallyYes.15:59
adrianrallyBut I use only one.15:59
DevoKunIs this your firewall?15:59
adrianrallyNo.15:59
Ken2penguin42: Ah. And the kernel problem could either be hardware or an install issue? I'm trying to run another large transfer to encourage another crash16:00
DevoKunadrianrally: You're connecting your webserver directly to the Internet?16:00
penguin42Ken2: Either hardware or a bug16:00
adrianrallyYes.16:00
Ken2penguin42: Okay. Praying for a bug then.16:00
adrianrallyDevoKun: On eth0 it's the public IP address the ISP gave me.16:00
penguin42Ken2: You could try changing the font used on the terminal to give a better chance of it all fitting on16:01
Ken2I've changed the scrollback to "unlimited" right now. I'm sshing and hoping it'll capture it all16:01
penguin42Ken2: OK, is the ssh surviving the problem?16:01
Ken2Not usually.16:01
DevoKunadrianrally: You're getting (eth0)86.122.123.155 as your public IP because that's the interface that traffic is being routed out on. Traffic may come in on (eth0:0)62.231.69.57, but it will go out eth0 because that's how you have your routing setup.16:02
Ken2I'm just an optimist. How do the logs work? If I can access the log from before I had to reboot, I should be able to find the line that show the issue.16:02
penguin42Ken2: It depends on the failure, if the kernel got upset it might not make it to the file16:03
Ken2Oh. Hmm.16:03
Ken2Running "dmesg /var/sys/log" shows only what has happened since boot, not since the previous boot.16:04
adrianrallyDevonKun: So how do I send traffic from eth0 trough eth0:0 to my pc?16:04
DevoKunadrianrally: I recommend you install a firewall between the Internet and your webservers. pfSense (http://www.pfsense.org/) is a good option for this scenerio. Web based interface, quick and easy to configure. Then you can setup 1-to-1 NAT to server based on IP.16:04
DevoKunWhy are you using two subnets?16:04
DevoKunYou should really only need 1 in a hosted environment.16:05
adrianrally62.231.69.56/29 is behind 86.122.123.15516:05
adrianrallyI had what I wanted but the harddrive exploded last night.16:06
adrianrallyI didn't even changed the config on my PC. It's like you saw it in the screenshot. It's something with iptables I think.16:08
DevoKunadrianrally: So your ISP told you to use 86.122.123.155 as an IP and to use 86.122.123.129 as a router.16:09
DevoKunadrianrally: Where did 62.231.69.56 come from?16:09
adrianrallyMy ISP told me to put on eth0 86.122.123.155, and on eth0:0 62.231.69.57. Then on my PC 62.231.69.58, 62.231.69.59 on the wifi router, 62.231.69.60 on mom's laptop.16:11
Ken2Ah ha.16:11
Ken2http://pastebin.ubuntu.com/542312/16:11
penguin42is that it? There is normally a lot more after that16:11
adrianrallyThey don't offer support for linux.... they said to me to make internet connection sharing.16:11
adrianrallyJust That!16:12
Ken2I'm viewing it in Nano and that's all I can see.16:12
Ken2Line 3, [cut here], is pretty much where the problem happened.16:12
penguin42Ken2: My bet is there is a lot more on the console16:12
Slybootssilly Q' how to you comment out multiable lines in a configuration file16:13
Ken2penguin42: What's the best way for me to view it on the console? It might be really obvious but I couldn't see it. Can you use dmesg with a parameter to have huge scroll back?16:13
SlybootsRight now Im just adding # to every line; surly there is a beter way16:13
penguin42Ken2: are you getting it after reboot?16:14
adrianrallyThis is killing me DevoKun....16:14
Ken2Yes. I opened it in Nano and it's shown me all of the kern.log since 4 dec.16:14
Ken2When I open it using "dmesg" it just shows since reboot.16:14
adrianrallyDevoKun: Might be bind9 screwing up something ?16:15
penguin42Ken2: It would be better to get the whole message as it dies on the console16:15
DevoKunadrianrally: no. this is not a DNS issue. your problem is with IP routing.16:16
Ken2I'm trying to make it crash again. My monitor resolution is quite bad though so i'll be stuck with typing it out if it doesn't go into a log.16:16
DevoKunadrianrally:  62.231.69.56 can not be "behind" 86.122.123.155 because it is a *very* different network.16:16
adrianrallyIt's a 8 IP subnet behind that ip address.16:17
adrianrallyThat's what they said and it worked till now.16:17
penguin42Ken2: Look at bug 67011716:18
uvirtbotLaunchpad bug 670117 in linux "After some io activity kernel bug in dmesg, then server freezes (pings still working)" [Undecided,New] https://launchpad.net/bugs/67011716:18
penguin42Ken2: He has a similar inode.c:2099 but you see he has a lot more info after it?16:18
Ken2penguin42: Yes. That's pretty much exactly what mine looked like16:18
penguin42Ken2: Well the text of the backtrace is important16:19
Ken2It appeared on my screen but isn't in the log.16:19
nRyany server admins for hire in here????16:19
DevoKunadrianrally: see, if you wanted 192.168.0.10/24 routed through 192.168.0.1/24, that would be do-able. If you wanted 192.168.100.10 routed through 192.168.0.1, you could change the netmask to /16 and no problems. To route 10.10.100.10 through 192.168.0.1 you would need to setup your routing so machines new how to get to and from that IP.16:19
Ken2Well, it's not in kern.log anyway. Is there anywhere else it might be?16:20
penguin42Ken2: I doubt it, have you got a digi camera?16:20
adrianrallyDevoKun I wanted more IPs. And that's what they gave me.16:20
Ken2penguin42: Embarrassingly, not at the moment.16:21
DevoKunadrianrally: OK, so they probably gave you a separate gateway for that subnet also?16:21
Ken2Now i'm just getting a lot of segfaults from python/miniserv.pl. Any suggestions as to what else I could use since Webmin isn't supported (If you don't have any off the top of your head i'll go google)16:22
adrianrallyLet me translate your the mail.16:22
Ken2Hmm, okay.  I just sent 5GB of files over the network to the server and nothing happened.16:22
penguin42Ken2: If your getting seg faults all over then I really do suggest the memtest86 run16:23
Ken2I shall do that right now.16:24
Ken2Maybe  I should get a new hobby.16:24
adrianrallyDevoKun: This is the email from the ISP(RDS): "We've routed 62.231.69.56/29 behind 86.122.123.155. The subnet can be configured on the local interface of the server if eth0 is from RDS(this is the ISP) and eth1 the local network. For example ifconfig eth1:0 62.231.69.57 netmask 255.255.255.248. And you can use on the local network, directly connected into eth1, addresses from 62.231.69.5816:25
adrianrallyto 62.231.69.62(with netmask 255.255.255.248 and gateway 62.231.69.57). Or you can add aliases for example: ifconfig eth1:1 62.231.69.58 netmask 255.255.255.248"16:25
adrianrallyBut. I know I didn't used another network card. I've put 86.122.123.155 on eth0, 62.231.69.57 on eth0:0 and the other ones I used them as aliass or on other equippments.16:26
DevoKunadrianrally: Sure. You need to setup a route for the 62.231.69.62 IP.16:27
DevoKunadrianrally: Aliases are fine, but they still need routes.16:27
adrianrallyHow do I do that DevonKun ?16:29
DevoKunadrianrally: add the gateway they gave you (62.231.69.57) to your config file for the eth0:0 interface16:29
SlybootsHmm..16:29
SlybootsHaving a odd issue trying to push a proxy-configuration file over DHCP316:29
SlybootsDCHP3 crashes with /etc/dhcp3/dhcpd.conf line 43: unknown option dhcp.custom-proxy-server16:30
SlybootsCant find the correct syntax though for that option16:30
adrianrallyDone that. Now ?16:31
DevoKunadrianrally: restart the network16:32
DevoKunadrianrally: if you type "route -n" you should see a route for both networks16:32
adrianrallyIt died.16:34
DevoKunadrianrally: your machine locked up?16:34
adrianrallyThe internet crashed.16:35
DevoKunadrianrally: what are the contents of "route -n" ?16:35
DevoKunadrianrally: what are the contents of "ifconfig -a" ?16:35
adrianrallyhttp://pastebin.ubuntu.com/542320/16:37
DevoKunadrianrally: you have two default gateways. See the "0.0.0.0             ww.xx.yy.zz" lines?16:39
DevoKunadrianrally: you can have two default gateways, but the metrics need to be adjusted.16:39
DevoKunadrianrally: Ideally, you need to have routes (top 2 lines of route -n) with only 1 default gateway.16:39
adrianrallyRight... soo.. what do I have to do to achive that ?16:40
adrianrally0.0.0.0         62.231.69.57    0.0.0.0         UG    100    0        0 eth016:40
adrianrallyThis line appeard when you put me to type the gateway for eth0:016:41
adrianrallyAfter I restarted.16:41
KenMemtest is running. I'm going for a sandwich. Anyone want one?16:42
DevoKunKen: good luck16:42
KenThanks, DevoKun. I appreciate the help both you and Penguin offered me. I'll be back shortly no doubt with more tedious question for you both. I guess it's a curse being so knowledgeable, huh?16:44
RoyKadrianrally: you have two default gateways - that's bound to confuse the ip stack16:45
adrianrallySo what do I have to do now ?16:46
adrianrallyWait a moment.16:46
adrianrallyDevoKun: http://pastebin.ubuntu.com/542327/16:47
DoonzIs it possible to have 2 dhcp assigned ip's on 1 wan port?16:48
RoyKadrianrally: why on earth do you have two ip addresses on different IP networks on the same NIC?16:50
RoyKDoonz: the dhcp server will only assigne a single ip to a mac address unless the developer was drunk16:50
adrianrallyBecause the first one is the publick one, the second is the gateway for the subnet...16:50
adrianrallyOr smth like that.16:51
DoonzRoyK: is it possible to use mac spoofing on the one interface16:51
KenAh, Mem-test has found two errors so far.16:51
RoyKDoonz: obviously, yes16:51
adrianrallyThe last routes -n looks very logic to me: http://pastebin.ubuntu.com/542327/16:53
DoonzRoyK: can you point me to docs on how to do that16:53
RoyKDoonz: you'll need to script that up - basic config can't do it16:53
Doonzk16:54
Doonzthank you16:54
RoyKmac spoofing is simple, though, ifconfig eth0 hw ether x:x:X:x:xx:X:X:X16:54
RoyKsomething16:54
adrianrallyMy ip address is the same on my PC and my server(86.122.123.155). I need to have 62.231.69.58 on my PC. http://img529.imageshack.us/img529/9469/captureqf.jpg16:54
RoyKadrianrally: you're using the _same_ IP on the PC and server?16:55
* RoyK sends adrianrally into google to read up on IPv4 and general network basics16:55
adrianrallyRoyK: Yes. It's something wrong with the server. Look at the screen shot http://img529.imageshack.us/img529/9469/captureqf.jpg16:56
Slybootsthis is increadably fustrating16:56
Slybootshas anyone got a Proxy-config push working with dhcpd3?16:56
SlybootsI;ve got the file scripted but it doesnt seem to be getting pushed out to clients via dhcp3d16:58
RoyKadrianrally: something is wrong with the config and perhaps your understanding of networking17:00
adrianrallyRoyK... do where do I get started?17:10
RoyKhttp://tinyurl.com/22sxxfs17:12
adrianrallyI don't get it. What's wrong ?17:12
air^your understanding of it all. :)17:12
air^Seems to me you just use the server as gateway.17:12
air^That's why the servers IP is shown in your browsers "whatsmyip"17:13
adrianrallyA few hours ago it was working. I was getting on my PC 62.231.69.58 aka the IP i wanted.17:13
adrianrallySomething happened... and I don't know why.17:14
adrianrallyAnd what.17:14
air^adrianrally: but what's wrong?17:14
air^adrianrally: our screenshot shows your ip on the pc, exactly the one you say you want.17:14
air^+y17:15
SlybootsThink Im just about to give up on this haha17:15
adrianrallyair^ I don't need the server's public IP. I want my private one.17:15
air^so don't route the traffic through your server.17:15
adrianrallyI followed this tutorial in the first place: http://www.ubuntugeek.com/sharing-internet-connection-in-ubuntu.html17:21
adrianrallyAnd at some point it worked.. but I did something wrong.17:22
Kenpenguin42: In case you were curious, memtest has turned up two errors. This might be what's causing my server to stop responding.17:22
penguin42Ken: Ah right, go get that fixed and life should be a lot better17:24
Kenpenguin42: Memtest is still running. I'll use their site to see if I can figure out how to fix it when it's done.17:25
penguin42Ken: Are you running over clocked or normal?17:25
Kenpenguin42:  I'm not sure. i'm going to assume normal. I just selected it from the grub2 boot menu.17:26
penguin42Ken: No, I mean your hardware, is it normal or have you done anything odd with it?17:26
Kenpenguin42: Ah, sorry. No, it's normal for the most part. It's a really old system. The newest thing is the hard drive. One is ID, the other is SATA connected via a PCI SATA card.17:27
air^RoyK: any idea what he tried to achieve? :)17:27
penguin42Ken: Make sure your cooling etc is OK but chances are it's probably just a dead DIMM17:28
RoyKair^: not really, although I think he was in desperate need for basic network knowledge17:28
Kenpenguin42: It's cool enough right now. I have a spare RAM module about somewhere so, if I can figure out which is dead, I'll try switching it out.17:28
air^RoyK: seems so. the guide was about sharing internet... that is.. exactly what he had done  (server acted as gateway) :D17:28
RoyKKen: clean the contact areas both on the DIMMs and their sockets - on old systems, those often corrode17:28
KenRoyK: I will do. Thank you17:29
RoyKKen: use isopropanol or something17:29
air^completely unrelated but a tricky thing about bad memory that I recently had.17:29
* Ken puts down the bottle of vodka again, "Ah, okay."17:29
RoyKit'll work with vodka as  well :)17:30
air^installed os x server on an old power mac g5. it failed on "bad media".17:30
air^tried everything, still failed, tested the harddrives and install media in another g5. worked nicely.17:30
air^put the drives back, g5 worked nice, run updates, update failed on bad media and fscked the system :O17:30
air^turned out the memory was bad. seems it corrupted something in uncompressing stage.17:30
air^never seen anything like it, pretty fun though when everything started working with other memory :)17:31
KenFun? Hmm. I gus this is all a learning experience but i'm not sure i'd rush in and say "fun"17:31
KenI mean it's not hard for me or anything. Penguin, RoyK and DevoKun are pretty much holding my hand through it17:32
penguin42Ken: Working with broken hardware really takes the fun out of it17:33
penguin42Ken: You just never know when you're going to walk into a bear trap17:33
Kenpenguin42: I do enjoy the whole thing though. I have this old tower that i've turned into a server. It's running apache with joomla, webmin, I've set it to Wake on LAN, has samba (although I never use it), FTP, SSH, runs a headless virtual machine that I can rdesktop into, uses dyndns so I can connect through a host name. I was in the process of setting it up, between my laptop and the server, for rsync backups.17:35
KenI've learnt pretty much all of it from scratch using the internet.17:35
KenNot that impressive compared to some setups i'm sure but i'm gradually learning more and more. Next port of call, if I get it working, will be to set up VPN17:36
* Slyboots is far from having fun17:37
* Slyboots is just about loosing his mind over it :P17:38
RoyKthis is rather nice http://pastebin.com/7gtaGRwc17:38
KenI'd offer some help, slyboots but i'm afraid i'll well out of my depth dabbling with servers. I'm not bad at helping in the desktop channel but this is where i'm completely lost.17:38
KenWoah, is that a machine you have, RoyK?17:39
SlybootsIts more DNS/DHCP issues17:39
RoyKKen: yes, I have two of those :þ17:39
KenRoyK: I can't possibly imagine ever needing that much space.17:39
KenRoyk: Impressive, though.17:40
RoyKdisk-based backup will require lots over the years17:40
RoyKand we _do_ have a lot of data17:40
KenI guess that makes sense. I'm just a home user with paltry needs.17:40
KenI have no need for a server at all anyway but I figured I had an old tower sitting around doing nothing so I might as well do *something* with it17:41
RoyKI'll be installing a 6TB home server for my brother for christmas :)17:41
air^:)17:42
KenI figure I'm not doing bad. I have 1.5TB but only because I happened across a terrabyte that was pretty cheap and figured "why not?"17:42
KenI'm having more success with this tub of haagen-dazs than with the server right now though.17:42
RoyKbtw, terra = earth, tera = 10^1217:43
KenI was being hippy (I definitely didn't just make a typo because I was stuffing a spoonful of ice cream into by gob)17:43
AmgineWhat is the best way to get php5 --enable-pcntl? I tried the instructions at http://ubuntuforums.org/showthread.php?t=549953, but make test fails 100%.17:43
KenOkay, memtest is still running and it's got four errors now. Any suggestions as to how I might work out which DIMM these might be on?17:45
RoyKKen: unplug one dimm, run memtest...17:46
RoyKor unplug all but one17:46
KenRoyK: Ah, of course. Thank you.17:46
KenOn another note. I'm using Webmin which isn't really supported by Ubuntu. Any suggestions as to what else I might use?17:47
RoyKAmgine: if that flag isn't compiled into the php5 that comes with ubuntu, apt-get source php5, add it, and build a new package17:47
RoyK!webmin17:47
ubottuwebmin is no longer supported in Debian and Ubuntu. It is not compatible with the way that Ubuntu packages handle configuration files, and is likely to cause unexpected issues with your system.17:47
KenIsn't that the truth.17:47
KenSegfaults all over the place.17:47
AmgineRoyK: compile the full php5?17:48
RoyKAmgine: yeah, doesn't take too long on most hardware17:48
Amgine<looks dubiously at mb 1,1> I'll give it a shot...17:48
Amgineconfigure: error: xml2-config not found. Please check your libxml2 installation. <grumble>17:50
RoyKAmgine: apt-get source php5, unpack the tar.gz, patch it with the patch, edit debian/rules and add that flag17:50
RoyKrun dpkg-buildpackage17:51
RoyKdone17:51
RoyKAmgine: if you compile it manually, it won't install in the ubuntu standard place - better make a package17:51
optikalmouseanyone else using Webmin?17:52
Kenoptikalmouse: I am.17:52
RoyK!ebox17:52
ubottuebox is a web-based GUI interface for administering a server. It is designed to work with Ubuntu/Debian style configuration management. See https://help.ubuntu.com/community/eBox17:52
Ken!zentyal17:53
KenSilly bot.17:53
KeneBox has been renamed so if you're googling it, you'll need to search for that17:53
RoyKto everyone using a web-based admin tool like webmin or ebox or whatever - please don't! it doesn't take very much to learn how to administer a server using the commandline, and it'll be faster over time, way faster, and better, and ...17:53
optikalmouseKen: is it slow for you? I see two perl scripts being run in the cronjob17:53
optikalmouseevery 5min.17:53
optikalmouseand i noticed that the comp that I'm sshing into that runs webmin slows down every few min...17:54
SlybootsRoyK: I would love.. LOVE to have a webmin interface for squid proxying lol17:54
SlybootsIm about to *snap* here :P17:54
Kenoptikalmouse: I see the same thing, Optikal. It is very, very slow sometimes.17:54
KenSlyboots: Er, I think there is a squid proxy webmin interface..17:54
RoyKSlyboots: why? squid config is simple :)17:54
AmgineRoyK: There's rather a large number of unmet dependencies; should they be installed via apt-get?17:54
KenRoyK: Also, I try to use SSH where I can.17:54
SlybootsOh I got Squid and DansGuardian going17:54
RoyKAmgine: I guess you'll need a bunch of -dev packagages17:54
SlybootsI can-not; NOT; for ANY reason; get WPAD Proxy-config pushing working17:54
SlybootsAt all17:55
AmgineYep.17:55
KenRoyK: But i freely admit that jumping into a nice GUI is sometimes better, even for tiny things like viewing disk usage, etc.17:55
SlybootsIts setup; from everything I can see it *should* be working17:55
RoyKKen: I have Icinga alarming me if disks fill up17:55
optikalmouseKen: how much do things slow down for you?17:56
KenRoyK: I might just have to look into that too.17:56
RoyKKen: also, ssh'ing into a server and typing df -h isn't very much work :)17:56
Kenoptikalmouse: Well, it's usable most of the time. It's a bit laggy but nothing too bad.17:56
Kenoptikalmouse: Having said that, for most things I try to use SSH.17:57
KenRoyK: But it doesn't have pretty colours.17:57
* RoyK hands Ken a bucket of yellow paint17:58
KenI work for a non-profit organisation and we have a split site. In the coming months I hope to verse myself well enough so I can set us up with a proper server system so we can share files over VPN and.. y'know, stuff.17:58
optikalmouseKen: does it slow down while you're using ssh?17:58
Kenoptikalmouse: No, I guess not. I mean my server is crashing but I think that's unrelated. SSH doesn't ever be so slow that I can't use it unless I'm doing a huge amount of file transfers over ftp.17:59
SlybootsAye; I need a break17:59
* Ken hands slyboots a beer and a tub of ice cream.17:59
KenSlyboots: It's my solution when things aren't going well.18:00
optikalmousehmm ok18:00
Kenoptikalmouse: I'm getting a lot of segfaults from miniserv.pl recently though, which, as far as I know, is the "server" that webmin runs on.18:00
optikalmousethe sysadmin for the server was thinking that rsync slowed down the server18:00
Kenoptikalmouse: I'm going to try the eBox platform since it's better supported.18:01
optikalmousebut I can clearly see webmin's perl scripts running every few min :/18:01
optikalmousehm18:01
Kenoptikalmouse: Yeah, when I was trying to find the problems to my server, perl scripts were running every few minutes like you said. I don't know if that was doing any harm (e.g. slowing things down) but they seemed to be firing very frequently.18:01
optikalmouseI checked `top` when one of them ran18:03
optikalmouseand it hit the cpu for 2-4%18:03
optikalmouseand the memory for 2-5% I think18:03
SlybootsKen: Much appericate :D18:04
SlybootsA beer would be good right now actually18:04
KenMaybe if the module using those perl scripts could be isolated then you might find that it doesn't hang so much? My server only ever has me accessing it and it's sitting with about 1GB of RAM (which we've newly discovered, some of it is bad) but it's never slowed as badly as you've experienced.18:05
optikalmouseyeah I don't know18:05
* Ken hands Slyboots a bud.18:06
KenSlyboots: I don't even drink that often so one beer will result in me on my back, so if my typing becomes incomprehensible feel free to get an op to kick me if I'm not responding to a polite request to shut up and leave.18:06
Slybootslol18:07
optikalmouseholy crap18:07
optikalmouseI ran free -m and apparently the server has 192mb of ram free :|18:07
Kenoptikalmouse: Discovered what's causing the problem?18:07
optikalmousewtf is using up all that mem? :|18:07
Kenoptikalmouse: Is there a GUI installed or anything? I installed lubuntu a while back and forgot, and it was starting on boot. Of course, I was SSHing since it was headless and had no idea.18:08
optikalmousehmm aybe18:08
optikalmousehow do I check which packages are installed using apt-cache?18:10
KenOne option: dpkg --get-selections18:12
RoyKoptikalmouse: pastebin free output (without -m)18:15
optikalmouse...18:18
optikalmouseI figured out the problem.18:19
RoyK-.-. --.-18:19
optikalmouseclam av is running.18:19
optikalmouseit's using a few hundred meg of ram18:19
optikalmousethe rest of the ram eaters are apache and php5.18:19
RoyKhow much memory is there in the box?18:19
optikalmouse2gb18:20
optikalmousebut there's only 189mb free.18:20
* RoyK has a new and rather nice 1U pizzabox at work with 2x12 core Opterons and 64GB memory.....18:20
RoyKoptikalmouse: including buffers?18:20
optikalmouse             total       used       free     shared    buffers     cached18:20
optikalmouseMem:          2987       1265       1722          0         63        66318:20
optikalmouse-/+ buffers/cache:        538       244918:20
optikalmouseSwap:         2863          0       286318:20
optikalmouse 18:20
air^2x12 :O nice,18:21
RoyK!pastebin18:21
optikalmouseerm wrong machine XD18:21
ubottuFor posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://tinyurl.com/imagebin | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.18:21
air^and i was happy to get some new 2x6core xeons last week.18:21
optikalmouseMem: 2018, 1828, 189, 0, 174, 66018:21
RoyKoptikalmouse: you have 2449MB free after the buffers are removed18:21
optikalmouseahh ok18:21
optikalmouse...wait what? what do the buffers mean? :P18:21
RoyKbuffer/cache is just the OS spending memory on caching blockdevices18:22
RoyKit's released when it's needed elsewhere18:22
optikalmouseok, so when it says 189 free and but then 1024 in the -/+ buffers/cache, it really means it has 1024 mb free?18:22
RoyKerm - it says 1722 free18:23
RoyKfrom where did you get that number?18:23
optikalmouseother server, I pasted the wrong one ;/18:23
RoyK!pastebin18:23
ubottuFor posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://tinyurl.com/imagebin | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.18:23
RoyKthe right one18:23
optikalmouseRoyK: http://paste.ubuntu.com/542379/18:24
RoyK1GB free18:24
RoyKand buffers/cache eating about 800 megs18:25
RoyKwhich is good18:25
RoyKif they hadn't, your system would have to read everything from disk, which is slow18:25
optikalmousehmm ok18:25
optikalmouseI guess then the periodic slowdowns are mostly due to those perl scripts in the cronjob. there's like 10+ instances of apache running :/18:26
RoyKapache prefork will pre-start some processes and fork out new ones when needed, and keep them running, or sleeping, to avoid having to restart them on new requests18:27
LinuxAdminI guys, I'm getting troubles configuring vsftpd with ssl18:28
LinuxAdminI can start the server without ssl, can login to it, everything works18:28
LinuxAdminbut when I enable SSL I cannot start server18:28
LinuxAdmin"netstat -rn" returns no LISTEN service18:29
LinuxAdminif I start the service directly "/usr/sbin/vsftpd /etc/vsftpd.conf" I get the error "500 OOPS: SSL: cannot load RSA certificate"18:30
LinuxAdminI had read a lot of manuals but all the configurations are the same18:30
LinuxAdminI can't see where am I getting wrong18:30
LinuxAdmincan someone help?18:31
KenLinuxAdmin: I wish I could. If you hang about there seems to be a few very knowledgeable folk here who are very helpful.18:35
LinuxAdminok18:36
LinuxAdminI'll try some other hour, perhaps I will be lucky18:36
seppy003hey, why is ubuntu server not answering on wlan0, when eth0 is on18:38
LinuxAdminseppy003, eth0 is your ethernet interface, wlan0 is your wireless interface, one is not related with the other18:40
LinuxAdminhave you checked if your kernel has driver support to your wireless card?18:41
LinuxAdminrun "iwconfig" and check that wlan0 is listed18:41
AndrewxWhat's the real difference between ubuntu and ubuntu server excluding ubuntu server's lack of a desktop pre-installed?18:41
seppy003LinuxAdmin: yeah, wlan0 is working proberly if eth0 is down, but when eth0 is up i'm unable to connect to it (neither ssh nor ping)18:42
LinuxAdminyou cannot connect the two interfaces to the same network18:42
LinuxAdminyou could have problems seppy00318:43
LinuxAdminyour machine will be confused about witch interface should use18:43
seppy003LinuxAdmin: that could be true :D18:43
LinuxAdminthat *is* true18:43
LinuxAdminit happens to me when I forget to disable wireless at work18:44
LinuxAdminat my office I've got gigabit network, so I prefer ethernet connection18:44
LinuxAdminwhen I forget to disable wireless sometimes I've got problems18:45
LinuxAdminseppy003, just check if both are working (not at the same time), if they are, everything is fine18:46
seppy003LinuxAdmin: they're working now18:46
seppy003thanks18:46
LinuxAdminu'r welcome ;)18:46
seppy003next problem: i want to bridge eth0 via wlan0 so, that i can access via wlan to my device connected to eth018:47
seppy003using brctl i got the message can't add wlan0 to bridge br0: Operation not supported18:48
LinuxAdminseppy003, I've got this (http://paste.ubuntu.com/542390/) on my /etc/network/interfaces file18:53
LinuxAdminit's a bridge example18:53
LinuxAdminseppy003, in this case I'm using br1 to make a bridge to my KVM virtual machines, adapt it as you want18:54
nertilhow to zip a folder?18:54
nertilin ubuntu server18:54
DevoKunnertil: from command line or GUI ?18:55
nertilcommand line18:55
nertilits server18:55
DevoKunto create a zip file: zip -9 -r dir.zip <directory>18:56
loganlhpSomeone flooded my server with that loic app and now no matter what I do i cannot get it to get back online, even after a restart, any suggestions?18:56
DevoKunto create a tarred and gzip compressed file: tar zcf dir.tar.gz <directory>18:56
DevoKuntar.gz is common in the Unix world. But you may want to use .zip if you're sending to a Windows user.18:57
LinuxAdminloganlhp, does your server has public ip address?18:57
nertildone18:57
nertilthanks18:57
loganlhpyes. I was using no-ip to make it dynamic though as it is a home web server18:58
LinuxAdmincan you ping your server from local network?18:59
seppy003LinuxAdmin: changed subnet of eth0, but now i can not ping e.g. google.com18:59
LinuxAdminseppy003, can you ping your default gateway?19:00
seppy003LinuxAdmin: yeah19:00
LinuxAdminso, you cannot resolve, it's dns problem19:00
seppy003LinuxAdmin: "PING www.l.google.com (74.125.43.99) 56(84) bytes of data.19:01
seppy003"19:01
LinuxAdminseppy003, what do you have on your /etc/resolv.conf?19:01
seppy003LinuxAdmin: "nameserver 192.168.0.70" (dnsmasq server)19:02
nertili have configuret my server with wlan19:02
nertilit rox bro19:02
nertilit rox19:02
LinuxAdminseppy003, what does "nslookup www.google.com" returns?19:03
loganlhpLinuxAdmin: no, just tried, no reply from the ping, and i cant browse anything that apache is hosting even on my local network. ssh isnt working either19:03
seppy003LinuxAdmin: quite a few addresses of the domain e.g. 74.125.43.105, 106, 104, 10319:04
LinuxAdminseppy003, use pastbin to past  "dig @192.168.0.70 www.google.com" result19:05
uvirtbotNew bug: #689018 in spamassassin (main) "package spamassassin 3.3.1-1 failed to install/upgrade:" [Undecided,New] https://launchpad.net/bugs/68901819:06
LinuxAdminloganlhp, have you got access to a shell on that server?19:07
loganlhpyes19:07
seppy003LinuxAdmin: http://pastebin.com/JtnNwtjP19:07
LinuxAdmin<loganlhp>, have tested ping default gateway, local ip addresses, etc?19:07
loganlhpyea.19:08
LinuxAdminseppy003, it seams to resolve correctly, it should ping. Try to ping other public host, by IP and by name19:09
LinuxAdminloganlhp, try to ping your default gateway19:10
seppy003LinuxAdmin: it looks like that eth0 is the used interface, instead of wlan019:11
loganlhpfrom the server or anywhere on the network19:11
LinuxAdminloganlhp, from the server19:11
LinuxAdminseppy003, pastbin your /etc/network/interfaces19:12
seppy003LinuxAdmin: http://pastebin.com/iAxHuAZ019:13
seppy003LinuxAdmin: just a few minutes away19:13
loganlhpLinuxAdmin: ping default gateway, everything went good, 0% loss19:15
seppy003LinuxAdmin: back again19:15
LinuxAdminloganlhp, try ping 72.14.235.10419:16
LinuxAdminseppy003, pastbin the result of "netstat -rn"19:17
loganlhpLinuxAdmin: all good..I'm starting to think its something on apache's end?19:18
seppy003LinuxAdmin: http://pastebin.com/DnT6vYkL19:18
LinuxAdminloganlhp, I think it's dns problem, try to ping www.google.com19:18
loganlhphowever using w3m and browsing to http://localhost/ on the server shows me my webpages, but trying to access them on any other computer on my lan gets me nothing19:19
loganlhpLinuxAdmin: pinging of google went ok.19:19
LinuxAdminseppy003, delete gateway line of eth0 interface on /etc/network/interfaces. You cannot have two default gateways.19:21
seppy003LinuxAdmin: working now, thanks19:22
LinuxAdminloganlhp, you have access to internet and everything is ok with dns. I can't understand what is your problem. Can you describe better19:23
LinuxAdminseppy003, u'r welcome19:23
loganlhpLinuxAdmin: essentially, I cannot access my server from outside of it, not even on my lan. that includes any webpages, ssh, pings and so on.19:25
LinuxAdminloganlhp, have you access to another linux box inside your lan?19:26
seppy003bye19:32
Doonzim experiencing something weird. Ive got a ssh session through putty to my server. the server is running byobu. When im attached to the byobu sessions everything works then out of the blue the screen stops responding. I dont get disconnected but i have to close putty and re login and the reattach to the session. Any ideas whats causing it? Oh and when the screen *freezes* i can still type and the terminal gets the signla but the disp20:40
Psi-JackDoonz: But the disp....... cut off.20:52
DoonzOh and when the screen *freezes* i can still type and the terminal gets the        Bilge signla but the display of it doesnt show any change20:55
Doonzits really strange21:00
Doonzand im just not sure what to do. my google fu is coming up empty21:00
DevoKunDoonz: that's odd. What happens if you use straight-up screen or no byobu/screen at all ?21:19
StrangeCharmwhy are there so many connections in /var/log/syslog to postfix?21:37
uvirtbotNew bug: #689089 in clamav (main) "Clamav fails to start because of unspecified LogFile" [Undecided,New] https://launchpad.net/bugs/68908922:27
uvirtbotNew bug: #689091 in samba (main) "Make smbshare smaller more many packags" [Undecided,New] https://launchpad.net/bugs/68909122:27
=== Psi-Jack_ is now known as Psi-Jack
suigenerishello22:32
suigenerisI have postfix and installed, and put my new user is /etc/aliases and ran newaliases. however they can't receive emails22:33
=== JanC_ is now known as JanC
jeeves_mossI"m trying to set up SugarCRM, and I'm getting " SASL LOGIN authentication failed: Invalid authentication mechanism" when I try to send e-mail from the CRM, ideas?23:03
FrenkHi, I updated mysql and as I see this was a big mistake23:20
FrenkNow i cant run mysql and get the error  ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)23:20
FrenkCan I downgrade it? I have some databases I am afraid to loose =(23:21
DevoKunWhat version were you previously running?23:23
DevoKunWhat version are you running now?23:24
Frenk5.1.49 for now and I cant recall what the previous was (23:27
DevoKunWhat is being reported when you try to start mysqld? check /var/log/mysql.err and /var/log/mysql.log23:27
DevoKunalso check /var/log/mysql/error.log23:28
Frenkthe last entrys in log/mysql/error.log are before the update I mysql.err and log doesnt exist23:30
DevoKunWhat happens when you try to restart mysql?23:32
Frenkmh strange ... after restart it seems to work oO23:33
DevoKunAt least it's working now23:33
Frenkwhen i restarted it 2 hours ago he told me error = magic23:34
Frenkthanks!23:35
DevoKunProbably something weird resulting from the upgrade. Glad it worked out.23:36
FrenkAnother question - I have a i7-920 quadcore but clamscan is eating up 100% on all cpu with nice -15 is it normal?23:51
Patrickdknice won't make it use less cpu23:53
Patrickdkusing 100% cpu, no matter what speed your cpu is, is normal23:53

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!