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

rbasakteward: thanks! I was thinking a 'server' tag for server-related questions.00:34
rbasakteward: not exclusively to flag our team or anything, but something more generally defined and one our team could try to watch.00:35
rbasakteward: if askubuntu.com editors and moderators knew we were doing that, perhaps they might specifically tag relevant things 'server' when otherwise they might not?00:35
cpaelzerjamespage: I see you worked on OVS 2.8.1 but some self-tests fail - I subscribed myself to the bileto ticket you used05:33
cpaelzerjamespage: I have a few OVS related DPDK issues I got reported so I'd be interested if 2.8.1 is going to make it - let me know if there is more I can/should follow than the ticket05:33
pankajHow can I get list of all the ppa and repositories that i am using currently?05:44
=== jelly-home is now known as jelly
pankajHow can I get list of all the ppa and repositories that i am using currently?05:55
cpaelzerpankaj: apt-cache policy05:55
cpaelzer?05:55
=== JanC is now known as Guest86327
=== JanC_ is now known as JanC
pankajWhy packages from each repository have to be authenticaited when getting installed by apt-get?07:06
lordievaderGood morning07:20
cpaelzerlate but good morning to you as well lordievader09:02
lordievaderHi cpaelzer  . How are you doing?09:05
cpaelzerlordievader: fine enough (trying to convince myself of it) :-)09:31
deadromhi09:46
deadromthere was some news coverage recently on LTS and how the 5 year support does not exactly cover all packages. is there an official statement on that?09:47
deadromnvm, found sth09:52
jamespagecpaelzer: I may have to blacklist them11:23
jamespagecpaelzer: Ill endeavour to get to those today11:23
cpaelzerthanks jamespage11:23
JenshaeHi everyone14:35
Jenshaelordievader: ACPI -V = "The program "acpi" is not currently installed. etc14:36
SplunkKernelPaniI've exhausted my Googling ability here - for some reason my remote server goes into a kernel panic on startup now.  I booted into the rescue system and chrooted in.   I've mount --bind'ed proc, dev, and sys.  But I keep getting this error, and errors currently related to it: awk: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory14:36
JenshaeAn error with shutdown I have seen is, "Not tainted 4.4.0-96-generic #``9-Ubuntu14:36
SplunkKernelPaniI've tried binding /libs, symlinking /libs, and all kinds of iterations thereof.14:36
JenshaeTried getting the libreadline.so set again, SplunkKernelPani?14:37
SplunkKernelPaniJen, I have not.14:38
lordievaderJenshae: Install acpi ;)14:38
* Jenshae looks at lordievader suspiciously.14:38
JenshaeWhat does it do and how much does it cost? :P14:39
lordievaderJenshae: It is a program to control acpi stuff in your computer.14:39
JenshaeDoes it need a gui environment or all terminal?14:39
lordievaderApt says: "acpi - displays information on ACPI devices"14:40
joeliosudo apt-get install acpi14:40
SplunkKernelPaniJenshae: How would I go about setting libreadline.so?14:40
lordievaderNo, it is a cli app.14:40
JenshaeI usually just try and install a required dependency, APT tells me that it is in program X or Y and I pick one, then that library is often shared and picked up by what ever actually needs it.14:41
JenshaeWorked okay, so far SplunkKernelPani14:41
Jenshaeacpi version 1.7 now installed.14:42
SplunkKernelPaniJenshae: when I try to install anything with apt, this is what I get: https://puu.sh/xVwtR/e3faa291ed.png14:44
lordievaderIt doesn't generate errors when run? Jenshae14:44
SplunkKernelPaniApologies for not using a pastebin, that was taken earlier14:44
Jenshaeacpi -V x86_pkg_temp no state. | Intel-powerclamp no state14:44
joelioSplunkKernelPani: disk ok? Does that directory exist and contain files.. if so try and file {file} and see if you get an IO error14:45
joelioif so fsck the disk and try again14:45
SplunkKernelPaniok, trying.14:46
joelioif still erroring, the disk is broken14:46
JenshaeYup. I/O errors = good luck from me. :)14:47
SplunkKernelPaniAttempting to fsck yields this: https://paste.ubuntu.com/25720586/14:48
Jenshaelordievader: "No support for device type: power_supply" when I run acpi without any parameters.14:48
joelioSplunkKernelPani: you'll need to boot into a proper live cd and retry, even your rescue system is a bit fubar14:49
SplunkKernelPaniOk, thanks.14:49
SplunkKernelPaniThe rescue system is Debian14:49
lordievaderJenshae:  Hmm, I suppose that doesn't matter too much. I guess the server has some acpi support so that should not be the reason why it sometimes does and sometimes does not shut down.14:49
joelioSplunkKernelPani: oh, is that not the ubuntu rescue?14:51
SplunkKernelPaniNo, it's the server provider's rescue14:51
joeliothere's something fruity with the file system anyway, whether that's disk issue or fs issue or something been rm'd etc14:52
joelioI'd try and fsck and see what happens first14:52
joelioit could just be that those files are missing, but I thin you'd get a different error (file not found) not an IO error which looks to be inode wobblw14:52
SplunkKernelPaniOk, thanks, I'll try from an Ubuntu rescue14:53
SplunkKernelPanior livecd14:53
joeliono worries14:54
SplunkKernelPaniOh I did try this joelio, it also kernel panics14:55
SplunkKernelPaniI'll see if I can fsck from the rescue OS14:55
naccrbasak: ping14:56
rbasaknacc: o/14:56
naccrbasak: want to jump in standup? I can recap what I hit yesterday14:56
rbasakYep14:57
rbasakomw14:57
SplunkKernelPanifscking14:57
SplunkKernelPanihttps://paste.ubuntu.com/25720648/14:59
joelioSplunkKernelPani: you can pass in options to force yes and all15:00
SplunkKernelPaniOh yeah, there are a lot of problems going on.15:00
SplunkKernelPanijoelio, yeah, I'm regretting not dropping the yes flag already15:01
joeliocan ctrl-c out15:01
joelioalthough I've known someone who pushed a coin in between the 'T' and 'Y' key on old fsck that didn't support it ;)15:01
joelioif you'e got a lot of errors though, you may have disk issues15:02
joelioyou can check with SMART tools15:02
SplunkKernelPaniI'mma feel real dumb if my server's been down for two weeks and the only issue was that I needed to fsck15:02
joeliomaybe there are bad blocks on disk15:02
joeliohey, we've all been there :)15:02
SplunkKernelPaniStill kernel panic.  Let me go back into rescue and see if I can at least run things without that error now15:03
Jenshaelordievader: It is an HP 8200EeC so the power management is probably very rudimentary.15:06
joelioSplunkKernelPani: the issue may be that fsck will only go so far, if there's corruption on disk then always going to be a bit :/15:07
SplunkKernelPanihttps://paste.ubuntu.com/25720686/15:08
SplunkKernelPaniI'm running into that now15:08
joelioyea, the fs looks hosed dude15:08
JenshaeSlave it with a live USB and copy off what ever you can to an external drive.15:09
joelioI'd backup any content of it you needs, check the disks for bad blocks (or just bin) and redo15:09
SplunkKernelPaniI think I may have screwed it up earlier when I deleted bash.  I successfully reinstalled it by just copying it to /bin from the rescue system.  But I;m wondering if there might be lingering issues.15:10
SplunkKernelPani(why I deleted bash is a long story)15:11
Ussatdeleted bash.....15:11
Jenshae ... ... ... yeah ... redo it time.15:11
SplunkKernelPanilol15:12
SplunkKernelPaniIt wasn't even bad advice.  It was just poorly interpreted Googling.15:12
Ussatno, it was a bad idea15:12
SplunkKernelPaniA forum post stated that a similar issue was because bash needed to be reinstalled.  I tried to reinstall bash, but apt notified me that it was already installed.15:13
Jenshae"Guys, I just formatted my machine and white washed my drives. I have never used backups. How do I get my data back?"15:13
JenshaeBe suspicious of all posts. Some people troll.15:14
=== a1berto_ is now known as a1berto
SplunkKernelPaniIs it possible to install Bash from outside the chroot?  I can access all files on the drive15:14
JenshaeThere is always a delay before I act on advice here because I go and look up what they are saying first.15:14
SplunkKernelPaniCan't I just dpkg it somehow but tell it to use the other filesystem15:14
JenshaeWhile you are at it. Why not try delete a system32 folder off a Windohs machine and copy it again from a different one? :P15:16
JenshaeJoking aside, it looks like you have screwed your core system files and need to start again from scratch.15:17
SplunkKernelPaniCan I bind /bin/bash from the rescue to /bin/bash in the chroot?15:18
Ussatreinstall15:18
SplunkKernelPaniHorrid.15:19
UssatYes, or restore from backup15:19
JenshaeYou can grab some of your conf files and save yourself some pain.15:21
UssatI am gonna assume, prod ?15:21
SplunkKernelPaniprod?15:21
Ussatproduction15:21
SplunkKernelPaniIt's just a seedbox.  the biggest loss if I nuked it would be movies, music, and TV shows.  But I have a 5TB at another location I can send everything to prior to the nuking.15:22
SplunkKernelPaniBut yes, "production", lol15:22
SplunkKernelPaniI hope someone with my level of Linux knowledge wouldn't be running anything in a professional production environment15:23
SplunkKernelPaniI'll check back in later, thanks15:23
JenshaeUmm... been teaching myself Linux only since end of 2015 and ... well ... doing okay so far as the IT guy in this company. :P15:24
JenshaeI have three things on my Nix list, 1)  Find out why remote sound only works half the time. 2) Find a shadowing solution. 3) Setup this archive server.15:26
Jenshae2) Can be by and large managed by upgrading from R1 to R2.15:28
Jenshae1) Is low priority and 3) is a side project of mine.15:29
JenshaeHope this helps someone - http://www.terminally-incoherent.com/blog/2007/05/21/a-day-without-x/15:30
=== jelly-home is now known as jelly
JenshaeCiao o716:00
drab.o/ moin16:09
Smokiehey guys, im trying to mount a windows network share to ubuntu server and i keep getting "mount error(79): Can not access a needed shared library"17:39
Smokiemy /etc/fstab line and full errors are listed here https://gist.github.com/anonymous/17f669dbb33868a498ae3790fe271c9c17:39
Smokieany help would be appreciated17:39
drabSmokie: try to remove iocharset=uft8 for a test and mount again17:40
drabsee if that works17:40
drabSmokie: also if you look at /var/log/dmesg, do you see any error about utf8/nls_utf8.ko not being found?17:41
Smokiedrab, let me try, one sec17:42
Smokieit says nothing has been logged yet17:43
Smokielet me try to remove iocharset17:43
draboh lol17:43
drabdid you copy paste that configuration from a stackoverflow answer? :P17:43
drabredentials=/home/media/.smbc,iocharset=uft8 <----,gid.. uft8 instead of UTF817:44
drabso try that instead17:45
drabSmokie: ^^^17:45
drabalso if you did what I just did, ie put the error you pasted in google and clicked on the 4th link you'd found just that17:45
Smokiei actually followed some "guide", yeah17:45
drabsome guy reporting the same error and then posting "oh, what an idiot, typo, problem solved"17:45
Smokiei googled a lot and couldnt find something that worked17:45
drabfair enough17:46
drabanyway, try to fix the typo and see if it works17:46
drabit may be something else after all17:46
drabbut there's a high chance that's your issue17:46
drabhttps://www.max2play.com/en/forums/topic/mount-error79/#post-2683317:46
Smokieit mounted fine without using iocharset so i guess this was it17:47
Smokietesting now17:48
drabif not, this seems also related and a good lead, basically a kernel module for the charset is missing as it's not shipped with stock kernel: https://github.com/chef/bento/issues/80417:49
Smokieyeah, didnt work even after fixing the miss spell17:51
drabok, so check that link for the kernel module and see if you have it17:51
drabbut basically you already proved it's something to do with the charset17:51
drabsince removing the parameter makes the mount work, correct?17:51
Smokiedrab, that is correct17:55
sdezielman mount.cifs shows that iocharset doesn't take any argument, have you tried that Smokie17:55
Smokieand tbh, im not sure why is uft8 charset is needed17:55
Smokiesdeziel, iocharset only gives an invalid arguement17:56
sdezielSmokie: I just now saw the "Can not access a needed shared library". Have you tried strace'ing the mount command?17:57
Smokiesdeziel, it mounts find if i remove iocharset from the command line17:58
Smokiethe paths are not the issue17:58
sdezielwell, I'm assuming that using iocharset is what makes mount try to find a new shared lib, hence the strace idea18:00
Smokieheh.. got disconnected without knowing18:10
drabsdeziel: it is, more specifically, it loads a kernel module, which I guess in turn needs the lib or something18:16
drabSmokie: did you look at the other link for the additional kernel and kernel module?18:16
drabthat may be the issue, it seems to still exist in 16.04 according to it since that's what the bug was filed against18:16
Smokiei am on 16.04 LTS18:24
Smokieuname -r is 4.4.0-87-generic18:24
drabyes, like the guy in the bug report I linked18:25
Smokieexactly18:25
drabhe's even got a more recent kernel than yours18:25
drabI'm actually on 96 and have that module18:26
Smokieso need to upgrade18:26
drab-rw-r--r-- 1 root root 6166 Sep 12 11:01 /lib/modules/4.4.0-96-generic/kernel/fs/nls/nls_utf8.ko18:26
drabI've seen another couple links reporting same issue and saying the module was present but still issues18:26
drabI'd do what sdeziel suggested and strace mount.cifs18:26
drabor even possibly ldd it, to see to what libs it links18:26
drabif you do strace -e open mount.cifs .... it should tell you all the files it tries to open including libs18:27
drabthat may indicate what libs is missing18:27
drabfwiw I'm doing this myself and have no issues18:27
drabbeen spending the last week figuring out samba as we18:27
drab're moving our desktop's network home dirs over to it instead of nds18:27
drabnfs*18:27
drabsarnold: btw I pretty much figured out all the issues with pam_cifs and have a working solution so ditching the autofs hack18:28
sdezielSmokie: you could also try to figure out which module is tentatively loaded with "sysctl kernel.modprobe=/usr/bin/logger"18:29
drabbbl18:30
Smokiethats a bit advanced for what i know about linux specially running it from terminal only like ubuntu server hehehe18:31
drabjust copy paste :P18:31
sdezielSmokie: I just tried locally to mount a cifs dir with iocharset, dmesg shows: CIFS: Unknown mount option "iocharset"18:32
sdezielfunny enough, passing iocharset=utf8 removes the dmesg but seems to have 0 impact18:33
sdeziel0 impact: no new modules gets loaded and /proc/mounts doesn't show this option. As if it was silently ignored18:34
sdezielSmokie: why exactly you want to pass this iocharset param?18:34
Smokieand it mounted fine?18:34
sdezielyup18:34
Smokiesdeziel, im not, tbh i was following a guide and it was in the command line18:34
Smokiewhen removed it mounted fine18:34
sdezielSmokie: OK. I think it's safe the conclude the guide and the man page would need an update :)18:35
Smokiethis is simply for a small media center so if mounting a windows share directory doesnt need utf8 iocharset then im ok without it18:35
sdezielSmokie: my cifs mount has accented (French) char and they display just fine18:36
Smokiethats good enough for me since i have docs in french too18:37
sarnolddrab: hah, so, what did you settle on in the end? is it still two samba servers?18:38
Smokiesdeziel, a noobster question, updating the system doesnt always update the kernel, right?18:39
Smokiekernel has to be updated manually ?18:39
sdezielSmokie: FYI, the UTF8 support (that's enabled by default) is only meaningful for the directory/file names, it has nothing to do with the encoding used inside the files18:39
Smokieah.. so its kinda needed if the file is named français for example ?18:40
sdezielSmokie: the kernel gets updated like the rest. One key difference though is that you need to reboot to jump on the patched kernel18:40
sdezielSmokie: yes18:40
Smokieuname -r18:40
Smokie4.4.0-97-generic18:40
Smokieafter the update18:41
sdezielSmokie: your kernel is "-87" based on the uname -r output you shared. once updated and rebooted, it should be "-97"18:41
sdezielright18:41
Smokiei just tested now after the kernel update and it worked with the iocharset in the command line18:43
Smokiethanks a bunch18:43
blizzowI have only the following line in /etc/apt/apt.conf.d/50unattended-upgrades:18:45
blizzowUnattended-Upgrade::Allowed-Origins {"${distro_id}:${distro_codename}-security";};18:45
blizzowWill running unattended-upgrades -d just install security updates or will it do the whole mess?18:46
sarnoldSmokie: another option is to install the livepatch feature which will automatically patch some of the kernel issues on the fly https://www.ubuntu.com/server/livepatch18:53
* Ussat does not trust live patch18:56
Ussaton ANY system18:56
sdezielblizzow: I don't know the direct answer to your question but I'd try "unattended-upgrades --dry-run --verbose" and see what it does18:56
sdezielUssat: why is that? Did it fail you?18:57
Ussatit has18:57
UssatI have monthly patch times, where I reboot now18:57
sdezielnot good, any more specific as to how it failed?18:58
Ussatwas a while ago18:58
UssatI dont remember the specifics18:58
Ussatbut I now have a monthly patch time/down time that includes a reboot if needed18:59
sdezielit's always good to have those if you can afford the downtime as you then benefits from the regular bug fixes as well19:00
Ussatyup19:01
UssatII look at it like how can you not afford to19:02
hallynGOD I hate the unlock screen on artful.  Over remote video over a slow link, that swipe up is SO annoying19:45
hallynWhat mac-loving loser come up with that crap?19:45
hallynSorry that came out harsher than I intended.19:46
hallynMeant to disguise my resentment a bit19:46
blizzowUssat: I've been bitten so many times by upgrades, both unattended and scheduled. I don't have the energy to fight security teams anymore either. So the best I can do is make frequent full backups of machines and clench my butt-cheeks.19:58
tafa2how I can make sure unnatended updates run at a specific time?21:12
drabsarnold: one server, stuff mounted at login. I'm working on get the ssh part sorted out22:02
drabaltho there's really nos olution for key auth since that literally bypasses passwords, but we're ok with it since no desktop user ssh into things, only admins do, and those have a local home for safety (in case local logins is needed)22:02
drabso it's pretty clean/sane right now, no hacks except this mount.cifs problem I'm trying to figure out22:03
sarnolddrab: sweet :D22:08
drabfor some reason the mount.cifs they ship works just fine, but the stock distro sits there waiting for a password22:14
drabso I need to get the sources and start comparing them or something like that, I bet the ABI changed and the way you pass pwd in is no longer the same22:14
drabhopefully it's that simple22:14
drabsarnold: do you happen to know what's the beef between /lib/security and /lib/x86_64-linux-gnu/security/ ?22:23
sarnolddrab: I assume it's debian multiarch stuff that I've been content to ignore for a dozen years :)22:23
drabtrying to figure out where I should install the pam module, the current makefile puts in /lib/security but that doesn't seem to work22:23
drablol, ok22:23
drabnp, I'll grab the src for another pam package and see what they do22:24
drabpam_mount gets installed there so they must be handling it somehow22:24
meh23hi, i updated  my ubuntu server and for some reason i cannot resolve hostnames anymore.. i can ping IPs fine, any thoughts?22:39
sarnoldwhat's your /etc/resolv.conf look like? how about your hosts: line from /etc/nsswitch.conf ?22:41
meh23i didnt change /etc/resolv.conf22:41
meh23i thought that shouldnt be touched after adding dns-servers to /etc/network/interfaces22:41
meh23i just double checked and its empty22:42
sarnoldaha :)22:42
meh23hehehe what does aha mean?22:44
sarnoldit means you probably found why you can't do DNS lookups :)22:47
meh23sarnold: im confused.. this is the msgs in resolve.conf "DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN"22:49
meh23i didnt have to edit resolv.conf before this last server update i did22:49
sarnoldmeh23: yeah, and that's not wrong, but if you fix it up, you can do dns things now, and figure out what went wrong elsewhere in the plumbing in the meantime :)22:49
meh23thats what im trying :)22:55
naccrbasak: welp, MP is up. https://code.launchpad.net/~nacc/usd-importer/+git/usd-importer/+merge/33216023:30
naccrbasak: I think it makes sense, and the code is not terrible, but it could use some review time.23:30
naccrbasak: so i think most of the MPs that are currently pending are now waiting on you :/23:32
nacci know that's not great, timing wise23:32

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