/srv/irclogs.ubuntu.com/2019/03/27/#ubuntu-server.txt

Maxelso I have a raid card that allows me to mount a volume in ubuntu server 16.04, when I upgraded to 18.04 I was unable to mount that volume01:21
MaxelI don't remember how I mounted the volume initially, but I'd like to have the same volume with the same data in the upgraded ubuntu version01:22
sarnoldwhat error did you get?01:30
Maxelsgood question, I'll load up my snapshot and see01:37
Maxelsso when booting, I get a failure on "failed to mount [volume]"01:40
Maxelsand then I am presented with warning I am in emergency mode01:40
Maxelsand I can also check the log for the mounting process that failed01:41
Maxelsmount: [volume]: wrong fs type, bad option, bad superbloc01:43
Maxelsif I revert to the old snapshot on 16.04 it works fine though01:43
sarnoldwhat filesystem type is it? does fstab just leave it auto or does it specify?01:45
MaxelsI'm trying to remember, I can switch to the other snapshot but I think it was xfs01:46
MaxelsI don't remember how to use fstab from when I set this up01:46
MaxelsI appreciate your help btw :)01:48
Maxelsdoes 18.04 just not support xfs or something?01:51
sarnoldat least on the kernel my laptop is running it required loading a module01:53
sarnoldcat /proc/filesystems | grep xfs01:53
sarnoldxfs01:53
sarnoldthat's after sudo modprobe xfs01:53
sarnold(please forgive the abuse of cat, I ran cat /proc/filesystems first just to see what it supported; I hadn't looked in ages :)01:54
Maxelshmmmm, I'm trying to unpack what you're saying01:56
Maxelsdid the cat search supported filesystems?01:56
Maxelsand is loading the module to support xfs as simple as an apt-get add?01:59
sarnoldit should just be sudo modprobe xfs02:03
sarnoldif that doesn't load it, then yeah, an apt-get install will be required :)02:03
MaxelsI'm not sure what modprobe normally would do, but it didn't print anything on that command02:04
sarnold/proc/filesystems shows the filesystems that the kernel currently knows how to mount -- others may require loading modules, as it did for me to load xfs02:04
sarnoldusual unix rules, it shuoldn't print anything if it succeeds :)02:04
Maxelshmm, ran modprobe, still failing the mounting02:05
Maxelsand then starting in emegency mode, although I don't know what emergency mode does02:05
sarnoldmodprobe only affects the current boot02:05
sarnoldif you've rebooted then it's unloaded02:05
Maxelshmmm, so how would I force the process to mount the disk again after running modprobe02:06
sarnoldI'd just try mount /path/to/device /path/to/mount/point and see if that works02:08
sarnoldif it works, then figure out how to get the boot process to mount it, if that's what you want, and if it doesn't work, then start debugging that :)02:08
Maxelsah, I see what you're saying02:10
Maxelsso I ran the exact same command that failed on boot, and it failed after I had run modprobe02:10
sarnoldhow did it fail?02:11
Maxelssame error as when booting: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or helper program, or other error.02:15
sarnoldis there anything more useful in dmesg?02:16
MaxelsI don't even know what dmesg is02:16
sarnolddmesg dumps the kernel's message buffer02:17
sarnoldit's INSANELY wonderful02:17
sarnoldget to know this one :)02:17
Maxelsoh boy, lots of info02:19
MaxelsI'm digressing a lot, but something that drives me nuts is how history doesn't seem to always save, and gets truncated02:20
Maxelsis there a way to make history unlimited and save more often somehow?02:20
MaxelsI'm trying to remember the commands I used to mount the volume after I was wrestling with some accounts, and it lost history02:20
sarnoldso... history is involved.02:23
sarnoldyou can configure a HGUE amount of aspects of it; man bash, search for HIST and histappend02:24
sarnoldrunning multiple shells at once tends to be the usual cause of "lost" command02:24
sarnoldthere are external tools you can use too, to try to store history across sessions / computers / etc .. I don't use this myself, but it *looks* neat, you know? :)02:26
Maxelyeah maybe that was a bad assumption, that it would work across sessions02:38
MaxelI assumed it was user based02:38
sarnoldeach shell maintains its own in-memory history of executed commands02:41
sarnoldand at exit will either overwrite the history file, or append to the history file02:41
Maxelyeah, and I just want the "no matter where you're session originated, if you use the same user save any command to history, forever"02:42
sarnoldthat can be done :)02:43
MaxelI've got all sorts of problems with this upgrade though. I can't connect via ssh anymore, the fs isn't mounting correctly, I guess that's all my problems for now02:43
Maxelhistory thing has been a long ongoing problem02:43
=== cpaelzer__ is now known as cpaelzer
lordcirthMaxel, try adding this to bashrc: "export PROMPT_COMMAND='history -a'"13:48
lordcirththat will flush your history to file every command13:48
rbasakcpaelzer: https://pastebin.ubuntu.com/p/xG2VTmDb7j/14:44
rbasakcpaelzer: not a problem from an SRU review perspective, but seems odd from a git-ubuntu workflow perspective.14:45
cpaelzerrbasak: that is the first time we used git ubutnu for that - formerly was pull-lp-source14:53
cpaelzerinterestign14:53
rbasakcpaelzer: ah. It's because the watch file uses bz215:31
rbasakSo therefore uscan does15:32
cpaelzerah ok, the confusion makes snese now15:38
cpaelzereven "sense"15:38
theGoatwe are using setfacl to give the splunk user access to read logs in /var/log, but what we have noticed is that it is also changing the group permissions of the file.  is there a way to run it so it doesn't touch the group permissions?16:33
sarnoldtheGoat: is the filesystem mounted with noacl?16:37
theGoatno i don't believe so16:37
theGoati would have to reach out to one of the system owners16:37
sarnoldI did this on an 18.04 LTS and got the results I expected: setfacl -m u:root:w _z.jpg16:40
strkwhat's the preferred way to pass env variables to a systemd service file ?16:41
jellystrk: /etc/init/foo.conf is NOT a systemd service file, it's an upstart service... uh, thingy16:44
strkuh16:45
jellydisclaimer: srtk was accidentally asking about their "how to pass http_proxy env.var. to a service" trusty issue in #debian16:45
jellywe had zero clue and less interest in that, but figured someone in here might remember enough about upstart16:46
sdezielisn't that the "env" directive?16:46
jellystrk: see!  That's what happens when you ask in the right place.  Answers.16:47
sdezielstrk: yes, that's env: http://upstart.ubuntu.com/cookbook/#env16:47
sdezielstrk: you may or may not want to put that in a .override file (/etc/init/foo.override, see http://upstart.ubuntu.com/cookbook/#override-files)16:49
strkhow about: service localstack restart http_proxy=xxxx ?16:50
strkis that expected to work ?16:51
lordcirthstrk, fyi, trusty won't be supported much longer, unless you're paying16:51
jellyand if you're paying?16:52
jellywill repos be moved somewhere behind a username and password?16:52
sarnoldupdates will be hosted on a ppa16:52
sarnoldI think the archives will be left alone16:53
jellybut still available to anyone?16:53
sdezielstrk: no that won't work, see http://upstart.ubuntu.com/cookbook/#job-environment16:53
jellylooking at Debian ELTS, paid support but the repo is free to use if you need fixes for a package that someone else is paying support for.16:54
lordcirthjelly, the archives stay up for a while, yes, but without updates16:54
jellylordcirth: will the updates be hidden behind username and password or some other auth?16:55
strkI didn't understand the documentation about `env`, nor I see a clear reference about job-environment in the #job-environment url16:55
strkI'm probably too tired16:55
sdezieljelly: in https://www.ubuntu.com/esm#faq: "ESM is just a regular Ubuntu archive, but authenticated and served over HTTPS."16:55
lordcirth!esm | jelly16:56
ubottujelly: Canonical offers paid extended security support for end-of-life LTS releases through the Ubuntu Advantage program. For more information, see https://ubuntu.com/esm . ESM is not an Ubuntu community offering; please direct questions about it to Canonical directly.16:56
sdezielstrk: in your case, you'd probably want to use this: echo 'env "http_proxy=xxxx"' >> /etc/init/localstack.override16:57
sdezielstrk: because otherwise, the job's environment is really minimal (only TERM and PATH)16:58
jellyuh... why would the service manager define TERM17:01
jellywait, don't answer, I'm fine not knowing any more about upstart now that it lives only in EL617:01
jelly(and trusty)17:02
jellythanks for the faq!17:03
sarnoldno no I'm curious about this, what *does* it default to? :)17:04
sdezielsorry, -ENOTRUSTY17:04
sdezielhttp://upstart.ubuntu.com/cookbook/#mountall-examples suggests "TERM=linux"17:07
sarnoldTERM=linux is in a huge pile of expected test results too17:09
sarnoldhttps://sources.debian.org/src/upstart/1.11-5/ChangeLog/#L1062617:09
strksdeziel: but in that case It'll stay, while my goal is to NOT store the proxy info in a static place17:15
tewardwhere do I report a subiquity installer bug again?19:47
ahasenackbugs.launchpad.net/subiquity iirc19:49
ahasenackhm, no19:49
ahasenackhttps://bugs.launchpad.net/subiquity/+filebug <-- there teward19:50
tewardahasenack: that's what I thought i just filed my bug19:50
tewardnasty little search domain ERRORCRASH cases19:50
ahasenackcool19:50
the_actorI am having problems with setting up two factor authentication for SSH using pam_google_authenticator.so. I am using a fresh install of Ubuntu LTS 18.4 and can’t seem to get PAM to work well with SSH. The minute I systemctrl reload ssh.service the SSH login prompt looks different and fails regardless of input. Been using this19:56
the_actorhttps://www.google.com/amp/s/www.linuxbabe.com/ubuntu/two-factor-authentication-ssh-key-ubuntu-18-04/amp I have gone over the steps multiple times. Any suggestions?19:56
lordcirththe_actor, anything useful in 'journalctl --unit ssh', 'less /var/log/auth.log', or 'less /var/log/syslog'?19:57
the_actorI have not checked. I have rolled back the image multiple times to a base 18.4 install. I am thinking there is some thing I don’t understand regarding how pam and or ssh work or some minor difference in the way the config files are written. The only other thing is perhaps I need to generate a key, which is something I am trying to replace with a password and a google auth token.20:01
lordcirthI have not done this, so I don't know, but "check the logs" is usually a good place to start.20:02
the_actorAnd I’m not even sure that it is a good idea, because I have read in the SSH official documentation that they prefer password based login as opposed to public key. I’m wondering how secure that actually is without some kind of pre-shared key or certificate being done over the cloud. So the Google authentication token seems like a good idea. Unless I am foolishly misguided.20:03
the_actorI invite any input.20:04
lordcirththe_actor, where did you see that passwords are preferred to keys?20:06
the_actorThe most important thing is, in its default state, once the user manual he authenticates the fingerprints, is every subsequent initial connection after that initiated with the protection of encryption?20:06
the_actorHold on let me see if I can locate the article.20:07
lordcirththe_actor, with default ssh configs? Yes, everything is encrypted, and once the user accepts the host's key, any server without that key will be unable to impersonate or read the connection.20:07
the_actorIt was on ssh.com in one of their articles. I can not locate the exact one now. They were weighing out the pros and cons of key-based authentication password-based authentication and Certificate based authentication20:11
the_actorlordcirth: what is your opinion on a simple password, and a google one time use authentication token?20:13
sdezielthe_actor: ssh.com != openssh20:13
lordcirththe_actor, depends, how much do you trust Google? :P20:13
sdezielthe_actor: if you don't want TOTP specifically, you can easily do pubkey+Unix password auth with OpenSSH20:13
the_actorlordcirth: interesting point20:13
lordcirthGoogle Authenticator is proprietary now, which is a red flag.20:13
lordcirthBut I think you can do similar things with open source apps and self-hosting.20:14
the_actorsdeziel: Good point. Just thought adding it to my google auth app would be easier.20:16
the_actorlordcirth: Thanks for the warning, I thought it was open source.20:17
lordcirththe_actor, it was, and then it wasn't. I think f-droid still has an old copy, but I wouldn't start using it if you aren't already.20:17
lordcirthAnd yeah, pubkey + password means you need your device + your brain, which is pretty decent.20:17
the_actorlordcirth: Thanks, to confirm. Even though I do not have any security cert on my server, with the default config once the ssh keys are accepted on initial connect then in subsequent connects my password is not sent in clear text over the cloud?20:20
lordcirththe_actor, ssh will never send a password over cleartext. It will never send data over cleartext unless you pass some very specific and obvious options.20:20
the_actorlordcirth: Ok, so then the safest bet would be to confirm the keys on first connect on the local net?20:22
lordcirththe_actor, the main vulnerability here is that an attacker pulls a MITM attack on your first connection, you accept their host key, and they continue to MITM you. If you need to avoid this, copy the host key over yourself in some trusted manner20:23
lordcirthOr just view the host key fingerprint on the server and compare visually, I guess20:23
the_actorlordcirth: Cool man. You helped me a lot.20:24
the_actorThanks guys20:24
lordcirthnp20:24
keithzg[m]Hmm, how might I blacklist libraries from being loaded while trying to run an executable? Trying to run a self-compiled version of `sqlite3` and it's failing on "header and source version mismatch" and I'm presuming (perhaps incorrectly!) that this is due to the sqlite3 libraries already installed on the system.20:54
lordcirthkeithzg[m], prepend your custom lib dir to LD_LIBRARY_PATH20:56
qwebirc24999Hello. I am unable to use iscsi in initramfs properly - specifically, the internet connection is not established. This bug I am having since 18.10. It all works in 18.04.22:08
qwebirc24999so what I did was install open-iscsi, then echo "iscsi" >> /etc/initramfs-tools/modules, echo "ISCSI_AUTO=true" > /etc/iscsi/iscsi.initramfs and update-initramfs -u. To see if it all works, I made a keyscript with curl example.com and disabled quiet splash. In 18.10 (and 19.04) connection details do not appear like in 18.04 (signaling that there is an issue) and example.com cannot be resolved then. How do I fix this issue22:08
keithzg[m]lordcirth: Oh, I don't know why that didn't occur to me!  Although, that doesn't seem to actually change anything; I still get "SQLite header and source version mismatch" (then the two disparate entries corresponding to the `#define SQLITE_SOURCE_ID` lines in `sqlite3.h` presumably; certainly the one corresponds to that in my local copy of `sqlite3.h`. Hmmm.22:27
mwhudsonteward: thanks for the bug, i think that one is fixed in the current subiquity release22:52
mwhudsonbut i should check i guess22:52
qwebirc24999folks, why is it that on dhcp setup in initramfs I get a line 8 error 8.8.4.4 not found? My line 8 is IPV4DNS0=8.8.8.8 8.8.4.4 [ISP DNS]23:47
sarnoldtry just one ip23:49

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