/srv/irclogs.ubuntu.com/2017/08/02/#ubuntu-server.txt

cathodehi06:08
Guest83465Good morning06:17
cathodei'm trying to force rename a network interface to a meaningful name but it's "not working" and i'm not sure how to look to see why it's not working06:19
cathodehttps://www.punyal.com/2016/08/18/ubuntu-16-04-rename-a-network-interface/ <-- using this method06:19
cathodeubuntu 17.0406:19
Guest83465cathode: Read the last two sections of https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/06:20
=== Guest83465 is now known as lordievader
cathodeok thanks06:28
cathodeafter i add my own .link files, how do i apply them other than rebooting?06:28
lordievaderI suppose this should do the trick: https://unix.stackexchange.com/questions/39370/how-to-reload-udev-rules-without-reboot06:31
lordievaderThough I am not sure if udev will rename an existing device.06:32
cathodeholy crap it worked06:34
cathodethanks06:34
cathodei had to reboot06:34
cathodebut my network interfaces are correct now :D06:34
lordievaderGood to hear the problem is solved.06:40
=== funabash1 is now known as funabashi
ahasenacksmb: hi, I prepped https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1707400 for an SRU13:59
ubottuLaunchpad bug 1707400 in libvirt (Ubuntu Xenial) "libvirt-bin doesn't regenerate apparmor cache in postinst" [Medium,In progress]13:59
ahasenackrbasak: I wonder if "interesting bugs this week" and their investigation would be good material for blog posts13:59
rbasakahasenack: +114:01
smbahasenack, was that just for my info or was there something I was expected to do?14:12
ahasenacksmb: just fyi14:13
smbahasenack, ah good. :)14:13
=== Piper-Off is now known as Monthrect
=== Monthrect is now known as Piper-Off
might_get_loudHi all, im hosting a little PHP app on ubuntu server, and the app is in /home/$USER/app folder. I modified groups for $USER to be have www-data group, and www-data user to be part of $USER group. I also set up shared permisions on all files na folders to match users and groups with chmod g=u. But i cant access app, i have 500 internal server error. When i change owner of those files to www-data:www-data i can access app just fine. Anyone16:27
might_get_loudhave any idea?16:27
might_get_loudIm using 16.04 and php 7.116:27
smosernacc, given a git-ubuntu git repo, can i produce a .orig easily?16:44
naccsmoser: yes, with a branch i have :)16:44
naccsmoser: (which uses pristine-tar)16:45
ahasenackdoesn't  build-source produce one?16:45
smoserthat just happens to be more than i wannted16:46
ahasenackok16:46
naccahasenack: well, build-source uses pull-lp-source in master16:47
ahasenackwhat does pristine-tar do? tars everything but debian/ up?16:48
ahasenackand calls it whatever version you have as the top most in d/changelog?16:48
naccahasenack: well, we use pristine-tar to import things16:49
naccahasenack: so it's actually taking in the tarball as in the archive16:49
smosernacc, link ?16:50
smoseri assumed i'd 'pristine-tar checkout <tarball>' but it wants a branch named 'pristine-tar' which isnt there.16:50
naccsmoser: one sec16:52
naccsmoser: https://code.launchpad.net/~nacc/usd-importer/+git/usd-importer/+ref/lp169840216:52
naccsmoser: yeah, that's the issue for us, as we have both a debian and ubuntu pristine-tar branch16:53
naccsmoser: the above branch abstracts that out16:53
smoser nacc hm.. i dont see how you tell pristine-tar which is the branch to look at17:01
smoserhttp://paste.ubuntu.com/25227663/17:02
mdeslaurnacc: I am going to disable http2 support in apache2 so it can get out of -proposed17:02
naccmdeslaur: ok17:02
naccsmoser: don't use gbp17:03
naccsmoser: it won't work with our repository17:03
naccsmoser: otp, give me a bit17:03
smoseri was looking at your code17:04
smoserand thats what it seemed to do17:04
smoseralso invoking pristine-tar basically does the same thing17:04
naccsmoser: we use gbp to import it and then reproduce the pristine-tar17:04
Apocope I have a server I updated from 12.04 to 14.04 using do-release-upgrade. Now cups won't see groups from ldap. How can I sort this out?17:04
ahasenackApocope: were you using libnss-ldap?17:05
ahasenackor was cups contacting the ldap server directly17:05
naccsmoser: https://git.launchpad.net/~nacc/usd-importer/commit/?id=a87d89645f0cac3bddf58eb77d567f3999e16de317:05
smoseroh thats sick17:06
smoseryou should fix pristine-tar17:06
smoserto take a branch17:06
Apocopeahasenack: Yes, libnss-ldapd, configured via puppet. Oddly, I have a server that was installed as 14.04, same puppet stuff and it works properly.17:07
naccsmoser: yeah, i think we have a bug for that somewhere17:08
ahasenackApocope: if relying on libnss-ldap, you can use getent passwd <user> to test ldap, where <user> exists in ldap only17:08
ahasenack(or libnss-ldapd, I assume it's the same idea: a new nss module in /etc/nsswitch.conf for the "passwd:" line)17:09
smosernacc, https://bugs.launchpad.net/ubuntu/+source/pristine-tar/+bug/170821417:10
ubottuLaunchpad bug 1708214 in pristine-tar (Ubuntu) "support using branches with name other than 'pristine-tar'" [Undecided,New]17:10
smoseri just opened. didn't see an ubuntu bug at least.17:10
Apocopeahasenack: That works fine. My regular account is from ldap, I can log in, run sudo, all that stuff. Just, as far as I know, CUPS isn't seeing it. /etc/nsswitch.conf is identical between the working and the non-working server.17:12
naccsmoser: thanks17:12
smoserprobaly https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=46730017:12
ubottuDebian bug 467300 in pristine-tar "Please allow several pristine-tars in the same repository" [Wishlist,Open]17:12
ahasenackApocope: does your ldap server allow anonymous binds/searches, or does it need a password?17:13
ahasenackApocope: in other words, do you have a password stored somewhere in /etc for libnss-ldap(d) to contact the directory?17:13
Apocopeahasenack: No anonymous binds.17:14
ahasenackApocope: so a password is needed. Can cups read that file with the password? I forget what it is, something in /etc/ldap/ probably17:14
naccsmoser: also, we needed something works (well, where we are now) in 16.04, which wouldn't be able to depend on pristine-tar (or gbp in this case) taking a branch17:17
naccsmoser: note that we can't use pristine-tar directly anyways17:17
naccsmoser: because of component tarballs :)17:17
docmurHey guys, I'm trying to get dropbear initramfs to work so I can decrypt my VM via SSH during boot, however no matter what guide I follow I always get an error about authorization_key file now having valid SSH keys17:19
Apocopeahasenack: Are you sure that cups need to be able to read that file? The system has knowledge of group info from ldap. If I run 'getent group systemadmin' I get a reasonable response. I tried setting slapd.conf to be world readable, but it didn't do anything different.17:21
ahasenackApocope: when you run getent group <name>, libnss-ldapd will contact the directory to search for <name>. You said that anonymous binds/searches are not allowed, so libnss-ldap needs credentials, right?17:21
ahasenackmaybe I misunderstood17:22
ahasenackit wouldn't be rootpw from slapd.conf, though17:23
Apocopeahasenack: Yes, you're right, but ldap accounts in general are working. My account information is stored in ldap, I can log in, my groups, from ldap show up.17:23
ahasenackApocope: and what errors show up in the cups logs?17:24
ahasenackand, is cups running in a chroot perhaps?17:24
Apocopeahasenack: No chroot. "cupsd: Unknown SystemGroup "systemadmin" on line 17 of /etc/cups/cups-files.conf." "cupsd: Unable to read "/etc/cups/cups-files.conf" due to errors."17:25
ahasenackApocope: cups runs as the "lp" user, right?17:26
smoserdocmur, that sounds interesting. it might be easier for you to test outside of an initramfs. i dont have any specific hints though.17:26
ahasenackwell, one of its processes17:26
smoseri do know that cirros runs dropbear from initramfs so theres nothing specifically magic there.17:27
ahasenackApocope: and you can "getent group systemadmin" as root?17:27
docmursmoser, okay, any recommendations?  I have got Dropbear to work on 14.04 (I think)17:27
Apocopeahasenack: cupsd seems to be running as root. 'getent group systemadmin' gives reasonable looking group information.17:29
ahasenackgetent run as root?17:29
Apocopeahasenack: Yes17:29
smoserdocmur, this is the first time i've ever looked at it in ubuntu. i notice there is a17:30
smoser dropbear-initramfs17:30
smoserwhich i'm guessing is what you're trying to use.17:30
docmurWow, I should run the search17:30
docmurLet me try that package :)17:31
ahasenackApocope: are there apparmor errors in the output of dmesg? something with DENIED?17:32
Error404NotFoundIs there a super lightweight, may be single file, proxy server that I can use to forward domains to ports? I have few http servers running on 8080, 8081, 8082, and I'd rather have them access as abc.com, def.com. I don't want full blown nginx for just name->port.17:32
ahasenackError404NotFound: are the multiple domains on the same ip, or different ips?17:33
Error404NotFoundI could use different ips, say: 127.0.0.1:8080, 127.0.0.2:808117:33
Apocopeahasenack: Oh, yes. "type=1400 audit(1501695210.403:183): apparmor="DENIED" operation="connect" profile="/usr/sbin/cupsd" name="/run/nslcd/socket" pid=17838 comm="cupsd" requested_mask="w" denied_mask="w" fsuid=0 ouid=0"17:34
ahasenackis that socket from libnss-ldapd?17:35
ahasenackor what is it17:35
ahasenackError404NotFound: no, I meant, if the domains mapped to different ips in dns, I was going to suggest the most lightweight of all redirects: iptables :)17:35
Apocopeahasenack: nslcd is the local LDAP name service daemon. That seems important.17:35
ahasenackApocope: it does. And what about the other machine where it works?17:36
naccsmoser: ok, off the phone now -- we don't currently provide an interface to the APIs to extract the tarballs. If you are interested in that (e.g., git ubuntu export-orig <upstream version>), file a feature request, please :)17:36
Error404NotFoundahasenack nah, they're all running locally, no dns involved.17:36
Apocopeahasenack: I'm seeing that same log, except it says ALLOWED instead of denied.17:37
ahasenackApocope: this was an upgrade from which ubuntu release again?17:38
ahasenacktrusty to xenial? Or what?17:38
Apocopeahasenack: 12.04 -> 14.0417:38
ahasenackApocope: try this command as root, and then restart cups(d): apparmor_parser -r -T -W /etc/apparmor.d/usr.sbin.cupsd17:39
ahasenackthat will reload the apparmor profile but ignore any existing cache, and write a new cache out17:39
ahasenackthen the same for /etc/apparmor.d/usr.sbin.cups-browsed (just because it's about cups too)17:39
naccsmoser: question re: the intent of the open-iscsi test. It's checking to see if iscsid can be started. But we've updated the systemd unit to not start unless configured. That test seems (now) to simply be invalid, should I just delete it?17:40
Apocopeahasenack: I just tried copying the /etc/apparmor.d/usr.sbin.cupsd file from the working server to the non-working server, restarted apparmor and cups works now. I'm just going to call that good. Thanks for your help.17:43
ahasenackApocope: I think you could have a stale apaprmor cache file, I've seen that in another bug I just recently worked on, and it happened because of a release-upgrade too17:43
ahasenackApocope: when you copied the file, you changed its timestamp to be $now, i.e., more recent than the cache, so apparmor grabbed that file instead of the cache17:44
ahasenackthat bug drove me nuts for a bit because the apparmor profile was correct, yet I was still getting DENIED errors17:44
ahasenackApocope: fwiw, apparmor cache files are in /etc/apparmor.d/cache17:45
ahasenackcool that it works now :)17:45
Apocopeahasenack: You're probably right about that. I'm comparing the files, and the only difference is that there's a flags=(complain) in one that's not in the other. Thanks so much.17:45
ahasenackI'll drink some coffee to that :)17:45
smosernacc, pollinate is behind the archive in trusty-proposed17:49
smoserits in gitubuntu/import-cron-packages.txt17:49
smosershould i just import?17:50
naccsmoser: it's a bit racy right now, it depends on when the bot was running (i can give more detail) -- let me check one thing17:50
smoseri can just run import and let it do its thing too17:51
naccsmoser: go ahead, i need to fix something with the snap17:58
smoseri'm also currently importing dropbear17:59
smoseras i wanted to look at source per the question above and can't possibly imagine doing that any other way17:59
docmurI found this guide: https://hamy.io/blog/remote-unlocking-of-luks-encrypted-root-in-ubuntu-debian/ and it's works great :), if anyone needs to remotely decrypt a VM18:23
naccsmoser: the source in a particular release?18:28
naccsmoser: if you do import dropbear, can you also add it to the auto-import list? (a MP for it is fine)18:29
ahasenacknacc: in git ubuntu submit, what's the syntax for --target-branch? Something like "ubuntu/xenial-devel"?18:55
naccahasenack: yeah, that should be right (the bit after refs/heads/ basically)18:55
ahasenacknacc: ok18:56
sarnoldhallyn: hello :) does https://github.com/shadow-maint/shadow/commit/954e3d2e7113e9ac06632aee3c69b8d818cc8952 need a CVE?19:26
sarnoldhallyn: (asking due to https://bugs.launchpad.net/bugs/1266675 )19:27
ubottuLaunchpad bug 1266675 in shadow (Ubuntu) "newusers error adding more than one user" [Undecided,Confirmed]19:27
ahasenackpowersj: rbasak: nacc: https://wiki.ubuntu.com/ServerTeam/KnowledgeBase#Merge_Proposals_and_Reviewing19:42
ahasenackI'll email too, so cpaelzer has something to read when he is back ;)19:42
rbasakThanks!19:44
hallynsarnold: i didn't think so, as i don't think it's exploitable, and isn't used by anything suid-root,19:50
hallynsarnold: but i could be wrong, so if you feel it deserves one then by all means...19:51
sarnoldhallyn: that was my initial impression but then I got to wondering if terrible tools like webmin or similar might assume the functionality works and perhaps allow someone to get more privileges than expected by "add a user" front end..19:53
hallynsarnold: sounds like issuing a cve is the prudent thing to do then20:01
sarnoldhallyn: alright, I'll take care of the paperwork. thanks.20:02
ahasenacknacc: where did you have the manpage tricks documented again, for the git-ubuntu snap?20:07
ahasenackor is that not needed anymore?20:07
=== JanC is now known as Guest87139
=== JanC_ is now known as JanC
naccahasenack: it's in the bug, one sec20:39
naccahasenack: LP: #169952620:39
ubottuLaunchpad bug 1699526 in usd-importer "Extra steps needed to enable manpages in snap" [Low,Triaged] https://launchpad.net/bugs/169952620:39
tewardi forsee one issue with nginx and the merges.20:42
tewardubuntu is ahead of Debian :p20:43
tewardand there's an official divergence because they're tracking mainline and we're tracking stable... so...20:43
tewardit's also out of date lol20:43
naccteward: is that referring to the git-ubuntu tooling?20:43
teward(on the list of repos)20:43
tewardnacc: yep20:43
naccteward: nginx is a bit odd in that regard, an "Ubuntu merge" is always (at least otherwise in my experience) relative to the Debian version20:43
naccteward: not strictly required, of course20:44
naccteward: i think you could do it, you just need to tell `git ubuntu merge` what the new onto should be (presumably it's an upstream ref)20:44
naccteward: but it probably will fail because it won't find debian/changelog there20:44
naccteward: it sounds like less of a merge and more of a uupdate20:44
tewardnacc: that's *usually* what ends up being the case with nginx20:44
tewardwith a merge every so often if there's major packaging changes, but those're easy to nitpick wrt git20:45
naccteward: ack -- it almost certainly will need some love, feel free to file a bug (https://bugs.launchpad.net/usd-importer/+filebug) if you have a specific flow we can't support (with a testcase, ideally, but we can figure that out later)20:46
tewardnacc: usually though there's not much difference in packaging, that's why i've not used a Git workflow yet for nginx merges and instead did the 'old school' way - that *may* be one of the very few packages where all that needs done manually...20:48
tewardbut hey i'm used to it :p20:48
naccteward: sure, if you've got a workflow that works for you, no need to even use our tooling :)20:49
tewardindeed.20:49
naccteward: it will happily follow the archive for now20:49
SuperLagIs there something I can do for configuration, to not keep so many old kernels in /boot?21:11
naccSuperLag: i think unattended-upgrades can autoremove if you turn it on21:13
SuperLagnacc: I have unattended-upgrades turned on, I'm guessing it requires more configuration beyond that.21:33
naccSuperLag: yeah, there's a commented out line int he default config, iirc Unattended-Upgrade::Remove-Unused-Dependencies "true";21:34
hashwagonWhy would my ubuntu server 16.04 system not show a usb drive with lsblk -f, but shows the devices with lsusb? If I unplug it and back in it'll show up, but I can't do that with remote systems.22:04
naccrbasak: please take a look at my last comment in https://code.launchpad.net/~powersj/ubuntu/+source/logcheck/+git/logcheck/+merge/32781022:13
powersjnacc: thank you for the reviews! Are you using git ubuntu lint from master?22:14
powersjif so I'll make sure to use it from here on out22:15
naccpowersj: just pushing out another fix for it (that is related to the last review) and yes22:15
naccpowersj: the snap should be refreshing shortly22:15
powersjok thanks22:15
powersjsweet22:15
powersjhopefully will speed this turn around time22:15
powersjword failure... but yes speed things up22:15
naccyeah, and i'm hoping to instatiate the review bot soonish too (at least for our team)22:15
naccwhich will make this all a bit more automatic22:16
powersjsweet22:16
naccsmoser: sorry if i missed it, but did you have any feedback on the potential change to test_daemon for src:open-iscsi?22:27
RoyKhashwagon: perhaps with a scsi host rescan? usb shows up like scsi devices and I beleive they are treated that way at these layers too https://blogs.it.ox.ac.uk/oxcloud/2013/03/25/rescanning-your-scsi-bus-to-see-new-storage/22:28
naccsmoser: my current thinking is we should disable that test altogether with the new systemd unit22:28
peterrusI have an install with a root filesystem in lvm, and for some reason every time I boot I get dropped to the recovery shell, then if I run 'mount -a' and then exit my system boots normally22:35
peterrusany pointers on what could go wrong?22:35
drabjust a guess, but the uuid of the fs in the initrd/fstab might be wrong22:36
drabso when initrd boots up and wants to load / (which also contains your fstab), it fails22:37
drabif you mount -a (ie mount everything), then / appears22:37
peterrusdrab: any way to find out which uuid the initrd is expecting?22:37
drabhowever thinking aloud, that doesn't quite make sense since fstab would still not be available by the time that mount -a happens22:37
drabbut I'd still poke in that direction22:37
peterrusdrab: you might be right :p22:38
drabpeterrus: blkid22:38
drabthat will tell you the uuid of all the disks22:38
drabI'd start byu checking that the output of that matches what's in your fstab22:38
draband then you may want to run sudo update-initramfs22:39
drab(assuming it matches)22:39
draband see if that helps at all22:39
peterrusdrab: its using /dev/mapper/ubuntu--vg-root22:40
draboh right, lvm, so not a uuid in fstab22:40
drabpeterrus: when you get dropped in the shalel, have you tried any of the lvm commands?22:42
drabto see what's available lvm wise at that point?22:42
draband also look at some logs22:42
drabalso what ubuntu version are you running? I'm seeing some bugs for lvm2 that showed up with the same symptoms you described22:45
drabpeterrus: this seems to be relevant: https://askubuntu.com/questions/567730/gave-up-waiting-for-root-device-ubuntu-vg-root-doesnt-exist22:48
drabdo you get the same error?22:48
peterrusdrab: appearently I had to fsck my /boot/efi partition :p22:53
peterrusits all fixed now22:54
peterrusthanks for pointing me in the right direction though !22:54
peterrusI have been living like this for a year now :p22:54
noftis microcode firmware for Intel CPUs useful on linux OS ? any advantage/dis. ?22:55
sarnoldnoft: the microcode updates can fix bugs that otherwise can kill systems dead -- see the hyperthread mentions on https://launchpad.net/ubuntu/+source/intel-microcode/+changelog22:57
sarnoldnoft: previous microcode updates have disabled known-buggy transactional memory handling extensions that lead to buggy locking primitives22:59
=== masACC is now known as maswan
sarnoldnoft: normally intel doesn't document _anything_ though. you just don't know what gets fixed and what doesn't get fixed.22:59
noftsarnold: saw a link that you gave me...btw nothing to worry much about, sandy architecture in my case23:05
noftsarnold: it looks like 'must have' for newer cpu, skylake/kaby23:06
noftlot of bugfixing23:07
sarnoldnoft: the trouble is that you'll never know what it fixes for your CPU except in exceptionally rare circumstances :(23:07
noftsarnold: you there?23:29
sarnoldyeah23:30
noftfound this23:31
noftYou already have proprietary microcode running inside your CPU, this package just provides an update23:31
noft   for it. It's not a non-free "driver", as it really has nothing to do with your system at all - it gets23:31
noft   loaded by the kernel at boot time, sent to the CPU, updated in the EEPROM block on the CPU and then23:31
noft   left alone, never to be used in a meaningful way again23:31
noftmicrocode updates are usually issued to fix errata in the CPU's23:31
noft   design, which can be anything ranging from lockups to crashes to silent data corruption23:31
noftI think it's good idea to get it23:32
sarnoldboth those descriptions sound fair, except for the 'never to be used in a meaningful way again' -- since it's the software that controls how the CPU is implemented..23:33
noftoh i get it23:34
noftso for a permanent update I should update BIOS ?23:34
sarnoldthat'd accomplish about the same thing but runs the risk of giving you motherboard problems (there's always some risk there..)23:35
noft...well it still depends if manufacturer included updated microcode into bios update23:36
noftcorrect me if i'm wrong23:36
sarnoldright; and they may or they may not. bios people are almost as bad as intel in telling you what they fix :(23:37
nofttrue23:37
noftbtw nvm, it's not like I'm running server on this machine or anything that I care, like science researches etc23:38
sarnoldstill you want a stable computer :)23:39
naccrbasak: sigh, libvirt may break our versioning checks :)23:41
noftright but until now I didn't expect anything strange23:41
naccrbasak: in trusty-security/updates: 1.2.2-0ubuntu13.1.16/1.2.2-0ubuntu13.1.2023:41
noftas I said, it's nice to see changelogs...from those I saw that newer CPUs are likely to need those the most23:42
sarnoldolder cpus have probably already had their updates, and might have been simpler machines too :)23:44
rbasaknacc: is there a particular reason libvirt does it that way? I'd rather we be consistent across all packages. Though things like the kernel and HWE packages will always be an exception I expect.23:55
naccrbasak: no idea :)23:55
naccrbasak: a good question for smb or cpaelzer23:55
rbasaknacc: and in the meantime, I think it's fine for lint to continue pointing it out to libvirt uploaders :)23:55
naccrbasak: yep23:55
rbasaknacc: time for gulint overrides? :-P23:56
naccrbasak: heh23:56

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