=== Pupeno_W_ is now known as Pupeno_W === cpg is now known as cpg|away === cpg|away is now known as cpg === cpg is now known as cpg|away [00:54] Hello, I followed the server guide for installing rails, and I don't see how to actually serve the application. does apt-get install rails install Passenger / mod_rails ? [00:57] is it possible to add a cron job to be executed as my user account but start when the system reboots? [00:58] or woudl that be accomplished some other way? [00:58] Can someone help me with an Ubuntu Server installation? [00:58] it's ZNC [00:59] The problem is that I need to use a USB to install the server, yet I cannot find the Ubuntu Server 12.04 on the Universal USB Installer. I have downloaded the ISO. Any suggestions? [01:01] irv: crontab -e as your user, afaik you can only do it on a time-basis but you could insert other logic into your script [01:01] umopaplsdn: I just did this yesterday, it's below Ubuntu Studio 12.04 [01:01] umopaplsdn: it's like Ubuntu Server Installer 12.04 [01:01] Okay, thanks! [01:01] I'll take a look. [01:02] Oh I see... Odd place to put the server installer [01:02] Thanks, found it. [01:02] yeah I was kind of surprised [01:02] See ya'! [01:02] l8r [01:03] * PineappleCLock redacts question [01:03] zakk: hmm, like i have a cronjob doing it that i added as my user [01:03] but it only launches ZNC when i login to the VM [01:03] the cron line is */2 * * * * /usr/bin/znc >/dev/null 2&1 [01:04] irv: I would just run that as a service via init scripting [01:08] that was my next option, but this was the only thing outlined in the ZNC faq [01:08] :P === bazhang_ is now known as bazhang [01:10] I'm not familiar with znc, but it sounds like a service [01:10] so I'd run it and just have the init script su - to myuser [02:38] hey guys. i am hammering a new ubuntu server with tons of connections, i was running centos for my application before with no problems... For some reason i am getting a lot of connection time outs when establishing connections both mysql 3306 and redis 6397... first i found that syn flood protection was blocking some stuff, so i managed to turn that off. but im not sure to see where else [02:38] or why else connections are timing out as far as logs or perhaps if its a ulimit issue? [02:41] any ideas fellas === jfluhmann_ is now known as jfluhmann [02:59] how can I tell the ubuntu server partitioner to use GPT partition tables? It keeps wanting to make a legacy MBR partition table, and the usual utilities (parted, gdisk) aren't present on the installer. === cpg|away is now known as cpg === cpg is now known as cpg|away === cpg|away is now known as cpg [04:26] New bug: #998504 in samba (main) "samba generates errors when installing. Also have problems with samba4. Tried uninstalling and reinstalling." [Undecided,Expired] https://launchpad.net/bugs/998504 [04:26] New bug: #1000716 in php5 (main) "libapache2-mod-php5/php5-fpm post-inst script segfaults (exit status 139)" [Undecided,Expired] https://launchpad.net/bugs/1000716 [04:27] New bug: #993657 in samba (main) "package samba 2:3.6.3-2ubuntu2.1 failed to install/upgrade: subproses skrip post-installation terpasang menghasilkan kesalahan status keluaran: 1" [Undecided,Expired] https://launchpad.net/bugs/993657 [04:27] New bug: #994160 in memcached (main) "package memcached 1.4.13-0ubuntu2 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1" [Low,Expired] https://launchpad.net/bugs/994160 [04:27] New bug: #995449 in php5 (main) "cannot install package php5-intl on 12.04 (Precise)" [Medium,Expired] https://launchpad.net/bugs/995449 [04:27] New bug: #995939 in mysql-5.1 (main) "package mysql-server-5.1 5.1.62-0ubuntu0.11.04.1 failed to install/upgrade: el subproceso instalado el script post-installation devolvió el código de salida de error 1" [Undecided,Expired] https://launchpad.net/bugs/995939 [04:27] New bug: #996293 in samba (main) "Cannot login using active directory users ( Unknown id: $username )" [Medium,Expired] https://launchpad.net/bugs/996293 === cpg is now known as cpg|away [04:49] I'm having trouble getting php5 to execute scripts on an apache2 install, it's just displaying the scripts. Anyone who can help? === cpg|away is now known as cpg === cpg is now known as cpg|away === n0ts is now known as n0ts_off === n0ts_off is now known as n0ts === cpg|away is now known as cpg === Lcawte|Away is now known as Lcawte === philipballew__ is now known as philballew === n0ts is now known as n0ts_off === railsraider_ is now known as railsraider [08:23] I wonder why I didn't hear about the RAID write hole until now that I actually decided to go RAID [08:23] now that I know about it, it's the first thing I would tell people if they asked me advice about RAID :) [08:25] now I wonder how to deal with it [08:25] would an UPS be sufficient? [08:26] raid hole? [08:26] http://en.wikipedia.org/wiki/RAID_5_write_hole [08:27] I also understand now that ZFS was invented to deal with just that [08:28] raid5 :) [08:28] http://www.raid-recovery-guide.com/raid5-write-hole.aspx [08:28] nah it's in all of them [08:28] raid cards should allways have a battery [08:29] ok, but what about Linux Software RAID ? [08:30] ups, of course [08:30] yeah, so I'm looking for one now [08:30] this isn't a big problem [08:30] and I presume for an UPS to have any significant impact, you need some kind of software to listen to the UPS and gracefully shutdown on errors? [08:31] like http://www.apcupsd.org/ [08:31] but does it run in Ubuntu ? [08:31] that's a definition of ups :) [08:31] does APC deliver that software? i tried to read manuals, couldn't find info [08:31] and this problem is not frequent [08:31] frequent or not.. silent data corruption sounds pretty bad to me [08:31] all major companies work with nut [08:31] I choose RAID to secure my data, not to corrupt it :) [08:32] nut? [08:32] and support its development [08:32] im a SOHO user [08:32] nut, yes [08:32] apt-cache show nut [08:32] http://www.networkupstools.org/ [08:32] sudo apt-get install nut ? [08:32] sudo service restart nut [08:32] voila? [08:33] you need to configure it, of course [08:33] for your ups [08:33] need to find compatible ups too I guess [08:33] http://www.networkupstools.org/stable-hcl.html [08:35] but why not http://www.apcupsd.org/ if I buy APC anyway [08:35] that's also an option [08:36] I don't need a big battery or anything, and I don't need uptimes at all.. i'm only buying UPS to avoid write hole and as surge protection.. so 1-2 minutes of shutdown time for 2 mini servers at less than 50W each [08:37] my apc is buggy on 10.04 lts, your mileage may vary [08:37] i had no problems with eaton, powerware and blazer [08:37] ivoks, can you narrow those 3 down to 1 recommendation? :p [08:37] the ups itself is fine, it just loses it's connection to apcupsd constantly [08:38] zastaph: i can't - check them out, see what you can get and what prices are affordable for you [08:38] with so many UPS options I figure I'd spend all day picking one :p [08:39] the joy of linux.. reading about hardware support [08:40] i've seen hardware that doesn't work with windows [08:40] actually, i see it on a daily basis :) [08:41] yeah but all hardware vendors write on their support page if they have windows or mac.. for linux you need to search elsewhere :) [08:41] speaking of, did you see http://liliputing.com/2012/05/first-look-at-project-sputnik-dell-xps-13-ultrabook-with-ubuntu-linux.html [08:42] I'd like that,but seems not quite finished/supported http://hwe.ubuntu.com/uds-q/dellxps/ [08:43] yes, i've seen it [08:44] and, afaik, multitouch has been resolved since then [08:45] lol that video just shows that trackpoint is unbeatable innovation :) [08:46] Dell is on the top of the list for hardware certification http://www.ubuntu.com/certification/desktop/ [08:46] yet a laptop has to be customized for ubuntu and even that isn't finished :) [08:47] i think hardware support is what prevents me from going full ubuntu [08:47] for desktop that is :) [08:48] that's a list of machines that were given to get certification [08:49] it's in no way full list of working devices === almaisan-away is now known as al-maisan [08:51] I also wanted to try to install it on a macbook: https://help.ubuntu.com/community/MacBook [08:52] but reading that list of different side-effects on all versions of Macbook matched with all versions of Ubuntu made me change my mind :) [08:53] anyone here ever setup sanlock with kvm? [08:54] ubuntu for Slate computers also seems risky https://wiki.ubuntu.com/ARM/TabletList [08:55] ivoks, seems powerware is eaton [09:03] * RoyK has a pandaboard with precise ;) [09:06] smoser: sorry, I wasn't around. Ping me when you get in if you like. [09:09] I presume you connect an ups to your servers with one power cable and one usb cable? so to notify 2 servers about power failure I need one that has multiple USB.. seems the cheap ones only has 1 [09:14] http://askubuntu.com/questions/107883/how-to-use-a-eaton-3s-700va-ups-with-ubuntu-server [09:14] if my power goes, the network goes [09:15] so I guess servers would shutdown alone if the network went [09:23] zastaph: if the UPS can't hold power sufficiently long for the servers to be shut down, ten get a new UPS :P [09:24] ahh the switch will also be on ups, but my internet router will be in another room.. but i guess that wont break the LAN === mrevell_ is now known as mrevell [09:28] but the router is the DHCP server [09:28] so probably it will break something on the LAN [09:31] oh well I only have 1 server with valuable files on.. the other server is a backup server, and I guess it wouldnt be disaster if it wasnt rock solid [09:32] but then the UPS battery will always be emptied, if even some units attached aren't aware of the power fail [09:34] Hi i am trying to create clustered lvm but i can not pass "vgcreate --clustered y my group" command on 10.04. am i doing something wrong? === railsraider_ is now known as railsraider === railsraider_ is now known as railsraider === cpg is now known as cpg|away [09:56] New bug: #1025595 in tomcat7 (main) "tomcat7 test failed: AssertionError: ['tcp6 0 0 :::8080 :::* LISTEN 898/java '" [Undecided,New] https://launchpad.net/bugs/1025595 === n0ts_off is now known as n0ts [10:09] after enabling sssd via pam and nsswitch.conf shouldn't i be seeing all my users (from sssd domain[s]) with getent passwd? [10:19] with sssd debug level 0x1310 i cannot see anything related to authentication when i try to login into the system; any ideas? [10:20] auth.log has: pam_sss(sshd:auth): received for user reisi: 10 (User not known to the underlying authentication module) === railsraider_ is now known as railsraider [10:23] rbasak, around? probably easier to discuss that jenkins thing [10:23] jamespage: yes [10:24] rbasak, just reading - does this stuff run in a jenkins job? [10:25] jamespage: yes - the code you see creates the jenkins job with that as the contents [10:25] jamespage: although, that's odd. It expects to be at the root of the checked out tree [10:26] I'm not sure I follow what Al's doing any more [10:26] Won't he end up two levels higher if he does that? [10:26] ahs3: ^^ [10:26] rbasak, me neither - I think I'm lacking context as to what he's trying todo [10:27] rbasak, do you inject config.xml files directly into the filesystem; or do you use the REST API through python-jenkins? [10:27] API [10:27] rbasak, right-oh === jibel_ is now known as jibel === al-maisan is now known as almaisan-away [10:59] zul, adam_g: did I see some crazy mad talk about adding nodejs to the dependencies of horizon? [11:01] is it possible to buy a RAID BBU cheap? [11:02] BBU ? === matsubara is now known as matsubara-afk [11:07] <_ruben> depeonds on the raid controller obviously [11:07] <_ruben> but they're easily close to $100 [11:10] I dont want to use hardware raid because if the card breaks I need to find an exact match [11:10] but I thought about using just the BBU part of the card [11:10] sounds complicated [11:10] BBU = battery backed cache? [11:11] lots of raid on ebay, right? [11:11] just buy a popular used one [11:11] what's a BBU ? [11:11] is it possible to use an SSD for raid cache, as replacement for BBU? [11:11] anything to prevent raid write hole [11:11] zastaph: I wouldn't suggest that [11:12] zastaph: you want a crappy host raid card, they are cheap, you want a quality true hardware raid controller, they are not [11:12] I just want to setup a server and sleep well at night [11:12] then buy a hardware raid card [11:12] (that has good linux support, eg: 3ware, LSI) [11:13] and if the card breaks in 4 years when they are discontinued? [11:13] then replace with a different card [11:14] or buy from an EOL supplier [11:14] I read that you can't just get your data back if a hardware raid card breaks [11:14] that isn't true [11:14] are you doing a stripe or a mirror ? [11:15] i don't know.. 2 servers with 4 disks.. probably 5/6 for backup server and 10 for file server [11:15] well, the mirror certainly shouldn't be a problemn to revover from, [11:15] 3ware/LSI over budget [11:15] the stripe, I guess it depends on the mechanism it uses [11:15] zastaph: then you need to accept the limitations of your budget [11:15] <_ruben> safety costs money [11:16] <_ruben> and no, using a bbu without a raidcontroller is not possible [11:16] the good thing with the LSI/3ware you can upgrade your card model and the raid is still valid [11:16] <_ruben> well, zfs with its cache on ssd is as close as one gets i guess [11:16] so.. if I get an UPS, would it be safe enough? [11:16] you don't even have to rebuild the array, I moved from an 8 series to a 9 series card without issue [11:16] zastaph: it's up to you what you consider safe [11:16] <_ruben> ups wont help if your system crashes [11:17] zastaph: you don't lose your IP if the DHCP server goes down [11:17] RoyK, yeah I figured that too :) just need to choose the right UPS [11:18] errr, UPS isn't really the priority here. [11:18] someone here must use UPS? and have good or bad experiences with ubuntu server [11:18] unless I've missunderstood [11:18] I use many small and enterprise UPS devices [11:18] small [11:18] not interested in uptime at all [11:18] APC [11:18] data safety all the way [11:18] then why are you buying UPS [11:18] I have two in my house [11:18] if you are not interested in uptime [11:19] to avoid raid write hole [11:19] and power surges [11:19] UPS will only give you safe shutdown in the event of power loss [11:19] <_ruben> a raidcontroller with bbu would be more usefull than a ups [11:19] yeah, === railsraider_ is now known as railsraider [11:21] seems complicated to install one in my hp microserver [11:21] if there's even space for it [11:21] I don't have enterprise needs.. I just want to protect my data [11:22] <_ruben> as stated before, everything has its price :) [11:23] ok i'll accept my limitations :) btw. are some RAID setups more prone to write hole than others? [11:23] there gotta be a reason it's refered to as raid 5 write hole [11:24] and I also read about software that can detect write holes.. perhaps I can accept the unlikely chance of having one, but then I would like to detect it early [11:26] <_ruben> not using raid5 would be another option obviously [11:26] yeah I thought about not using RAID at all [11:27] but then 4 2TB disks suddenly seems like an awful waste :) [11:27] i thought about some kind of rsync replacement [11:27] to deal with mirroring [11:29] but as I read it, all RAID types (except ZFS) has write holes [11:29] unfortunately using ZFS requires you to deal with operating systems miles from ubuntu server in usability [11:33] have you ever configured raid in your life? [11:36] never :) [11:36] but my theory is getting stronger [11:36] i am "trying " to understand openstack , i have test website installed and it was working as expected but after installed some packages and openstack my default web site is showing ubuntu openstack dashboard page with username and passwd option how do i fix this or how do i trace this [11:37] <_ruben> raid5 isn't the only raid level.... [11:37] jamespage: if i can avoid it [11:37] ruben, I know, and? as I wrote the other raid level has the write hole too [11:38] ikonia, what UPS did you have, and do they play well with ubuntu server? [11:39] <_ruben> zastaph: as i read it (only read the wikipedia article on it), it'd be limited to raid levels that use partiy, so raid1 and raid10 for instance don't suffer from it [11:39] <_ruben> sure, corruption can still occur [11:39] ruben, http://www.raid-recovery-guide.com/raid5-write-hole.aspx [11:40] <_ruben> if a disk is starting to fail, you can get corruption as well, raid or not [11:40] ok so what's difference betwene write hole and corruption? [11:40] that link says RAID 10 inherits it from RAID 1 [11:40] <_ruben> write hole appears to be just one example of possible corruptions [11:41] zul, that would be good.... its extremely fast moving so not really suitable for LTS style support IMHO [11:41] <_ruben> ah, then it's just a name to indicate any "raid-related" corruption after all [11:41] probably [11:41] <_ruben> with raid5 a write failure could go undetected, with raid1 it would be detectable [11:41] notice the list of tips to reduce the effects below [11:41] UPS and "Synchronize your array regularly" [11:42] I wish he would specify how [11:42] zastaph: I'm using APC, yes they work fine [11:42] ikonia, nut or apcupsd [11:43] apcupsd [11:43] and you have 2 because they control 2 computers I guess? why not 1 to control all [11:43] I have one because I have two setups, one in the cellar and one in the attic [11:44] they power 2 - 3 devices each [11:44] give approx 15 - 20 minutes of run time to the 2 - 3 devices and a clean shutdown and alert [11:44] and i presume they only have 1 usb? so the other 1-2 devices gets notified by network from the master computer? [11:44] correct [11:44] there is a script on the master that will shutdown the other 2 and the master shutdown gets invoked from the unit [11:45] how often do you change the battery [11:45] not changed either in 2 years [11:45] still showing %100 charge [11:45] isn't 15-20 minutes overkill simply for shutting down? [11:45] the two power outages I've had they have both held up exactly as expected [11:45] the batter test option is still showing fine [11:45] zastaph: it doesn't shutdown until it's a confirmed long outage [11:45] I don't want to shut everything down if it's just a little blip [11:46] right [11:46] I think the threshold is 7 minutes-ish I set on the delay [11:46] I can't remember, it's 2 years ago [11:46] and surely you tested it :) [11:46] yes, and I've had 2 unplanned outages that worked fine [11:46] (I may have had more, but I can only think of two) [11:47] I've had a few blip outages of 90 seconds or less that obviously didn't cause a problem [11:47] the two outages that where long ones worked fine [11:47] recall the model number? [11:47] hang on [11:47] I'll see if it's on the site [11:48] although I'd still suggest you invest in a proper raid card over a ups [11:48] don't think I have this option with my 2 atom based mini servers :) [11:48] Pro 900 [11:49] <_ruben> must be tiny instead of mini servers, if there isn't room for add-in cards [11:49] I do have a 3rd the pro 550, but that's not hooked up to computer equipment, that's powering my PVR and a few other odd house hold items [11:50] I suspect the 550 would be perfect for your needs [11:52] even just backups ES series (not pro) might be [11:53] I'm not sure how the shutdown stuff works on the ES stuff, I wasn't convinced by it when I looked [11:53] things may have changed [11:54] it's terrible how many different models they have :) === almaisan-away is now known as al-maisan [12:19] http://justwhatdoyouthinkyouredoingdave.blogspot.com/2012/06/ubuntu-nas-zfs-on-hp-microserver.html [12:19] native linux ZFS filesystem ? [12:25] As of June 2012, the port is in release candidate status for version 0.6.0, which supports mounting filesystems [12:25] not ready for production i presume? === randy_ is now known as JaceAlvejetti [13:05] zastaph: i just tried out zfsonlinux.org for server usage; basically it's not there yet [13:05] thought so [13:05] zastaph: if you want to try it head over to #zfsonlinux [13:06] zastaph: you'll need to use spl and zfs from the gentoo branch of ryao, and patch a custom kernel [13:06] in other words, no thanks :) [13:06] zastaph: last is optional, but basically required as it could cause rare deadlock [13:07] i could imagine not using raid at all [13:08] zastaph: i tried it with ryao's branch but without the kernel patch, everything worked out nicely, even with swap over zpool, but the discussion over the kernel patch lead me to believe it's rather essential [13:08] just the word branch makes me say no thanks :) if the master branch isn't capable i'm not joining yet [13:09] also.. ZFS is all about revisions .. with RAID there's no revision.. it's just RAID :) [13:10] if you mean RAID == mdadm there are revisions as well, but i guess those happen less "often" (not that zfs upgrades that often it'd seem) [13:11] well RAID = mdadm has multiple format revisions, there are dataformats as well e.g. ISMS/DDF, and hardware raid controllers... [13:11] for someone that is so afraid about exceptionally rare problem, you are buying a server that will probably crash and burn before you ever see 'raid hole' [13:11] usually borked hw controller means you need to find the exactly same matching controller... [13:12] if you have so precious data, which even backups can't restore, then you should buy a DC, not a microserver [13:13] DC with bunch of servers, replication and hardware raid cards of $500+ [13:13] apparently i jumped into the middle of the conversation.. [13:13] :) [13:14] xnox: not exactly the same, but from the same vendor [13:14] I like zfsonlinux for my file server at home, but wouldn't run it on a production server :P [13:14] ivoks: some vendors don't tell you which controllers are compatible, and if you bought one 10 years ago.... [13:16] Exopaladin: exatcly; but i guess it'll be ready for server testing soon, i hear some are already running off btrfs as well :) [13:17] I'd almost trust zfsonlinux more than btrfs, the fact that their latest news announcement says they now have an fsck that fixes *some* problems isn't exactly encouraging [13:18] pretty hard to argue btrfs's stability when Oracle have deemed it production ready [13:18] problem is I don't know how rare write hole is.. and I don't know how serious it is when it happens.. is it a hole that keeps digging itself deeper, or is it just a corruption that occurs on the active file being written to during power outtage ? [13:20] Eaton Ellipse ECO line of UPS's look nice [13:20] and they verified to me that their own software is ubuntu compatible [13:22] http://pqsoftware.eaton.com/explore/eng/ipp/default.htm?lang=en === n0ts is now known as n0ts_off === zyga is now known as zyga-afk [13:38] I cant run a .jsp or .war by tomcate. i have mady /user/www as my apache dir for php and html files and place .jar and .war in that too. https://help.ubuntu.com/12.04/serverguide/tomcat.html#tomcat-configuration i cant get help from httpd or tomcat channels [14:02] maplesoft, I think I understand your question [14:02] tomcat won't by default look for war/.jsp files in /usr/www [14:03] each war file (which can contain .jsp's) must be placed in /var/lib/tomcat6/webapps [14:17] jamespage hm... when i type mydomain.com:8080 it shows ....."it works. " so where is that file that sys that? [14:19] jamespage It works! [14:19] This is the default web page for this server. [14:19] The web server software is running but no content has been added, yet. [14:19] where is this file located? [14:34] the mysite.com:8080/index.jsp starts downloading . not executing. so tomcat is not running. but it it is running and thats why i can see index.html on port 8080 ( mysite.com:8080 ) . what is happening? === al-maisan is now known as almaisan-away [14:44] * maplesoft waits [14:48] maplesoft: check your logfiles they can you tell what is happening better than we can [14:55] phew, took 5 hours to narrow down the options for UPS to a purchase :) [14:59] tomcat runs .html files in /var/www on its default port of 8080 but does not runs .jsp files . instead it starts downloading them. why is that? === zyga-afk is now known as zyga [15:08] no wonder noone fixed the raid 5 write hole yet, it's patented: http://www.google.com/patents/US7069382 [15:09] * ogra_ is happy to live in times where you can patent a hole [15:09] * xnox wonders if my hole is patented.... [15:10] xnox, does it use multiple holes to merge to a big raid-hole ? then it might :) [15:11] funny you should say that [15:12] zastaph: zfs / wafl solves raid 5 write hole another way, by cow [15:13] yes but zfs on linux is "pre-alpha" according to someone, and "release candidate" according to others [15:13] and I guess discussing opensolaris selections in here is not appropriate :P === n0ts_off is now known as n0ts [15:19] maplesoft, tomcat does not server files in /var/www [15:19] are you sure that apache is not serving them? [15:23] jamespage apache is stopped [15:24] jamespage service apache2 status [15:24] Apache2 is NOT running. [15:24] jamespage please stick with me for some time [15:24] maplesoft, and tomcat is? [15:25] 'instead it starts downloading them. why is that?' would indicate that tomcat is NOT serving those files [15:25] * Tomcat servlet engine is running with pid 19127 [15:25] i have place files in /var/www [15:25] maplesoft, 'It works!' is the default page for apache2 [15:25] yes. [15:25] which would be configured to serve files from /var/www [15:28] jamespage mysite.com:8080 gives me the file in /var/www [15:29] jamespage what is ihappening [15:30] maplesoft, from the information you have provided I have no idea [15:30] take a look in /var/log/apache2 at the access log - this might tell you something [15:30] jamespage ok. where the default file location for tomcat is confgured/changed? [15:30] smb: hi, is nfs expected to work in quantal right now? [15:31] i've got two instances running latest quantal. /etc/exports has '/mnt (rw,no_root_squash,no_subtree_check)', did exportfs -a, but the other host hangs when i try mount -t nfs -o rw ip:/mnt /mnt ... [15:31] maplesoft, I think you are trying to think of tomcat like apache [15:31] its quite different [15:31] i know we've switch to nfs by default being nfsv4, but... [15:32] everything gets deployed as web applications (.wars) [15:32] hallyn the client mounting stuff should see something in system logs [15:32] maplesoft, which reside in /var/lib/tomcat6/webapps [15:32] or the server might, too [15:32] maplesoft, the ROOT directory containing the context that maps to / [15:32] beandog: doesn't. just get 'timed out' after awhile on the client [15:33] if you want to deploy .jsp's they must be contained in a web application under that directory [15:33] where? [15:33] maplesoft, each web application sits on a 'context' - for example /var/lib/tomcat6/webapps/ubuntu-test.war would sit under the /ubuntu-test context by default [15:34] make sense? === n0ts is now known as n0ts_off [15:34] jamespage where do i need to put the .war file/ [15:34] maplesoft, /var/lib/tomcat6/webapps/ [15:35] maplesoft, I think it can also just be a directory within that path - I don't normally deploy that way. [15:35] jamespage iam following http://www.igniterealtime.org/projects/openfire/plugins/webchat/readme.html [15:35] d'oh, server reboot fixed it [15:36] i should not put it in /var/lib/tomcat7/webapps/ROOT but in /var/lib/tomcat7/webapps/someDir? [15:36] jamespage ^ [15:37] maplesoft, probably - assuming 'it' is the webchat application and it is a war file [15:38] jamespage but any way. why is the file index.html in /var/lib/tomcat7/webapps/ROOT not showing up on mysite.com:8080 and why the file index.html on /var/www show up when apache is stopped [15:39] maplesoft, I really have no idea - have you tried restarting tomcat7? [15:39] mm. no [15:40] it might be you are getting a cached version of something... [15:40] just a thought [15:45] utlemming, bug nominations accepted [15:45] mr jamespage: most appreciated === dendrobates is now known as dendro-afk [15:55] jamespage well its pointing at /var/www [15:56] jamespage where is the config to change the default directory for tomcat7 ? [16:01] ttfn === railsraider_ is now known as railsraider [16:21] rbasak, I think we need to re-consider the approach for the apache2 SRU/bug 988819 [16:21] Launchpad bug 988819 in mod-proxy-html "[SRU] wrong path to libxml2.so.2 in mod_security - broken by multiarch enabled libraries" [Undecided,Confirmed] https://launchpad.net/bugs/988819 [16:21] if the minimal change to make stuff work is to drop the LoadFile stanza's in the config files that should be the fix. [16:22] jamespage: for the SRU, and leave Quantal alone (same as Debian)? [16:22] rbasak, yes [16:22] jamespage: that's fine with me [16:22] OK - lets check with SpamapS how we get whats in -proposed dropped.... [16:23] jamespage: very easily [16:28] rbasak: are you saying that bug 988819 is "verification-failed" and that rather than uploading a new fix on top of that one, you'd like it removed from precise-proposed ? [16:28] Launchpad bug 988819 in mod-proxy-html "[SRU] wrong path to libxml2.so.2 in mod_security - broken by multiarch enabled libraries" [Undecided,Confirmed] https://launchpad.net/bugs/988819 [16:29] SpamapS: AIUI, it is difficult to verify, so the approach to fix is being reconsidered. So I guess that means I need to get the alternative done and uploaded to precise-proposed? [16:30] rbasak: its easier to track if we do it that way really. [16:31] rbasak: I'll mark it 'verification-failed' so it doesn't accidentally get sent to -updates [16:31] SpamapS: OK [16:31] SpamapS: I take it I still need to bump the version further though, as it's been in precise-proposed? [16:32] rbasak: yes [16:32] rbasak: -proposed counts as "being published" [16:33] SpamapS: ack [16:36] Hi, I would like to have some suggestions here. I am doing some packaging. I am installing a virtual machine (ova-format) using apt, but afterwards I would like to have the user automatically register that machine in Virtualbox. Is there a "best practice" as how to make the user aware after a package install that he must take action? [16:37] The thing is that apt-get is run as root, and it is the user that must register the vm afterwards. === MoleMan_ is now known as MoleMan [16:38] I could probably hack something using /etc/bash.bashrc but I guess it wouldnt be standard, and it wouldnt look good. Quite the contrary it would be a pretty ugly solution. [16:40] Is there some standard way to tell the user that he has to take action? Some kind of hook. [16:42] nandersson: I'm not sure this is the right channel. Most server people don't use GUIs. [16:42] nandersson: if I understand you, you have more of a desktop question? [16:43] nandersson: or are you trying to do this on a terminal login? There is an motd system. [16:48] rbasak, well, it is more of a packaging question. Let say that after I do "sudo apt-get install my-package" - I also want to touch files in /home/my-user/ directory. Well, Perhaps I could do it in my-package.postinstall and have the script iterate over all directories in /home and make the change, or set a flag... [16:49] ...or have the script "su - my-user" and do the registration.... I guess that would do the job. [16:50] nandersson: see https://lists.ubuntu.com/archives/ubuntu-devel/2012-July/035546.html which has to solve a similar problem [16:50] nandersson: it won't work for you, but generally postinsts aren't really support to walk over home directories like that [16:50] rbasak, I have another ARM kernel module request for omap4 (and others) - rbd [16:51] rbasak, Yeah, it will be darn ugly but I think it would work [16:51] nandersson: only when users are using a local db. If they're on LDAP it'll break [16:51] nandersson: or if there's some kind of dynamic home directory mounting going on [16:51] rbasak, yeah, you are right about that :-/ [16:52] anyway, I still don't think it's really a server question. Try #ubuntu-devel - you might get more relevant ideas! [16:52] (y) I'll do that! Thanks a lot! [16:52] nandersson, maybe a README.Debian might be a good approach - let users know which commands they need to execute to use the package fully [16:53] nandersson: or perhaps #ubuntu-app-devel would be more appropriate here [16:53] rbasak, I'll try both! [16:53] !crosspost | nandersson [16:53] nandersson: Please don't ask the same question in multiple Ubuntu channels at the same time. Many helpers are in more than one channel and it's not fair to them or the other people seeking support. [16:54] jamespage: I'm not sure who to direct ARM kernel requests to, actually [16:54] rbasak, me neither :-) [16:54] jamespage, Yeah, if the users would be versed in Ubuntu... I am trying to do a "fool proof" solution here :) [16:54] jamespage: perhaps smb, in the kernel section of the meeting? [16:54] smb: who's the right contact for ARM kernel issues? [16:55] smb: (which aren't vendor-specific)? [16:55] rbasak, I just asked in -kernel [16:55] SpamapS, did you get anywhere with the fastcgi-developers mailing list? [16:57] jamespage: not yet no [16:59] jamespage: just sent another message to the admin listed on the listinfo page. [16:59] jamespage: If they're not responsive, I think we should suggest that the ceph team maintain a fork [17:03] SpamapS, I've pinged the debian maintainer as well - you never know.... [17:05] jamespage: good idea === shadeslayer_ is now known as evilshadeslayer [17:23] strange, i install cobbler on 12.04 and syslinux is configured with 'Ubuntu MAAS' [17:24] pmatulis: yeah, we need to drop that :) [17:24] pmatulis: could you please file a bug and assign it to me? [17:24] roaksoax: yes, ok [17:30] <\sh> kklimonda: ping freeipa..how can we add sudo-ldap support to the package without breaking the system a lot ? :) [17:32] New bug: #990162 in python-greenlet "armhf version is unusable -- task switches will cause sigsegv's" [Undecided,In progress] https://launchpad.net/bugs/990162 === matsubara-afk is now known as matsubara [17:35] Daviey: (following from -meetings): not really. We do not yet run automated arm tests. === bitmonk_ is now known as bitmonk [18:04] hallyn: so, I'm looking at implementing get_config_item in the API but the code doesn't seem to match what you mentioned earlier on IRC :) [18:04] 21:04 < hallyn> returning the length, so you can do 'len = get_config_item(c, key, NULL); v = malloc(len+1); len = get_config_item(c, key, v)' [18:04] though it doesn't look like I can actually get the length with the current implementation [18:04] and looking at your tests, you seem to just be using fixed length char arrays? [18:05] if key is valid you should get back len [18:05] and the tests do [18:06] what are you getting back? [18:08] hallyn: hmm, can't see a test that matches my understanding of it. I was expecting to do len = get_config_item(c, key, NULL, NULL), then malloc and use get_config_item(c, key, value, len) [18:08] i don;t malloc in the tests [18:08] but that's irelevant :) i print out the return values [18:09] and they were correct lengths for me [18:09] hmm, indeed, I just grepped and was surprised not to find a malloc in there, let me actually test my code, maybe it's working fine ;) [18:09] theres 1 test passing in null v as well === cpg|away is now known as cpg [18:19] hello all [18:20] i am hammering a new ubuntu server with tons of connections, i was running centos for my application before with no problems... For some reason i am getting a lot of connection time outs when establishing connections both mysql 3306 and redis 6397... first i found that syn flood protection was blocking some stuff, so i managed to turn that off. but im not sure to see where else or why [18:20] else connections are timing out as far as logs or perhaps if its a ulimit issue? [18:23] hallyn: http://paste.ubuntu.com/1097049/ <- I have the feeling I did a pretty obvious mistake but it's not really obvious to me at the moment... [18:25] any way i can benchmark my php performance? [18:35] stgraber: and what does the first call to getitem give you? what len? [18:40] >>> test.get_config_item("lxc.utsname") [18:40] got len: 4 [18:40] Traceback (most recent call last): [18:40] File "", line 1, in [18:40] UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 0-2: invalid continuation byte === Aaton_off is now known as Aaton [18:41] * stgraber adds a printf to also dump the value before the unicode conversion [18:41] stgraber: i wonder if you need a longer char * for PyUnicode_FromString [18:42] stgraber: note that depending on what PyUnicode_FromString does, you ouht to free the char *value you mallocd [18:42] hallyn: printf doesn't seem to be much more happy... [18:42] >>> test.get_config_item("lxc.utsname") [18:42] got len: 4 [18:42] got value: �1i [18:43] Can someone tell me how ubuntu server is sourcing PATH? I need to add to it, but can't find it [18:43] cwesterfield: /etc/environment? [18:44] that's it [18:44] google is sometimes a hindrance [18:46] stgraber: what is lxc.utsname's actual value? [18:46] hallyn: considering the garbage, it's pretty likely that my malloc is the part that's wrong but I'm not sure how/why [18:46] hallyn: "test" [18:47] stgraber: d'oh [18:47] i shouldve looked closer at your pastebin :) [18:47] hm no, stil looking [18:49] stgraber: before calling the PyUnicode_FromString, can you do 'printf("key %s len %d value %p %s\n", key, len, value, value); [18:50] >>> test.get_config_item("lxc.utsname") [18:50] key lxc.utsname len 4 value 0x1b7da30 �M� [18:51] stgraber: is the hostname actually 3 byts? [18:52] hallyn: no, it's 4, though the malloc is for len + 1, so should be fine? [18:53] stgraber: can you pass 'len+1' in to the second lxc_get_item call? [18:54] stgraber: it's a bit confusing, but since i must have room for the trailing \0, i insist on having len+1 available to copy into [18:54] confusing because i pass len back... but i f i pass back len+1 that's confusing too [18:54] hallyn: that worked indeed [18:55] somebody with a silver tongue is gonna need to write a terrific manpage for this :) [18:55] ^ note i disqualified myself [18:55] hallyn: Error: "note" is not a valid command. [18:55] ;) [18:55] [18:55] ^ help [18:55] hallyn: (help [] []) -- This command gives a useful description of what does. is only necessary if the command is in more than one plugin. [18:55] ! help [18:55] Please don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-) See also !patience [18:55] dang how many bots we got here [18:56] maybe adding an example of the malloc to the tests might help, I'm assuming I won't be the only one to copy/paste from it :) [18:56] stgraber: ok will do so right now [18:58] what's looking quite weird is the check (get_config_item(c, key, value, len + 1) != len) when len is the value you get from an identical call to get_config_item ;) [18:58] but yeah, it makes sense when you know ;) [18:58] luckily everyone will use the python api :) [19:03] stgraber: all right, pushed. hopefully it passes. (no vm at the ready to test on) [19:06] hallyn: can't remember, did we settle on having a way to query the list of keys set for a given network entry or not? [19:10] stgraber: not exactly, so for now you can look at the lxc.network.0.type and know what's valid based on that [19:10] hardcoded, but then i don't expect veth.peer to every become a valid key for macvlan, for instance :) [19:10] ok [19:11] stgraber: if you feel better about it, i can go ahead and ipmlmenet c->getkeys(), [19:11] and have 'lxc.network.0' return the valid list [19:12] hallyn: a few quick notes that I noticed while testing .get_config_item("lxc.network") is terminated by a \n, is that intended (I'd have expected \n separated, not \n terminated) [19:12] (c->getkeys(c, "lxc.network.0", value, len) [19:12] hallyn: +1 for getkeys() it'd make my life quite a bit easier ;) [19:12] stgraber: i waffled on the trailing \n. you want me to skip that for the last one? [19:12] (or rather, make my future life easier by not having to update the hardcoded logic in python) [19:12] that'll mean that if there is only a single entry, there'll be no \n [19:13] it seemed inconsistent to me, but maybe it works nicer with str.split('\n') [19:13] hallyn: yeah, I'd prefer no trailing \n as it'd indeed work better with split() :) [19:13] all right let me look through some remaining unreproduced bugs then i'll implement those two [19:14] bbl [19:14] stgraber: perhaps we should keep a wiki page with api todo's [19:14] hallyn: I was also somewhat surprised to see that lxc.cap.drop gets me a space separated list of values instead of separate lines like .network and it also seems to be fine having duplicate entries :) [19:15] hallyn: though I guess this kind of makes sense as it can be stored either as a single line or multiple lines in the config [19:15] +1 for wiki [19:15] right [19:15] i did space separate bc it works in config :) [19:17] can you make it \n separated? I think it'd make it less confusing for people doing [19:17] get_config_item("lxc.cap.drop") [19:17] getting = cap_sys_admin cap_net_admin [19:17] then doing set_config_item("cap_net_admin") [19:17] and expecting it to be set to "cap_net_admin" [19:18] instead of "cap_sys_admin cap_net_admin cap_net_admin" [19:18] making it multi-line would be a good indication that you need to clear_config_item() first [19:19] stgraber: https://wiki.ubuntu.com/lxc/apitodos [19:19] stgraber: ok [19:27] <\sh> did anybody played around with freeipa-client lately? ipa-getkeytab doesn't work :* === Aaton is now known as Aaton_off [19:36] hallyn: is there an easy way for me to get the list of all keys accepting multiple values and requiring the use of clear_config_item? [19:37] stgraber: nope [19:37] hallyn: my plan is to have any of these key return a python list and have set_config_item(key, [list]) automatically call clear_config_item and set_config_item for each of them [19:38] (apart from looking at src/lxc/confile.c:lxc_clear_config_item()) [19:39] stgraber: perhaps get_item("lxc") should return a list like "cgroup 1", "caps 1", where a 0 would mean not a list? [19:39] don't really like that, but not sure what better to give you [19:39] hallyn: oh, actually, there's an easy trick but that's going to make you revert one of your current change :) [19:39] hallyn: can you always add a trailing \n to these that are a list? [19:40] yes. note though that not everything returning a list can be cleared [19:40] i.e. lxc.network.0.ipv4 [19:40] hmm, why? [19:41] i dunno, the conf stores it as a list [19:41] so aparently you can have multiple values [19:42] so if lxc.network.0.ipv4 returns "1.2.3.4\n4.5.6.7\n" how can I set it to "8.9.10.11"? [19:42] clear all the networks [19:43] more to the point what does it mean to have 2 values [19:44] it may just be a relic of his early attempts at wrestling with the list api [19:44] two IPs on eth0? [19:44] yes [19:44] I'd expect it to be the equivalent of calling "ip -4 add dev eth0" twice [19:45] and what does that do? [19:45] put two addresses on the same interface [19:45] hrmf - http://paste.ubuntu.com/1097181/ <-- I have a job moving md0 from raid-5 to raid-6, but I have no idea whatsoever what's causing the traffic on the root (md3/sdh) - any idea what that might be? [19:46] which is a lot more common with IPv6 than IPv4, but still a pretty common usecase [19:46] stgraber: so you'd like a clear_item("lxc.network.0.ipv4") ? [19:47] ideally, I'd like clear_config_item on anything that's a list (where I know whether it's a list or not based on the last char of the matching get_config_item being \n) [19:47] stgraber: so should get_keys() just return "key1 is_list\nkey2 is_list\nkey3 is_list" (is_list = 'Y' or 'N')? [19:48] all right i can put a \n after the last one [19:49] I think I'd prefer to rely on get_config_item to know whether something is a list or not and just use get_keys() to know what keys are set under a given path (lxc.network.0 for example) [19:51] * stgraber is starting to have the feeling we might actually get something that's pretty consistent and not too hackish ;) [19:53] how do I add tab autocomplete to my ssh account? [19:53] elguapo99: it should be there by default, if you use a shell supporting it [19:54] elguapo99: ps $$ [19:54] I have tab autocomplete as su [19:54] RoyK: doesn't that require HashKnownHosts to be set to no? otherwise I don't see how you could complete the hosts [19:54] but not as my ssh login [19:54] I have a machine here that is supposed to be dhcp and dns for a subnet. When I boot a machine to the subnet in dhcp mode, it is picking an IP (and I can see in the leases file it giving its hostname), but the dns is not being updated [19:55] elguapo99: on which shell are you running that account? [19:55] I think its bash [19:55] $ [19:55] ps $$ [19:55] that shows the shell [19:56] 7701 pts/2 Ss 0:00 -sh [19:56] raubvogel: does the dhcp server point the clients to the dns server? [19:56] elguapo99: try chsh -s /bin/bash [19:57] elguapo99: as that account [19:57] The problem was that I was not doing bash [19:57] bingo [19:57] so I have to type bash when I first log in [19:57] guntbert: yep [19:57] elguapo99: see the chsh command above [19:57] and I even checked the client's /etc/resolv.conf [19:58] But, even nslookup fqdn dns.ip.address does not work [19:58] raubvogel: if you put your dhcpd.conf into a pastebin we could have a look at it === daker_ is now known as daker === AlanChicken is now known as AlanBell === Corey_ is now known as Corey [20:01] * RoyK goes to get some sleep - nite... [20:01] guntbert: http://pastie.org/private/ja7zx5gom4rtqtkijtidnw [20:01] (using external ntp server) [20:02] raubvogel: looks good (aka I can't spot an error :-)) - do the clients pick up the ntp sevrer? [20:04] I honestly have not checked because I need to deal with my dns/dhcp issue and then why the firewall (ubuntu 12.04) iptables are inop === zyga is now known as zyga-afk [20:05] guntbert: My main issue with dns is the hostnames for the dhcp clients are not being added to bind [20:05] raubvogel: my question was meant to help find the bug === bitmonk_ is now known as bitmonk [20:06] raubvogel: for the dhcp->bind wouldn't you need a key for authorization? [20:07] I understand; I am just a bit in a panic mode right now. I do not even can think of a good way to see if the clients see ntp. They do get the nameserver though [20:07] raubvogel: what clients? dhcp? [20:08] RoyK: exactly [20:08] what client OS? [20:08] raubvogel: ahh - I misread - now I understand the issue - well for the updating of the DNS databse you will need some kind of authorization [20:09] ubuntu 12.04 just like the dns/dhcp server [20:09] raubvogel: I'd think setting up an ntp server listening to broadcasts/multicasts on that network will do a lot - IIRC the clients will attempt to sync to such a machine first [20:09] RoyK: only 7 minutes sleep? :-)) [20:10] raubvogel: I don't think the ubuntu dhcp client can change the client's ntp settings ;) [20:10] guntbert: no, have to wait a while for some laundry... [20:10] RoyK: should I drop ntp for now and focus on the other issue? [20:11] raubvogel: at least drop it in dhcp - rather setup ntp server on that server of yours and allow broadcast/multicast requests - it's rather easy, and I *beleive* the clients will try that first. if the clients connect directly to ubuntu's ntp server, it won't make much difference in the network traffic, though [20:12] raubvogel: lets clarify the issue: as far as the clients are concerned all is well, what bothers you is that the DNS server is not updated when a client get an address? [20:12] guntbert: exactly [20:12] raubvogel: that's dynamic dns [20:12] not enabled by default [20:13] RoyK: exactly. How do I enable it? I thought I have done but I probably overlook something [20:13] raubvogel: if I recall correctly you have to configure both servers to talk to each other and the DNS to trust the DHCP - therefor you need keys [20:13] raubvogel: google it [20:13] guntbert: they are actually the same machine [20:14] raubvogel: doesn't matter, two different programs [20:14] have not been getting any help since a long time on this . my tomcat is pointing towards /var/www instead of /var/lib/tomcat7/webapps/ and if i place a .jsp in /var/www it starts downloading it instead of parsing it. i had apache2 installed on my ubuntu but its now turned off. what is happening? [20:15] raubvogel: as of now you only told dhcpd what kind of updates to send [20:16] Hey I'm using likewise-open to bind my desktop to my domain, but my user doesn't show up in unity-greeter. How can I have it show up? === medberry is now known as med_ [20:20] hm... [20:20] [108984.234696] ata4.00: failed command: READ FPDMA QUEUED [20:20] any idea how to map ata4.00 to a device name? [20:21] <_ruben> RoyK: i posted that question quite some time ago on askubuntu and got some nice "oneliners" for that [20:23] <_ruben> RoyK: http://askubuntu.com/questions/64351/how-to-match-ata4-00-to-the-apropriate-dev-sdx-or-actual-physical-disk [20:25] guntbert, RoyK: I thought when I defined the ips I have in allow-update http://pastie.org/private/kddg4xci8uihvaq3fzeokq, in essence I am defining who machines can do the updating. [20:26] Of course, since this machine has 3 ips (localhost, static internal, dhcp external) I wonder if that sufficed === Aaton_off is now known as Aaton [20:45] where would be the place to check a log to see if ubuntu server was denying connections on port 3306 for mysql because there are to many active [20:46] im getting connection timeouts on my clients, but i cant find these connections anywhere on my db server [20:47] Ok, dhcp-dns issue solved. Onwards to firewall! [21:00] Eitan: was it previously listening remotely? [21:04] _ruben: thanks - guess I'll let this conversion to raid-6 go finish and then start testing... [21:06] Shouldn't something like 'iptables -A INPUT -p tcp -m tcp --dport 443 -m state --state NEW,ESTABLISHED -j ACCEPT' in a firewall allow a machine behind it to reach a website? [21:19] all right i'll be back later to work on some apitodos === el_seano_ is now known as el_seano [21:29] jamespage i have installed tomcate by tar. and still having same problem. its pointing to /var/www when i use mysite.com/8080 === Aaton is now known as Aaton_off === alamar is now known as alabaer === matsubara is now known as matsubara-afk === Aaton_off is now known as Aaton === alabaer is now known as alamar === Aaton is now known as Aaton_off [22:31] Wouldn't line 21 in http://pastie.org/private/zlkonugv9eyij3km5jb8a allow me to connect to that site on port 80? === Aaton_off is now known as Aaton [22:38] after I upgraded from 10.04 to 12.04 when I boot my machine I get..."Waiting for Network Configuration"..and another advising Waiting 60 seconds, etc...yet, I have connectivity.. how do I prevent that message at boot up? [22:38] I installed ubuntu 12.04 LTS, not the server version.... but i get that message [22:40] so there should be some way to disable that waiting [22:40] that's what I'd like to find [22:40] in fairness though, before I upgraded, if I blew the password, the way my system was configured I'd have to wait at least 2 minutes before I could reenter the password [22:42] this might be something [22:42] http://tech.pedersen-live.com/2012/05/disable-waiting-for-network-configuration-messages-on-ubuntu-boot/ [22:43] what you should look for is a way to disable that waiting [22:43] still strange how it found its way to your regular ubuntu installation [22:45] <\sh> grmpf [22:45] <\sh> do we have a libldap package which is not build against libgssapi3-heimdal? [22:45] <\sh> but against libgssapi-krb5? [22:46] tell me about it. [22:46] its' frustrating [22:49] thanks, I'll try that, very much obliged === Lcawte is now known as Lcawte|Away === Aaton is now known as Aaton_off [23:29] jcastro, ping === Aaton_off is now known as Aaton