/srv/irclogs.ubuntu.com/2014/02/05/#ubuntu-server.txt

redneckJEDIhello, first time user here. have stoopid question.00:13
redneckJEDI1) am i in a chat room and is anybody there?00:14
shaunoyou are, we are00:14
redneckJEDIfantastic.  i might not suck at this!00:14
redneckJEDIquestion will follow the preceeding line:00:15
redneckJEDIsudo ldapadd -Y EXTERNAL -H ldapi:/// -f backend.example.com.ldif00:15
redneckJEDIwhat in the WORLD does EXTERNAL -H do?00:15
redneckJEDIi ask at the risk of exposing my noobish skill.  :)00:18
shaunoI have precisely zero exposure to ldap, so all I could do is parrot the man page; but generic advice would be that if no-one replies, wait around a while - people do peek it, but not on a constant basis00:19
redneckJEDIunderstood, thank you00:19
shaunobut I would check "man ldapadd" to see how it explains what -Y and -H are expecting  (I don't have it installed).  it's always a good start00:20
redneckJEDImaybe EXTERNAL is part of the internal working of LDAP because the man pages don't show up for EXTERNAL explicitly.  must be buried in another man page00:20
redneckJEDIwill do that.  maybe i missed something00:20
redneckJEDIyour inspiration is much appriciated00:21
mgwI'm building a package. Depending on the order of dh_installinit and dh_installdeb, the /etc/ files are either always updated or never updated. What I want is for dpkg to ask whether to replace if and only if both files have changed. I thought this was default behavior for conffiles. Any suggestions?00:35
=== _monokrome is now known as monokrome
=== Brad_ is now known as Guest83103
Guest83103hi, how do i enable anon delete on my ftp server? im running vsftpd03:17
Guest83103hello?03:19
cfhowlettGuest83103, greetings03:23
cfhowlettGuest83103, can't answer, but you were seen ...03:23
Guest83103damn03:24
Guest83103im trying to add a website to my apache server via ftp03:24
Guest83103not going so good man03:24
Guest83103but i figured out how to edit the default apache page so i got that going for me03:24
Guest83103i got this domain for .50 cents man www.thatonecomputergeek.com03:25
=== Ursinha is now known as Ursinha-afk
villfhey guys im having some issues with my ubuntu server, i upgraded my server and now every time i boot i get this05:40
villfhttp://www.picpaste.com/photo_1-MXWtKCUT.JPG05:40
villfhttp://www.picpaste.com/photo_2-wWifVpea.JPG05:40
villfhttp://www.picpaste.com/photo_3-zEY2DWCE.JPG05:41
villfcan any one help me or guide me on how to get my server to boot normally and not in degraded raid mode?05:41
hitsujiTMOvillf: are you on a live cd now?05:47
villfno i am booted in degraded mode05:48
hitsujiTMOvillf: what type of raid?05:49
villfi believe its raid10 software raid05:49
villfi think i was first getting a md10 not found error before, but now i have the option to boot in degraded raid mode05:50
hitsujiTMOvillf: ok. can you boot a live cd05:50
villfokay brb05:50
villafim booted in live cd now06:06
hitsujiTMOvillaf: ok: sudo apt-get install pastebinit06:07
hitsujiTMOvillaf: dmesg | pastebinit && pastebinit /var/log/syslog06:07
villafubuntu@ubuntu:~$ sudo apt-get install pastebinit06:09
villafReading package lists... Done06:09
villafBuilding dependency tree06:09
villafReading state information... Done06:09
villafE: Unable to locate package pastebinit06:09
villafubuntu@ubuntu:~$06:09
villafsays unable to locate package pastebinit06:10
hitsujiTMOvillaf: sudo apt-get update && sudo apt-get install pastebinit06:11
villafhitsujiTMO , i pmed you the result06:14
villafE: Unable to locate package pastebinit06:14
hitsujiTMOvillaf: i can't see pms. can you enable the universe repo please. then try again06:15
villafim sorry im rather inexperianced how do i enable universe repo?06:15
villafsudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"06:18
villafhttp://paste.ubuntu.com/6877358/06:19
villafhttp://paste.ubuntu.com/6877359/06:19
hitsujiTMOvillaf: seeing serious errors straight away: [    4.992198] EXT4-fs (sdb1): bad geometry: block count 244192478 exceeds size of device (262144 blocks)06:22
hitsujiTMO[    5.084152] EXT4-fs (sdd1): bad geometry: block count 244192478 exceeds size of device (262144 blocks)06:22
villafis there any way i can somehow clone the data off that raid onto 1 500gig ssd drive?06:23
hitsujiTMOvillaf: i presume none of the drives are attached via usb?06:23
hitsujiTMOvillaf: usb issues: [  195.436267] hub 4-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?06:24
villafi have two 2 tb usb 3.0 drives attached to the server now, internally i have 4 500 gig sata drives06:24
hitsujiTMOvillaf: which drivers are involved in the raid?06:24
villafyou mean drives? i think all four 500 gig western digital drives06:25
hitsujiTMOdrives*06:25
villafraid 1-0 or raid 1006:25
hitsujiTMOvillaf: ok. sudo fdisk -l 2>&1 | pastebinit06:26
villafhttp://paste.ubuntu.com/6877376/06:26
hitsujiTMOvillaf: sudo mdadm --examine /dev/sd[abcd]106:28
villafsudo: mdadm: command not found06:28
hitsujiTMOvillaf: sudo apt-get install mdadm06:29
villafever since i ran update of ubuntu this issue appeared06:29
hitsujiTMOvillaf: then once its installed: sudo mdadm --examine /dev/sd[abcd]106:31
villafubuntu@ubuntu:~$ sudo apt-get install mdadm06:32
villafReading package lists... Done06:32
villafBuilding dependency tree06:32
villafReading state information... Done06:32
villafThe following extra packages will be installed:06:32
villaf  postfix06:32
villafSuggested packages:06:32
villaf  procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin06:32
villaf  dovecot-common postfix-cdb postfix-doc06:32
villafam i supposed to be installing postfix?06:32
hitsujiTMOvillaf: no harm. it wont actually be used06:32
hitsujiTMOvillaf: or: sudo apt-get install mdadm --no-install-recommends06:33
villafhttp://paste.ubuntu.com/6877451/06:38
hitsujiTMOvillaf: sudo mdadm --examine /dev/sd[abcd]2 | pastebinit06:39
villafhttp://paste.ubuntu.com/6877455/06:39
hitsujiTMOvillaf: are you missing b in that last one?06:40
villaf?06:41
hitsujiTMOvillaf: are you missing b here? its missing from the output: sudo mdadm --examine /dev/sd[abcd]2 | pastebinit06:41
villafmdadm: No md superblock detected on /dev/sdb2.06:42
villafhttp://paste.ubuntu.com/6877474/06:42
hitsujiTMOvillaf: ok. serous problems then06:42
villafnice ;-/06:43
hitsujiTMOvillaf: lsblk | pastebinit06:44
villafhttp://paste.ubuntu.com/6877485/06:44
hitsujiTMOvillaf: sorry that last bit should be: sudo blkid | pastebinit06:46
villafhttp://paste.ubuntu.com/6877490/06:46
villafany glimmer of hope?06:49
hitsujiTMOvillaf: sudo mdadm --assemble /dev/md0 /dev/sda2 /dev/sdb206:50
hitsujiTMOvillaf: well, it looks like one of the mirrors might be intact at least, ans one of the md parts may not actually be used so it might be ok06:51
villafubuntu@ubuntu:~$ sudo mdadm --assemble /dev/md0 /dev/sda2 /dev/sdb206:51
villafmdadm: no RAID superblock on /dev/sdb206:51
villafmdadm: /dev/sdb2 has no superblock - assembly aborted06:51
villafi know my data is all there06:52
villafim able to boot in degraded mode and run apache and web server and all06:53
hitsujiTMOvillaf: might be best to recreate the raid0 on /dev/sda1 + /dev/sda2. then it my work.06:55
villafhow do i do that06:56
hitsujiTMOvillaf: do you know what params were used to create the raid in the first place? is it documented?06:56
villafi have no documentation06:57
villafis there anyway we can tell if i boot it in degraded mode?06:57
villafwhen booted in degraded mode i have access to the local filesystem06:58
hitsujiTMOvillaf: not that i know of.06:58
hitsujiTMOvillaf: if you come back in a few hours there's a few peeps that me be able to help better than i can.06:59
villafis there anyway i can like mount the array in live cd06:59
villafand clone the data onto a clean 500gig ssd?07:00
villafand just boot from the ssd with no raid?07:00
hitsujiTMOvillaf: sudo mdadm --assemble /dev/md1 /dev/sdc2 /dev/sdd207:01
villafmdadm: /dev/md1 has been started with 2 drives.07:01
hitsujiTMOvillaf: sudo blkid /dev/md107:02
villaf/dev/md1: UUID="49dc4e8e-6cff-4ace-9307-0278ca483289" UUID_SUB="987eb754-f646-5a97-ffe3-d0ba5f63df10" LABEL="server:10" TYPE="linux_raid_member"07:03
hitsujiTMOvillaf: sudo mdadm /dev/md2 /dev/md107:04
hitsujiTMOvillaf: sudo mdadm --assemble /dev/md2 /dev/md107:04
villafmdadm: An option must be given to set the mode before a second device07:05
villaf       (/dev/md1) is listed07:05
villafmdadm: /dev/md2 has been started with 1 drive (out of 2).07:05
hitsujiTMOvillaf: sorry missed the option ^07:05
villafyay! i see it07:05
hitsujiTMOvillaf: sudo blkid /dev/md207:05
villafits mounted07:05
villaf/dev/md2: UUID="e506b79d-cd73-4d95-a61b-1ee3c169ad17" TYPE="ext4"07:06
hitsujiTMOvillaf: ok. you would need to change partitions in fstab and the grub config in /boot (boot is in one of /dev/sd[abcd]1)07:07
villaffor the ssd?07:08
hitsujiTMOvillaf: yup07:08
hitsujiTMOvillaf: i have to sign off for a bit. good look07:08
villafi have no idea how to do that07:08
hitsujiTMOvillaf: get your data first anyway. thats the most important bit07:09
=== freeflying_away is now known as freeflying
=== bradm1 is now known as bradm
=== lool- is now known as lool
=== freeflying is now known as freeflying_away
=== yofel_ is now known as yofel
psivaastarting from 20140129, trusty server minimal installs for amd64 is ~37MB larger than the i386 ones.11:48
psivaait is roughly 32MB overhead that is being used in the smoke tests.11:48
psivaai could not find the package that started the bloat.11:48
psivaadont know the significance either. but could adjust the smoke test if this is not a big issue11:48
psivaajamespage: hallyn rbasak ^. just in case it interests you11:49
=== gary_poster|away is now known as gary_poster
=== Ursinha-afk is now known as Ursinha
=== medberry is now known as med_
=== freeflying_away is now known as freeflying
=== railsraider_ is now known as railsraider
=== chmurifree is now known as chmuri
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
hallynpsivaa: you say "it is roughly 32MB overhead used i the smoke test" - not sure what yo umean by that.15:18
psivaahallyn: i meant amd64 limit was 32MB more than that for i386 minimal installs, for install_size:15:20
psivaahttp://bazaar.launchpad.net/~ubuntu-server-dev/ubuntu-test-cases/server-tests-raring/view/head:/testsuites/minimal-virtual/test_install_size/test.py#L4315:20
mgwI'm trying to figure out why my files in /etc are not being treated as described here: http://www.debian.org/doc/manuals/maint-guide/dother.en.html#conffiles15:45
ikoniamgw: what do you mean ?15:51
ikoniawhat's not happening that you expect to happen15:51
=== freeflying is now known as freeflying_away
mgwikonia: depending on the order of dh_installinit and dh_installdeb, they're either always or never replaced15:56
ikoniado you mean existing files are not replaced ?15:57
mgwI think I figured it out, I think it was the order in the old package15:58
=== Guest19773 is now known as mfisch
=== mfisch is now known as Guest56115
=== ersi is now known as ersi_
=== ersi_ is now known as ersi
=== PeterS is now known as PeterSchwaller
sarnoldhallyn: is this error message from useradd expected? "useradd: /etc/subgid konnte nicht gesperrt werden; versuchen Sie es später noch einmal." https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/127671418:03
uvirtbotLaunchpad bug 1276714 in openssh "package openssh-server 1:6.2p2-6ubuntu0.1 failed to install/upgrade: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück" [Undecided,New]18:03
hallynsarnold: hm, no;  did useradd previously hang or something?18:10
hallyndoes /etc/subgid show up in /proc/locks?18:10
hallynoh i see:  line above that says "useradd: existing lock file /etc/subgid.lock without a PID18:10
sarnoldhallyn: oh cool! I've not seen /proc/locks before.18:11
hallynsarnold: well i don't see anything in dmesg, but it sure looks like a previous usermod/userad mustve crashed18:12
sarnoldhallyn: any idea what would lead to a crash in usermod/useradd?18:12
hallynno.  i thought we were pretty well protected18:13
sarnoldsame here18:13
hallynrechecking termlog18:13
hallynwell there is: adduser: »/usr/sbin/useradd -d /var/lib/nfs -g nogroup -s /bin/false -u 142 statd« gab den Fehlercode 18 zurück. Programmende.18:14
hallynoh that came after the first lockfile18:14
hallyn<shrug>  cani reproduce?18:16
sarnoldI haven't tried18:16
hallynwell this is messed up.  ec2 host cant' fidn any nfs packages18:18
sarnoldhallyn: in a saucy VM I installed nfs-kernel-server without trouble. it obviously takes more than that alone..18:21
hallynsarnold: yeah ditto.  also can'tn reproduce it with 'for i in `seq 1 10`; do sudo usermod -w 90000-99000 ubuntu'18:23
sarnoldhallyn: well, alright, thanks for giving it a look. I'll keep an eye out to see if more like this show up..18:23
hallynsarnold: now really i guess usermod should remove the empty lock file if it exists.18:24
hallynsarnold: 'touch /etc/subgid.lock; usermod -w 99000-1000000 ubuntu' will never recover without manual intervention.  not sure if that's wanted18:24
sarnoldhallyn: it feels like cleaning up after stale locks is expected these days, but I understand the hesitation..18:25
hallynmight be worth asking for his /var/log/syslog{,.*}18:28
=== lynxman_ is now known as lynxman
=== pcwhite is now known as PaulW2U
=== Guest56115 is now known as mfisch
=== mfisch is now known as Guest73201
UnderbyteQuick question: when do the rules (conf files) for the cgrules and cgred daemon take effect? Do i need to restart my box? or will restarting the daemons suffice?20:31
jrwrennot what I want to see on Ec2: Feb  5 20:33:22 heed-1 kernel: [84730.984521] apt-get[6130]: segfault at 7f9fff1dd154 ip 00007fa0004b41c9 sp 00007fff37c00f70 error 6 in libapt-pkg.so.4.12.0[7fa0003df000+121000]20:34
sarnoldalmost nothing requires restarting the whole machine -- kernel upgrades require it, libc upgrades mostly require it. Most evreything else could be done some way to not require reboot..20:34
sarnoldjrwren: o_O odd.20:34
sarnoldUnderbyte: so, based on that, I think restarting the daemon should be sufficient :)20:35
jrwrensarnold: very odd. this makes me very sad.20:35
jrwrenoh well, worked around20:39
=== alaing_away is now known as alaing
sarnoldkirkland: I thought you'd like this http://blog.cr.yp.to/20140205-entropy.html20:41
=== rap424_ is now known as rap424
=== ossurayynot is now known as tonyyarusso
=== wam is now known as debugger
=== debugger is now known as wam
kermithow can i make apt install things without worrying about some unrelated broken dependancies?23:12
sarnoldkermit: what do you mean?23:13
bekkskermit: if you do so, you would break your box.23:14
bekkskermit: dependencies and the unability to ignore them being broken saves you from breaking your box.23:14
bekkskermit: Whats the actual problem leading to your question?23:15
kermitnot being able to install things with apt is fairly broken..  http://pastebin.com/M0RpwNVH    i dont want it to touch my pidgin setup, i want to keep the version i'm using.23:15
sarnoldhow on earth did you get your system so broken in the first place? o_O23:16
bekkso.O23:17
bekksWow, that looks broken far beyond messed up pidgin deps.23:17
sarnoldI mean, I can appreciate juts wanting to leave all that mess alone and getting bcrypt installed, but .. wow.23:17
sarnoldkermit: my first thought it abusing the equivs package to build up some fake packages with matching version numbers, but .. I don't think that would work well, since you want the real packages installed.23:20
sarnoldkermit: that'll be difficult to maintain.23:20
sarnoldkermit: good luck :) time for me to run23:20
=== freeflying_away is now known as freeflying

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