/srv/irclogs.ubuntu.com/2017/09/05/#ubuntu-server.txt

=== tohuw is now known as Guest7603
necrophcodrIs it possible to pass dpkg options to aptitude, like you can apt-get?08:23
=== soahccc_ is now known as soahccc
soahcccI'm not very good with kernel related stuff and I had never a problem with it but now is the time I'm afraid. Would there be anything wrong with running 16.04 on a 3.11 driver? I dist-upgraded this server and it can't network anymore and I get ACPI errors in log so I have to assume it's the kernel right?09:18
cpaelzersoahccc: it is not what is supported/tested so you might run into a random amount of new errors09:38
cpaelzersoahccc: I'd try the newer kernels if they fixed whatever you are facing as an issue09:38
cpaelzersoahccc: https://wiki.ubuntu.com/Kernel/LTSEnablementStack09:38
soahccccpaelzer: Well it was a 12.04 system and I just did a do-release-upgrade (to I assume 14.04? iirc it doesn't go straight to 16.04) and it wont "come up". I started rescue system and the only thing I could find were some ACPI warnings and that NTP can't find a host09:39
cpaelzersoahccc: ah I thought you are on 16.04 given your question of a 3.11 kernel on it09:40
cpaelzerthe ntp message likely just means no network which matches your former statement09:41
cpaelzerI usually don't give too much on ACPI warnings09:41
cpaelzerwhat is your network setup - I rareley had a case where newer kernels dropped support of HW that worked before09:41
cpaelzerunless that was a USB network with dkms drivers not building or something like ti09:41
soahcccThe thing is I do have 2 identical servers (same hardware) and one is still working on 12.04. I upgraded a few servers (with different hardware) no issues. And those servers actually had a lot of services running on them. My problematic server is a file server and only has nginx and SSH09:41
cpaelzersoahccc: what you have to find out is why network is not initializing correctly on it09:42
cpaelzersoahccc: compare the dmesg / syslog on good and bad server in regard to networking09:42
cpaelzersoahccc: there must be something your upgraded server fails on in regard to networking right?09:43
soahcccWhat do you mean exactly by network setup? it's a dedicated server and I haven't done a thing to what the hoster originally configured in /etc/network/interfaces09:43
soahcccAnd yes I guess it's networking. I can't reach it via SSH or ping but cron seems to be doing something according to syslog09:43
cpaelzersoahccc: I meant what type of network card it is, how it was set up before, ....09:44
cpaelzersoahccc: and in the log I meant that this card somehow has to fail to be brought up correctly09:44
cpaelzersoahccc: maybe it just changed names09:44
cpaelzerand the old config doesn't apply anymore09:44
cpaelzeryou'd find that to soem extend by comparing the boot messages09:44
cpaelzere.g. as what device it was initialized09:44
soahcccat least it's the same exact card in both of them: Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)09:46
=== ashleydrees is now known as ashd
=== ashleydrees is now known as ashd
soahccccpaelzer: I compared dmesg of the two servers + dmesg of the rescue system and it seems as that the new kernel seemingly doesn't find the card https://gist.github.com/2called-chaos/c86f0c7eaa4a8cbf2521430b9c656dc009:58
soahcccI remember there to be issues with r8169 back in the days (and you should use official r8168) but the new one seems to work fine on the rescue system... Oh those realtek cards10:01
soahcccOkay for some reason, and I assume it was related to those drive issues, r8169 is blacklisted in modprobe blacklist and it's the only one available... Well i guess this problem is fixed :D10:07
soahccccpaelzer: thanks anyways :)10:07
hehehehey hey10:50
hehehehave u seen that PIA lifetime subscription is on sale10:51
hehehefor 49 something10:51
hehehebut hmm10:51
heheheis it truly lifetime?10:51
hehehecause its sooo cheap10:51
=== Bartuk_ is now known as Bartuk
=== hehehe is now known as hehehe_off
necrophcodrIs it possible to pass dpkg options to aptitude, like you can apt-get?12:28
RoyKnecrophcodr: I don't think aptitude is very well supported on newer versions debian/ubuntu12:51
RoyKthings are moving towards apt12:52
RoyKdunno if that suports dpkg opts, though12:52
necrophcodrRoyK, I'm aware, but aptitude has more strict dependency handling which I prefer.13:04
=== hehehe_off is now known as hehehe
hehehehi folks13:14
hehehefor some reason I cant ssh to the box13:14
heheheI logged in via kvm, nothing in syslog13:14
hehehemaybe it something to do with fail2ban jailing sshd?13:15
hehehehi _KaszpiR_  :P13:15
hehehemessup ips13:45
hehehein fact works13:45
hheegood day. how do you usually monitor .conf files changing over time?13:47
heheheyou could use auditd13:48
heheheto monitor changes in files13:48
hheehehehe, how can i see previous version of files?13:51
hheein etc e.g.13:51
hheeetckeeper probably13:52
hehehei am looking into it13:53
hehehei dont know13:55
hehehewant to eat so maybe will check later13:55
heheheauditd does log who accessed file13:56
hehehebut to log nature of changes to the file13:56
hehehemaybe sarnold  knows?13:56
hehehe:)13:56
heheheits rather handy feature13:56
madLyfenacc: its tuesday!15:43
naccmadLyfe: heya15:43
madLyfeyour brain ready for a beating? :P15:45
naccmadLyfe: yeah15:46
madLyfehow should we start? state the problem first?15:50
naccmadLyfe: yeah, from the beginning15:50
madLyfei have two usb ethernet adapters that are not being recognized by the ubuntu server installer during the network devices check. if i complete the install w/o setting up a network interface and reboot, i can go into the network interfaces file and manually add the adapter. it shows up in the lsusb list. i dont remember if i had to modprobe it first though.15:54
madLyfewhat that means is the modules are there for the thing to work but for some reason there is a disconnect during the installer. i would to remedy that.15:55
naccok, stop there15:55
naccwhen you say you have two usb ethernet adapters, do you mean you have two different ones? or you have two of the same, and neither work, or?15:55
naccnot knowing if you needed to modprobe something or not is sort of a dealbreaker :) can we figure that out?15:56
madLyfei have two different branded usb ethernet adapters. the name of the adapter is different under ubuntu desktop connection details but they seem to show they are using the same r8152, or whatever that was, module.15:58
madLyfedoes the modprobe matter? if i had to do the modprobe it was after the install anyways.15:58
naccmadLyfe: well, if you had to do it or not, does matter16:00
naccmadLyfe: to be clear, editign /e/n/i does not make your device recognized, something else does16:00
naccmadLyfe: and, iirc, you cannot modprobe r8152 in the installer, correct?16:00
madLyfeya i think thats correct.16:01
madLyfeshould i try to modprobe the installer again or after install again?16:23
naccmadLyfe: i would do both, so we know clearly what works and doesn't16:24
naccthere is to much "seem" in the above to solve the problem16:25
madLyfewell im installing to a usb drive on my laptop. im showing two ethernet controllers and those are the built in wifi and the onboard lan.16:26
madLyfenot the connected usb ethernet adapter.16:26
madLyfehttps://usercontent.irccloud-cdn.com/file/Vd2MF8Ry/irccloudcapture870703048.jpg16:27
naccrbasak: powersj: do you have time to do a HO to discuss the testing idea we had? (integration testpoint)16:27
powersjsure16:27
naccmadLyfe: ok, that's the server installer?16:27
madLyfeyep16:27
naccmadLyfe: ok, and if you go back and drop to a shell, are youa ble to load the module?16:28
madLyfeher is what this config looks like btw. in case you needed a clearer picture https://usercontent.irccloud-cdn.com/file/ULPHYmqD/irccloudcapture1151996363.jpg16:29
rbasaknacc, powersj: yes16:29
naccrbasak: thanks16:29
naccmadLyfe: wasn't it a server box before? so you this on your laptop as well?16:30
madLyfeso 'modprobe r8152'?16:30
naccmadLyfe: whatever the module was called, yeah16:31
madLyfeim just testing the installer so i didnt think it matters. just trying to get the installer to recognize the adapter shown in the picture16:31
naccmadLyfe: sure, just trying to understand16:31
naccmadLyfe: the more you chnage from what i remember/what you say, the harder it is for me to help :)16:31
madLyfeyes, this is all for the server.16:32
madLyfeya, sorry.16:32
naccmadLyfe: it's cool16:32
naccrbasak: powersj: shall we use the standup?16:32
powersjsure be right there16:32
madLyfei believe this is what we did. actually i have all those pictures saved: https://usercontent.irccloud-cdn.com/file/mRQaFwPe/irccloudcapture474510748.jpg16:33
naccmadLyfe: right, so before and after you modprobe, can you do the `ip link` and show me hte difference, if any?16:33
madLyfeya we couldnt get it working from the installer: https://usercontent.irccloud-cdn.com/file/HSKOFuXK/irccloudcapture756594906.jpg16:34
madLyfehttps://usercontent.irccloud-cdn.com/file/aX5fRVTs/irccloudcapture1437707674.jpg16:35
=== Metacity|uh-oh is now known as Metacity
=== rharper` is now known as rharper
naccpowersj: LP: #1714539 created17:01
ubottuLaunchpad bug 1714539 in usd-importer "build: errors reported after pristine-tar introduction" [Critical,Fix released] https://launchpad.net/bugs/171453917:01
powersjnacc: thank you!17:02
naccnope, not thate one :)17:02
powersjlol17:02
naccpowersj: LP: #171519517:02
ubottuLaunchpad bug 1715195 in usd-importer "jenkins job should run integration testws" [Undecided,New] https://launchpad.net/bugs/171519517:02
powersjthere we go :)17:02
naccpowersj: and trello card17:02
docmurHey guys, I asked this in the linux channel also17:06
docmurHey guys, I bought some new external IP's for my server, I added them to /etc/network/interface and I restarted the interface, here is my ip addr list ( editted ): https://pastebin.com/zfPSBCm3 including the ip r list, now that I can see them shouldn't I be able to ping and ssh to those addresses?17:06
UssatSo, asterik on Ubuntu...tell me its not all compile source17:16
madLyfenacc: i didnt notice anything for the ip link. though, im not sure what im looking for.17:17
madLyfemodprobe for that module was fatal though17:17
nacc!info asterisk | Ussat17:28
ubottuUssat: asterisk (source: asterisk): Open Source Private Branch Exchange (PBX). In component universe, is optional. Version 1:13.13.1~dfsg-4ubuntu1 (zesty), package size 1420 kB, installed size 5520 kB17:28
naccUssat: that?17:28
UssatYes, thanks17:28
naccmadLyfe: https://usercontent.irccloud-cdn.com/file/mRQaFwPe/irccloudcapture474510748.jpg so what env was this?17:29
Ussatperfect17:29
Ussatnacc, do I need to modify anything to get that or just apt-get install it ?17:29
madLyfethat was after a completed server install on the actual server hardware, with usb ethernet adapter.17:30
naccUssat: you need universe installed17:31
nacc*enabled17:31
naccUssat: then just apt install17:31
naccmadLyfe: right, so afaict, my conclusion before was still correct ( the one i think you were disputing at EOW). The stock Ubuntu server iso image does not contain the module you need for your USB network adapter in the installer initrd.17:32
naccmadLyfe: so your solution to fix that is to either use desktop & remove a bunch of packages so that it's server at the end.17:32
naccmadLyfe: or remaster the server installer ISO17:33
madLyfehow is it not there if after install i can modprobe it and manually add it to the network interface file?17:33
nacc*after install* is not the installer environment.17:33
nacci'm not sure why that's not clear?17:34
naccrbasak: powersj: tests/bin/jenkins-integration-test?17:34
madLyfebut the module has to be there in the iso for it to then be there after the install completes?17:34
naccmadLyfe: no.17:34
naccmadLyfe: or, at least, not necessarily17:35
madLyfewhat kind of sorcery is that?17:35
powersjnacc: that or a tools dir if you have a collection of stuff that does random things :)17:35
naccmadLyfe: what do you think you mean by "in the iso"?17:35
powersjand you could even leave out the jenkins part if you can run it locally17:35
naccmadLyfe: when I say that, I mean in /lib/modules/ in the installer environment.17:35
UssatOK, thanks17:36
madLyfei have no idea, i obv dont understand something.17:36
madLyfeis the needed module just not in the correct location on the iso to be used or soemthing?17:37
madLyfesomething*17:37
naccmadLyfe: on the iso, is the -extra .deb available? (not avialable to install, but present on the iso)17:37
madLyfeit has to be there for it to be there after the installer completes. it can just appear out of thin air w/o internet.17:37
naccmadLyfe: it can be in a package and not present in the installer environment.17:37
naccmadLyfe: again, be *clear* about what you mean about "be there"17:38
naccmadLyfe: I'm saying it's not an available module in th einstaller environmnet.17:38
madLyfeso i just need to get that module to the installer environment for it to use it during install17:39
naccmadLyfe: *if* that is possible.17:40
naccmadLyfe: it's also possible for the installer kernel and the to-be-installed kernel to not be the same (I think)17:40
naccmadLyfe: form the installer, run something like `find / -name 'linux.*extra.*.deb'`17:41
madLyfejust returned a new line17:42
naccmadLyfe: so not found17:43
Ussatnacc, thanks17:43
naccmadLyfe: do you have an *installed* server image around?17:43
naccUssat: yw17:43
UssatThat pulls in all the deps etc I assume ?17:43
madLyfenot currently17:44
naccUssat: yes.17:44
madLyfei can run this installer, w/o the adapter(obv), and use that?17:44
UssatMaking a local (as in on my work system) POC , assuming that goes OK will put it on the esxi cluster in a VM there17:44
naccmadLyfe: to be sure, 'find / -name 'linux-image-extra.*'`17:45
madLyfehttps://usercontent.irccloud-cdn.com/file/6XdEjfg8/irccloudcapture1090446043.jpg17:47
naccrbasak: powersj: something like: http://paste.ubuntu.com/25473445/17:47
naccmadLyfe: you have a trailing `17:48
naccmadLyfe: so it is waiting for you to complete the input17:48
madLyfejust enter again?17:49
naccmadLyfe: ctrl+C and don't put the ` in17:49
madLyfeoh17:49
powersjnacc: that works, only need to add checks for exit codes on failure so Jenkins knows to pass or fail.17:49
madLyfectrl+c isnt doing its job17:50
madLyfehttps://usercontent.irccloud-cdn.com/file/plRLSak1/irccloudcapture52227506.jpg17:51
naccpowersj: if i `set -e` it, that should be sufficient, right?17:52
powersjnacc: yes17:52
naccmadLyfe: right, becuase you are *still* in the subshell17:52
naccmadLyfe: so `<enter>17:52
naccit will probably complain17:52
naccpowersj: thanks17:53
madLyfenah it got me to regular command entry. did the last string you posted and it just returned a new line as well17:53
naccmadLyfe: `ls -ahl /pool/main/l/linux/linux-image*.deb`17:56
naccmadLyfe: and/or (sorry typo'd above) `find / -name linux-image-extra*`17:57
madLyfeso not this? ls -ahl /pool/main/l/linux/linux-image*.deb17:58
naccmadLyfe: either of them17:59
nacc(hence and/or)17:59
naccmadLyfe: they give us the same info, i expect17:59
madLyfehttps://usercontent.irccloud-cdn.com/file/fUo00FU0/irccloudcapture488449475.jpg18:00
naccmadLyfe: ok, so do a `dpkg -i /cdrom/pool/main/l/linux/linux-image-extra/4.4.0-87-generic_4.4.0-87.110_amd64.deb; modprobe r8152`18:01
naccthe dpkg *may* fail, i'm not sure, it depends on the deps18:01
madLyfehttps://usercontent.irccloud-cdn.com/file/6D9pqmo3/irccloudcapture1293490634.jpg18:05
madLyfeno idea why it was cutting off text like that18:05
naccmadLyfe: i forget how to install packages in the installer, you might have to let the installer go a bit further so the env is more setup than where you're at18:09
naccpowersj: --^ do you recall? this is a .deb that's present on the iso, but not part of the installer env itself18:10
powersjnacc: trying to add a package to the installer it self or in the target?18:11
naccpowersj: installer itself18:11
naccpowersj: in this case, the installer (to use network) needs the -extra package installed so that it can use a specific kernel module in it18:11
powersjah, I haven't had to do that before, but busybox doesn't come with much18:14
naccyeah18:14
nacci think dpkg will 'become' available once the installer env is setup (that hapens right after network)18:15
madLyfeso this is recognizing the two network interfaces on the laptop, i need to select one to continue?18:16
naccmadLyfe: yeah, we want to stop after the step after that18:18
madLyfek, i dont have a cable plugged into the lan port, but it was trying to find the link they configuring the dhcp.18:19
naccright, you can let it just fail to configure networking like you do when you try to use the usb adpater on your server?18:19
madLyfehttps://usercontent.irccloud-cdn.com/file/WY1HuboW/irccloudcapture1631082337.jpg18:19
naccmadLyfe: do not configure18:20
madLyfek18:20
naccmadLyfe: and then whenever you can at the next point, stop the installer, and go back to the shell18:20
madLyfenow its asking for hostname18:20
madLyfek18:20
naccmadLyfe: put whatever for th ehostname18:20
naccmadLyfe: like i said, we're not going to install yet18:20
naccmadLyfe: but we want it to setup the installer env18:20
madLyfeok at the shell18:21
naccmadLyfe: `which dpkg`18:21
madLyfewhich: not found18:21
naccmadLyfe: bah `ls -ahl /usr/bin/dpkg`18:22
madLyfe /ush/bin/dpkg: not such file or dir18:22
naccmadLyfe: was that a typo? (ush)18:23
naccmadLyfe: hopefully you just undersatnd what i'm trying to do18:23
naccmadLyfe: is dpkg avialable/18:23
naccmadLyfe: if it is, we cna try to install the package like before18:23
naccmadLyfe: if not, go to the next step in the installer and try again18:24
madLyfehttps://usercontent.irccloud-cdn.com/file/uIyLCWJm/irccloudcapture946100515.jpg18:24
naccmadLyfe: ok, so follow what i just said18:25
madLyfei just went through the user setup, timezone, and am not at the partitioner. will go back to shell now18:26
madLyfestill no such file or dir18:27
naccmadLyfe: can you just run 'dpkg'?18:28
madLyfedpkg: not found18:29
naccmadLyfe: ok, keep going then18:29
madLyfepartitioning disk and its installing the system now18:32
naccmadLyfe: ok, i think you can hit cancel (if poss.) and drop to the shell, maybe18:33
madLyfelol what is the cancel button?18:33
naccmadLyfe: i'm wondering now if possibly dpkg is never available in the installer, but in the to-be-installed system (e.g., /target or whatever)18:33
madLyfeits not letting me alt-f back to get to shell anymore18:36
madLyfejust continues on with the install if i press that18:36
madLyfeits at the grub installer right now18:40
madLyfeso we are kinda back to square 1, nacc?18:57
naccmadLyfe: i think the simples solution is to just remaster the iso18:57
naccmadLyfe: basically, modify the initrd on the usb18:58
madLyfeis that difficult?19:04
naccmadLyfe: not especially, afaict.19:05
naccmadLyfe: https://wiki.ubuntu.com/Initramfs19:06
nacci think that's roughly correct19:06
naccmadLyfe: basically, tkae your existing usb, cp the initrd used by the installer to /tmp19:06
naccextract it19:06
naccadd the one driver you need to the extracted initrd19:06
naccrecompress it19:06
naccand put that initrd on your usb19:07
madLyfeprobably start from ubuntu desktop?19:12
naccmadLyfe: hrm?19:12
naccmadLyfe: you need to be on linux to do the above, yes19:12
naccmadLyfe: it shouldn't matter if you are on desktop or server19:12
madLyfeya, just booted up the live usb19:12
madLyfedownloading the server iso to a clean usb stick from ubuntu desktop, nacc19:29
naccmadLyfe: wait19:29
naccmadLyfe: well, i guess that's fine, ok19:29
madLyfeso i have a usb with the iso on it, a usb with bootable installer on it. can use either.19:31
madLyfehttps://usercontent.irccloud-cdn.com/file/WkJArBvq/irccloudcapture235993422.jpg19:32
naccyou want to use the UBUNTU-SERV one19:34
naccmadLyfe: so you're going to use the above instructions, using boot/<appropriate initrd>19:34
madLyfeoh so i didnt really need to download it again since i already have a bootable usb?19:36
naccmadLyfe: right19:38
madLyfeok extracted initrd.gz19:42
madLyfebut just gave me initrd19:42
madLyfeextract that as well?19:43
naccmadLyfe: did you read the wiki page above?19:44
naccmadLyfe: it's not just a straight gunzip19:45
naccmadLyfe: you have to use cpio19:45
madLyfeya I looked at it but it's pretty foreign stuff to me.. https://usercontent.irccloud-cdn.com/file/20x8LTH0/irccloudcapture1938095891.jpg19:46
naccmadLyfe: specifically, do this all from the terminal and read the directions starting at 'cd `mktemp -d`...19:53
naccmadLyfe: honestly, there's quite a bit to learn here19:54
naccmadLyfe: i've spent about as much time as i can today on it19:54
naccmadLyfe: i'm sure you can google around and find clear instructions on how to add a module to the initrd19:54
madLyfenp ty for your help nacc19:54
Ussatso does anyone know if this:  https://bugs.launchpad.net/ubuntu/+source/asterisk/+bug/1458323 is fixed in 17.04 ?20:06
ubottuLaunchpad bug 1458323 in asterisk (Ubuntu) "Asterisk crashes with default install because of pjsip" [High,Confirmed]20:06
UssatI know there is a work around,  but might move thos to 17.04 if its fixed20:06
UssatWelp, 17.04 does not have that bug \o/20:51
naccUssat: can you update the bug with that info?21:18
=== JanC_ is now known as JanC
nacccpaelzer: while not disallowed, it's weird to see upload tags in your repository (ntp)22:25
Epx998how to copy a file to a bunch of windows servers hmmm23:08
powersjnacc: does this look right? Anything special I have to do? `uvt-simplestreams-libvirt sync release=artful arch=amd64`23:22
powersjxenial works as expected23:22
rharperpowersj: you need to use ~=(rel1|rel2|rel2)23:25
rharperotherwise, when you sync, it will remove any release that doesn't match your sync criteria ;23:25
=== Chrisfu- is now known as Chrisfu
rharperI assume that's what you're looking for (was non-obvious to me a while back as well)23:26
=== Chrisfu is now known as Guest35907
rharperthis is what I use for syncing daily images: uvt-simplestreams-libvirt --verbose sync --source http://cloud-images.ubuntu.com/daily "release~(xenial|trusty|zesty|artful)" arch=amd6423:26
rharperpowersj: I think artful might only be in the daily (since it's not yet released)23:27
naccyeah, sync literally syncs local to remote, exactly23:27
naccas opposed to one-way, which i suppose is to prune dead releases23:27
powersjrharper: ah interesting! thanks23:27
naccand yeah, yhou have to use daily for artful23:27
naccit would be nice if uvt wrapped this for us23:28
rharpernacc: I agree; it's just a passthrough to simplestreams23:28
naccrharper: yep23:28
rharperthat said, the uvt wrapper can suggest/warn23:28
rharperhence the cli rework we've discussed in the past23:28

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