=== robglas is now known as Guest5992 [04:05] probably the worst time to ask for help, but does anyone have experience troubleshooting TFTP issues? [04:06] Yes; what is your real question. [04:06] Hint: use curl -v as your client [04:06] sorry i didn't ask a real question [04:06] curl -v... [04:07] i'm using tftpd-hpa [04:07] and it refuses to start [04:07] i could only find an entry in /var/log/daemon.log [04:07] Does it say why? [04:07] said "init: tftpd-hpa main process terminated with status 2 [04:07] OK so it's an upstart job [04:07] upstart throws away stderr so you can't see why it died [04:07] but if i try to start it again, it is convinced it's running [04:08] i can't figure out how to start it manually either... [04:08] i would assume there's a way to start it manually [04:08] Sure, read /etc/init/tftp-hpa.conf [04:08] Also pastebin it so I don't have to look it up [04:09] that conf file? [04:09] btw IME it is MUCH easier to roll out dnsmasq than dhcpd+bind+tftpd [04:09] arrrghhh: yes, pastebin /etc/init/tftpd-hpa.conf or whatever it's called [04:09] yea, it seems dnsmasq would be easier [04:09] perhaps i should go with it [04:09] i don't really care, i just need dhcp + tftp [04:09] Then definitely dnsmasq is easier [04:09] ok i'll start over with that [04:12] lol i think i figured out the problem. oh well, if dnsmasq makes my life easier i'll go with it. [04:15] http://paste.debian.net/150122/ is my dnsmasq.conf; the tftp options are near the middle [04:15] Mine is pretty riced-up, you can skip most of it [04:17] The CNAMEs are in there instead of /etc/hosts because they're for servers with dynamic IPs [04:38] twb, so any tips on why dhcp isn't working now....? [04:38] not even sure what to troubleshoot, since it's all in one package [04:39] twb, sorry if i missed your response, networking issues lol [04:40] arrrghhh: is dnsmasq running? Did you tell dnsmasq to serve DHCP? [04:40] yes and yes [04:40] IIRC the default config file only serves DNS [04:40] dhcp-range=192.168.0.200,192.168.0.250,255.255.255.0,12h [04:40] in dnsmasq.conf [04:40] OK run dhclient -v and see what reponse you get, if any [04:40] and ps -A |grep dns shows it running [04:40] ok [04:40] As ss or netstat if bootps is bound by dnsmasq [04:40] Read the logs [04:41] You know, all the usual debugging things [04:41] well i've never troubleshot dnsmasq before [04:41] Those are standard things to debug any network service [04:41] dhclient -v has some output, but didn't really show anything helpful [04:42] sorry, still learning how to debug network services. [04:43] is 53 dhcp? [04:43] i can't remember. i know udp 69 is tftp, which it is listening on [04:43] also, what logs. i don't see a log for dnsmasq [04:44] daemon.log has this [04:44] "Dec 24 21:42:25 nas dnsmasq-dhcp[7114]: DHCP, IP range 192.168.0.200 -- 192.168.0.250, lease time 12h" [04:44] so it looks like it's running a dhcp server wth. [04:45] getent services bootps [04:45] You might need to tell dnsmasq to syslog [04:45] bootps 67/tcp [04:45] is what that getent cmd returned [04:45] Right, so that's the DHCP server port (except it's UDP, I think) [04:46] tftp is udp [04:46] i think dhcp is tcp [04:46] BOOTP was an earlier standard that became DHCP [04:46] either way, it appears to be running [04:47] So what still isn't working? [04:50] i even allowed bootps in ufw [04:50] although it should allow any local traffic... [04:52] Uh bootps & bootpc [04:52] ok... [04:52] It's an old stupid design [04:52] Might be worth you going readig how DHCP works in wikipedia :P [04:53] That's something I always do when rolling out a new protocol [04:57] well i get the basics of dhcp [04:57] but i shouldn't have to allow this crap in ufw [04:57] it should already allow it thru another rule [04:57] and adding both bootpc and bootps (67&68) didn't fix it [04:57] i still can't get a dhcp ip [04:58] How are you testing that? [04:58] dhclient -v eth0 on the client pc [04:58] used to work fine with dhcp3-server [04:58] ok [04:58] pastebin your ruleset, pastebin output of sudo netstat -nlp [04:59] Er, not ruleset, dnsmasq.conf [04:59] Although pastbinning "iptables-save -c" would also be a good idea [05:00] urg [05:00] this sucks not having dhcp. [05:00] i defined resolv.conf [05:00] So turn dhcp3 back on again for half an hour :P [05:00] perhaps there's something else i'm missing [05:00] hehe [05:00] i already purged it [05:00] i'll just turn it back on my router [05:00] Also if you don't know, this is how you raise a manual link: [05:01] ip link set eth0 up; ip address add eth0 brd + 192.168.0.2/24; echo nameserver 192.168.0.1 > /etc/resolv.conf [05:03] blech [05:03] why is nothing easy [05:03] Because god hates you [05:03] that ip address add command failed. [05:03] s/eth0/dev eth0/ ? [05:03] It was from memory [05:04] i don't see what that command is for [05:04] If you don't know ip(8) syntax yet you should learn that too [05:04] i figured bring up the interface with ifconfig eth0 [05:04] then resolv.conf [05:04] arrrghhh: it gives you a static IP [05:04] add nameservers [05:04] ifconfig is for losers [05:04] what's wrong with ifconfig? [05:04] ... [05:04] well your command didn't work, so perhaps you need to go back and re-read it. [05:04] Main problem is ifconfig doesn't realize an iface can have >1 address [05:05] hrm [05:05] That's what that alias bullshit is -- a kludge [05:05] arrrghhh: yeah you probably need "dev eth0" not "eth0" [05:05] hrm ok [05:05] Unfortunately the manpage isn't very helpful for newbies. [05:05] this is just odd tho [05:05] i can ping the gateway [05:05] i can ping the server running dhcp [05:06] but i can't ping the interwebs [05:06] or 8.8.8 [05:06] .8* [05:06] connect: Network is unreachable [05:06] lol, this was supposed to be the easy part of this task. [05:07] Ah, mea culpa [05:07] ip a add also adds a route to the local network, but not to 0/0 [05:07] ip route add 0/0 via 192.168.0.1 [05:11] zomg [05:11] i don't think i've failed this hard in a while. [05:11] ugh... damn chromebook. you limit me. [05:12] oh there we go. [05:12] You need to reflash it with ubuntu oneiric arm [05:12] That's what I am on right now :-) [05:13] 1kg netbook with 15hr battery life ftw [05:19] wow that was fun [05:19] and that sounds crazy [05:19] 15hrs [05:19] ok here's the dnsmasq.conf [05:19] http://pastebin.com/Fr4sWJDD [05:21] http://pastebin.com/YTdGuBQn [05:21] netstat -nlp [05:22] http://pastebin.com/hBiNUhV3 [05:22] iptables-save -c [05:24] yea, just disabled UFW and dhcp client still fails. [05:25] lsof shows 67 and 69 in use by dnsmasq [05:25] but nothing on 68 [05:27] That all looks OK to me [05:27] tcpdump on the server, see what you can see [05:27] (Learn how to use tcpdump too ;-) [05:28] sounds like wireshark? [05:28] wireshark is the heavyweight cousin [05:28] nice. ok, i know how that stuff works... again on a basic level :P [05:34] any tips on what to filter on...? [05:35] i usually filter by ip... doesn't seem like that'll work so well here lol [05:35] i guess i could filter on port/protocol huh [05:48] port 67 or port 68 [05:48] Part of the reason I use tcpdump instead of tshark is I can never remember the tshark filter syntax ;-) [05:48] Also obviously more useful data doing this on the server first [05:56] hrm [05:56] what was the last thing you read from me? i don't think it all got thru [06:08] twb: ? [06:09] perhaps you didn't get any of my messages, i was on a crippled machine, heh [06:12] Hmm? [06:12] 16:35 i guess i could filter on port/protocol huh [06:13] damn, i said a lot more than that... [06:13] oh well, the jist of it was tcpdump showed that the server was receiving the request [06:13] *gist [06:13] So on the client side, you see a DHCPREQUEST and then a DHCPOFFER ? [06:14] arrrghhh, FYI, my DHCP exception is 67:68 udp [06:14] 22:38:12.846558 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:13:72:27:68:83 (oui Unknown), length 300 [06:14] It's a four-stage handshake, I forget the order [06:14] i was running tcpdump on the server [06:15] the client just keeps requesting [06:15] and it times out [06:15] $CMD -A INPUT -i eth1 -p udp --sport 67:68 --dport 67:68 -j ACCEPT [06:15] never gets a DHCPOFFER [06:15] qman__: why do you think the traffic is being blocked? [06:16] it's a UDP broadcast [06:16] Goddam it, who uses DNSSD [06:16] This stupid printer won't talk to me, and the other users are talking to it via dnssd, which I am not going to install [06:17] Bloody autodiscovery "easy to use" my arse, the printer already has an IP and listens on 631 but won't respond anything useful there... [06:18] qman__: even with ufw disabled? [06:18] I don't know much about UFW [06:19] but if you sudo iptables -L and it's all ACCEPT with no rules, you're good [06:19] arrrghhh: is there a firewall on the client? [06:19] hrm ok [06:19] twb: uhmm dhcp3-server worked on the client just fine [06:19] but i don't think there is, no [06:19] it's kubuntu 11.04 [06:19] ufw is not enabled [06:19] IIRC dhclient you can say test don't actually apply, find that option and run it on the server, that will bypass any network issues [06:20] -n I think [06:20] dhclient -n -v eth0 [06:20] k [13:12] Does anyone know if the CAP_NET_ADMIN section @ https://help.ubuntu.com/community/KVM/Networking is still relevant, or the bug has been fixed? === Guest5992 is now known as robglas === sixstringsg|afk is now known as sixstringsg === sixstringsg is now known as sixstringsg|noms === Resistance is now known as MerryResistance === sixstringsg|noms is now known as Smasher816 === Smasher816 is now known as sixstringsg|noms [17:07] hello [17:09] which is the best dell server for installing ubuntu 10.04 LTS [17:10] jmt: depends on whether you're getting a hardware RAID array or not [17:10] jmt: i've got a Dell Poweredge 2500 series server, but Ubuntu/Debian don't include the drivers for the RAID card yet (mines got SCSI drives) [17:10] Actuall my idea is to build a complete ubuntu 10.04 server infrastructure including ldap+samba,proxy,file server... [17:11] well any server will work if you have the linux drivers for it [17:11] s hardware [17:11] oho.. [17:11] *kicks his keyboard* [17:11] dell R710 is enough? [17:11] ooh, field goal... :P [17:13] gimme a sec i'm hitting lag [17:14] i'm not sure, because i'm not sure whether Ubuntu has the drivers for the RAID controller card(s) [17:14] ubuntusupporting server list showing Dell R710 [17:14] link to said list? [17:15] one minute.. [17:15] iw ill give [17:15] if its not on the ubuntu site i'm going to rant about how random lists shouldnt be trusted :P [17:15] http://www.ubuntu.com/certification/make/Dell/servers [17:15] the problem with that would be that it might be tested with every possible configuration ever... [17:16] yeah what Nafallo said [17:16] unless it has a very very precise model number attached. [17:16] jmt: that's in general. you should be OK, but i cant guarantee it'll work 100% efficiently/effectively [17:17] obviously, if the raid controller is on-board, that would make my point moot ;-) [17:17] but we might be talking about more cards than raid-controllers here. [17:17] if i go through normal dell pc,i am sure,it will 100% work [17:20] Nafallo: i need only 4 disk.that means built in raid controller card is enough.. [17:23] hello.. [17:25] New bug: #908583 in apache2 (main) "Apache cache serving partial content 206 responses to requests for the full content" [Undecided,New] https://launchpad.net/bugs/908583 === sixstringsg|noms is now known as sixstringsg [17:34] hi to all. short question. does a debian package allready exist for the new SPDY Protocol ? I would like it to test it how it works but dont want to destroy my webserver. === jmt is now known as Guest21672 [18:44] How come partitioning raid 1 on 2 160gb USB -> SATA Hdds is soo slow? [18:49] iToast: what does mdadm show? is it syncing? What sort of usb port? what sort of hard disks? [18:50] Just 5400rpm disks [18:51] .. [18:51] so... what about the other 3 questions? [18:54] Ugm [18:54] I just used the ubuntu partitioner to do it. [18:54] So I'm not exactly sure. [19:05] hmm? [19:05] partitioning is quick, should only take a few milliseconds [19:05] now if your talking about resync of raid, that could take awhile [19:05] with max speed of usb2, your talking about 3hours min [19:11] iToast, USB is slow, I'd expect said formatting to take around an hour [19:11] maybe more [19:22] 3 hours, on usb2 with two disks of that size [19:46] New bug: #908605 in mod-wsgi (main) "mod_wsgi fails to log python errors" [Undecided,New] https://launchpad.net/bugs/908605 === robglas is now known as Guest48061 [21:08] Which one is the right way to define a subinterface; eth0:1 or eth0.1? [21:11] raubvogel: ':' is for subinterface, '.' is for VLAN [21:11] at least, that's my understanding [21:13] giovani: thanks! So I take if I am doing the subinterface thingie I do not need the vlan package, right? [21:13] raubvogel: "vlan package"? I'm confused [21:13] use a colon [21:14] giovani: vlan - user mode programs to enable VLANs on your ethernet devices [21:15] raubvogel: no, of course you don't need that [21:15] That is the package I was talking about [21:15] Which leads to me being confused about the use of a column [21:15] what? === sixstringsg is now known as sixstringsg|away [21:18] It sure takes a while to reboot (eth0 dhcp, eth0:1 static). I wonder if the bind server is confused [21:19] why would you have a static and dynamic address on the same interface? [21:19] giovani: honestly? Testing things out to see if it is even feasible [21:20] if -what- is feasible? why would you want to do that? [21:22] giovani: I was wondering if bind would get indeed confused since it is seeing two devices in the same network with the same mac [21:24] what does your DNS server have to do with this? [21:39] Ok, so I am not the only one who have noticed this issue: https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/876829 [21:39] Launchpad bug 876829 in ifupdown "Oneiric's ifupdown breaks ip aliases" [Unknown,Fix released] [21:55] giovani: BTW, I apologize for confusing you with my questions; it seems I was looking at the wrong problem === MerryResistance is now known as Resistance [22:18] Hi, im working with ruby on rails on my ubuntu server, what script file could I make to run when I want to run certain commands? [22:18] like a bat file on windows [22:25] I think you are looking for shell scripts [22:26] even if you aren't, it's something anyone who uses linux should learn [22:36] what qman__ said === Lcawte|Away is now known as Lcawte === Lcawte is now known as Lcawte|Away === sixstringsg is now known as sixstringsg|away