[00:17] morning [06:55] should I shut down httpd and mysqld before running dist-upgrade? === ren0v0_ is now known as ren0v0 [08:37] trying to fix router/ubuntu server /etc/network/interfaces auto eth0, iface eth0 inet static, address 109.247.165.99, gateway 109.247.160.1, dns-nameservers 92.220.228.70 109.247.114.4 second nic eth1: auto eth1, iface eth0 inet static, address 10.25.0.1, netmask 255.255.255.0 [08:37] am I missing something ? [08:37] any wrong ? [08:37] set auto lo too [08:39] Blueking: you're not setting a netmask on eth0 [08:39] Blueking: but as I said last night, 99% of the time you should use DHCP on the WAN interface so the ISP can allocate the address, DNS, and gateway [08:40] forgot it netmask 255.255.248.0 [08:40] fibermodem are set to bridgemode [08:40] public IP = static given by isp [08:41] that I want to be on mine private router [08:41] Blueking: right, you said. That doesn't make any difference to using DHCP to *get* that address though [08:41] network failed that way too [08:41] Blueking: did the PC get a DHCP lease ? [08:41] yes but at every lease renew net dropped [08:41] Blueking: if not, then you've something wrong with the bridge, is it transparent? [08:42] bridgemode on fibermodem ? [08:42] So, your PC got the ISP's address and it could route to the Internet OK? [08:42] laptop connected directly on fibermodem have none issues [08:43] So, your PC got the ISP's address *via DHCP* and it could route to the Internet OK? [08:43] yes [08:44] Blueking: and when you set the *same* address/netmask/gateway/dns statically it can't route? [08:44] u got it right [08:44] Blueking: that tells you the ISP only opens the route when its DHCP server assigns a lease [08:45] Blueking: so, instead of trying to statically define things, use DHCP and solve the lease renewal issue [08:45] ok what should I look into renewal issue ? [08:45] Blueking: well, are you using NetworkManager to manage the connection? [08:46] It makes more sense since it knows how to do everything, and it controls dhclient, dnsmasq, etc. [08:46] All of those log quite verbosely into the syslog so you can generally diagnose issues too [08:46] never used networkmanager [08:47] I am using shorewall as firewall if that matters [08:47] OK, so you're manually configuring it so dhclient, dnsmasq work independentally? [08:47] yes [08:48] dnsmasq I havn't looked at [08:48] If the lease doesn't get renewed, the *first* thing to check is that the 'dhclient' processes (1 for IPv4, 1 for IPv6) continue running after the initial lease is obtained. If they've stopped then that would easily explain why the lease never gets renewed [08:49] changed auto eth0, iface eth0 inet dhcp [08:49] If you confirm both dhclient s are running and you see, in syslog, dhclient trying to renew a lease, you'll have some diagnostic information to work with [08:49] eth1 and lo remains unchanged [08:49] which release of Ubuntu are you using? [08:49] how it looks like when dhclient tries to renew in logs ? [08:50] 14.04 [08:50] LTS [08:50] OK, quite an old version. Did you check whether both IPv4 *and* IPv6 leases expired? [08:51] ipv6 given by isp are just local RD [08:53] So you're not using prefix delegation and your own DHCP server issuing addresses [08:54] that were greek language to me :P (didn't understand) [08:55] there are so many IPv6 addresses available the ISPs will usually delegate a complete /64 subnet to each customer account, so you can then delegate that on your local network [08:55] will disconnect to test new setting in interfaces [08:55] it's /64 yes [08:56] but not true ipv6 tho [08:57] starts with fe80 [08:57] and I see on windows that it got none ipv6 gateway or dns [08:59] well, if you're operating your own gateway it would need an DHCPv6 client on the public interface to request that info from the ISPs DHCPv6 server. Then it would share that with its LAN-side DHCPv6 server [08:59] TJ- dhcp-server on isp side comes up on windows net connection... that we don't need to put on ubuntu I'll guess [09:00] gateway on isp [09:00] IP of router = 109.247.165.99 gateway 109.247.160.1 [09:01] brb check if net is back with dhcp [09:05] TJ- ok back did ifdown eth0 && ifup eth0 and got an message 'suspect value in host_name option - discarded [09:06] on through ubuntu router now [09:06] lease time 4287 seconds [09:06] renewal in 4287 seconds I mean [09:09] Blueking: ok, check if the dhclient is continuing to run: "ps -efly | grep dhclient" and check its command-line arguments to see where its config and lease files are [09:11] ok /var/lib/dhcp/dhclient.eth0/leases eth0 [09:12] and /run/dhclient.eth0.pid [09:12] Good morning. [09:13] TJ- I see host-name in there [09:14] Blueking: 'suspect value' indicates something wrong with it [09:14] but it's from ISP [09:16] so? ISPs can make mistakes too [09:18] ok host-name "0004005c0426/hdl-lunn1ar2" [09:20] definitely a bad name "/" is an illegal character in a hostname [09:20] unless there's some special format for that option in the DHCP RFCs [09:22] http://paste.ubuntu.com/15586424/ [09:23] why are there two inputs ? [09:25] ok I'll ask my isp [09:25] TJ- check that pastebinit why are there two leases on same interface ? [10:56] Blueking: the lease file is append-only... expired lease records remain in the file. The latest lease (look at the expire timestamps) is the last one [11:03] Blueking: regarding the host-name content you have, RFC1533 para 3.14 describes DHCP Option 12 "Host Name". RFC1035 describes the character set restrictions which are that names can only contains letters, numbers and the hyphen ("-") with "." as a separator [11:04] ok [11:04] I have to notify isp about it then ? [11:05] Yes. Use what I told you (the RFCs) to ensure they take you seriously and pass it to their engineers [11:05] and of course show them the lease that was acquired [11:06] ok [11:07] nods [11:07] "option host-name "0004005c0426/hdl-lunn1ar2";" stands out like a sore thumb to someone who knows DHCP/DNS [11:08] hehe but still I had a disconnect right now after 2 hour uptime [11:09] TJ- are there ways to have longer lease time ? [11:11] Blueking: no; that's a DHCP server configuration. It looks like the ISP is using the same short expiry time for static leases it uses for dynamic leases [11:15] TJ- but host-name can't be reason for unstable net ? [11:17] TJ- what if... I know net drops out like every 2h I can force renew of ip ? [11:17] before it happens ? [11:22] Blueking: the order of actions on timestamps is renew, rebind, expire. Your DHCP client should do 'renew' before ever reaching 'rebind' and should never reach 'expire' [11:23] Could it be that his dhcp client does adhere to the RFC and thereforce doesn't do the renew/rebind because of the hostname option? === Piper-Off is now known as Monthrect [11:28] well the client says it's ignoring the host-name [11:29] I'd like to see the syslog before saying more, which we hanve't had yet. That'll show if the client requests a renew and possibly the server doesn't respond [11:29] the client takes the lease with the suspicious host-name so I can't imagine it'd not then renew [11:57] TJ- hmm did just have an disconnect and needed to manual get it back online [11:58] Blueking: the order of actions on timestamps is renew, rebind, expire. Your DHCP client should do 'renew' before ever reaching 'rebind' and should never reach 'expire' [11:58] Blueking: time to grab the /var/log/syslog and see what happened [11:58] I am looking into it [11:59] if you want to pastebin the last 1000 lines (which should cover it) I'll take a look " pastebinit <( tail -n 1000 /var/log/syslog ) " [12:01] sent pm [12:01] Blueking: I have them disabled [12:01] http://paste.ubuntu.com/15587360/ [12:03] Blueking: what time did you lose the connection? [12:03] 13:42 11:03 [12:04] and 13.22 [12:05] can't be munin ? [12:06] those cron jobs ? [12:06] I see lots of "bound to ..." but then nexxt message from dhclient always seems to be from it Starting Up again. That suggests the process isn't remaining running. How are you starting dhclient? [12:06] not sure [12:07] Well, have you for an /etc/network/interfaces with "iface em1 inet dhcp" ? [12:07] yes [12:07] OK, so ifupdown should be the one starting dhclient [12:07] auto em1 iface em1 inet dhcp [12:07] and it ought to remain running [12:08] yes [12:08] how to check that ? [12:08] well right now for example "ps -efly | grep dhclient" should show it still running [12:09] yes [12:09] renewal in 4165 seconds... that's 69 minutes [12:10] http://paste.ubuntu.com/15587413/ [12:10] Blueking: did you edit anything out of that syslog pastebin from other services in between the dhclient messages? [12:11] not in last 2 hours [12:11] but maybe about 11.00 [12:11] OK, I just didn't want to be missing any important other clues that may have been there, if you had [12:12] for a year net was dropping at every 24h 2-3 weeks ago it started dropping out every 18-20 minute [12:14] "DHCPNAK from 81.167.184.1 (xid=0xf0827209)" ... I think its your ISP with a messed up DHCP configuration. That message is in response to your client asking to renew, so the server offers the address back then immediately refuses it, forcing the client to withdraw the lease and request a completely new one [12:15] ok [12:15] Yes, it is definitely your ISP. Looks like their DHCP server admin is clueless [12:15] so we have a conclusion now ? [12:15] I think you may be able to script around it so dhclient doesn't withdraw the lease whilst regaining a new lease (as the IP is static it shouldn't lose connectivity) [12:16] I could take it up with ISP first [12:16] I was thinking for you it'd be quicker to set up a local script so you don't have to deal with the loss until they fix it. That could be ages from what you've told us [12:17] dhclient can take the -sf option to a shell script that performs actions [12:17] so you could add a script that keeps the ip address when the lease is NACKed [12:19] easy task ? [12:21] yes. why don't we start by adding a script that simply logs the timestamp and the reason the script is called. That way we cn confirm the script sees the effect of the NACK (expire or fail) and then add code to do something about it [12:21] "man 8 dhclient-script" goes into detail about the script mechanisms [12:23] Blueking: do you have the file "/etc/dhcp/dhclient-enter-hooks.d/debug" ? [12:24] yes [12:24] Blueking: if so, as sudo/root edit it, change RUN="no" to RUN="yes" and then restart networking/ifupdown to restart dhclient. It'll then log to a file "/tmp/dhclient-script.debug" each time the script is invoked [12:25] ok [12:25] Then we can look at what is recorded in that file after the next time you lose the connection [12:32] lol had wrong order on ifup && ifdown :P [12:32] now [12:32] reason why dropout now [12:34] moved tmp dhclient log file so start with fresh new one [12:34] when it drops out [12:39] good, you're making progress [14:08] I do "/etc/init.d/mysql stop" and mysqld just keeps immediately spawning a new instance - how do I shut down MySQL completely? [14:11] FManTropyx: what Ubuntu release? I'd guess the init system is respawning it. You should use the init system to control it [14:12] OS is 14.04, but I'm a noob trying to administrate it... [14:14] FManTropyx: then the init system is upstart. Do "sudo service [start | stop | restart | status ] [14:14] FManTropyx: so "sudo service mysql stop" === King is now known as test134 === test134 is now known as King [18:22] hey guys, my 12.04 machine running mysql server rebooted earlier, and now mysql fails to start with "mysql respawning too fast, stopped" messages, I've tried to dpkg-reconfigure mysql-server-5.5 and it failed, then I tried to apt-get remove mysql-server mysql-server-5.5 and it failed again at configuring the mysql-server-5.5 package [18:23] so now every time I try to install/remove package, it tries to configure the failed installation [18:23] and of course the mysql server is stopped [18:24] how do I purge the failed installation? [20:15] hi, can i upgrade 15.10 to 16.04 via command line ? [20:16] you can [20:17] is the do-release-upgrade -d the right option ? [20:17] no [20:17] as that will upgrade to a development version [20:17] (pre release 16.04) [20:17] I suggest you wait for the official upgrade process which is at 16.04 release [20:18] ikonia: i do want to jump to 16.04 development version [20:18] i want to setup vps already for 16.04 [20:18] I advise against it [20:18] #ubuntu+1 topic has documentation in it [20:41] can someone have a look at dhclient debug file + log from sniffing on interface when lease renews (logged with tshark) I get 2 x NAK when renew of ip fails and net drops out [21:26] does anyone know of a way to further debug an upstart script when i get the message "job failed to start" and the log is totally empty? I am trying to run a web server as a service, and running the command to start the server works fine as the user the config file is set to run under [21:28] conf file for reference: https://gist.github.com/anonymous/f4547f9f9c2f3827dbc671027f931d13 [23:09] how to pastebin result of ifdown && ifup ?