/srv/irclogs.ubuntu.com/2017/12/18/#ubuntu-server.txt

cpaelzergood morning06:31
=== MannerMan_ is now known as MannerMan
TariusWorkgood morning : This is highly relative because it depends on user time zone :D :D ... And I think that this is international channel for many peoples from many time zones.09:45
=== MannerMan_ is now known as MannerMan
albechAnyone here running Bareos backup? I am a little worried about that they only release packages with the initial version and all updates are through Git unless you pay for the commercial version. Wondering how many issues people are experiencing with the community version.09:50
andolalbech: Well, looks like the GitHub repository contains their ./debian packaging folder, so ought to be fairly trivial to build your own packages whenever there is a new minor release. Then I guess there is also the Bareos packages in the regular Ubuntu archives, but I have no experience with how well they are kept up to date.10:03
albechandol: cheers.. Guess id have to have a buildbox and move compiled package to production. Looked a little at the pricing and there is very little change that i can convince management to go from our free self written backup solution to a paid solution in the price range they are asking :(10:16
ren0v0Hi, can anyone help me as to why i'm getting this log in cron service?   Dec 18 10:17:01 prod-lb CRON[20762]: pam_unix(cron:account): expired password for user root (root enforced)11:21
ahasenackren0v0: I suppose some cron script is using su or sudo to switch to root, and that is triggering that that log11:23
ahasenackyou should be able to see which script in the same log11:23
ren0v0ahasenack, no there is nothing about the script, but the script works fine manually run and in cron.daily11:30
ahasenackdid you check /var/log/syslog or /var/log/auth?11:30
ren0v0the issue here is as you can see from this paste > https://pastebin.com/tjFtwj1f  > that ubunt has different line entries for daily and hourly. hourly doesn't use "anacron", is this a mistake?11:30
ahasenackren0v0: I think the anacron is fine11:35
ren0v0ahasenack, my point is anacron isn't used in the cron.hourly job, why?11:35
ahasenackanacron is meant to "catch up" cron jobs that didn't run when the system was off11:36
ahasenackan hourly cron job that didn't run is ok to run in the next hour, so no need for anacron to "speed it up"11:36
ahasenackthat's my thinking11:36
ren0v0ahasenack, hmm interesting11:38
ren0v0but, could the lack of this anacron pipe cause this auth issue ?11:38
ahasenackdo you have a password for root?11:38
ahasenackit's complaining the password is expired, maybe all you need to do is reset it, if that's part of your password policy11:39
ren0v0ahasenack, sure i can set one, but ubuntu doesn't have one by default does it ?11:39
ren0v0i'm sure it does on ubuntu server though11:39
ren0v0ahasenack, the weird thing is that cron.daily runs fine, which is why it confused me11:39
ahasenackyou have the same job in cron.hourly and cron.daily?11:40
ren0v0nope11:43
ren0v0i moved it11:44
ahasenacktry pasting a bit more context from syslog around that expired password line11:45
ren0v0ahasenack, you might be right about the password expiring11:46
ren0v0i usually change it, but maybe this time i didn't, and this is a droplet so i think theyn might expire root passwords11:46
ahasenackwell, it's what the log is saying :)11:46
ackkrbasak, hi, do you see any reason ubuntu-advantage-tools couldnt' use bash rather than dash?11:47
ren0v0Hi, i thought that open files were limited by the figure in "ulimit -n", for me that is "163840". however, if i run "lsof | wc -l", the figure is greater that this number, why is that ?12:07
ahasenackren0v0: ulimit is not global12:09
ahasenackren0v0: the global setting is somewhere in /proc12:09
ren0v0cat /proc/sys/fs/file-nr    ?12:10
ahasenackI don't remember from memory12:11
ren0v0well this shows far less at 7000, not 180,00012:11
ren0v0so not sure what the difference is12:11
ahasenackI think file-max is a better choice12:13
ren0v0this is like 2million12:13
ackkren0v0, file-nr is a read-only attr, it shows the current value (see man proc)12:58
ren0v0ackk, that's useful also, as its far different than "lsof | wc -l"13:02
ren0v0like, 150,000 difference13:02
rbasakackk: as long as the package depends on it, I believe it's OK.13:31
rbasakackk: though you might be the only thing depending on it in a minimal environment, so people may not like that. Which seed are you in again?13:31
ackkrbasak, ubuntu-minimal13:40
ahasenackcpaelzer: these are the changes I noticed when rebuilding libzstd with dh9 compared to dh10: http://pastebin.ubuntu.com/26208547/ (on xenial)13:40
ackkrbasak, u-a-tools don't depend on dash fwiw13:40
ackkas it's Essential: yes13:40
ahasenackcpaelzer: seems ok13:40
ackkrbasak, it doen't have any Depends: ATM13:41
rbasakackk: is it possible to install only ubuntu-minimal without bash installed?13:41
rbasakIf it is, then by switching to bash you'd be imposing that upon ubuntu-minimal.13:41
cpaelzerahasenack: reading the link13:43
cpaelzerahasenack: yep LGTM as well13:44
ahasenackthx13:44
ahasenackvimdiff is nice for this kind of thing, thanks for the suggestion13:45
cpaelzeryw13:45
ahasenackrbasak: dmb meeting is in ~1h8min?13:52
rbasakahasenack: yes. Thank you for the reminder!13:54
ahasenackcheers13:56
* ahasenack -> lunch13:56
ackkrbasak, isn't it the same as dash?14:06
ackkrbasak, since both dash and bash are Essential, they have to be installed anyway, right?14:07
rbasakI didn't think bash was Essential?14:08
rbasakIf it is, then sorry, you're right.14:08
ackkyeah I'm slightly surprised it is14:08
ackkbut it is14:08
rbasakThen no reason for a dependency as I think you said, and sure, use it.14:09
ackkrbasak, cool, thanks for confirming14:09
rbasakThe only other reason I know about is performance (eg. startup scripts), but I don't think that's an issue for this tool.14:09
ackkright, it's not something that's even run automatically14:09
ahasenackackk: is bash Essential since precise?14:47
dpb1right, that was my next question15:10
dpb1:)15:10
boxrickIs there anyway to suppress the Ubuntu preseed whine about no gateway15:51
boxrickMy network has no gateway, so this warning needs to just accept that and carry on.15:51
ahasenackit's unusual, so it sounds like a good warning to have15:52
boxrickWell, this is a fully automated install. So any popup is complete disaster.15:53
ahasenackah, it stops the install?15:53
boxrickYea15:53
ahasenackok, didn't know that15:53
ahasenackcan you set the gateway to your own ip?15:53
rbasakI think you can bypass it, but I don't recall the detail right now.15:53
boxrickI can set it to anything but it seems a bit of a sad fix15:53
ahasenackmaybe set it just to satisfy the installer and later remove it via another step in your automation?15:54
rbasakThe warning is just another debconf prompt whose answer you can preseed.15:54
rbasakI think.15:54
ahasenackjust thinking about workarounds, sorry15:54
boxrickNo its good thanks :)15:54
rbasakYou just need to figure out the name of the prompt I think.15:54
boxrickWhy apologise for helping! Any ideas how I can find the name of the prompt?15:54
rbasakIt'll be in a debconf template somewhere15:55
rbasakSomewhere in the source.15:55
rbasakI can't remmber the package name15:55
rbasakThe package that does network configuration in the installer15:55
rbasaknetcfg maybe?15:55
rbasakHere we are15:56
rbasakdebian/netcfg-dhcp.templates in the netcfg package15:56
rbasakhttp://paste.ubuntu.com/26209463/15:56
rbasaknetcfg/no_default_route15:56
rbasakType: boolean15:56
rbasakTry setting that to yes or true or similar.15:57
rbasakAssuming the message against that key in the template file is the message you see?15:57
TJ-wouldn't it be netcfg/get_gateway=none  ?15:58
rbasakMaybe. I'm just guessing!15:58
TJ-me too!15:58
rbasakI suspect get_gateway might make it ignore any DHCP response. And no_default_route will make it proceed without a gateway. But again, I'm just guessing :)16:00
rbasakignore any DHCP response> I mean ignore the gateway part only, of course16:00
boxrickYea will have to try16:05
boxrickFrom my experience, any static config is complete16:05
boxrickNot just small sub components16:05
tomreynis there an EOL for 12.04 ESM? if so, which? also, will there be ESM for 14.04?17:23
tomreynsorry, i meant to ask this in -hardened17:23
=== Ussat-1 is now known as Ussat
jiffeso upgrading ubuntu seems to have broken python (and everything in the upgrade that depended on python)22:15
tomreynok22:17
jiffeI'm not sure how to fix this, asking in #python they just say its an ubuntu problem22:20
jiffeit fails at Exception: python3.5 -c 'import imp; print(imp.get_tag())' failed with status code 1 with ImportError: No module named '_sysconfigdata_m'22:21
jiffebut that module does seem to exist22:21
tomreyndescribe what you were doing, show input and output, explain which ubuntu release you are working on and which major modifications you have made.22:22
tomreyn!paste | jiffe22:23
ubottujiffe: For posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.22:23
jiffeI had to add /usr/lib/python3.5/plat-x86_64-linux-gnu/ to the python path and then apt-get upgrade finished22:24
jiffeI don't know if that path is missing from something22:24
dpb1jiffe: what ubuntu release, and what were you upgrading?22:25
dpb1jiffe: often this information can be pastebined from /var/log/apt/...22:25
jiffejust doing an apt-get upgrade on Ubuntu 16.04.3 LTS22:27
dpb1and what package failed to upgrade.22:27
jiffethese are the packages it was installing: apport bind9-host distro-info-data dnsmasq-base dnsutils dpkg dpkg-dev grub-legacy-ec2 klibc-utils libbind9-140 libdns-export162 libdns162 libdpkg-perl libisc-export160 libisc160 libisccc140 libisccfg140 libklibc liblwres141 libpulse0 lxcfs lxd lxd-client mdadm python3-apport python3-problem-report ubuntu-minimal ubuntu-server ubuntu-standard22:27
jiffefirst error occurred after python3-problem-report22:27
dpb1ok22:27
dpb1jiffe: dpkg -l |grep python-problem-report?22:30
jiffeinteresting, its not in dpkg -l22:32
jiffeoh whoops, missing the 3, its there22:34
jiffeii  python3-problem-report                                                                                            2.20.1-0ubuntu2.14                                            all                                                           Python 3 library to handle problem reports22:34
dpb1and I take it you applied the workaround already?22:35
dpb1therefor you are on the more updated version.22:35
jiffeyes everything installed after fixing the path22:36
jiffethe global path is still broke, I only fixed it for that shell's session22:37
jiffeopening a new ssh session python3.5 is still failing for the same reason22:37
jiffealso I don't know why I'd be the only one affected here, I don't know that people are using python on this machine22:42
jiffecertainly not python3.5 so that should all be default22:42
dpb1jiffe: what does yours say?22:43
dpb1http://paste.ubuntu.com/26211504/22:43
sarnoldwhat's he sys.path on a fresh shell? echo 'import sys; print(sys.path)' | python3.522:44
sarnoldhah, I see dpb1 beat me to it :)22:44
dpb1jiffe: in the past when things have bitten me like this, it's usually that I have pip modules installed that are misbehaving, I"m using a custom version of python3 that I compiled it myself, etc.22:44
jiffeI can't even run python3.5 because of this path issue, even running python3.5 with no arguments fails, python3's path lists ['', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/usr/local/lib/python3.5/dist-packages', '/usr/lib/python3/dist-packages']22:46
dpb1`which python3`22:46
jiffepython3 is /usr/bin/python3 and python3.5 is /usr/local/bin/python3.522:47
dpb1well22:47
dpb1/usr/local/bin/python3.5 smells of a compiled version of python on the system indeed22:48
dpb1(user-compiled, I mean)22:48
dpb1ls -ld /usr/bin/python3  ?22:48
jiffe/usr/bin/python3 -> python3.522:50
dpb1ls -ld /usr/bin/python3.522:50
jiffe/usr/bin/python3.522:50
jiffebinary no symlink22:50
dpb1ok22:51
jiffenot sure where /usr/local/bin/python3.5 came from, nothing compiled on this machine22:51
jiffebinary timestamp is july 2016 and this machine was built this year22:51
jiffecouple months ago22:51
dpb1what's your sha1sum22:52
dpb1on my two xenial systems it's 3eab1d3d6cafd34315183305819cbbc361ded361  (/usr/bin/python3.5)22:52
dpb1(amd64)22:52
jiffethat matches /usr/bin/python3.5, different sum for /usr/local22:53
sarnoldtry dpkg -S /usr/local/bin/python3.5. Maybe you've got a gross package installed?22:53
jiffeyeah I don't know what this is or why its here but that's the problem, I renamed it and python3.5 works fine from /usr/bin22:55
dpb1ok22:56
dpb1ya, I've had that before22:56

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