/srv/irclogs.ubuntu.com/2013/10/21/#ubuntu-server.txt

twbI'm rescuing a legacy 8.04 server, building a new array for it to live on.  Anybody remember if 2.6.24 supports mdadm --metadata=1.2 ?02:27
twbgit indicates mdadm metadata was versioned as at 2.6.12 (as far back as git goes), but I can't see where support for 1.x was added02:28
=== DWSR2 is now known as Guest36661
=== Gnubie is now known as Guest31084
=== wedgwood is now known as Guest73785
rostamPLEASE HELP: I need your help please. I have created automated ubuntu installed via dvd.  For that I have created preseed file and kickstart file. Now  I want to do the automated ubuntu install via usb stick.   All the instructions so far I have found out seems usb installer which I think is different than automating installations. PLEASE HELP04:28
twbrostam: using d-i or ubiquity?04:35
rostamtwb: I have done that, I have already created automated installation, the media however is dvd, I copied the same image to usb and it did not work?04:38
twbWhich are you using?  Are you using d-i?  Or are you using ubiquity?04:38
rostamI am using d-i04:39
twbOK.  Are you using preseed, or kickstart?  You mentioned both.04:39
rostamtwb: it is combination of both, I do have kickstart file and also preseed file. I can use paste bin if you want to look at the files?04:41
twbOK, I do not know about kickstart.04:41
twbWhat I mainly know is from the Debian Installation Guide (apt-get install installation-guide-amd64).04:41
twbAll you have to do is add preseed=<location> to the boot options, where <location> is somewhere the installer can reach -- e.g. if it is a netinst installer, it can't be on a USB disk04:42
twbYou can also pull apart the initrd and put it in there.04:42
twbNow, you said you're writing an existing DVD onto a USB key.  Because ISO 9660 is not a writable filesystem, you'll have to either remaster it or fiddle around if you want the preseed=<location> option to be present by default, without you having to retype it each time04:43
rostamtwb: thank, but let me ask you this, The iso image burned on DVD which works for me, if I copied to usb as it is that should work or I need to do some extra activity to work on usb?04:43
twbI don't know if current Ubuntu server install .iso is made using isohybrid.04:44
twbIf it is, you can write it directly to the USB key (e.g. dd if=foo.iso of=/dev/sdz) and it'll boot.04:44
twbIf not, it is more fiddly.04:44
twbISOs built using isolinux >= 4 can use isohybrid04:44
rostamtwb: oh okay thank you,  okay so where could I go check for isolinux version please?04:45
twbNot sure how to detect it04:46
twbEasiest would be to just try writing the ISO to a USB key and see if it's bootable04:47
rostamtwb: you have almost answered all my question, specially the isohybrid which I was not aware of that. thank you so much.04:48
twbrostam: but if it's isohybrid, it'll boot of USB but you won't have a preseed file on the same USB key, so you still need to deal with that04:50
twb# dd bs=512 count=1 < /srv/iso/cdimage.debian.org/cdimage/release/current-live/amd64/iso-hybrid/debian-live-7.0.0-amd64-rescue.iso  | file -04:52
twb/dev/stdin: x86 boot sector; partition 1: ID=0x17, active, starthead 2, startsector 64, 1388480 sectors, code offset 0xed04:52
twb...that's how you tell if it's already run through isohybrid04:52
rostamtwb: thank you thank you thank you.04:52
rostamI was lost completety04:52
twbWhat I mostly do is grab the netboot d-i kernel and ramdisk, and put them on a TFTP server, and do the whole install off PXE boot04:53
twbBut for that you really want a local apt mirror to make it nice and fast04:53
twbI think you can even apt-get install that stuff nowadays...04:53
twbHm, in debian there is stuff like this: debian-installer-7.0-netboot-amd64 -- I don't have a recent ubuntu server to compare04:54
twbhttp://cyber.com.au/~twb/snarf/netboot is the crappy script I'm running on my 10.04 netboot server -- it has the URLs for the boot stuff.04:55
rostamgreat that is great reference for me to start with.04:56
twbStrongly recommend you refer to installation-guide-amd64 docs also, that's where I learned most of this04:57
twb(appendices of that doc)04:58
rostamok will do that05:01
twbIf you're still stuck tomorrow, pm me directly -- I don't normally hang out here.05:02
rostamtwb: sure will do that thank you again. I have been stuck on this for last a few days. thank you05:03
foo357_Hello. I've got an ubuntu machine acting as a server for a web application (apache + tomcat, and postgresql backend)05:42
foo357_Yesterday the machine was updated, and the following packages were upgraded:  dpkg dpkg-dev libdpkg-perl libdrm-intel1 libdrm-nouveau1a  libdrm-radeon1 libdrm2 libglib2.0-0 libicu48 liblockfile-bin  liblockfile1 linux-firmware procps python-software-properties05:43
foo357_Now the web application is acting sluggishly05:43
foo357_CPU usage is minimal. Memory usage is ok I believe, there's a java process taking up 50% of the memory.05:45
twbDoes it normally take up 50%?05:45
twbIf you don't have performance monitoring already set up, it'll be harder to know what is unusual05:45
twbAlso desirable to find a quantitative metric, so you know when it's really fixed.  Confirm that the symptoms first appeared after upgrade -- might not be correlated.05:46
foo357_twb: I don't think java's memory grab is of any concern, that's how it ususally behaves, isn't it?05:47
twbCheck iostat, check for procs in D state, check logs for anything unusual/interesting.05:47
twbfoo357_: I think so, yes, but I boycott java wherever possible05:47
twbCould also take some tcpdumps between user and app, and between internal components (e.g. pg and app) to see if there are obvious latency problems and if so, where they are.  (tcpdump -s0 -wfoo.pcap, then wireshark -rfoo.pcap on a GUI system, Stats menu, also change the time column to be seconds-since-last-packet, I forget how.)05:49
twbWorth pinging app's devs if they have app-specific diagnosis hints, esp. if there is long turnaround time to get a response from them05:50
foo357_twb: hm, it seemed like the issue originated from the underlying network and some performance issue there. Ah, well, not my department :)05:56
=== gaughen is now known as gaughen_afk
vk01_The dns-nameservers variable in /etc/network/interfaces appears to be working inconsistently. I've checked the documentation at https://help.ubuntu.com/12.04/serverguide/network-configuration.html -- Is there anything else I should keep in mind when running multiple bridge interfaces?09:01
_rubendefine "inconsistently"09:08
_rubenvk01_: ^^09:08
vk01_@_ruben --- had to reboot the server last Saturday. Interfaces came up as planned09:10
vk01_Forced to do a reboot today --- cat /etc/resolv.conf defined no DNS servers09:10
vk01_It should be enough to define dns-nameservers under just br0, don't have to define it under br1 as well right?09:11
vk01_*"Interfaces came up as planned" --- meant that DNS servers showed up when I did cat /etc/resolv.conf09:12
_rubenOnce should be sufficient indeed. Not working with bridges myself though, so not sure if there's any caveats involving those09:12
vk01_Do you use static IP addresses with 12.04 server or newer?09:13
_rubenCould try moving the dns-nameservers line to the definition of lo09:13
_rubenYes09:13
vk01_I'll give that a shot, thanks. Wondering if it's worth removing resolvconf and doing it the old way09:14
_rubenI've pondered that as well in the past. Then again, the dns-nameservers always worked for me. Just needed to get used to putting it into /e/n/interfaces :)09:15
_rubenBut like I said, no bridges here, do use a lot of bonding/vlan tagging/bare interfaces tho09:15
=== shadeslayer_ is now known as shadeslayer
=== psivaa is now known as psivaa-lunch
=== zz_Gurkenmaster is now known as Gurkenmaster
=== psivaa-lunch is now known as psivaa
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== freeflying_away is now known as freeflying
gdoshttp://pastebin.com/d2GsbqWN - seems i can't remove a package. since this package is broke i can't seem to install, update, or upgrade other packages.13:43
=== Guest73785 is now known as wedgwood
=== freeflying is now known as freeflying_away
plodhey anybody got a similir problem to me, (saucy, phpmyadmin) the current server dropdown is not changing the servers unless i first click on a link in the main pane14:36
=== wam is now known as masses
=== masses is now known as wam
gdoshttp://pastebin.com/d2GsbqWN - seems i can't remove a package. since this package is broke i can't seem to install, update, or upgrade other packages.15:59
aarondsHi, what should I do if I have a command looking in the wrong place for an executable? (/usr/local/bin instead of /usr/bin)16:04
=== chuck_ is now known as zul_
=== mdeslaur is now known as chuck_
=== chuck_ is now known as mdeslaur
rtdosso i've installed both dhelp and dwww on my webserver but get the following *SIMILAR* errors in both (as well as my own webpages):   The requested URL /cgi-bin/dwww/usr/share/doc/ was not found on this server.16:58
=== gaughen_afk is now known as gaughen
mbnoimiWhat's the best and easy way to mange LDAP users? I tried to install phpLDAPadmin as mentioned in https://help.ubuntu.com/community/InstallingphpLDAPadmin but I failed to configure it17:26
=== psivaa is now known as psivaa-afk
rtdosso i've installed both dhelp and dwww on my webserver but get the following *SIMILAR* errors in both (as well as my own webpages):   The requested URL /cgi-bin/dwww/usr/share/doc/ was not found on this server.17:56
sarnoldrtdos: anything in the logs?18:00
rtdossarnold: how would i view the logs?18:00
=== chuck_ is now known as zul
sarnoldrtdos: check /var/log/, most services log to files in there.18:01
rtdosok gimme a sec.18:02
rtdosok, sarnold, here is the paste of /var/log/apache2/access.log: http://pastebin.ubuntu.com/6278330/18:05
rtdosandol, sarnold, here is the paste of /var/log/apache2/error.log: http://pastebin.ubuntu.com/6278339/18:06
rtdosersi, sorry andol: that was a typo.18:06
rtdosdamn spelling checker.18:06
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
jiboumansIn varnish 3, how do I tell the difference between a backend actually giving me a 503 response, and the backend being too slow to answer, and hitting varnish' timeout for the backend?18:54
jiboumans(in vcl specifically, not varnishlog)18:54
rtdosso i've installed both dhelp and dwww on my webserver but get the following *SIMILAR* errors in both (as well as my own webpages):   The requested URL /cgi-bin/dwww/usr/share/doc/ was not found on this server.19:54
LowninI have a really simple mysql backup script that works when I invoke it manually, but cron isn't executing it.  I don't see anything in the syslog about it. the script is here http://pastebin.com/ce4GJJXC The permissions on it are -rwxr-xr-x.  Can anyone help me figure out why it's not working?20:06
raubLownin: is that the cron file?20:15
Lowninraub: no it's a script I put in cron.daily20:16
raubLownin: how about starting a bit more humble?20:18
raubCreate a cron.hourly file that does notthing but echo something to a /tmp/file20:18
raubLownin: I myself usually create something in cron.d20:19
LowninI can do that.20:19
raubSo I can set the time I want it to run20:19
Lowninraub: this is a pretty venella install of ubuntu server 12.0420:19
raubI have not had much luck with cron.daily :)20:20
raubso I just use cron.d20:20
raubi.e. if i were in your shoes I would move your file to /usr/local/bin/take-a-dump20:21
rauband then create /etc/cron.d/take-a-dump, which looks like this20:21
raub15 3 * * * root  /usr/local/bin/take-a-dump20:22
raubonce that works, add the opton to send stder to syslog/whever20:22
raubLownin: that is IMHO. /etc/cron.d/take-a-dump does not even need to be executable20:24
rtdosso i've installed both dhelp and dwww on my webserver but get the following *SIMILAR* errors in both (as well as my own webpages):   The requested URL /cgi-bin/dwww/usr/share/doc/ was not found on this server.20:24
raubrtdos: you know for sure you want to have that dir, right20:25
rtdosraub: i do.20:25
rtdosat least i think i do.20:26
rtdosi do have it in /usr/share/doc20:26
raubKinda odd it is in cgi-bin20:26
rtdosraub: i used the default settings for dhelp/dwww as well as for apache220:26
rtdosit's almost as if apache2 is messed up.20:27
raubrtdos: I've never used dhelp/dwww, but do know apache has config files in /etc/apache2/sites-enabled telling where things are supposed to be20:27
rtdosraub: ok. hold on. i'll double check.20:28
raubrtdos: the message seems to indicate it is trying to find a dir in the wrong location20:28
rtdosraub: the only file there is 000-default.conf20:29
raubis it pointing to the right locations?20:29
rtdosraub: to /var/www correct?20:30
rtdoswhich means i would have to link /usr/share/doc to /var/www then?20:30
raubIt depends on what rwww/dehlp wants. Docs better help20:30
raubMaybe20:31
rtdosok. seeing if either have man pages.20:31
raubrtdos: you now know what the problem is. Might be able to find in the installation docs for thos eprograms what it wants20:31
rtdosraub: looking at dwww.conf now20:33
=== Gurkenmaster is now known as zz_Gurkenmaster
raubOct 8, 2013 15:03 from Capa20:47
raubIt's mostly the gas-wasting light trucks and SUVs that use the oil ... 30% goes20:47
raubinto truck/SUV tanks.20:47
raubThey average 19mpg according to http://en.wikipedia.org/wiki/Criticism_of_sport20:47
raub_utility_vehicles#Fuel_economy20:47
raubCars are the next largest consumers of oil at 28%.20:47
raubThen large trucks 20%.20:47
raubAircarft 9%20:47
raubBoats 4%20:47
raubTrains and buses 3%20:47
raubMilitary 3%20:47
raub[Planes Trains And Automobiles> msg #105690 (78 remaining)] Read cmd ->20:47
raubSorry for that20:47
raubwrong screen tab20:47
rtdoshahahaha...20:48
rtdosraub: in the config file for dwww it looks like /cgi-bin/dwww/doc/HTML is commented out. i un-commented that line. how do i re-start apache2?20:52
hitsujiTMOrtdos: sudo service apache2 restart20:54
hitsujiTMOrtdos: or: sudo service apache2 reload     to just reload configs20:54
rtdoshitsujiTMO: thanks.  'restart' also reload configs as well, correct?20:55
hitsujiTMOyes20:55
hitsujiTMOit just doesn't bring the daemon to a halt20:55
hitsujiTMOit just doesn't bring the daemon to a halt if you just reload20:55
rtdosoh, ok.20:56
rtdosthis is the message i get now: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message20:56
rtdosi thought i had it set to my servers name. that is set in apache2.conf correct?20:56
hitsujiTMOrtdos, you can set it anywhere as long as it's global ...21:02
hitsujiTMOyou can also ignore the error if you wish21:02
rtdoshitsujiTMO: ok. doesn't look like it worked. neither dhelp nor dwww are loading anything from /usr/share/doc/HTML in the browser.21:03
hitsujiTMOrtdos are there any errors in the global log in /var/log/apache2/error.log ?21:04
rtdosthough typing my host or localhost - http://localhost - works fine.21:04
hitsujiTMOcan you post your virtualhost config?21:05
rtdoshisujiTMO: here is the output of /var/log/apache2/error.log - http://pastebin.ubuntu.com/6279342/ - where would i find the virtualhost config?21:06
hitsujiTMO/etc/apache2/sites-available    should be the non ssl one21:06
hitsujiTMOhmm indeed no errors21:07
hitsujiTMOwhere is the directives for /usr/share/doc/HTML declared?21:08
rtdoshitsujiTMO: i'm not sure where the directies for /usr/share/doc/HTML are declared but here is the output for /etc/apache2/sites-available - http://pastebin.ubuntu.com/6279369/21:10
rostamHI all, for ubuntu 12.04 update 3 I get the following error:  lib32gcc1: Depends libc6-i386 (>= 2.11) but it is not going to be installed21:11
hitsujiTMOrtdos whats the output of: ls -l /var/www21:14
raubrtdos: http://manpages.ubuntu.com/manpages/jaunty/man8/dwww.8.html21:14
raubi think that might be helpful21:16
hitsujiTMOrtdos can you post: /etc/dwww/apache.conf21:17
raubhitsujiTMO: kinda silly they are running a separate apache21:19
hitsujiTMOraud: maybe not, could be a global directive21:20
raubhitsujiTMO: you have a point there21:20
rtdoshitsujiTMO: the output of ls -l /var/www is - total 821:52
rtdosdrwxr-xr-x 4 root root 4096 Oct 21 15:11 dwww21:52
rtdos-rw-r--r-- 1 root root  177 Oct 20 22:31 index.html21:52
rtdossorry, i should've used pastebin for that.21:52
sarnoldtwo lines is usually fine..21:53
hitsujiTMOrtdos whats happening for http://localhost/dwww   ?21:53
rtdoshitsujiTMO: there is no /etc/dwww/apache.conf but when i type http://localhost/dwww it loads fine except when i try view a document in /usr/share/doc(/HTML) folders.21:54
sarnoldRoyK: hey, you use zfs right? have you written anything about your experiences using it? I've gone through a pile of the official docs and would like the perspective of a user now.. :)22:04
=== gallomimia is now known as Gallomimia
gdoshitsujiTMO: even running dpkg-reconfigure on dhelp and dwww didn't work.22:45
gdoshitsujiTMO: i think i know what the problem is. in /usr/lib/cgi-bin both dwww and dhelp are symbolic links to files and not directories. how can i fix this?22:54
hitsujiTMOthey should be symlinks to files. they are executables22:56
gdoshitsujiTMO: but why would i get this error: "The requested URL /cgi-bin/dwww/usr/share/doc/ was not found on this server." - wouldn't that indicate that a /usr/share/doc is not symbolic linked to /usr/lib/cgi-bin ?22:59
gdosthis is the URL that is returned from dwww when i attempt to click on the 4th menu option at the top: http://localhost/cgi-bin/dwww/usr/share/doc/?type=dir22:59
hitsujiTMOgdos: cgi-bin/dwww is the executive usr/share/doc/?type=dir would be params ... could be a rewrite issue.23:01
hitsujiTMOdgos: ls -l /etc/apache223:02
gdoshitsujiTMO: http://pastebin.ubuntu.com/6279905/23:09
hitsujiTMOls -l /etc/apache2/conf.d23:10
hitsujiTMOls -l /etc/apache2/conf-available23:10
gdoshitsujiTMO: here is the output of /etc/apache2/conf-available/serve-cgi-bin.conf file: http://pastebin.ubuntu.com/6279937/23:18
gdoshitsujiTMO: here is the output of ls -l /etc/apache2/conf.d: http://pastebin.ubuntu.com/6279943/23:19
gdoshitsujiTMO: here is the output of ls -l /etc/apache2/conf-available: http://pastebin.ubuntu.com/6279947/23:20
hitsujiTMOgdos can you post your apache2.conf from /etc/apache223:21

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