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