[00:17] <Blueking> morning
[06:55] <FManTropyx> should I shut down httpd and mysqld before running dist-upgrade?
[08:37] <Blueking> 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] <Blueking> am I missing something ?
[08:37] <Blueking> any wrong ?
[08:37] <Blueking> set auto lo too
[08:39] <TJ-> Blueking: you're not setting a netmask on eth0
[08:39] <TJ-> 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] <Blueking> forgot it  netmask 255.255.248.0
[08:40] <Blueking> fibermodem are set to bridgemode
[08:40] <Blueking> public IP = static given by isp
[08:41] <Blueking> that I want to be on mine private router
[08:41] <TJ-> Blueking: right, you said. That doesn't make any difference to using DHCP to *get* that address though
[08:41] <Blueking> network failed that way too
[08:41] <TJ-> Blueking: did the PC get a DHCP lease ?
[08:41] <Blueking> yes but at every lease renew  net dropped
[08:41] <TJ-> Blueking: if not, then you've something wrong with the bridge, is it transparent?
[08:42] <Blueking> bridgemode on fibermodem ?
[08:42] <TJ-> So, your PC got the ISP's address and it could route to the Internet OK?
[08:42] <Blueking> laptop connected directly on fibermodem have none issues
[08:43] <TJ-> So, your PC got the ISP's address *via DHCP* and it could route to the Internet OK?
[08:43] <Blueking> yes
[08:44] <TJ-> Blueking: and when you set the *same* address/netmask/gateway/dns statically it can't route?
[08:44] <Blueking> u got it right
[08:44] <TJ-> Blueking: that tells you the ISP only opens the route when its DHCP server assigns a lease
[08:45] <TJ-> Blueking: so, instead of trying to statically define things, use DHCP and solve the lease renewal issue
[08:45] <Blueking> ok  what should I look into renewal issue ?
[08:45] <TJ-> Blueking: well, are you using NetworkManager to manage the connection?
[08:46] <TJ-> It makes more sense since it knows how to do everything, and it controls dhclient, dnsmasq, etc.
[08:46] <TJ-> All of those log quite verbosely into the syslog so you can generally diagnose issues too
[08:46] <Blueking> never used networkmanager
[08:47] <Blueking> I am using shorewall as firewall if that matters
[08:47] <TJ-> OK, so you're manually configuring it so dhclient, dnsmasq work independentally?
[08:47] <Blueking> yes
[08:48] <Blueking> dnsmasq I havn't looked at
[08:48] <TJ-> 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] <Blueking> changed auto eth0, iface eth0 inet dhcp
[08:49] <TJ-> 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] <Blueking> eth1 and lo remains unchanged
[08:49] <TJ-> which release of Ubuntu are you using?
[08:49] <Blueking> how it looks like when dhclient tries to renew in logs ?
[08:50] <Blueking> 14.04
[08:50] <Blueking> LTS
[08:50] <TJ-> OK, quite an old version. Did you check whether both IPv4 *and* IPv6 leases expired?
[08:51] <Blueking> ipv6 given by isp are just local RD
[08:53] <TJ-> So you're not using prefix delegation and your own DHCP server issuing addresses
[08:54] <Blueking> that were greek language to me :P  (didn't understand)
[08:55] <TJ-> 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] <Blueking> will disconnect to test new setting in interfaces
[08:55] <Blueking> it's /64 yes
[08:56] <Blueking> but not true ipv6 tho
[08:57] <Blueking> starts with fe80
[08:57] <Blueking> and I see on windows that it got none ipv6 gateway or dns
[08:59] <TJ-> 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] <Blueking> 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] <Blueking> gateway on isp
[09:00] <Blueking> IP of router = 109.247.165.99   gateway  109.247.160.1
[09:01] <Blueking> brb  check if net is back with dhcp
[09:05] <Blueking> TJ-  ok back  did ifdown eth0 && ifup eth0  and got an message    'suspect value in host_name option - discarded
[09:06] <Blueking> on through ubuntu router now
[09:06] <Blueking> lease time 4287 seconds
[09:06] <Blueking> renewal in 4287 seconds I mean
[09:09] <TJ-> 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] <Blueking> ok /var/lib/dhcp/dhclient.eth0/leases eth0
[09:12] <Blueking> and /run/dhclient.eth0.pid
[09:12] <lordievader> Good morning.
[09:13] <Blueking> TJ- I see host-name in there
[09:14] <TJ-> Blueking: 'suspect value' indicates something wrong with it
[09:14] <Blueking> but it's from ISP
[09:16] <TJ-> so? ISPs can make mistakes too
[09:18] <Blueking> ok host-name "0004005c0426/hdl-lunn1ar2"
[09:20] <TJ-> definitely a bad name "/" is an illegal character in a hostname
[09:20] <TJ-> unless there's some special format for that option in the DHCP RFCs
[09:22] <Blueking> http://paste.ubuntu.com/15586424/
[09:23] <Blueking> why are there two inputs ?
[09:25] <Blueking> ok I'll ask my isp
[09:25] <Blueking> TJ-  check that pastebinit  why are there two leases on same interface ?
[10:56] <TJ-> 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] <TJ-> 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] <Blueking> ok
[11:04] <Blueking> I have to notify isp about it then ?
[11:05] <TJ-> Yes. Use what I told you (the RFCs) to ensure they take you seriously and pass it to their engineers
[11:05] <TJ-> and of course show them the lease that was acquired
[11:06] <Blueking> ok
[11:07] <Blueking> nods
[11:07] <TJ->  "option host-name "0004005c0426/hdl-lunn1ar2";" stands out like a sore thumb to someone who knows DHCP/DNS
[11:08] <Blueking> hehe  but still I had a disconnect right now after 2 hour uptime
[11:09] <Blueking> TJ-  are there ways to have longer lease time ?
[11:11] <TJ-> 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] <Blueking> TJ-  but host-name can't be reason for unstable net ?
[11:17] <Blueking> TJ-  what if... I know net drops out like every 2h  I can force renew  of ip ?
[11:17] <Blueking> before it happens ?
[11:22] <TJ-> 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] <lordievader> 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?
[11:28] <TJ-> well the client says it's ignoring the host-name
[11:29] <TJ-> 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] <TJ-> the client takes the lease with the suspicious host-name so I can't imagine it'd not then renew
[11:57] <Blueking> TJ-  hmm did just have an disconnect   and needed to manual get it back online
[11:58] <TJ-> 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] <TJ-> Blueking: time to grab the /var/log/syslog and see what happened
[11:58] <Blueking> I am looking into it
[11:59] <TJ-> 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] <Blueking> sent pm
[12:01] <TJ-> Blueking: I have them disabled
[12:01] <Blueking> http://paste.ubuntu.com/15587360/
[12:03] <TJ-> Blueking: what time did you lose the connection?
[12:03] <Blueking> 13:42  11:03
[12:04] <Blueking> and 13.22
[12:05] <Blueking> can't be munin ?
[12:06] <Blueking> those cron jobs ?
[12:06] <TJ-> 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] <Blueking> not sure
[12:07] <TJ-> Well, have you for an /etc/network/interfaces with "iface em1 inet dhcp" ?
[12:07] <Blueking> yes
[12:07] <TJ-> OK, so ifupdown should be the one starting dhclient
[12:07] <Blueking> auto em1   iface em1 inet dhcp
[12:07] <TJ-> and it ought to remain running
[12:08] <Blueking> yes
[12:08] <Blueking> how to check that ?
[12:08] <TJ-> well right now for example "ps -efly | grep dhclient" should show it still running
[12:09] <Blueking> yes
[12:09] <TJ-> renewal in 4165 seconds... that's 69 minutes
[12:10] <Blueking> http://paste.ubuntu.com/15587413/
[12:10] <TJ-> Blueking: did you edit anything out of that syslog pastebin from other services in between the dhclient messages?
[12:11] <Blueking> not in last 2 hours
[12:11] <Blueking> but maybe about 11.00
[12:11] <TJ-> OK, I just didn't want to be missing any important other clues that may have been there, if you had
[12:12] <Blueking> for a year net was dropping at every 24h  2-3 weeks ago it started dropping out every 18-20 minute
[12:14] <TJ-> "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] <Blueking> ok
[12:15] <TJ-> Yes, it is definitely your ISP. Looks like their DHCP server admin is clueless
[12:15] <Blueking> so we have a conclusion now ?
[12:15] <TJ-> 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] <Blueking> I could take it up with ISP first
[12:16] <TJ-> 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] <TJ-> dhclient can take the -sf option to a shell script that performs actions
[12:17] <TJ-> so you could add a script that keeps the ip address when the lease is NACKed
[12:19] <Blueking> easy task ?
[12:21] <TJ-> 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] <TJ-> "man 8 dhclient-script" goes into detail about the script mechanisms
[12:23] <TJ-> Blueking: do you have the file "/etc/dhcp/dhclient-enter-hooks.d/debug" ?
[12:24] <Blueking> yes
[12:24] <TJ-> 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] <Blueking> ok
[12:25] <TJ-> Then we can look at what is recorded in that file after the next time you lose the connection
[12:32] <Blueking> lol had wrong order on ifup && ifdown :P
[12:32] <Blueking> now
[12:32] <Blueking> reason why dropout now
[12:34] <Blueking> moved tmp dhclient log file so start with fresh new one
[12:34] <Blueking> when it drops out
[12:39] <TJ-> good, you're making progress
[14:08] <FManTropyx> 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] <TJ-> FManTropyx: what Ubuntu release? I'd guess the init system is respawning it. You should use the init system to control it
[14:12] <FManTropyx> OS is 14.04, but I'm a noob trying to administrate it...
[14:14] <TJ-> FManTropyx: then the init system is upstart. Do "sudo service <name> [start | stop | restart | status ]
[14:14] <TJ-> FManTropyx: so "sudo service mysql stop"
[18:22] <alechk0> 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] <alechk0> so now every time I try to install/remove package, it tries to configure the failed installation
[18:23] <alechk0> and of course the mysql server is stopped
[18:24] <alechk0> how do I purge the failed installation?
[20:15] <soee> hi, can i upgrade 15.10 to 16.04 via command line ?
[20:16] <ikonia> you can
[20:17] <soee> is the do-release-upgrade -d the right option ?
[20:17] <ikonia> no
[20:17] <ikonia> as that will upgrade to a development version
[20:17] <ikonia> (pre release 16.04)
[20:17] <ikonia> I suggest you wait for the official upgrade process which is at 16.04 release
[20:18] <soee> ikonia: i do want to jump to 16.04 development version
[20:18] <soee> i want to setup vps already for 16.04
[20:18] <ikonia> I advise against it
[20:18] <ikonia> #ubuntu+1 topic has documentation in it
[20:41] <Blueking> 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] <rowdypixel> 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] <rowdypixel> conf file for reference: https://gist.github.com/anonymous/f4547f9f9c2f3827dbc671027f931d13
[23:09] <Blueking> how to pastebin result of ifdown && ifup ?