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

mybalzitchhttps://help.ubuntu.com/lts/serverguide/firewall.html#ip-masquerading those ufw nat instructions don't actually work02:13
mybalzitchhttps://pastebin.com/sUrTm9ZK02:16
mybalzitchdeleting and readding the commit line several times fixed it? nice parser.02:25
samba35i have messup with my ubuntu 18.04 server with grub loader there is now only memory test entry are there there is no linux-version entry04:56
samba35how do i fix this problem ?04:56
cpaelzergood morning06:32
cpaelzersamba35: that seems that no kernel at all was found on your last update grub06:32
cpaelzersamba35: there might be more options, but I'd try to boot from USB/CD06:33
cpaelzersamba35: then chroot into your actual system06:33
cpaelzerand then check why there is no kernel, fix that up06:33
cpaelzerand eventually run sudo update-grub06:33
cpaelzerthat should then detect the kernel that you made available and update the boot tables as needed06:33
cpaelzerthen cross fingers, reboot and done06:34
cpaelzersamba35: I think the live CD also has a boot-repair option that fixes most common issues06:34
samba35sorry cpaelzer06:40
cpaelzerfor what samba35?06:41
samba35i try to boot from dvd and mount it but it give erros06:41
cpaelzerwell then, disk broken maybe06:41
cpaelzerwhat kind of errors06:41
samba35error with dpkg and unable to find some files06:42
cpaelzerprovide a pastebin of the commands you tried and maybe the logs and dmesg that was created along06:42
cpaelzerhmm06:42
cpaelzerare those dpdk errors after mount+chroot?06:42
cpaelzerdid you bind mount /proc, ss and dev ?06:42
samba35is it possible to boot from another harddisk and make broken disk as a slave and try to repiar ?06:42
samba35no06:42
cpaelzersamba35: that is exactly what you already do with the CD06:42
cpaelzerCD is the "other disk"06:43
cpaelzerand you try to repair from there right06:43
samba35currenty i am on 16.04 and broken disk as a slave06:43
samba35will i able to fix this now ?06:43
cpaelzerno one can tell you that in advance, but give it a try06:44
cpaelzerbefore you chroot you should like06:44
cpaelzer1. mount the disk on /mnt06:44
cpaelzer2. for f in proc sys dev ; do mount --bind /$f /mnt/$f ; done06:45
cpaelzer3. chroot /mnt06:45
cpaelzerthen you are as if you'd be in your hard disk's system06:45
cpaelzernot sure if you need network tricks, but that would be a start06:45
cpaelzerthere check /boot and if there is a kernel as it should be06:45
cpaelzerthen run sudo update-grub what does it say ...06:45
samba35ok06:45
samba35let me try06:45
samba35sda1 is mount as a /media/tesuser/some numbers06:54
samba35what is ss ?06:55
samba35 mount /media/tesuser/637d0aee-9232-11e8-9c61-2ed34b5b4932/proc/  /current (from where i have booted ) that drive any mount point or old salave disk mount point ?06:58
samba35mount:  /media/tesuser/637d0aee-9232-11e8-9c61-2ed34b5b4932/proc is not a block device06:59
samba35ok06:59
samba35done07:00
samba35with --bind07:00
cpaelzeryeah it just means "be also available there for when I late chroot"07:04
samba35from where i have to run update-grub  ?07:05
samba35salave /18.04 disk or currnt 16.04 disk07:06
samba35ok let me boot from cdrom and try07:09
samba35cpaelzer, thanks i will be back later after trying this07:10
cpaelzersamba35: you want to do that "inside" the chroot which is on the disk you want to fix07:11
samba35ok07:11
samba35chroot: failed to run command '/bin/bash': No such file or directory07:17
samba35in old disk in /boot i can see initrd.img-4.15.0-42-generic.dpkg-bak07:23
samba35initrd.img-4.15.0-42-lowlatency.dpkg-bak07:23
samba35initrd.img-4.19.2-041902-generic.dpkg-bak07:23
samba35and when i run update-grub here i show currnt disk kernl 3.x07:24
samba35 w /usr/sbin/grub-mkconfig: 37: /usr/share/grub/grub-mkconfig_lib: cannot create /dev/null: Permission denied07:28
samba35mount but why ?07:29
samba35a /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).07:29
samba35cpaelzer, a /usr/sbin/grub-probe: error: failed to get canonical path of `/dev/mapper/ubuntu-root'.07:36
samba35now this error07:36
cpaelzerhmm seems like lvm root07:38
cpaelzerrigh tnow I'm not sure without checking myself what special consideration apply07:38
samba35ok07:38
cpaelzeryour list of kernel/initrd mentions only backup files07:38
cpaelzerno actual kernel/initrd there ?!07:39
samba35yes07:39
cpaelzerwell, whatever the reason is that is at least part of your issue07:39
samba35there was error with dpkg and i google some site and mess up07:39
cpaelzeryou'd want to install at least one kernel07:39
samba35yes07:39
samba35will booting from 18.04 dvd will help ?07:40
cpaelzeryeah the case look half-broken already, this gets hard to fix-by-remote-hints07:40
samba35and rescue mode07:40
cpaelzerbooting a different DVD will not make it any different IMHO07:40
samba35ic07:40
cpaelzeryou still need to install a proper kernel on the main disk in the chroot07:40
cpaelzerand then update-grub07:40
cpaelzerand sort out whatever the lvm setup makes you need in additon07:41
samba35ok07:41
samba35thanks cpaelzer back soon thanks07:46
lordievaderGood morning09:02
kstenerudDoes anyone know how to generate a control file from a control.in file?09:46
mwhudsonkstenerud: there's no one way, make -f rules control ?09:48
samba35E: Sub-process /usr/bin/dpkg returned an error code (1)10:01
samba35how to fix this10:01
LeMikeWould this be the right place for some rsync things? I tried using --filter=":e- .gitignore" but unfortunately it still downloads all files instead of ignoring some. Why could that be?10:29
LeMikedamn it. forget about this. the ":" is a directory merge so the .gitignore of the sender will be used (and not mine as receiver).10:37
ahasenackgood morning11:09
peetaur2I don't know when or how, but at some point, vsftpd and LDAP were working fine, and now it fails.   with lftp client, it started doing this:    ls: Login failed: 500 OOPS: cannot locate user entry:username11:27
peetaur2and if I change it to use the sshd pam service instead, it then says     ls: Login failed: 530 Login incorrect.11:28
ahasenackyou need to checkout which ldap searches are being done, and what their result is11:35
ahasenackpeetaur2: ^11:35
peetaur2I basically did that.11:46
peetaur2but restarting nslcd fixed it .... :/11:46
peetaur2why should getent, ssh, etc. all work fine using nslcd, but vsftpd needed it restarted? silly thing11:46
ahasenackah, the cache?11:47
peetaur2nslcd does caching, yes11:48
ahasenackrbasak: hey, I just saw something interesting in a debian package16:53
ahasenackrbasak: debian builds samba with glusterfs support, so their samba-vfs-modules package ships /usr/lib/x86_64-linux-gnu/samba/vfs/glusterfs.so16:54
ahasenackand that links with libglusterfs.so.0, which comes from glusterfs-common16:54
ahasenackrbasak: but their samba-vfs-modules package has no dependency on glusterfs-common. Instead, they have a Recommends16:54
ahasenackroot@oriented-mastodon:~# dpkg -s samba-vfs-modules|grep gluster16:54
ahasenackRecommends: glusterfs-common, libcephfs2 (>= 12.2.8), libdbus-1-3 (>= 1.9.14)16:54
ahasenackis that a valid trick?16:55
ahasenackshlibs didn't seem to have picked up the linkage between /usr/lib/x86_64-linux-gnu/samba/vfs/glusterfs.so (samba-vfs-modules) and /usr/lib/x86_64-linux-gnu/libglusterfs.so.0 (glusterfs-common)16:55
ahasenackin the package's description:16:58
ahasenack Note: The runtime dependencies of vfs_ceph, vfs_glusterfs and vfs_snapper are16:58
ahasenack moved to Recommends.16:58
naccahasenack: so if you install samba-vfs-modules (but not it's recommends) and then configure samba to use gluster, does it segfault/crash?17:01
ahasenacknacc: it would definitely fail to load that module. I think it still starts up, but I would have to check17:01
rbasakPlugin modules are weird17:01
rbasakIt might be reasonable to leave it as a recommends or even a suggests17:02
ahasenackalso, what does ubuntu do, since it installs recommends by default? What does it do when it cannot find a recommends?17:02
rbasakI think it will not take any action on a recommends it cannot fulfil. But that might need checking.17:03
rbasak"The Depends field should be used if the depended-on package is required for the depending package to provide a significant amount of functionality."17:03
rbasakFrom policy17:03
rbasakFor something like samba-vfs-modules, glusterfs may not be treated as "significant".17:04
ahasenackright17:04
ahasenackbut the question is, what would britney do? :)17:04
rbasakIt doesn't know so it doesn't care.17:04
ahasenackI mean, at migration time17:05
ahasenackif it would treat recommends as depends or not17:05
ahasenackor "whatever apt would do" is the answer17:05
rbasakOh17:05
rbasakI see what you're asking now. I don't know. Good question.17:05
ahasenackI'll find out17:06
ahasenackwe could drop that bit of delta if this works and is acceptable17:06
cpaelzercoreycb: jamespage: is that nova test error anything you triggered or could fix https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-disco/disco/amd64/n/nova/20181206_155403_69eef@/log.gz ?21:13
cpaelzerthe libvirt upload I did certainly didn't trigger that21:13
cpaelzerwas a s390x only one line change to vfio handling21:14
cpaelzerso I wonder if there is anything going on that you know avoiding that I have to debug and find out on my own tomorrow21:14
* cpaelzer is lazy before going to bed and hope the world fixes my issues21:14
evitI was thinking the other day. It would be awesome if apt update would notify if you needed to reboot or not like it does on the desktop.21:15
sdezielevit: motd is updated with the reboot needed notice21:16
coreycbcpaelzer: I've been trying to figure it out all day. I made a little progress at https://bugs.launchpad.net/ubuntu/+source/nova/+bug/180726221:17
ubottuLaunchpad bug 1807262 in nova (Ubuntu) "stein unit tests fail with sqlalchemy.exc.NoSuchTableError: migration_tmp" [High,Triaged]21:17
evitsdeziel, I'm talking about after you do a manual apt update && apt upgrade21:19
evit@sdeziel, I disabled MOTD21:20
coreycbcpaelzer: something changed w sqlite21:20
sdezielevit: I guess you could have a post-apt hook to do what the motd in question was doing21:20
cpaelzercoreycb: if you don't find something towards your EOD21:21
cpaelzerwould you mind filing a force-badtest for now to unblcok me and potentially others21:22
cpaelzerthat would give you tim eto sort it out21:22
sdezielevit: if you are looking for something to let you know which services would need a restart (more frequent than reboot-needed), you may want to look at https://github.com/simondeziel/check-deleted-libs/blob/master/check-deleted-libs </self promotion>21:22
cpaelzerthanks for the bug reference, I'll refresh tomorrow what your last state on this was21:22
coreycbcpaelzer: haven't done that before but will look into it21:26
cpaelzerthanks coreycb I'd appreciate that21:27
cpaelzerok, cu tomorrow where I'll recheck the latest updates to that bug21:28
evitSilly question. I've updated my .bashrc to include my FQDN with /H but I don't see it upon logging back in. Any ideas?21:51
evitI mean \21:52
evit\H sorry21:52
lordcirthevit, to include it in $PS1, you mean?21:52
evitlordcirth, Yes21:53
lordcirthevit, what line exactly did you put in .bashrc?21:53
evitPS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\H\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '21:54
evitelse21:54
evit    PS1='${debian_chroot:+($debian_chroot)}\u@\H:\w\$ '21:54
evitfi21:54
evitunset color_prompt force_color_prompt21:54
evithostname produces www. Is there somewhere else I need to change that?21:55
lordcirthdebian_chroot?22:00
lordcirthah, nvrm22:00
lordcirthevit, you might have run into this bug: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/127679622:00
ubottuLaunchpad bug 1276796 in bash (Ubuntu) "Long hostname placeholder for PS1 (\H) fails in Bash" [Undecided,Confirmed]22:00
lordcirthA workaround is to use $(hostname -f) instead of \H22:01
evitlordcirth, Gracias! =)22:06
lordcirthnp22:07

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