/srv/irclogs.ubuntu.com/2018/11/06/#ubuntu-server.txt

=== elsheepo is now known as beatzz
=== elsheepo is now known as beatzz
lordievaderGood morning08:23
=== Mr_Pan is now known as Mr-Pan
=== Mr-Pan is now known as Mr_Pan_
=== Mr_Pan_ is now known as Mr_Pan
=== iliv_ is now known as ivan_CMD
ham5urgHi all, I'm trying to get a diskless ubuntu 16.04 client to mount its root via NFS. First the kernel and initrd are transferred via tftp which is working. But after the kernel should mount the NFS I get an error: "read: Connection refused"  and "NFS over TCP not available from 172.17.0.1". The NFS-server is up and running but the mount fails. I put all informations into one paste at https://paste.debian.net/1050556/11:07
ahasenackgood morning11:10
ahasenackkantlivelong: good, I'm curious :)11:11
ham5urg$ This works: "sudo mount 172.17.0.1:/srv/nfs/xenial share"11:20
ham5urgThis doesn't: "sudo mount localhost:/srv/nfs/xenial share"11:20
DenBeirenlordievader: did you see my last message?11:35
rbasakahasenack: thank you for the quick review11:42
ahasenacknp11:43
lordievaderDenBeiren: Err, maybe. Was  quite busy yesterday afternoon. What was it?11:49
DenBeiren<lordievader> DenBeiren: Does that .config also exist when transmission is not runnign?11:50
DenBeiren<DenBeiren> lordievader: i believe it is11:50
DenBeiren<DenBeiren> https://pastebin.com/AW168bxj11:50
lordievaderDenBeiren:  Did you pastebin your config before?11:52
ahasenackkstenerud: what's left for https://code.launchpad.net/~kstenerud/ubuntu/+source/mysql-5.7/+git/mysql-5.7/+merge/358234 ? The salsa MP?12:15
kstenerudFor ubuntu side it should be ready. I'm trying to get a merge request in to debian side, but I can't get mysql to build as a package :/12:16
ahasenackkstenerud: mysql is an ftbfs in debian right now?12:16
kstenerudftbfs?12:16
ahasenack(fail to build from source)12:16
kstenerudThe builder tool just dies12:16
kstenerudsec. Doing one last build attempt12:16
kstenerudpristine buster image this time12:17
kstenerudOh, on buster it doesn't fail the signature check12:18
kstenerudIt does fail with unmet dependencies though: https://pastebin.ubuntu.com/p/nX7hwPk96f/12:19
ahasenackwhy don't you install them/12:21
ahasenack?12:22
kstenerudI'm trying to figure out how12:26
ahasenackapt install <name>?12:26
ahasenackor, for a helper, use apt-get build-dep ./ while inside the extracted package directory12:26
kstenerudlooks like mk-build-deps does everything12:27
kstenerudUgh I think I'm making a big mess of things. I'm trying out autopkgtest, but it doesn't seem to like running from a git repo of mysql12:36
kstenerudReally, all I want to do is download mysql from debian git repo, build and test12:36
kstenerudrun tests12:36
ahasenackyour changes they are only in maintainer scripts, right?12:37
kstenerudyes12:37
ahasenackok, then just submit the mp, it shouldn't affect building the package12:37
kstenerudok12:37
ahasenackand running tests for debian, that's a big plus, considering the change was just in maintainer scripts12:37
ahasenackyou can worry about that later if you want the experience12:37
kstenerudYeah I mostly wanted to get my own documentation on the subject in order. There seem to be a LOT of different ways, and lots of advice, but no one-true-way document that says "do this"12:41
ahasenackwell, there are many ways to isntall a package12:41
ahasenackthe core of that error was "sorry, I can't build mysql because I'm missing this package, that package, and this other one"12:42
ahasenackthat's why they are called build dependencies12:42
kstenerudI mostly want to get a procedure in place for forking from their repo, making changes, building and installing the new package, running package tests, and submitting a merge request12:42
ahasenackthat's an awesome goal12:42
ahasenackthere was really nothing different in this mysql git repo from debian than from any other package12:43
ahasenackyou install build dependencies, and then build as usual12:43
kstenerudexcept that no build tool prior to the one in testing works with mysql, which I just discovered :/12:44
ahasenackI'm building it in sid as we speak12:44
ahasenackjust did what I said12:44
rbasakI use sbuild and autopkgtest with the lxd runner.12:44
kstenerudReally? So gbp buildpackage doesn't error out with certificate errors?12:45
ahasenackI just launched a sid container, like "lxc launch images:debian/sid debian-sid"12:45
rbasakHowever there's a bug in Debian's systemd which stops mysqld from running in a container12:45
ahasenackgit cloned the repo12:45
ahasenackinstalled build dependencies12:45
ahasenackand ran dpkg-buildpackage12:45
ahasenackbrb, need to relocate12:45
rbasakSo I use an Ubuntu container to run autopkgtest against the Debian deb, which isn't ideal but I consider it good enough if it passes.12:45
rbasakI use dpkg-buildpackage to get a source package and run sbuild against that.12:45
kstenerudhmm don't know any of those tools12:46
rbasakhttps://wiki.ubuntu.com/SimpleSbuild but I appreciate it's Yet Another Tool so don't feel like you have to use it :)12:46
a_okI have ubuntu 16.04LTS and need to boot a previous installed kernel. Grub 2 is installed selecting from menu at boot is not an option12:46
kstenerudI was trying to follow https://wiki.debian.org/PackagingWithGit12:46
rbasakAnd because sbuild is such a pain to set up, that's why we did "git ubuntu build" to try and make it easy. But it's still a little buggy I believe :-/12:47
kstenerudalso https://wikitech.wikimedia.org/wiki/Git-buildpackage12:47
kstenerudbut it looks like git-buildpackage is still a bit shaky12:47
rbasakAll of these tools are wrappers around what Debian policy states as the interface source packages must provide (debian/rules), FWIW.12:49
kstenerudrbasak: So in your experience, which tools are the best ones to use in terms of stability?12:49
rbasakIMHO sbuild is the most reliable and provides appropriate (but not perfect) isolation.12:50
DenBeirenlordievader: the content of settings.json you mean?12:50
rbasakYou can also mess with it for debugging and development with schroot directly, the -p flag, etc.12:50
lordievaderDenBeiren: Yes12:50
rbasakHowever sbuild is not so trivial to set up :-/12:50
DenBeirenno i didn't12:50
DenBeirencoming up :-)12:50
rbasakOTOH sbuild does always work.12:51
kstenerudGood. I'm sure I can scriptify things for simple use cases like SRUs12:52
DenBeirenhttps://pastebin.com/31hizU4T lordievader12:52
DenBeirenwhen i try port 8083 it won't work12:53
rbasakkstenerud: here's a script I have lying around that configures sbuild as I like it on a fresh remote host: https://paste.ubuntu.com/p/xHr6wnd66R/12:53
DenBeiren9091 works, but limitations from rpc whitelist12:54
DenBeirenthats why i conclude the configfile isn't read12:54
rbasakkstenerud: I haven't used it in a while though so it might be a little out of date on a few bits12:54
kstenerudrbasak: Thanks! It's a good starting point regardless12:54
lordievaderDenBeiren: Is this the full file? This isn't valid json.12:55
DenBeirenyes, there is no more in it12:56
lordievaderDenBeiren: That is then probably why it is ignored. This is not valid json.12:57
lordievaderMissing at least the closing }12:57
a_okSo its the whole grub submenu stuff that messed me up12:57
a_okwhat does this mean? Warning: Please don't use old title `Ubuntu, with Linux 4.4.0-137-generic' for GRUB_DEFAULT, use `Advanced options for Ubuntu>Ubuntu, with Linux 4.4.0-137-generic' (for versions before 2.00) or `gnulinux-advanced-6baa6b94-0498-4047-b41f-72a78923dbe4>gnulinux-4.4.0-137-generic-advanced-6baa6b94-0498-4047-b41f-72a78923dbe4' (for 2.00 or later)12:58
DenBeirenthe closing is in there12:58
DenBeireni missed it in copypaste :-)12:59
zzarrHello! I have a rented VM with a systemd-journald that's using a lot of CPU, what should I do?13:04
ahasenackback13:04
lordievaderDenBeiren:  Ah, I see. What happens when you run the deamon in the foreground?13:12
ahasenackzzarr: is "journalctl --follow" spitting out new messages at a very high rate?13:15
DenBeirenlordievader: could you explain a bit more,.. i don't know exactly what you expect me to do13:51
lordievaderDenBeiren: What happens when you stop the transmission-daemon service and run `sudo transmission-daemon -f` in a shell.13:52
DenBeirenit's running,.. waiting for more output13:55
DenBeirenmaybe i could try with a std settings file?13:55
lordievaderDenBeiren: It is not giving errors?13:56
DenBeirenhttps://pastebin.com/uAmEaF4313:56
lordievaderDenBeiren: You could check which settings file it is loading with `sudo strace -e open transmission-daemon -f`13:56
lordievaderOh, never mind: [2018-11-06 14:53:45.788] Using settings from "/home/denbeiren/.config/transmission-daemon" (daemon.c:528)13:57
DenBeirenok,.. found that file, and it doesn't have the settings i changed in the other file13:58
lordievaderNo, it probably never read that file.13:59
DenBeirenstopped TM, edited the port, saved and started TM again,.. no changes :(14:02
lordievaderIs it still saying it loads the config from the .config dir?14:03
ahasenackiirc that json config file has to be changed while transmission is stopped14:03
ahasenackbut I could be misremembering14:03
lordievaderCorrect, else it will be overwritten with the 'current' config.14:04
DenBeirenok we have progress,..14:07
DenBeirenif i start transmission daemon in the foreground, it seems to work14:07
DenBeirenwhen i start transmission-daemon with the command sudo service transmission-daemon start it doesn't take the correct settinge14:08
lordievaderIt might have to do with environment variables.14:08
lordievaderMy systemd service has an override wich adds `Environment=TRANSMISSION_HOME=/var/lib/transmission/config`. But this is on Gentoo.14:09
DenBeirenquestion is,.. how do i start/stop/check correctly now14:13
DenBeirenand how can i get the correct version to start at boot?14:13
zzarrahasenack, The server spits out lines like this over and over: Nov 06 16:18:15 production rc.local[833]: 7f01a4938000-7f01a4b37000 ---p 00007000 ca:01 184582214:19
ahasenacklooks like it's panicing14:20
ahasenackpanic()ing14:20
ahasenackcheck dmesg14:20
zzarrahasenack, will do14:21
zzarrahasenack, I found this [    7.800343] systemd[1]: Failed to start Load Kernel Modules.14:22
lordievaderDenBeiren: Change the `--log-error` to `--log-debug` in the `ExecStart` line of the service file.14:36
lordievaderDenBeiren: Then run `sudo systemctl daemon-reload && sudo systemctl restart transmission-daemon && sudo journalctl -u transmission-daemon`. That should give you enough output to see which configuration file it is reading.14:37
lordievader(When you are done you should revert the change to the service file)14:37
DenBeirenwhere can i find the service file?14:37
lordievader`sudo systemctl cat transmission-daemon` should tell you (or `sudo systemctl status transmission-daemon`)14:38
DenBeirenhttps://pastebin.com/DgSe24si14:46
DenBeirenpermissions issue?14:55
lordievaderDenBeiren: I get the feeling the directory doesn't exist. It tries to read the config from `/home/debian-transmission/.config/transmission-daemon`.14:58
DenBeirenshouldn't it have created it with the install?14:58
lordievaderI suppose.15:03
=== JanC_ is now known as JanC
ham5urgHas anybody tried with Ubuntu 16.04 to implement a disklessclient with NFS and overlayfs?15:38
elfranneTrying to find if "apt-mark hold <package>" is being respected when doing "apt-get dist-upgrade" ?15:43
sdezielelfranne: it should otherwise that would be a bug15:46
elfrannetrying to find any docs about that...15:47
mybalzitchboy, this new ubuntu 18.04.01 installer sure is nice15:47
sdezielelfranne: that's easy to test because dist-upgrade will ask your for a confirmation that you can decline if the held package is about to be upgraded15:49
elfranneI ll give it a try with a fresh install without internet on a VM15:50
elfrannethanks15:50
sdezielelfranne: FYI, I use this technique routinely and it works great15:52
kstenerudrbasak: I'm getting libreadline.so.6: cannot open shared object file no matter which channel I'm on (stable, beta, edge)15:54
rbasakThat sounds familiar15:58
SJrI have been going through and wiping dozens of hark disks through an ejectable dock. I have been getting smartctl errors e-mailed to me complaining about failures of a disk I ejected a few days ago. When I look in /dev/ I still see the disk, but hdparm -I just gives garbage for it. Is there a way to fix this without rebooting?16:26
sdezielSJr: have you tried "eject /dev/sdX" ?16:27
SJrunable to eject, last error: Invalid argument16:27
sdezielSJr: that needs to be done prior to the real physical ejection/removal16:27
SJrOh well16:28
sdezielSJr: echo 1 > /sys/block/sdX/device/delete16:28
sdezielmight work after the fact16:28
SJryup it did16:29
SJrThank you16:29
sdezielyou are welcome16:29
SJrOh hrm, well good news/ bad news. Now I just got an e-mail saying that smartd could not open /dev/sde16:30
SJrWell I guess I'm just going to restart the service16:31
sdezielit's reassuring that smartd will let you know when a drives suddenly vanishes from existence ;)16:32
=== trekkie1701c is now known as AndroUser
=== AndroUser is now known as trekkie1701c
mybalzitchis releases.ubuntu.com down for anyone else?17:03
Glorfindelmybalzitch: it's up for me17:04
mybalzitchand lol, the 18.04.01 installer errored out trying to probe my ZFS install, because it can't find the zpool command17:04
mybalzitchhttps://i.imgur.com/4UztzIU.png17:05
ahasenackhttps://bugs.launchpad.net/subiquity/+bug/178274417:08
ubottuLaunchpad bug 1782744 in subiquity "Install failed on disk previously used for ZFS" [Medium,Confirmed]17:08
ahasenackyou will have to switch to another console (alt-f2) and erase that disk with something like sgdisk -Z17:09
ahasenackiirc (the -Z part)17:09
mybalzitchthanks ahasenack17:10
sdezielzfsutils-linux should be in the ISO IMHO17:11
sdezielwould make recovery much easier17:11
UssatI dont think licensing makes that possible17:16
sdezielUssat: the zfs.ko (and friends) module is shipped in the ISO17:18
sdezielso I'd think the userspace tooling would be OK17:19
UssatOK, I m not a lawyer, was just a guess. RHEL (which I use a lot also) has taken that stance17:19
mox-I'm having some issues building an ISO that boots on the network to reach a Kickstart file to do an unattended installation. It is working great with RHEL/CentOS but with Ubuntu I keep getting "ipconfig: no devices to configure" when the ISO boots. I searched google I can see examples of PXE installations but no bootable ISO installation with a Kickstart. Anyone have an idea what's going on or a reference document for me? Thanks19:05
granjerohi, ubuntu 18.04 server. how to mount window share? cifs mount giving me erro mount error(16): Device or resource busy19:08
granjero 19:08
ahasenackwill need more info about that error19:12
ahasenackhow you are trying to mount it, if dmesg has any other error messages, if you have tried another pointpoint19:12
granjerosudo mount -t cifs -o username=USER,password=MYPASS //SHAREIP/folder /home/myshare19:13
granjeromount error(16): Device or resource busy19:13
granjeroRefer to the mount.cifs(8) manual page (e.g. man mount.cifs)19:13
ahasenack /home might be another mountpoint already, can you try mounting it elsewherE?19:19
ahasenackand did you check dmesg?19:19
granjerolet me see19:19
granjerowas trying to remember how to do it. the dmesg part19:20
mox-just type 'dmesg'19:20
granjerowas the SMB prtotocol version19:21
ahasenackyeah, there is a new default19:25
granjerosudo mount -t cifs -o vers=1.0,username=USER,password=MYPASS //SHAREIP/folder /home/myshare19:25
ahasenack"device or resource busy" is not the error message I was expecting for that, though19:25
ahasenackwhat windows server is that?19:25
ahasenackxp?19:26
granjeroalso got mount error(13): Permission denied19:26
granjero201319:26
ahasenackthat is rejecting higher versions of smb?19:26
ahasenackhave you tried vers=3.0?19:26
granjerodoes vers=3.0 exists?19:27
ahasenackyes19:27
ahasenackcheck the mount.cifs manpage, search for vers=19:27
ahasenackit has a nice table of protocol versions and windows releases19:28
granjero3.0 - The SMBv3.0 protocol that was introduced in Microsoft Windows 8 and Windows Server 2012.19:28
granjerovers=3.0 also worked19:30
granjeronow i will try to so it on mount with fstab19:30
granjerowish me luck19:30
granjero*do it19:31
mox-Is there a specialised channel for network boot installation help? I have a very specific question that I can't find the answer19:32
jayjois there consensus on the leading FOSS for highly available shared sstorage? Ceph, glusterfs, just NFS, ... ? I have a cluster of ubuntu servers that run containers of a gitlab instance, when it was all local on a node this worked fine. But now I need to share the data across the cluster. If I were implementing this today (no support restrictions), what's the best solution?20:06
blackflowthe industry is betting on ceph20:20
chillageGood time,20:37
chillageKazaaak, hello,20:38
chillagewe with kazaaak have issue, paste kazaaak it20:43
Kazaaaksudo ufw status20:44
KazaaakWARN: uid is 0 but `/usr` is owned by 401120:44
KazaaakWARN: /usr is group writable!20:44
chillagewhat's here is wrong?20:46
sarnoldnamei -l /usr20:47
tewardKazaaak: chillage: what's the output of the command sarnold said?20:50
tewardbecause those errors indicate something went crazy on your system and changed permissions in a non-safe way20:51
chillagewe see teward, wait little bit, kazaaak will paste20:54
Kazaaakroot@vnc:/home/appbox# namei -l /usr20:54
Kazaaakf: /usr20:54
Kazaaakdrwxr-xr-x root root /20:54
Kazaaakdrwxrwxr-x 4011 4011 usr20:54
Kazaaakroot@vnc:/home/appbox#20:54
sarnoldouch.20:55
sarnoldsomething screwed up *badly*20:55
tewardowchies.20:55
tewardwhat sarnold said20:55
teward***THERE BE DEMONS IN THESE WATERS!***20:56
teward*shot*20:56
chillagesorry, my friend paste in channel not in pastebin? or whats wrong with system?21:00
tewardchillage: no, we're commenting about the permissions21:00
sarnoldchillage: something is wrong with your system. *something* running as root did something terribly stupid.21:00
tewardlet me guess: this is the appbox werver you were asking questions on about a few days or so ago?21:00
sarnoldchillage: the usual problem is someone unpacking a tarball into / while root without knowing what the heck they're doing, but it could just be terrible software too.21:01
sarnoldchillage: the worst part of this problem is that there's no clear way to know just how bad things are. maybe it's literally this one directory in which case the fix is five seconds of work. or maybe a *huge* number of files and directories have had their permissions set incorrectly.. in which case it's easier to resintall21:02
chillageyes, teward few days ago abuot appbox21:03
sarnoldchillage,Kazaaak, pastebin ls -l /usr output, lets see just how bad this thing is..21:08
sarnoldI *really* wish we had something like mtree to notice these problems ;(21:08
tewardsarnold: full system auditing :P21:09
tewardaudit all the permission changes :P21:09
chillagesarnold, and how i can fix it if problem is only /usr ?21:10
sarnoldteward: heh, also a good idea. then we'd know what to shoot ;)21:10
tewardsarnold: what... or *who*... to shoot :p21:10
Kazaaakhttps://pastebin.com/n4N9tpa121:12
sarnoldOUCH21:13
sarnoldI've got to run21:13
tewardERROR666 Nuke It From Orbit21:13
sarnoldbut this one's bad enough that you might want to consider a reinstall21:13
tewardKazaaak: chillage: I'm in agreement with sarnold21:14
sarnoldlunch time here :) have fun21:14
tewarda reinstall would probably fix things, you're going down a rabbit hole of hell if you try and fix this manually21:14
chillageunderstand, then thanks for help, guys:) we try reinstall it..21:17
GoopHey, I am interested in doing a couple of things, and I am too cheap (and cannot afford) to get G-suite (Google) or Microsoft products for my sort-of company. I have a Linux server I am currently running and wanted to know what you guys recommend for software for creating new users for a company?21:39
blackflowuseradd21:42
GoopI mean, like one where I can type in a user into a system, which includes user first name, last name, title, password, phone number, address, etc. etc., which then creates a user account for everything else that the company needs the person to use.21:50
blackflowGoop: that's a very very broad use case. Users are usually application specific. Like, user account "to what".21:52
Ussatyou can always script your own solution to do that , but useradd22:01
blackflowotherwise sounds like LDAP, come to think of it22:04
cryptodan_mobileSounds like single sign on via pki cert22:49
rbasakahasenack: one for you perhaps: https://www.reddit.com/r/Ubuntu/comments/9usqau/livepatch_isnt_shown_as_enabled_in_motd/22:50
rbasakThough it's offtopic there really.22:50
sarnoldGoop: take a look at /usr/local/sbin/adduser.local in adduser(8)22:52
Goopsarnold, blackflow so what I haven't done too much with LDAP/OAuth/SingleSignOn, but I need something where I can have a graphical (web) interface where I can add new *people* to a company. When I submit adding a new *person* to said piece of software, I want it to setup their users across all the systems we use.22:54
=== kallesbar_ is now known as kallesbar
cryptodan_mobileGoop then you want pki but with that the users will need to request access23:48
blackflowNeed help understanding MOTD. on login I see it displayed on a server installed from server ISO. But none of the debootstrap'ed installations (with ubuntu-minimal as base) do that. Both, however, have the login pam module, and both have libpam-systemd.23:50
sarnoldhow about pam_motd.so ? is that configured in your /etc/pam.d/ ?23:51
rbasakblackflow: compare /etc/update-motd.d/ and use dpkg -S to find out which packages ship things in there.23:51
blackflowI also see differences in what appears to be session  management. The server that does display motd, shows logging by logind starting a sessio and user slice being created. not so on the server without motd23:52
blackflowrbasak: I have, but I don't see anything obvious. I think I need to find what creates /run/motd.dynamic23:53
rbasakupdate-motd23:54
blackflowits' not listed by apt file so it's not somethign installed by packages, and grepping for that in /etc/update-motd.d/ shows nothing23:54
sarnoldmotd-news.timer23:54
blackflowrbasak: no, update-motd is for manual invocation of /etc/update-motd.d/50-motd-news.   at any rate, the server that DOES show motd, does not have update-motd installed23:54
blackflowmotd-news.timer only starts the 50-motd-news script, I tried that...23:55
blackflowI tellsya, MYSTERY.23:55
sarnoldhmm23:55
rbasakInstall ubuntu-server^ and I bet you'll get the same behaviour.23:55
blackflowI did, I did not :)23:55
sarnoldI know every time I look into this it's a lot more complicated than I'd expect :) heh23:55
blackflowI installed ubuntu-standard and ubuntu-server metapackages, it pulled in a megaton of stuff, but that didn't change anything.23:55
blackflowsarnold: it'sa  black box of black magick, mystery, spiritualism and international politics, all combined into one.23:56
sarnoldlol23:56
blackflowI know.... I'll chattr /run/motd.dnymic and see what complains about not being able to update it23:57
blackflowho-humm.... wait.... can I use tmpfiles to do that? I mean that's /run/ so.... tmpfs...23:57
rbasakupdate-motd is for all of /etc/update-motd.d/23:57

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