/srv/irclogs.ubuntu.com/2017/02/24/#ubuntu-server.txt

=== JanC_ is now known as JanC
kaosineok is there any way to reinstall server? I had set it up last night on a old dell and it was working fine for a few hours then nothing. I rebooted it at one point only to have it go black screen after BIOs00:49
kaosineI've tried rescueing it with the install media I used the first time but I can't figure it out to do that.....00:49
=== maxb_ is now known as maxb
=== JanC_ is now known as JanC
QoQOoOHello dose anyone meet locale-gen steal ram problem?02:46
QoQOoOWe use chef-client to provision out machine, but today we found when we execute "locale-gen en_US en_US.UTF-8" command, the command hang and steal many of memory02:46
patdk-lapyes, running a command that takes a lot of ram, will use a lot of ram03:13
stanford_aiI'm looking for a GENIUS to work with us on the most promising drone AI company. Do you know any geniuses here?05:19
stanford_aiis anyone here familiar with ROS/robotics on linux? computer vision, AI, drones, manufacturing, electronics, industrial design, awesomeness, video-making, marketing, lean startup, design-thinking, ethnography, graphic design, or anything related?05:45
cpaelzerstanford_ai: if your list is meant && and not || you are looking for excessive self-esteem instead of a person right :-) ?07:58
stanford_ailol07:59
lordievaderGood morning.08:38
VillageGood time,09:24
Villagelibreadline5-dev packege not in apt-get base, what alternative?09:25
VillageE: Package 'libreadline5-dev' has no installation candidate09:25
OerHeks!info libreadline09:27
ubottuPackage libreadline does not exist in yakkety09:27
OerHeks!find libreadline09:27
ubottuFound: libreadline-dev, libreadline-gplv2-dev, libreadline5, libreadline5-dbg, libreadline709:27
OerHeks!find libreadline-dev09:27
ubottuFound: libreadline-dev09:27
OerHekslibreadline-dev (source: readline): GNU readline and history libraries, development files. In component main, is optional. Version 7.0-0ubuntu2 (yakkety)09:27
OerHeksseems we are at 7 now, Village09:28
Villagei see, OerHeks, Thank You09:28
lordievader!info libreadline7-dev09:29
ubottuPackage libreadline7-dev does not exist in yakkety09:29
OerHeksstrange, ey?09:31
OerHeksthat points to libreadline-dev itself09:32
OerHeksat least info libreadline7-dbg is available.09:32
Villageyes i will try libreadline-dev09:34
Villageone people recomendet it from all packager09:34
Villagepackages*09:34
jamespagecoreycb, morning10:31
coreycbjamespage, morning!10:31
=== disposable3 is now known as disposable2
=== ashleyd is now known as ashd
=== jamespage_ is now known as jamespage
rbasaknacc: o/ for when you get in, any chance you have some time to spare with me on letsencrypt/certbot please?14:42
=== admcleod_ is now known as admcleod
massproghello I want to use of python instead of php in vps what shoud i do?15:09
naccrbasak: sure16:52
kaosine"That is our last such motherboard and I'm not sure if it is ready to ship. Just checking, do you need the exact model or something similar?" *sigh*17:23
=== JanC is now known as Guest36981
=== JanC_ is now known as JanC
kaosinewhoops17:24
kaosinewrong channel17:24
=== pavlushka is now known as KindThree
=== KindThree is now known as pavlushka
=== dcosnet1 is now known as dcosnet
xpistosHey all. I am trying to write a simple bash script that will call a few other scripts. Those scripts have input prompts with default values. I just want the scripts to accept all the defaults. How can I do that? They are not all yes, but some are locations and a few are yeses?18:00
xpistosIs there some arguement I can pass into the ./scriptname/sh that will accept the defaults18:01
naccxpistos: is there a default value that will cause the scripts to work automatically?18:02
naccxpistos: you may want to look at the `yes` utility18:02
xpistosnacc: they defaults are always different, but the user only needs to hit enter to accept whatever the defaults are. sometimes they are "/opt/program/folder" and other times they are "yes"18:03
nacchrm, `yes '' | /other/script` may work then18:04
naccnot sure if yes can take an empty string or not18:04
xpistoslet me look into it18:04
naccxpistos: alternatively, you can use expect for it18:04
xpistosnacc: I am trying to use "-d default" as an argument to one of the complicate scripts now.18:07
naccxpistos: -d as a flag to what?18:08
xpistos./vmware.pl -d default18:09
naccxpistos: oh ok, i'd have no idea about that18:09
rbasaknacc: got time now, or in half an hour?20:59
naccrbasak: now is fine21:00
rbasakTwo minutes and I'll start a hangout.21:00
nacck21:00
axisysserver rebooted and only showing memtest+ in the grub.. need help to fix the grub..21:51
axisysI tried to boot from live CD and mounted the /dev/md1 into /mnt and then grub-install --root-directory=/mnt /dev/sda and then same for /dev/sdb and then reboot.. still showing only memtest+ in the grub21:52
axisys# mdadm --assemble --scan21:53
axisysmdadm: /dev/md1 has been started with 2 drives.21:53
axisys# mount /dev/md1 /mnt21:53
axisysand then the rest21:54
axisyslooks like there are more steps21:55
axisyshttp://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd21:55
axisysall these are needed?21:55
axisysI did not run the update-grub21:56
axisysis that needed after the grub-install?21:56
axisysright now I am at grub> prompt21:57
axisysis there something I can do from here to fix it?21:57
axisyslooks like someone removed the kernel22:06
axisysnice!22:06
compdocyou dont need a kernel22:08
patdk-lapkernel is just deadbeat software22:08
patdk-lapyou need to boot fomr a live cd22:09
compdocfake programming22:09
patdk-lapand run update-grub22:09
patdk-lapand make sure it locates something to boot22:09
axisysso do the chroot first and then update-grub ?22:11
axisyspatdk-lap: ^22:11
patdk-lapmount root, do your bind mounts, chroot into it, then run that yes22:12
axisyspatdk-lap: like this url http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd .. it is doing a lot more22:12
patdk-lapno, it's doing exactly what I said22:13
axisyspatdk-lap: possible to send me a cheatsheet/link?22:13
patdk-lapyou just posted one22:13
axisysor a pastebin?22:13
axisyspatdk-lap: ah ok.. I did not have bind in it22:14
patdk-lapheh?22:14
patdk-lapwhy would you need bind?22:14
axisysi meant bind mounts22:14
patdk-laphmm, they are on that page you just posted22:14
axisyspatdk-lap: ah ok.. got it.. thank you22:14
axisysheading back to the lab22:15
axisyspatdk-lap: if I chroot to /mnt update-grub fails since the OS probably has older version? OS is 14.04 and live cd is 16.0422:32
axisyshow do I run update-grub with root dir as /mnt ?22:32
patdk-lapby following the instructions on that url you posted22:33
patdk-lapthat is the holw point of all those commands22:33
axisyspatdk-lap: that one did not bind /usr22:34
patdk-lapif you have more than a single mount, you will have to mount them all22:34
patdk-lapnothing will be specific to your exact install22:35
patdk-lapyou need to mount everything you normally need, /, /boot, /usr, /var, ...22:35
patdk-lapbefore you do the bind mounts22:35
patdk-lapso mount xxxx /mnt22:35
patdk-lapmount xxxx /mnt/usr22:36
patdk-lapmount xxxx /mnt/boot22:36
patdk-lapthen your binds, mount --bind ....22:36
axisysah..22:36
axisysgrub-install worked from livecd since I can point to /mnt as root dir22:37
axisysmay be I could use update-grub of livecd if I can point to /mnt as root dir22:37
axisyshow do I read the disks fstab?22:38
axisysmount / to /mnt ?22:38
axisysignore that question22:40
axisys /mnt is root .. doh22:40
axisysso /mnt/etc/fstab does not have anything but / and swap22:41
axisysroot@ubuntu:/mnt/usr/sbin# ls -al update-grub22:41
axisys-rwxr-xr-x 1 root root 64 Mar 15  2016 update-grub22:41
axisysroot@ubuntu:~# chroot /mnt22:41
axisysroot@ubuntu:/# update-grub22:42
axisys/usr/sbin/grub-probe: error while loading shared libraries: libdevmapper.so.1.02.1: cannot open shared object file: No such file or directory22:42
patdk-lapdidn't mount everything you needed?22:42
axisysonly / and swap needed per fstab22:42
axisysand they are mounted22:43
patdk-lapno idea why that is missing22:43
axisyshttp://dpaste.com/347CS4522:43
patdk-lapok, that is confusing as crap22:44
patdk-lapyour mounted it inside itself like 4 times?22:44
patdk-lapconfusing22:44
axisyssorry I was following his url where he did that22:44
patdk-laphe didn't do chroot /mnt >1 time22:44
patdk-lapI don't think I should see grub-install or update-grubs cause those would be in a new shell22:45
patdk-lapI think you should reboot and try again22:46
patdk-lapmdadm assemble22:46
axisysok22:46
patdk-lapmount /dev/md1 /mnt22:46
patdk-lapthen start the bind mounts, chroot, grub stuff22:46
axisysrebooting now22:46
axisyshmm I have exit after each chroot22:47
axisysdid not know in history22:47
axisysbind mounts is line 7 thru 10 .. correct? since I dont have any special partitions?22:50
patdk-lapyes, no need for 622:50
axisysinstalling mdadm on livecd22:52
axisysall 4 binding done..22:54
axisysgrub-install --root-directory=/mnt /dev/sda will work.. or should I  do chroot and run it without root dir option?22:55
axisysand same for /dev/sdb22:56
axisyswith chroot /mnt, grub-install does not work22:57
axisysprogram not found22:57
patdk-lapwhy did you do that?22:57
patdk-lapyou should follow the url, not modify and insert other things22:57
axisysok exited out of chroot22:57
patdk-lapwhy?22:57
patdk-lapyou must be in the chroot22:58
patdk-lapwhat does, grub-install /dev/sda, say?22:58
patdk-lapexiting out will NOT fix your issue22:58
patdk-lapit just means your issue is much worse than just grub22:58
axisyshttp://dpaste.com/3GBSR0F22:58
patdk-lapok, ignore that for now22:59
patdk-lapwhat about update-grub22:59
patdk-lapand what does, dpkg -l | grep grub, say?23:00
axisyshttp://dpaste.com/1EY73JK23:00
patdk-lapok, so grub doesn't appear to be installed at all, or you didn't mount stuff right somehow23:00
axisyshttp://dpaste.com/18XJX5H23:00
patdk-lapthat says grub was uninstalled23:01
patdk-lapis networking setup on this live boot?23:01
axisysyes23:01
patdk-lapapt-get install grub-pc then23:01
axisysjust so you know, I am still on chrooted env23:02
patdk-lapas you should be, I never said to exit23:02
patdk-lapwe aren't attempting to fix the live install :)23:02
axisyshttp://dpaste.com/305X21023:03
patdk-lapso networking was not setup and working23:03
patdk-lapexit out and get networking setup23:03
patdk-lapoh wait, you probably just need to get resolv.conf fixed up in the chroot23:03
sarnoldor /etc/hosts the thing23:04
patdk-lapya, add us.archive.ubuntu.com to /etc/hosts in the chroot23:04
sarnold91.189.91.26 and 91.189.91.2323:05
axisysthat is fixed with hosts file.. thanks guys! but apt still has issue23:06
axisyshttp://dpaste.com/0N2KK6Q23:06
patdk-lapapt-get update23:06
patdk-lapthen attempt again23:07
patdk-lapyour local apt cache must be way out of date23:07
patdk-lapatleast I don't remember grub being updated recently23:07
axisysok.. updating it.. need security.ubuntu.com also23:08
sarnoldthe same two should work23:08
sarnold(there's way more but .. meh. you just need this up and running, right? :)23:09
axisyssarnold: right :-)23:09
patdk-lapsarnold, I finally upgraded all my letsencrypt stuff to dehydrated :)23:09
patdk-laplife is so much nicer now23:09
sarnoldpatdk-lap: I hadn't heard of that yet..23:09
patdk-lapit's very simple23:10
sarnoldI like simple23:10
patdk-lapbut has nice hook calls, so I have it hooking to generate my pinning, tlsa records, and cert rotation23:10
patdk-lapso much more reliable than certbot23:11
patdk-laphadn't done it yet, cause certbot was *working*23:11
axisysapt-get install grub-pc is success.23:11
patdk-lapbut it died on me horrible 2 weeks ago, just found the time to fix it, before they expired in 2 more weeks23:11
patdk-lap:)23:11
axisysroot@ubuntu:/# update-grub23:11
axisysGenerating grub configuration file ...23:11
axisysgrub-probe: error: disk `md1' not found.23:11
patdk-lapnow to do grub-install and update-grub23:11
patdk-lapodd23:12
patdk-lapmdadm installed?23:12
axisysnawp :-)23:12
patdk-lapI wonder what happened to uninstall all this stuff23:12
patdk-lapdpkg -l | grep ^rc23:12
patdk-lapbest review what got removed :)23:13
axisysprevious sysadmin is in a "shock" when I asked23:13
axisysmdadm installed now23:13
patdk-lapmdadm by itself I don't think should have caused that error23:13
axisys--assemble --scan ?23:13
patdk-lapno23:13
axisysok23:13
patdk-lapoutside the chroot counts for that23:14
patdk-lapcause of the bind mounts23:14
patdk-lapwhy I suspect something else23:14
patdk-lapbut I just have no idea yet, what23:14
axisysroot@ubuntu:/# grub-install /dev/sda23:14
axisysInstalling for i386-pc platform.23:14
axisysInstallation finished. No error reported.23:14
patdk-lapah, so it must have wanted mdadm23:14
patdk-lapfor some reason23:14
axisysroot@ubuntu:/# grub-install /dev/sdb23:15
axisysInstalling for i386-pc platform.23:15
axisysInstallation finished. No error reported.23:15
patdk-lapI would update initrd files23:15
patdk-laplets review that dpkg -l | grep ^rc, though23:15
axisys /boot has almost nothing23:15
patdk-lapif all this stuff got removed, and it's missing from initramfs too, it won't boot even if we fix grub23:15
axisysroot@ubuntu:/boot# ls23:15
axisysgrub  memtest86+.bin  memtest86+.elf  memtest86+_multiboot.bin23:15
patdk-lapso no kernels either23:15
patdk-lapok, no need to fix initramfs then23:15
sarnoldman what happened to this poor system?23:16
axisyspatdk-lap: like I mentioned earlier..23:16
patdk-lapare we sure we dont' need to mount /boot?23:16
patdk-lapfrom somewhere?23:16
axisyssarnold: previous mediocore sysadmin's blessing23:16
patdk-lapwhat does blkid show?23:17
patdk-lapI just want to be very careful we aren't *fixing* the wrong thing23:17
axisyshttp://dpaste.com/1Y3CCHX23:17
patdk-lapya, a second raid23:17
patdk-laplikely swap you said?23:18
patdk-lapis swap another md?23:18
axisyspatdk-lap: yes md023:18
patdk-lapok23:18
axisys# swap was on /dev/md0 during installation23:19
axisysUUID=859bf518-f6bd-4d27-ae13-6c895b40a857 none            swap    sw              0       023:19
patdk-lapguess this stuff did get wiped23:19
patdk-laplets get that dpkg listing23:19
axisyswith the grep?23:19
patdk-lapya23:19
patdk-lapgrep ^rc23:19
patdk-lapit will show a bunch of stuffwe don't care about23:19
patdk-lapbut lets see what else is missing that will cause boot failures23:20
axisysits looooong output.. hard to catch from console23:22
axisysI will try23:22
axisys229  packages23:23
patdk-lapok, try this23:23
axisysdpkg -l | grep ^rc > /tmp/out23:24
patdk-lapdpkg -l | grep ^rc | grep -v linux23:24
axisyswc -l /tmp/out23:24
axisys229 /tmp/out23:24
patdk-lapor, grep -v linux /tmp/out23:24
axisys20023:24
patdk-lapheh23:24
patdk-lapexit the chroot, and try using pastbinit23:25
axisyshttp://paste.ubuntu.com/24061714/23:26
patdk-lapthat doesn't look good23:27
patdk-lapwhat does this machine do? when it *works*23:27
patdk-lapactually, a lot of that seems to be from a 12.04 -> 14.04 upgrade23:29
axisysits a xymon server.. monitors23:29
axisysright..23:29
axisysI think they broke during their upgrade23:29
patdk-lapdpkg -l | grep xymon23:30
patdk-lapthat shows an ii  xymon line right?23:30
patdk-lapversion 4.3.7 it should be23:30
axisysline 20023:30
patdk-lapno, that is an rc line, not ii23:30
axisysah23:30
axisysroot@ubuntu:/# dpkg -l | grep xymon23:31
axisysrc  xymon                                      4.3.0~beta2.dfsg-5                              amd64        monitoring system for systems, networks and applications23:31
patdk-lapso xymon isn't installed anymore either23:31
axisysxymon is compiled most likely23:31
patdk-laphmm, ok, but lets check this23:31
patdk-lapis there anything in /etc/apt/sources.list.d23:32
axisys# ls23:32
axisyspercona.list    snabb-downtimed-lucid.list.distUpgrade23:32
axisyspercona.list.distUpgrade    zabbix.list23:32
axisyssnabb-downtimed-lucid.list  zabbix.list.distUpgrade23:32
patdk-lapok, that is probably what did it23:32
axisysits odd I could update /etc/hosts but not /etc/resolv.conf23:33
patdk-lapwell, /etc/resolv.conf is a symlink normally these days23:33
patdk-lapso it's attempting to update the missing file it points to23:33
axisys/etc/resolv.conf -> ../run/resolvconf/resolv.conf23:33
patdk-lapya, you need to create that file23:33
patdk-lapand directory likely also23:34
marahinHey. I'm running Rails on rbenv/rvm (unsure right now), nginx, php5-fpm (wordpress sites), nodejs, go and some virtualization through virt-manager on my Ubuntu 14.04 server.23:34
axisysresolv working now23:34
marahinI'm thinking about dist-upgrading. How destructive can it be? I'm a complete newbie, not a experienced admin.23:35
patdk-lapaxisys, try this23:35
pmatulismarahin, i wouldn't call upgrading "destructive"23:36
patdk-lapapt-get install ubuntu-minimal23:36
marahinpmatulis by "destructive" I mean: what might stop working on a machine that runs basic web stuff + teamspeak? :)23:36
pmatulismarahin, have you installed any software outside the official ubuntu arhives?23:36
patdk-lapmarahin, nothing23:36
axisyspatdk-lap: done23:36
marahinpmatulis: as far as I can reach with my memory: none that I use currently.23:36
patdk-lapthe only time an upgrade or dist-upgrade would break something is, a software update that needs a config file change23:36
patdk-lapunlikely, but happens sometimes23:37
marahinwell, maybe phpmyadmin?23:37
marahinallright, you convinced me! :-)23:37
patdk-lapaxisys, ok, and what is the count on that dpkg -l | grep ^rc | wc -l23:37
marahin"#yolo"23:37
pmatulismarahin, do make backups of your data however23:37
axisyspatdk-lap: 22623:37
marahinpmatulis I can always rescueboot with another image on it.23:37
patdk-lapthe same?23:37
axisyspatdk-lap: nawp23:37
patdk-lapdown by 3 :(23:37
axisysis it.. ah.. oh yeah there was a grep -v23:38
patdk-laphow about23:38
patdk-lapdpkg -l | grep ureadahead23:38
axisysii23:38
patdk-lapgood23:38
axisys0.100.0-1623:39
patdk-lapso lets get you a kernel23:39
axisyspatdk-lap: please!!23:39
axisys:-)23:39
patdk-lapthis a physical machine?23:39
axisyspatdk-lap: yes23:39
patdk-lapapt-get install linux-generic23:40
patdk-lapmaybe also, apt-get install linux-firmware23:40
axisysgetting it still...23:41
patdk-lapya, it will take a little bit23:42
marahinPardon me, but: what about do-release-upgrade? Can this mess things up?23:42
axisyspatdk-lap: so far so good :-)23:42
patdk-lapmarahin, that WILL cause you issues23:42
patdk-lapdo-release-upgrade will cause breakage23:43
patdk-lapsometimes minimal, sometimes major, it depends on the software you use23:43
patdk-lapcause that will do major upgrades23:43
marahinuh-huh.23:43
marahinI see.23:43
marahinwell I guess I'll pass. I am going to swap the machines anyways soon, and then contenerize/isolate by virtualization the services23:43
marahinpatdk-lap thank you!23:43
axisyspatdk-lap: ok installed linux-generic and linux-firmware23:44
patdk-lapupdate-grub23:44
axisyssweet.. looks good23:44
sarnoldmarahin: apache drastically changed authentication and authorization configuration between 2.2 and 2.4; if you've got any apache in your stack, take a look at their docs first23:44
patdk-lapok, dunoo what else to fix now23:44
patdk-laphave to reboot and test it :)23:44
patdk-lapsee what works and what doesn't23:44
axisyspatdk-lap: crossing my fingers..23:44
marahinsarnold nah I'll pass do-release-upgrade; I'm going to swap the physical machine anyways. And I'm using NGINX :)23:45
patdk-lapmarahin, it mainly comes into play in how many files you have edited, configuration changes you have made23:45
axisyscan I eject from here? or do I need to go back to the lab and eject manually?23:45
patdk-lapthe less you do, the *easier* do-release-upgrade is23:45
axisyspatdk-lap: ^23:45
patdk-lapaxisys, exit the chroot23:45
patdk-lapand just type in reboot23:45
axisyshopefully it wont boot from cdrom23:46
axisysPlease remove the installation medium, then press ENTER:23:46
patdk-lapit likely will, unless you remove it23:46
sarnoldtry 'eject' first23:46
axisysah.. cd usually gets kicked out by now23:46
patdk-lapI always just remove it while at the bios screen23:46
sarnoldmaybe the tray will suck it back in ..23:46
axisyssarnold: ok.. I will try from downstairs then23:47
patdk-lapmust locate sugar23:51
axisystook the cd out.. oh yeah I need some sugar too23:51
axisysrebooting with a kernel.. eehaa!23:52
axisysdoing fsck23:52
sarnoldwhere's those girl scouts need more cookies23:52
axisyslol23:52
axisyswe have potbelly here23:53
sarnoldoh yeah. I just polished off a wreck.23:53
axisystheir cookies are really good.. and probably not healthy23:53
patdk-lapout of sugar here :(23:59
patdk-lapfound italian ice though23:59

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