/srv/irclogs.ubuntu.com/2015/03/26/#ubuntu-server.txt

Ryan_LaneI need to update dhclient.conf and then cause dhclient to restart itself. basically I need to override the dns and have it immediately apply00:05
Ryan_LaneI can't find a good way to do this...00:05
Ryan_Lane(I need this to work when run over ssh, from config management)00:05
Ryan_Laneanyone have any ideas here?00:08
sarnoldRyan_Lane: check out omshell(1)00:16
Ryan_Lanethanks00:25
=== martinst is now known as martins-afk
=== markthomas is now known as markthomas|away
=== Mobutils_ is now known as Mobutils
=== Mobutils_ is now known as Mobutils
=== kickinz1|afk is now known as kickinz1
=== kickinz1 is now known as kickinz1|afk
=== kickinz1|afk is now known as kickinz1
=== Lcawte|Away is now known as Lcawte
=== stokachu_ is now known as stokachu
=== ReScO_ is now known as ReScO
=== bilde291z is now known as bilde2910
=== beisner- is now known as beisner
=== DavidDuffey is now known as dduffey
=== neunon_ is now known as neunon
=== Sprockt is now known as Sprocks
replmanHi! I tried to install php 5.5 on ubuntu 12.04 LTS as described here: http://askubuntu.com/a/34356711:43
replmanall went as expected but in the end i get the following error:11:44
replmanSetting up apache2 (2.4.12-1+deb.sury.org~precise+5) ...11:44
replmanDirectory /etc/apache2/conf.d is not empty - leaving as is11:44
replmanPlease note, that directory is considered obsolete and not read anymore by default11:44
replmanphp_cgi_wrapper.conf  zz010_psa_httpd.conf11:44
replmanapache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/fcgid.load: Cannot load /usr/lib/apache2/modules/mod_fcgid.so into server: /usr/lib/apache2/modules/mod_fcgid.so: undefined symbol: unixd_config11:44
replmanERROR: Config file dir.conf not properly enabled: /etc/apache2/mods-enabled/dir.conf is a real file, not touching it11:44
replmandpkg: error processing apache2 (--configure):11:44
replman subprocess installed post-installation script returned error exit status 111:44
replmandpkg: dependency problems prevent configuration of libapache2-mod-php5:11:44
replman libapache2-mod-php5 depends on apache2 (>= 2.4); however:11:44
replman  Package apache2 is not configured yet.11:44
replmandpkg: error processing libapache2-mod-php5 (--configure):11:44
replman dependency problems - leaving unconfigured11:44
replmandpkg: dependency problems prevent configuration of apache2-mpm-prefork:11:44
replman apache2-mpm-prefork depends on apache2 (= 2.4.12-1+deb.sury.org~precise+5); however:11:44
replman  Package apache2 is not configured yet.11:44
replmandpkg: error processing apache2-mpm-prefork (--configure):11:44
replman dependency problems - leaving unconfigured11:44
replmanNo apport report written because the error message indicates its a followup error from a previous failure.11:44
replman                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.11:44
replman                                                                                                                                                                                                                    Errors were encountered while processing:11:44
replman apache211:44
replman libapache2-mod-php511:45
replman apache2-mpm-prefork11:45
replmanE: Sub-process /usr/bin/dpkg returned an error code (1)11:45
replmanSorry!11:45
replmanI wanted to paste to pastebin, hit the wrong window :-(11:45
replmanstupid client that allows such a post.11:45
replmanhttp://pastebin.com/pkfpYAvV11:45
=== masACC is now known as maswan
yakimAt first you must remove old version of Apache212:18
=== Lcawte is now known as Lcawte|Away
replmanyakim: I found out that i have a problem with libapache2-mod-fcgid-psa and apache2.412:23
replmandpkg -l | grep mod-fcgid prints  "libapache2-mod-fcgid-psa  2.3.9-14033112"12:24
replmanmaybe i should downgrade to apache 2.2. How can i do this?12:29
yakimyou have sum problems with php module version12:29
yakimI see /usr/lib/apache2/modules/mod_fcgid.so: undefined symbol: unixd_config12:30
yakimhttp://superuser.com/questions/838180/apache-loading-php-module-undefined-symbol-unixd-config12:30
yakimThe Apache API changed from 2.2 to 2.4, unixd_config was renamed ap_unixd_config (see Api changes from 2.2 to 2.4). You need a php module version that is compatible with Apache 2.4 or stay with Apache 2.2.12:30
replmanI think that this psa fcgi module is still for 2.2.12:31
yakimyes12:31
replmanBut i cannot remove this because then plesk might not run12:31
yakimtry find new version of this module12:31
replmani tried to remove it anyways. Then apache stuck with another config file. So best might be to downgrade to 2.2. Ist that possible?12:32
yakimI think, it is possible.12:37
replmanyakim: do you know how?12:40
yakimdo you create backup of old config?12:41
replmanno :-(12:42
yakimups...12:42
replmani have to look12:42
yakimat first you must purge php5 and apache. Then disconnect ppa, update ant install php5 and apache again12:44
yakimthen restore you configs12:44
yakimI make this update on my server some time ago, but I don't use such modules12:46
=== Pici` is now known as Pici
replmanyakim: is it enough to copy the files from /etc and after doing the reinstall, copy the files back?13:02
replmanhow to disconnect ppa13:03
yakimnot all. Only /etc/apache2 and /etc/php513:03
replmanhow to purge php5 and apache?13:04
replmancan i preview which files will be removed by the purge?13:04
=== martins-afk is now known as martinst
yakimapt-get purge apache2*13:05
=== wedgwood_ is now known as wedgwood
=== Lcawte|Away is now known as Lcawte
dmsimardHaven't had any attention on what I consider an important bug: https://bugs.launchpad.net/initramfs-tools/+bug/1436098 .. who can I poke ? :)14:58
rbasakdmsimard: try #ubuntu-devel. It's not really a server-specialist thing even if it involves server. Few people here will know much about it.14:59
dmsimardrbasak: Thanks.14:59
Pici/3/3615:09
=== lool- is now known as lool
kickit2anyone know how to get isc-dhcp-server to actually give an error message?  All it does it terminate with status 1 - no errors even when calling it with just dhcpd -t -cf /pathtocfgfile/dhcpd.conf (with the correct path or course).  If I launch it without the -t flag it runs, but I want it to error check (which is when it fails) which leavs me feeling that I have errors15:28
rbasakkickit2: anything in /var/log/syslog?15:28
kickit2nothing other than "terminated with status 1, respawning.." over and over until init complains its trying too fast and kills it all together15:29
ppetrakikickit2, run it from strace without daemonizing, strace -f  -s 4096 <executable> &> omgsomuchdata.log15:30
kickit2alright - to be honest a stack trace is beyond me.  but If im interpreting this correctly, its giving exit status 0 when done this way15:33
kickit2heres the trace in a pastebin http://pastebin.com/p4NnbcVG15:37
=== Lcawte is now known as Lcawte|Away
OpenTokixkickit2: you just posted your rndckey on the internet, I suggest you change it later.15:41
OpenTokixkickit2: but that trace it exits with 015:41
kickit2yeah - I'll deal with fixing security crap once the service actualy works :)15:43
kickit2well IDK what changed, but it isn't complaining about exit status 1 anymore.. just " init: isc-dhcp-server main process ended, respawning" about 10 times until it says its respawning too fast and kills it15:46
=== markthomas|away is now known as markthomas
KarunamonHi folks - I have reason to believe that the landscape-server packages are incorrectly missing from the appropriate repo17:20
Karunamonaaaaand disregard that, now they show up in the Packages page when examined via web17:21
Karunamonmust have caught it mid-update or something17:21
Karunamonah, no, I was looking at Trusty17:23
Karunamonhttp://ppa.launchpad.net/landscape/14.10/ubuntu/dists/utopic/main/binary-amd64/Packages - note that landscape-server is not included17:23
pmatulisKarunamon: everything ok?17:47
Karunamonpmatulis: ah no, problem still exists17:48
pmatulisKarunamon: what does?17:49
Karunamonpmatulis: it appears impossible to install landscape-server on 14.10. the packages are not in the index for Trusty17:49
pmatulisKarunamon: you want to install l/s 14.10 on trusty right?17:50
patdk-wktrusty is 14.04 not 14.1017:50
Karunamonmisspoke - not in the index for Utopic17:50
pmatulisKarunamon: yes, that's normal17:50
pmatulisKarunamon: b/c l/s server is only made for LTS releases17:51
Karunamonpmatulis: in which case, these instructions: https://help.landscape.canonical.com/LDS/QuickstartDeployment14.10 are no good.17:51
pmatulisKarunamon: note that l/s versions can be deceiving.  what you see above is not "l/s for utopic (14.10).  it is the actual l/s version.  i.e. l/s 14.10 is the latest and is designed to be run on ubuntu 12.04 and 14.0417:51
Karunamonah! okay, that makes more sense then.17:52
pmatulisKarunamon: i admit that it is unnecessarily confusing17:52
Karunamonpmatulis: pfft, and the page even says that, I just kind of jumped right to the commands to input17:53
pmatulistsk tsk, bad Karunamon17:53
Karunamonyeah, got ahead of myself :P. so seeing as how my server box is already 14.04, guess that means spinning up a VM or something if I want to play around with landscape17:53
danrikum. what can I do if some unrelated domain sets DNS records pointing to my site?18:00
danrikCan I configure something in apache so not to allow that?18:00
patdk-wksure18:00
patdk-wkthis is what virtual hosts are for18:01
Karunamondanrik: you can't stop them from pointing at your site, but you can do things with the incoming traffic18:01
patdk-wkand if you want, you can use rewrite if you want to block18:01
danrikso I have virtual host configured - yes. But why is it still serving that domain?18:02
patdk-wkwhat do you have the default virtualhost setup as?18:02
patdk-wkto block everything?18:02
danrikKarunamon, how would I deny all unauthorized doamins by default?18:02
danrikKarunamon, ServerName mysite.com18:03
Karunamondanrik: sounds like you'd want a rewrite rule of some kind, but unfortunately the knowledge of those is somewhat beyond me at the moment18:03
danrikKarunamon, and handful of server aliases.18:03
Karunamonif i'm thinking about this correctly, you need a list of what domains are authorised, and you'd have to construct a regex so that anyone hitting anything that's not part of one of those domains gets sent elsewhere18:03
patdk-wksounds like way too much work18:04
patdk-wkyou just make your virtrualhosts as you should18:04
patdk-wkthen in the default virtualhost, you just deny all18:05
Karunamonpatdk-wk: sounds better. i'm more of an nginx guy and also have a habit of doing things the hard way first :P18:05
=== Lcawte|Away is now known as Lcawte
Jeeves_Mosshey guys, how do I correct this error "AH00534: apache2: Configuration error: More than one MPM loaded."??19:13
patdk-wkyou upgraded from pre-trusty? from apache 2.219:15
Jeeves_Mosspatdk-wk, not that I know.  I rebooted the box, and now I'm getting this.19:18
patdk-wkwell, check your modules19:19
patdk-wkyou probably have multible mpm modules enabled19:19
Jeeves_Mossok, what should I be looking for, and how?19:19
patdk-wkls /etc/apache2/mods-enabled/mpm*19:20
patdk-wkyou should have two files, one .conf and one .load19:20
Jeeves_MossI've got  /etc/apache2/mods-enabled/mpm_prefork.conf and  /etc/apache2/mods-enabled/mpm_prefork.load19:20
patdk-wkmust be upgrade issue19:21
patdk-wkcan't remember what the solutio nthere is19:21
patdk-wkand I'm walking out the door19:21
Jeeves_Mosslol.  joy.  now how do I fix this......  this is our Kabana box for logs.19:21
=== lifeless1 is now known as lifeless
=== markthomas is now known as markthomas|away
=== bilde2910 is now known as bilde2910|away
=== kickinz1 is now known as kickinz1|afk
tewardstupid question but is there a way to turn an Ubuntu system into a web gateway system in which all traffic goes through it and there's filtering done on the traffic to block certain kinds of traffic and/or destinations/sources22:29
=== markthomas|away is now known as markthomas
TJ-teward: Yes. A useful 'wrapper' around the linux kernel features is the Shorewall package22:40
sarnoldteward: multiple ways to do it; 'cleanest' is probably to run squid on the host, firewall off the internet from your other machines, only allow the squid machine access to the internet..22:41
tewardsarnold: the firewall is at the border, hence asking how to turn the server into the web gateway, the firewall rules and such is understandable, the filtering of content is the tricky part I think22:41
teward(and as for those firewall rules, those are *not* hard :P)22:41
sarnoldteward: you can also set up a transparent proxy using squid and masquerade rules, but not all applications take kindly to having a proxy forced in place22:41
tewardmmm22:42
sarnoldteward: you can also run a machine as an ethernet bridge and do filtering there -- that way there's not even an IP address associated with the NICs you're using to do the filtering.22:42
tewardmmm22:44
tewardsounds technologically easy, but implementationally tricky22:44
tewardalthough this is why i keep an experimental segment to my network xD22:44
Patrickdkimplementationally tricky? not really22:46
Patrickdkjust normal proxy-arp22:46
Patrickdkused heavily in the 80's and 90's, but not so much anymore, with our addiction to vlans and our heavily powered switches22:47
tewardPatrickdk: implementationally tricky in the short term on my network, i meant - i would still need to update the equipment on the one box to add in another NIC (this is why i hate not having money sometimes)22:50
mnaserIs there a way to detect why processors are being underclocked?23:00
mnaserUsing 14.04.2 LTS.. seeing E5-2650v3 (2.3Ghz processor) running at 1.2Ghz23:00
mnaseraccording to /proc/cpuinfo23:00
Patrickdkwhy should it run faster?23:00
mnaserBecause this is a server and I'd like it to run at full power all the time23:00
Patrickdkthen log into your bios and configure it that way23:01
mnaserIn my BIOS, it's set to "Performance"23:01
mnaserso all c-states etc are disabled23:01
mnaserIt's a poweredge r63023:01
Patrickdkwhat does powertop say?23:02
Patrickdkrun powertop hit tab twice23:05
mnasernot sure I understand what this all means but23:06
sarnoldmnaser: how about cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor ? are you running thermald?23:06
mnaserhttp://pastebin.com/KeDGiZrR23:06
mnaserthis is a minimal install23:06
mnaserpowersave for all sarnold23:07
Patrickdkdoesn't like the bios isn't enforcing max performance23:07
mnaserhmm23:07
Patrickdkor it is set to allow os override23:07
sarnoldmnaser: you may want to change those to ondemand or performance, but it really looks like you may not need them spinning at 2.8 much23:08
mnaserthis server is going to get really busy23:08
Patrickdkbusy doesn't matter23:08
mnaserand im doing some basic testing and i think the low performance im seeing is impacted by this.23:08
Patrickdkbut if fractions of nanosecons latency matters if it was *slightly* idle23:09
mnaseri think im not making it "busy enough" to upclock23:09
mnaseri mean ill adjust it to performance23:10
PatrickdkI'm sure it is23:10
mnaserand see what comes out23:10
Patrickdkbut if you set it to max performance, all cores at 2.323:10
Patrickdkthat means you just disabled your turbo 3ghz speed23:10
mnaserok so23:12
mnaserit didnt affect the results23:12
mnaserwhich means that you're right, it isnt the reason23:12
mnaserbut at least that confirms it23:12
mnaserthanks Patrickdk / sarnold23:16
sarnoldmnaser: there's a few days good reading material here: http://www.brendangregg.com/linuxperf.html you might find something useful / new to look at23:17
mnaserbrendan gregg always has great content :)23:18
sarnoldyes :)23:18
* mnaser used to read since Joyent times / USE method23:19
mnaser>known for screaming at disks23:19
mnaser:P23:19
sarnoldAAARRAGH23:19
sarnoldhehehe23:19
Patrickdkhe's fun in person :)23:19
sarnoldone short silly video..23:19
mnaseri've never met him but i've probably spoke with him a few times on irc back when we ran a lot of joyent smartos stuff23:20

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