/srv/irclogs.ubuntu.com/2017/10/24/#ubuntu-server.txt

cpaelzergood morning05:40
lordievaderGood morning05:58
sonu_nki have a linode server . installed ubuntu 14 .. can i upgrade it to ubutnu 16 without remove any ubuntu 14 setting website and other data ?07:34
rh10guys, how can i send beep sound from script? for localhost using08:49
rh10i need notify sound when script is done08:49
rh10got it. now im using paplay from pulseaudio09:08
rh10paplay /path/to/file09:08
rh10but! it doesnt play sound when  it runs from cron09:24
rh10all path absolute09:24
rh10i tried run from user cron, from /etc/crontab - with username added09:25
FMan1988maybe it does not have permission to access the file09:31
rh10FMan1988, i checked it. all correctly09:32
rh10plays normal when i run manually, and dont play when it runs from cron09:33
rh10* when i run script manually within paplay run09:34
jamespagecoreycb: gosh - tl;dr - don't change /usr/bin/python - it breaks stuff12:14
jamespageI must have triaged 6 bugs related to users switching that link to python3 today12:15
coreycbjamespage: oh no12:15
jamespagecoreycb: yeah the debpython module that gets called from maintainer scripts for python modules is py2 only @16.0412:16
jamespageif you see a bug with an unable to import from ConfigParser,its this type of problem12:16
jamespagetypically on a package install12:16
coreycbjamespage: ok good to know, thanks12:16
albechis it possible to roll back one upgrade? The latest postfix upgrade totally hosed my system.13:16
Bert_2Hi guys, can I allow-hotplug vlan interfaces such as "eth0.20"?13:32
smoseralbech: you can probably:13:45
smoser apt-get install postfix=3.1.0-313:45
smoseralbech: could you please file a bug describing your regression though?13:45
albechsmoser: was 3.1.0-3 the previous version?14:02
albechsmoser: looks like it will lead to some dependency issues with postfix-mysql and possibly others..14:07
albechsmoser: at least i can receive mails at the moment, they just arent passing through rspamd :(14:07
sdezielalbech: yes 3.1.0-3 is the previous version14:10
sdezielalbech: during the upgrade, did you get a prompt about a changed master.cf file?14:11
smoseralbech: yes, it was the previous version.14:19
albechsdeziel: nope it said it would keep the old version14:21
smosernacc: when your'e in... i had a question on https://bugs.launchpad.net/maas/+bug/144499214:22
ubottuLaunchpad bug 1444992 in MAAS "fastpath install duplicates iSCSI initiator names, blocking iSCSI HW" [High,Triaged]14:22
albechgetting lots of these (for every mail connection): https://pastebin.com/Aav8gwyu14:22
sdezielalbech: can you compare the current master.cf and main.cf with those from before the upgrade?14:24
albechsdeziel: they werent changed14:26
sdezielI don't know how it could have break your rspamd integration then, sorry14:26
albechsdeziel: not even sure what that SMFIC_OPTNEG means14:27
albechbut its a real issue. letting roughly 1000 spam/minute through atm :/14:28
sdezielalbech: it seems to be how postfix negotiates feature support with the rspamd milter14:29
albechmaybe a little less 900ish14:29
sdezielalbech: could you try a manual connection yourself: nc -zv localhost 1133214:29
sdezielcause the connection timeout is weird14:30
albechConnection to localhost 11332 port [tcp/*] succeeded!14:30
sdezielalbech: try to check if the chroot version has the same localhost: grep localhost /var/spool/postfix/etc/hosts14:33
sdezielalbech: then try connecting with IPv4 then IPv6: nc -zv4 or nc -zv614:34
sdezielalbech: anything useful logged in /var/log/mail.err ?14:34
albechmail.err has another error related to the upgrade i guess: Oct 24 16:21:09 maia dovecot: imap-login: Error: SSL: Stacked error: error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown: SSL alert number 4614:35
sdezielOK, that's unrelated14:36
albechlooks fine https://pastebin.com/HkvnUqbh14:36
sdezielalbech: I never used rspamd but I'd check it's logs and maybe restart it?14:36
albechtried all.. logs dont show anything. i have even turned on verbose logging for the milter plugin14:37
albechnc connects fine with both v4 and v614:38
sdezielalbech: I'd try to tcpdump lo and see the milter dialogue between postfix and TCP/1133214:40
albechdid that also, but its above my skill level to read the output14:40
albechsdeziel: maybe too verbose.. let me know: https://pastebin.com/KecaXqEK14:41
albechi could be wrong, but these are all ipv6 requests?14:42
sdeziellooks like it14:42
albechwondering why.. never told it to use ipv614:43
sdezielIPv6 is used by default when available14:43
sdezielalbech: did you try rolling back to 3.1.0-3 as suggested? You can do so for all the postfix-* packages14:47
albechsdeziel: no, cause they started some dependency issues with postfix-mysql and possibly other packages.14:48
albechsdeziel: think its worth a try?14:48
sdezielI'd try it if I was hammered by 900 spams/minutes :)14:49
albechi prefer the spam over a non functional system. tried getting into dependency hell before. i was just stupid not doing a snapshot before the upgrade.. note to self :/14:50
albechhow could i grab the right version of postfix-mysql along with the 3.1.0-3?14:52
albechthink i figured that out ;)14:53
sdezielapt-get install postfix{,-mysql}=3.1.0-314:54
albechsdeziel: got that14:55
naccsmoser: pong14:56
albechsdeziel: after the downgrade the problem is still there. the pastebin is the upgrade done that caused the issue in the first place. Wondering which other packages could cause it. https://pastebin.com/p45YnyRa14:59
sdezielalbech: rspamd:amd64 (1.6.4-1~xenial, 1.6.5-1~xenial) expected?15:00
albechsdeziel: hmm yes i think so ;)15:00
albechsdeziel: not sure why it shouldnt be15:01
sdezielalbech: your milter communication is broken so it's either the initiator (postfix) or the responder (rspamd)15:02
albechsdeziel: aye15:02
albechcould try to downgrade the rspamd then15:02
smosernacc: hm... so what happened there... we just re-generate that id every boot ?15:03
naccsmoser: it should regenerate on first boot15:03
albechsdeziel: how can i tell what the previous version was?15:03
smoserwhat stops it from happening every boot ?15:03
sdezielalbech: apt-get install rpamd:amd64=1.6.4-1~xenial (see the /var/log/apt/history.log you pasted)15:04
naccsmoser: /etc/init.d/iscsid itself (which calls /lib/open-iscsi/startup-checks.sh)15:05
naccsmoser: and overwrites GenerateName=yes with a real id15:05
sdezielalbech: is it working better now?15:09
smosernacc: ok. i trust. wasnt clear in my memory.15:09
albechsdeziel: E: Version '1.6.4-1~xenial' for 'rspamd' was not found15:09
albechtrying to get the old version15:10
sdezielalbech: maybe the old package is still available in the PPA, please paste "apt-cache policy rspamd"15:10
naccsmoser: so, in theory, if you d/l the image and examine it without running it, it should have GenerateName=yes in it. But if you launch an image, when iscsid starts it will generated a new IntiatorName value and store it there. That image will keep that for its life. If you snapshot it and launch it again from there, it should keep it too. But if you spawn a new one from the cloud image, it should get15:11
nacca new Name15:11
naccsmoser: that was our test in devel, and what looks to be the result in xenial15:11
albechsdeziel: doesnt look like it: https://pastebin.com/WZ0KfMiU15:11
sdezielalbech: check in /var/cache/apt/archives15:13
albechsdeziel: no only rspamd_1.6.5-1~xenial_amd64.deb15:14
sdezielalbech: they've made many milter related changes according to https://github.com/vstakhov/rspamd/releases/tag/1.6.5 so it really looks like a regression15:15
albechsdeziel: :(15:15
sdezielalbech: with 1.6.4 but looks similar https://github.com/vstakhov/rspamd/issues/186915:16
sdezielalbech: at this point I think you should hop in #rspamd15:17
albechsdeziel: i am trying.. thanks for your help.. appreciate it15:18
sdezielnp15:18
rbasaknacc: can you happen to think of a good example package for considering the commit graph change?15:57
tewardi owe the server team an apology today.16:31
tewardthere was an emergency that took my attention - a close friend of mine got in a car wreck and i needed to make sure they were okay.  (I was at the hospital all morning...)16:31
tewardmy apologies for not being here or letting anyone know, i only found out about the accident this morning so...16:31
dpb1ugh16:32
dpb1I'm sorry teward, best wishes to your friend16:32
tewarddpb1: tell me about it16:32
tewarddpb1: they're a bit screwed up right now, and not entirely there in the head right now due to the morphine, but they're alive.16:32
dpb1:/16:33
tewardbroken bones, lots of cuts and bruises, and a major concussion16:33
dpb1yuck, lucky to be alive indeed!  sounds like a major accident!16:33
tewardi'd have let someone know but i kinda left everything at my apartment when I bolted out the door this morning...16:33
teward... ended up leaving all of my devices at home.16:33
tewarddpb1: sedan vs. truck.  yeah pretty major.16:33
tewardthey were in the sedan16:33
dpb1teward: no worries at all.  an irc meeting is very insignificant16:34
powersjteward: no apology needed16:39
powersjteward: I did put you down again for next week, so let me know if I should change that16:39
tewardpowersj: you can leave me listed there for now.  i'll try and let you know if I can't make it.16:40
rbasakteward: :-(17:00
rbasakBest wishes to your friend, and no apology needed :)17:00
sudormrfquestion about MDADM. I have a 4 bay case with 4 drives. I am going to set up RAID10, but I have data on one of the drives. What I want to do is this: create an array out of 2 disks, copy the data over to that array, then add 2 more disks to it resulting in RAID10. Is this possible to do without a 5th drive to first copy the data to?17:01
sudormrfI believe it should be17:01
tewardsudormrf: to do the RAID array will nuke the disk data.  you'll need to back up the data you want to keep first, if I'm not mistaken.17:02
sudormrfteward: to get it to a RAID10 state, you mean. correct?17:02
tewardsudormrf: is it currently RAIDed?17:03
sudormrfnegative17:03
sudormrfJBOD right now17:03
tewardsudormrf: in *theory*, maybe.  But I'm not as well versed in RAID10; in theory you can create the array with the other disks, and leave it in a degraded state by marking the first disk as missing, then copy the data onto the array, then extend the array onto the original first disk.  But, I can't guarantee you wont lose data this way either17:04
tewardso you should probably do a backup first.17:05
sudormrfhmmm17:05
naccrbasak: off the top of my head -- no, but anything that successfully imports should work fine. ipsec-tools might be reasonably quick17:22
dpb1sudormrf: I think the general advice is to rebuild from scratch as raid10 and copy your data.  But, It does appear to be possible to go from raid0 to raid10 now.  So, I suspect you could do as you are expecting.  I would build a VM and try it out first.17:23
sdezielsudormrf: you should be able to create your array in degraded mode (with one drive missing)17:23
sudormrfsdeziel: hmm. ok.17:24
sudormrfdpb1: I will give it a go.17:24
sdezielsudormrf: so if you put all your data on one drive, create the RAID10 with the other 3 drives you should then be able to copy the data to the RAID then recycle the single drive by joining it into the array17:24
sudormrfI've only built em from scratch before, so this is a bit of uncharted territory for me17:24
sudormrfrad17:24
tewardquick check with the server team:17:35
tewardwith the upcoming cycle approaching LTS, should I be focusing on nginx mainline in B-series, like we did for Xenial with a post-release targeted update to the stable version17:35
tewardif there's no objections :p17:35
sdezielsudosmurf: I just tested this with loop devices and it works well :)18:04
sudosmurfsdeziel: build array in degraded status?18:07
sudosmurfso you just give it 3 device names instead of 4?18:07
sdezielsudosmurf: yes, built it with: mdadm --create /dev/md3 --run --level=10 --chunk=4 --raid-devices=4 /dev/loop{0,1,2} missing18:08
sdezielsudosmurf: then later on, I added loop3 to the mix18:08
sudosmurfrad. what are loop devices, BTW?18:10
Walexsdeziel: building RAID5 and especially RAID6 sets in degraded status is recommended as it can be much faster18:11
Walexsdeziel: in the case of RAID5 it is actually sort of automatic18:11
sdezielWalex: hmm, didn't know that, thx18:12
sudosmurfWalex: good info :). In this case the array is going to be RAID10.18:12
sdezielsudosmurf: loop devices are devices backed by files to simulate a disk. In other words, I didn't want to test with 4 physical disks so I used plain files instead18:12
sudosmurfoh neat18:14
sudosmurfTIL :D18:15
JanC"recommended" depends on how you consider the risks of running without redundancy for as long as it takes to sync the redundant disk...18:23
JanCsdeziel: you can also use in-memory block devices for testing instead18:25
sdezielJanC: interesting TIL about the brd module18:40
albechbeen having some problems after an upgrade and notice that the following packages has been kept back: python-cryptography python-openssl python-requests python-urllib3 python3-requests python3-urllib3. Could it possibly be related to this? Can i force the install of these packages?19:19
sdezielalbech: it would be pretty surprising if those were involved with the milter problem that you faced earlier19:19
sarnoldsomething like apt-get install python-cryptography python-openssl python-requests     ought to explain -why- they were held19:20
albechsdeziel: dont know how much of rspamd is written in python.19:20
sdezielalbech: any success in rolling back rspamd itself?19:21
albechsdeziel: none19:21
albechsdeziel: #rspamd is pretty quiet about the issue.. i cannot be the only one facing it19:22
albechsdeziel: its a pretty standard build i have.19:22
sdezielalbech: can you paste "apt-cache show rpamd"19:22
albechsdeziel: but at least you gave me some good tips on the trouble shooting which i have forwarded to the channel.19:22
albechhttps://pastebin.com/dr7iyw3n19:23
sdezielalbech: this rspamd package not being provided by Ubuntu/Canonical means that you depend on rspamd upstream to help you with it19:24
albechsdeziel: aye19:24
sdezielalbech: none of the dependencies are related to python19:24
albechsdeziel: dont think its in the ubuntu repo at all19:25
sdezielalbech: it's not indeed19:25
sdezielalbech: libicu55 was updated yesterday (security), so could be a regression in there, dunno19:25
albechsdeziel: ok. i will pass that on to #rspamd for troubleshooting.. thanks19:26
sdezielalbech: that said, my money would be on a regression with rspamd's new version19:26
albechsdeziel: 8:15:03 PM - cebka: albech: I doubt it is related to 1.6.519:26
albechsdeziel: guess he should say that ;)19:26
albechsdeziel: not much help from #rspamd except: 9:36:57 PM - cebka: IDK 9:37:05 PM - cebka: your system is definitely fucked up.21:12
sdezielalbech: that's a helpful remark ;)21:12
albechsdeziel: very constructive ;)21:12
albechsdeziel: when trying to access rspamd's webinterface i am getting the following: https://paste.ubuntu.com/25812383/21:14
albechsdeziel: so its not only the milter21:14
albechsdeziel: i cannot read much from that tcpdump21:15
sdezielalbech: looks like your GET goes unreplied21:16
albechsdeziel: but at least it tells me that one more of the rspamd components arent working as expected.21:18
sdezielalbech: you could strace the rspamd process and see what it's doing21:20
albechsdeziel: let me try21:21
sdezielalbech: but before doing that, have you been able to get some help to access rspamd's logs?21:21
albechsdeziel: still only very little in the logs and #rspamd said it was expected stuff.21:22
sdezielalbech: this is IMHO off topic since rspamd isn't even shipped in Ubuntu so to not annoy folks in here, I propose we move to a private conversation21:23
albechsdeziel: fair enough, sorry to the #21:23

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