/srv/irclogs.ubuntu.com/2016/09/12/#ubuntu-server.txt

JanCtikun: it's installed on both, I think, but boots from the ESP partition00:19
tikunhmm00:21
tikunkk, thx00:21
JanCI assume the other one is in case you switch to legacy boot00:21
lucas_aiI can't get my @reboot crontab job to run my program. There is no error message in syslog (it shows up as if the command was run but it's not running). Any ideas?00:24
Kamilionlucas_ai: are you expecting PATH to be sane in a crontab, or expecting a specific PWD?00:28
lucas_aiI'm doing this: @reboot /usr/local/bin/autorotate.py > /usr/local/bin/log.txt00:29
lucas_aiI don't think I need the path to be sane. Do I?00:29
Kamilionwell, python certainly will be unhappy depending on what you try to import00:30
lucas_aibut I don't see any error message either00:30
lucas_aiHow am I supposed to run a script whenever my ubuntu loads?00:31
Kamilionmake a systemd unit?00:31
lucas_aithat means adding a lot of code. Why can't I just write my script command somewhere and that's it??00:33
lucas_aiupstart was fine but systemd is stupid00:34
Kamilionum00:35
Kamilion...00:35
KamilionI feel strongly opposite.00:35
KamilionI haaaaaaaaaaaaaaaaaaaaaaaate upstart with a passion.00:35
Kamiliontrying to write units in it and get them to behave properly and in order was nothing but trouble00:36
lucas_aimaking a unit requires lots of writing. upstart if I remember correctly is just almost a regular bash script00:36
Kamilionno00:36
Kamilionupstart's format is almost the same as systemd.00:36
lucas_aimaybe I'm talking about an even older daemon system00:36
Kamilionhttps://github.com/kamilion/kamikazi-core/tree/master/resources/xenial/mods/etc/systemd/system00:36
Kamilionhere are three service files.00:36
lucas_aiI just want to add my script to be run on start. why is it so hard?00:37
Kamilionit isn't anymore.00:37
lucas_aiI don't wanna make a unit script for every bash/python script I ever want to run on startup. This is disappointing00:37
Kamilionhttps://github.com/kamilion/kamikazi-core/blob/master/resources/xenial/mods/etc/systemd/system/disque.service00:37
Kamilionlook dude, it's ten lines.00:37
lucas_aithe command in that script is only one line00:38
lucas_aiI don't wanna memorize the whole unit syntax00:38
lucas_aiwhere do I just write "/usr/local/autorun.py" and that leaves it running since it boots?00:38
Kamilion[Unit]00:39
KamilionAfter=syslog.target00:39
Kamilion 00:39
Kamilion[Service]00:39
KamilionType=oneshot00:39
KamilionExecStart=/usr/local/bin/autorotate.py > /usr/local/bin/log.txt00:39
Kamilionor drop the whole [Unit] section if you don't need it ordered at boot.00:40
Kamiliongenerally a good idea to wait until at least syslog or network is running though00:40
lucas_aiawesome. Do I need the Type line?00:40
Kamilionyeah, unless you want it to default to 'restart'00:40
lucas_aiwhat does that mean?00:41
Kamilionsystemd will try to restart it if it exits cleanly.00:41
Kamilionif it throws an error more than 3 times, it'll be put in the 'failed' state and not restarted.00:41
Kamiliononeshot just launches it once, like the old systemv init scripts did.00:41
lucas_ailol00:41
Kamilion'just run this, GTFOMW'00:41
Kamilionwhich is pretty much what you're asking for.00:41
lunaphytethat's all well and good, but cron @reboot should work, and there's nothing wrong with it.  it's perfectly fine00:42
Kamiliononeshot is what you need for it to run and become a 'SUCCESS'00:42
Kamilioneh, I've never gotten cron to work properly on @reboot jobs00:43
lucas_aishould I put this unit in /etc/init.d/ ?00:43
Kamilionthe unit file?00:43
lucas_aiyes00:43
Kamilion/etc/systemd/system/mylogrotate.service00:44
Kamilionsystemctl daemon-reload00:44
Kamilionsystemctl start mylogrotate00:44
Kamilionsystemctl status mylogrotate00:44
Kamilioncheck the log messages it prints00:44
lucas_aisudo service autorotate start Job for autorotate.service failed because the control process exited with error code. See "systemctl status autorotate.service" and "journalctl -xe" for details.00:46
lunaphyteit's pretty easy to troubleshoot @reboot.  delete /run/crond.reboot, then restart cron and watch the logs00:48
lucas_aiI need to run my script as root. How could I do that in my unit file, Kamilion00:48
Kamilionyou didn't ask for it to run as any other user, so it'll run as root.00:50
lucas_aithen why am I getting an error in my script? Sep 11 17:47:41 lucas-Surface-Pro-3 autorotate.py[10820]: Can't open display00:51
Kamilionthat sounds like it's trying to access the xorg display somehow.00:52
lucas_aiyes. When i run it manually, it works just fine00:53
Kamilionif you're trying to start a GUI program on boot, you're better off using the xdg autostart then. http://askubuntu.com/questions/63407/where-are-startup-commands-stored00:55
lucas_aiwtf. This is a command line script. But apparently it needs to get a screen00:55
Kamilioneh, then cron would have never worked in the first place.00:56
KamilionAfter=graphical.target00:57
Kamilionthat will start the script after a display's available; but depends on further configuration such as lightdm autologin or something to actually have the desktop at a meaningful place to execute.00:58
lucas_ailol01:01
lucas_aiI made a .desktop file in /etc/xdg/autostart01:01
lucas_aihow can I test if it works?01:01
Kamiliondouble click it?01:01
Kamilioni assume you just right clicked to make the desktop file01:01
Kamilionbut I have no idea what kind of workflow you have or how much knowledge01:01
lucas_aino. on the terminal01:01
Kamilionoh, I have no idea how to use .desktop files on the terminal01:02
lucas_aii'll try in nautilus then01:02
Kamilionthey're the equivolent to windows shortcut icons01:02
=== tikund is now known as sikun
ducassei need to reinstall a 16.04 zfs file server, do i just export the pools on the old install and import on the new, or do i also copy zpool.cache over?07:46
sikunI really need to learn zfs07:48
beardfaceducasse: exporting and importing should do it07:53
ducassebeardface: ok, thank you :) i'm still learning zfs, and don't want to mess up my pools :)07:54
=== martinst_ is now known as martinst
=== skylite_ is now known as skylite
psjbeisleranybody have experience with containers yet, specifically LXD not Docker09:32
psjbeisleror KVM09:32
KlausedSourcedoes anyone know of a tool with that i can extract information (page dimensions, number of sheets/sides) from a pcl print file?09:44
jonahhi can anyone help with a weird problem. I have 3 servers. A can ssh to B and C. B can ssh into A and C. But C can only ssh into B not A. I can't figure out why!?10:00
lordievaderjonah: Check the auth log.10:02
lordievaderThat makes a good start.10:02
cpaelzeralso ssh can get much more verbose what is actually going on with -v -vv -vvv10:03
cpaelzerin case you find nothing on the auth log and need to look at the clients side what might be wrong10:03
=== sikun is now known as sikun_
jamespageOdd_Bloke, morning11:26
Odd_Blokejamespage: o/11:26
jamespageOdd_Bloke, when will the next yakkety daily images be published?11:27
jamespageI'm trying to get some yakkety/openstack testing back up and running - I'm working around the apt-mirror issue (by setting it)11:27
jamespagebut our current daily (from the 3rd) breaks on upgrade of grub11:27
Odd_Blokejamespage: We're having some issues testing on ppc64el which are breaking things, which I need to dig in to; I'll manually override the latest one though, as it's been a while since we had one.11:28
jamespage| 4e84df6a-72fc-41f2-b839-41430dacd6e6 | ubuntu-daily/ubuntu-yakkety-daily-amd64-server-20160902-disk1.img             |11:28
jamespageOdd_Bloke, pls11:28
Odd_Blokejamespage: That's in progress now, you should see it show up in the next few hours.11:30
jamespageOdd_Bloke, \o/11:30
Odd_BlokeAnd now I guess I should dig in to these ppc64el failures, as my "wait a week" strategy hasn't yielded the results I was hoping for. :p11:31
Ussato/11:36
cpaelzerjamespage: fyi I'm providing an ppc64el dpdk enabled clone of openvswitch in a ppa12:04
cpaelzerjamespage: along a ppc64el enabled dpdk of course12:04
cpaelzerjamespage: once 17.04 opens up I might get to you to incooperate the changes - but that to some extend depends on the further work of IBMers related to that12:06
=== tikun is now known as sikun
Ussatcpaelzer, any IBM'er in particular I can prod, I used to work there12:26
=== iberezovskiy|afk is now known as iberezovskiy
neoarkhttp://legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662.html13:23
Picineoark: #ubuntu-security would be a good place to share that13:28
mdeslaurneoark: we'll be publishing updates for that soon13:30
mdeslaurrbasak: we need to update mysql to 5.7.15 ^13:34
rbasakack13:36
jamespageddellav, if you want todo some xenial/newton testing with https://launchpad.net/~james-page/+archive/ubuntu/newton/+packages overlaid post deploy that would be helpful13:56
jamespagecpaelzer, ok - I know the 6wind team did some work for IBM on power13:56
ddellavjamespage i'd love to help. Do you mean deploying newton on xenial and using that ppa as a target in the next.yaml?13:57
jamespageddellav, no - you need to deploy either the xenial-newton or xenial-newton-branch targets from o-c-t13:59
jamespageand then add and upgrade that ppa - I'd use juju run  for that14:00
jamespageits basically a rev to the virt stack - want to de-risk it a bit14:00
jamespagesmb: hey do we need libvirt and libvirt-python to minor version match? we currently have 2.1.0 and 2.0.0 in archive14:08
smbjamespage, I cannot say for 100% but Debian had the same minor version delta last time I looked14:09
jamespagesmb, hmm14:10
jamespagewe've had issues before with unpaired versions14:11
smbjamespage, now its even 2.2/2.1 against 2.014:11
jamespagei.e. new features not being exposed14:11
mdeslaurrbasak: fyi, for xenial 5.7.15, I'm going to use the new upstream tarball that contains the embedded boost14:50
rbasakmdeslaur: I believe we're already doing that.14:51
rbasakmdeslaur: (so that should be fine)14:51
mdeslaurrbasak: oh! cool, I didn't notice that. thanks14:52
rbasakmdeslaur: the watch file should still work. I hope :)14:54
mdeslaurheh, I should have tried it :)14:54
hariomI have opvn file from my old openvpn configuration. I want to setup vpn connection again. Where should I keep this file? I have compiled and installed open vpn 2.3.416:05
=== InfoTest1 is now known as InfoTest
=== iberezovskiy is now known as iberezovskiy|off
EmilienMjamespage, coreycb: hey oh18:04
EmilienMI still see some failures when deploying neutron/linuxbridge https://review.openstack.org/#/c/368826/18:04
EmilienM(scenario003 is using linuxbridge backend) - not sure you updated everything yet18:04
=== Ussat is now known as _SJW_
jamespageEmilienM, all of b3 is there for core projects - http://reqorts.qa.ubuntu.com/reports/ubuntu-server/cloud-archive/newton_versions.html19:13
jamespageincluding the bits for loading modules and stuff19:13
EmilienMjamespage: mhh, ok19:14
jamespageEmilienM, oddly enough I noted a few tempest failures pm today when doing some ovs testing19:22
jamespagemight be related19:22
jamespagerelated to instances not being accessible19:22
EmilienMwith ovs we have 0 issue19:22
EmilienMonly with linuxbridge19:22
jamespageEmilienM, that test (test_network_basic_ops.TestNetworkBasicOps) is the only one in the tempest test suite that actually verified floating-ip -> instance connectivity I think19:24
EmilienMyep, that is the one that failed for us when using linuxbridge backend in neutron19:24
EmilienMwhen using ovs, it pass fine19:24
jamespageEmilienM, you can see that the instances does not get an IP address via dhpc19:26
jamespage Sending discover...19:27
jamespagemultiple times19:27
jamespageddellav, coreycb: https://bugs.launchpad.net/ubuntu/+source/neutron/+bug/162271519:29
ubottuLaunchpad bug 1622715 in neutron (Ubuntu) "neutron-openvswitch-agent - error on startup" [Undecided,New]19:29
jamespageI've tripped over that fairly reliably19:29
ddellavjamespage I'm having an issue starting up denial-newton on serverstack due to neutron, i'm still debugging but it might be related to that bug as well19:30
ddellav*xenial-newton19:30
jamespageddellav, symptomatically you can't access instances19:30
jamespageddellav, the status of the router port is DOWN19:30
jamespageuntil the n-ovs-agent on the n-gateway unit is restarted19:30
ddellavok, i'll try that. So far I'm just seeing an error on config-changed during startup. I'm digging through logs but i don't see much. I'm redeploying now19:31
jamespageEmilienM, are the puppet modules using the native ryu support for managing ovs, or the older ovs-vsctl driver?19:33
EmilienMjamespage: we use the one in neutron upstream default19:35
jamespageEmilienM, ok so ryu for newton19:35
EmilienMyep19:36
jamespageddellav, doing a debug enabled run to see if I can figure out that n-ovs problem20:13
jamespageddellav, -o debug=True with deployer btw20:14
sarnoldcpaelzer: congratulations :)20:46
cpaelzerthank you sarnold20:48
=== Guest51141 is now known as karstensrage
jamespageddellav, Ithink that neutron problem is caused by ryu21:30
jamespagebumped to 4.5 which has some eventloop exception fixes21:30
KevinIs there a way I can autoconfigure my network without reinstalling the OS?21:47
jamespageddellav, coreycb: ok so after some testing21:50
jamespageovs 2.6 + libvirt 2.1.0 appears functional afaict21:50
jamespagewith newton xenial21:50
jamespagelibvirt 2.1.0 will require some charm updates for nova-compute for the libvirt-bin -> libvirtd daemon rename21:51
DzAirmaXhi all21:52
DzAirmaXcan someone help me to set up kdump properly? I have installed it  and everything seems fine but during the last crash I couldn't find any logs in /var/crash21:52
compdocMySQL Hit By "Critical" Remote Code Execution 0-Day21:55
=== Ussat is now known as _SJW_
coreycbjamespage, that's good21:58
DzAirmaXhey22:17
DzAirmaXsomeone has already experienced crash with no kdump log?22:17
RoyKDzAirmaX: that happens, usually with something funny in the hardware. Start with a memory test22:41
=== sikun is now known as sikun__
keithzgAny suggestions for fully-compatible PCIe SATA controllers? (Preferrably on the more affordable side, but any suggestions would be welcome.)23:36
keithzgThe one I've got in a new server seems . . . questionable, although it's hard to pin down quite what's going wrong.23:36
compdocI use LSI controllers, but with the bios changed to get rid of the raid features23:38
compdocnot very expensive on ebay, and support sata and sas23:39
keithzgcompdoc: Thanks for the suggestion. By "with the bios changed" do you mean just flipping something in their firmware settings, or outright flashing modified firmware on them, or?23:56
DzAirmaXRoyK: how long shoud I run memtest for being sure everything is OK?23:59

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