[00:00] <bekks> The last line is a valid crontab entry, all the rest is a valid bash script so far.
[00:00] <bekks> ??
[00:00] <bekks> a crontab entry is a single line.
[00:01] <holms> there's bin a man somewhere that it's allowed to pass env vars
[00:01] <holms> in crontab file
[00:01] <bekks> ??
[00:02] <bekks> crontab -l should reflect a single line invoking your script.
[00:02] <bekks> your python script.
[00:03] <holms> ok
[00:03] <holms> so they source a file
[00:03] <holms> before command
[00:03] <holms> http://serverfault.com/questions/673480/load-users-environment-variables-in-a-cronjob
[00:06] <bekks> I suspect you do know https://help.ubuntu.com/community/CronHowto
[00:07] <holms> are you offering to add env vars just with "env"?
[00:08] <holms> sourcing from env.sh sounds better in this case, there's of them there
[00:08] <holms> will be more latter on
[00:10] <bekks> No. I am offering to either use a crontab file entry, OR a /etc/cron.*/ script
[00:10] <holms> that what serverfault offers http://paste.openstack.org/show/474756
[00:10] <holms> source it from file
[00:11] <holms> crontab -f doesn't give no errors, or any other output
[00:12] <holms> using crontab file entry. passing SHELL var in there is allowed in order cron to use bash instead of sh
[00:12] <holms> sourcing is also allowed it says
[00:13] <holms> what else :)
[00:38] <keithzg> Hmm, have a BTRFS pool that's throwing an error on mounting on 14.04 during boot, but mounts fine after boot when invoked even just as part of "mount -a" or "mount /path/to/mountpoint". Am I just not able to use LABEL= during boot for BTRFS pools?
[00:38] <keithzg> And if that isn't it, what else might be the problem?
[00:39] <bananapie> when I call shutdown -h now, it does a bunch of work and at the end tells the kernel to powerdown. Is there a command line comand I can sent to the kernel to cause it to halt immediately without any other work ?
[00:40] <bananapie> without using init, upstart, or systemd ? Like sending the command directly to the kernel bypassing all startup/shutdown actions without using the sysrq key?
[00:40] <keithzg> bananapie: Perhaps "poweroff"
[00:40] <keithzg> Ah, maybe not that low level.
[00:41] <bananapie> thanks
[00:41] <bananapie> poweroff -f
[00:41] <bananapie> :D
[00:41] <keithzg> aha, good good :)
[00:41] <bananapie> I booted using init=/bin/bash, exiting bin/bash would cause a panic, and I was trying to find the "right" way to shutdown after I booted this way.
[00:41] <bananapie> thx
[00:42] <keithzg> No problem!
[00:43] <bananapie> i'm setting up a computer for my kids. I replaced the gdm/lightdm/kdm/... with a script that calls startx which calls google-chrome. the next line in the script is shutdown -h now. So when the kids turn the computer on, bam! chrome! When they close chrome it shuts down
[00:43] <bananapie> I love linux :d
[00:44] <bananapie> unfortunately I made a mistake in my script and got stuck in an infinite reboot, so I had to emergency boot with init=/bin/bash :$
[00:46] <keithzg> haha
[00:49] <bananapie> actually, it was pretty funny. It would have been frustrating if I didn't know about the init parameter in grub :|
[00:51] <bananapie> 12 years ago, I got a linux machine stuck in an infinite reboot loop, I just reinstalled the entire machine.
[04:33]  * keithzg tends to just be lazy and boot from USB or such and just chroot
[06:53] <lordievader> Good morning.
[08:34] <Danny1> Hello, I was wondering if someone could help me figure out why my phpmyadmin is not working on my apache2? or anything I guess?
[08:37] <Danny1> ?
[08:37] <dannysmc95> Sorry say to this user
[08:41] <lordievader> dannysmc95: Any errors?
[08:43] <dannysmc95> lordievader: how do I find out?
[08:44] <lordievader> First tell me what state you are in. 'Not working' is very vague.
[08:44] <dannysmc95> State? what do you mean?
[08:45] <lordievader> What do you see when you go to your phpmyadmin page.
[08:48] <dannysmc95> nothing, does not exist lordievader
[08:48] <lordievader> dannysmc95: So you get a 404?
[08:48] <dannysmc95> lordievader: shinexusuk.tk/phpmyadmin
[08:48] <dannysmc95> I get that
[08:48] <lordievader> Yes, a 404. Is phpmyadmin installed? And if so, how?
[08:49] <lordievader> Also, don't make it publicly available...
[08:54] <dannysmc95> lordievader: what do you mean? it's not you have to login twice?
[08:54] <dannysmc95> and Its a dedicated server that is not located near me, so I need to get to it via phpmyadmin
[08:54] <dannysmc95> and yeah its installed
[08:54] <dannysmc95> lordievader:
[09:03] <lordievader> dannysmc95: How?
[09:03] <dannysmc95> lordievader: how what?
[09:03] <lordievader> How did you install phpmyadmin?
[09:04] <dannysmc95> sudo apt-get install phpmyadmin
[09:07] <lordievader> dannysmc95: Right, what do you see in your apache logs?
[09:07] <lordievader> I get the feeling the phpmyadmin configuration ain't enabled.
[09:08] <dannysmc95> Where are thet? lordievader (I am new the Ubuntu)
[09:08] <dannysmc95> they*
[09:10] <lordievader> The logs or the config? (logs: /var/log/apache2, config: /etc/apache2/
[09:10] <lordievader> )
[09:12] <dannysmc95> I have "access.log", "error.log", "other_vhosts_access.log"
[09:16] <dannysmc95> lordievader:
[09:20] <lordievader> dannysmc95: Could you pastebin the output of 'apache2ctl -S'?
[09:20] <lordievader> !paste
[09:20] <dannysmc95> I know what that is, should I do pastebinit apache2ctl -S
[09:21] <lordievader> apache2ctl -S |pastebinit
[09:22] <dannysmc95> http://paste.ubuntu.com/12623253/
[09:23] <lordievader> Hmm, right it doesn't list aliases.
[09:24] <dannysmc95> So how do I fix that?
[09:24] <lordievader> I'd dig around in the conf dirs to see where the phpmyadmin alias is configured.
[09:24] <lordievader> Then see if it is enabled.
[09:25] <dannysmc95> where would they be?
[09:26] <lordievader> No idea, I don't have phpmyadmin installed.
[09:26] <lordievader> I rather dislike it.
[09:28] <dannysmc95> Oh, do you have a better version? that is easy to use?
[09:28] <jpds> Command line is the way to go
[09:28] <lordievader> ^that
[09:28] <lordievader> Phpmyadmin is just another vulnerability waiting to happen.
[09:28] <lordievader> Ssh to your sql server and connect locally.
[09:28] <dannysmc95> Helpful, I need to be able to see what is in the database on screen
[09:29] <dannysmc95> how?
[09:29] <dannysmc95> I am new to this, I don't know how to do a lot of things, plus where would my sql server be hosted at?
[09:29] <jpds> dannysmc95: show tables; select * from table_name;
[09:29] <lordievader> dannysmc95: You should know that ;)
[09:30] <dannysmc95> Maybe, but never used it on command line, do I need something installed?
[09:30] <lordievader> If you ssh to your sql server likely everything is already installed.
[09:31] <dannysmc95> Where is my sql server hosted?
[09:31] <dannysmc95> It's the same server already?
[09:31] <lordievader> You should know that. We don't.
[09:31] <dannysmc95> do I ssh to a port?:S
[09:31] <dannysmc95> I am on the dedicated server where it is
[09:32] <lordievader> dannysmc95: Do you host the sql server?
[09:33] <dannysmc95> Yeah it's hosted on my dedicated server
[09:34] <jpds> dannysmc95: You've just answered your own question
[09:35] <lordievader> So ssh to your dedicated server -> mysql -u <some user> -p
[09:36] <dannysmc95> so it does mysql>
[09:36] <jpds> That's what the my in phpmyadmin stands for
[09:37] <dannysmc95> So how do I view databases? I used to have a web server, so I had one database, I do not know how to "create" and "view" databases >.<
[09:37] <lordievader> You mean you now have a promt 'mysql>'? That means you are logged in.
[09:38] <jpds> dannysmc95: "show databases;" after you get to the prompt
[09:38] <lordievader> dannysmc95: http://www.w3schools.com/sql/
[09:38] <dannysmc95> lordievader: yeah
[09:53] <cyclobs> hi guys, anyone with some bind9 zone experience i can't work out why my local dns isn't resolving correctly
[11:58] <jamespage> coreycb, yes please could you review the ceilometer-polling stuff
[12:02] <jamespage> coreycb, I think we need all the binary packages that got dropped; we just needed to switch the daemon to use polling with appropriate flags
[12:57] <coreycb> jamespage, I'll take care of hte ceilometer-polling bits today.  at a quick glance it seemed like updating init scripts to use ceilometer-polling with flags is what's needed.
[12:58] <jamespage> coreycb, yeah - zigo did that in debian
[12:58] <jamespage> coreycb, if you want me to review before upload +1
[12:58] <jamespage> I can do that
[12:58] <coreycb> jamespage, thanks I'll let you know when I'm done
[13:08] <jamespage> coreycb, ok - I have 1hr back of my day
[13:08] <jamespage> coreycb, if you want to look at the ceilometer stuff, I'll pickup why ryu ftbfs on i386
[13:08] <coreycb> jamespage, I won't argue with that proposal
[13:09] <jamespage> oslo utils and config also in the UNACCEPTED queue for wily
[13:14] <RoyK> oslo utils?
[13:14]  * RoyK lives in oslo
[14:20] <jamespage> coreycb, ryu test failures resolved - uploading now
[14:21] <coreycb> jamespage, cool thanks. so how does unaccepted affect us, as I see oslo-utils and config are in wily-proposed.
[14:21] <jamespage> coreycb, they have been accepted now
[14:22] <coreycb> jamespage, ok
[14:22] <jamespage> it means we're still testing with the previous version
[14:25] <jamespage> coreycb, ceilometer for some reason won't unit test on the jenkins backport-o-matic
[14:25] <jamespage> I've been backporting and testing that one manually
[14:28] <coreycb> jamespage, hmm ok I'll look into it
[14:28] <jamespage> not a priority for now
[15:19] <zburns> How can I add /dev/sdb (LVM) to existing Ubuntu install?
[15:20] <zburns> fdisk shows as 8e (Linux LVM)
[15:20] <zburns> can I just format that and add to fstab or do I have to do something special?
[15:21] <RoyK> zburns: pvcreate /dev/sdb ; vgextend vgname /dev/sdb
[15:21] <RoyK> zburns: then lvextend ...
[15:22] <RoyK> see the manual
[15:23] <zburns> RoyK: ok will do thanks
[15:32] <coreycb> jamespage, ceilometer's pushed if you want to take a look
[15:33] <coreycb> jamespage, hmm
[15:34] <coreycb> jamespage, shoot I might need to restore the binary packages
[16:03] <jamespage> coreycb, yup
[16:03] <jamespage> sorry had to reboot
[16:08] <jamespage> coreycb, your agent packages need to depend on ceilometer-polling I think
[16:11] <jamespage> coreycb, and --namespaces -> --polling-namespaces
[16:13] <jamespage> coreycb, also the pidof check in the autopkgtests won't work with the switch in underlying binary
[16:14] <jamespage> coreycb, I also don't think we need a daemon running for ceilometer-polling
[16:14] <jamespage> its just a binary imho
[16:14] <jamespage> wait
[16:14] <jamespage> hmm
[16:15] <jamespage> coreycb, we might be better to move ceilometer-polling to ceilometer-common
[16:19] <jamespage> coreycb, lemme tweak and push
[16:23] <jamespage> coreycb, ok pushed
[16:23] <jamespage> coreycb, testing a bit as well
[16:35] <coreycb> jamespage, ok. I'll drop my add of the agent binaries then.
[16:41] <coreycb> jamespage, nevermind my last comment, just looked at your updates
[16:49] <jvwjgames> How do I configure udev
[16:55] <jvwjgames> How do I configure the 70-persistent-net.rules file
[17:31] <jamespage> coreycb, hmm I can't see DAEMON_ARGS being picked up
[17:33] <jamespage> coreycb, ok so that approach does not work
[17:33] <jamespage> we need to set DAEMON
[17:35] <coreycb> jamespage, hmm, let me test it out, you're probably close to EOD
[17:35] <coreycb> jamespage, ok yeah I just noticed that in another package..  my mistake
[17:35] <coreycb> jamespage, I'll fix it up and install test to verify the init scripts are good
[17:35] <jamespage> coreycb, I have a fixup
[17:35] <jamespage> testing now
[17:36] <coreycb> ok
[17:36] <jamespage> pushed
[18:03] <Dulcin> Hi
[18:03] <Dulcin> What's the best way to set website permission/ownership
[18:03] <Dulcin> I was once told it is bad to set ownership to www-data
[18:03] <Dulcin> Is that so?
[18:04] <teward> Dulcin: different web apps need different permissions.  I tend to give group access www-data and keep the site as root or some other ownership.
[18:04] <teward> but meh
[18:04] <teward> :)
[18:05] <Dulcin> so root:www-data for all files, and then something like 775 except for cache/upload folders?
[18:06] <shauno> I see no value in giving www-data write-access to anything it doesn't need to write to.
[18:07] <teward> ^
[18:07] <teward> Dulcin: as i said it depends on the web application
[18:07] <Dulcin> I suppose you're right but could you run me through some scenarios?
[18:08] <Dulcin> I want to get better/smarter at this
[18:08] <Dulcin> but as you can see, I would simply do something like 775
[18:11] <teward> wordpress needs 775 on its cache and upload dirs.  755 is typically what I see on web server directories, or 750 in cases where there's 'private' data that doesn't get exposed to the rest of the system
[18:11] <teward> the problem is it deoends on the web application in use
[18:11] <teward> and what *it* needs
[18:11] <teward> (static content, 750 or 755 is typically what I use)
[18:12] <Dulcin> Ok that makes sense
[18:14] <jayjo> I have a ubuntu 14.04 server that is running very slow with mysql queries. Are there some very quick speed checks to see if something blatant is going on before I just try to upgrade my cores?
[18:16] <dft> jayjo: check your disk IO
[18:17] <dft> what sort of underlying storage are you running for your volumes
[18:17] <dft> but....it could also be just inefficient queries too
[18:19] <jayjo> dft: I don
[18:20] <jayjo> sorry. I don't think it's the queries, I run the same on postgres on a different server and it's fine, I've been running these same queries for months.
[18:20] <jayjo> do you mean iotop?
[18:20] <jayjo> or is there a better tool
[18:21] <dft> jayjo: a quick check on disk io would be to run top and look at your wait times.  If they're high, you typically have a iops issue
[18:21] <dft> dstat works too
[18:23] <dft> dstat --disk-util
[18:23] <dft> do that before/while/after your queries are running and
[18:23] <dft> see what's up
[18:24] <dft> regarding same queries different server/rdbms
[18:25] <dft> what is the storage backing on that postgresql box?
[18:25] <dft> is there RAID involved?
[18:28] <cpaelzer_> jayjo: dft: if those servers are supposed to be same HW same SW everything there should not only look good but also similar
[18:29] <cpaelzer_> so if in all the tools you (dft) described nothing is obvious, jayjo can run them on both systems and spot the difference
[18:30] <cpaelzer_> my favorite there would be to start with "iostat -xtdk 10" (especially avgrq-sz, avgqu-sz, and *await) but with Linux Performance Tools everyone has his own favorites and that is fine :-)
[18:39] <dft> cpaelzer_: he's already identified different rdbms backends which can have nuances in query performance depending on how they're structured as well.
[18:40] <dft> but like all investigations, start from the ground and work your way up the stack
[19:13] <kyle__> Does anyone know what exactly the 'PCH Temp' reported by ipmi is?
[19:14] <sarnold> kyle__: part of the chipset: https://en.wikipedia.org/wiki/Platform_Controller_Hub
[19:17] <kyle__> Oh ok.  So it's the temp for the chipset.
[19:17] <kyle__> I tried figuring out some of these from the super-micro docs.
[19:18] <sarnold> heh, the supermicro docs I've read were fairly dissapointing
[19:19] <kyle__> sarnold: Not as dissapointing as their hardware can be sometimes ;)
[19:19] <sarnold> oww :)
[19:19] <sarnold> I've never worked with it, I always had an impression they were pretty good
[19:20] <kyle__> Heh.  I've got some great boxes from them, but their QC is nearly non-existant, so sometimes you get one that just won't work, and it's like pulling teeth to get them to swap it for you.
[19:22] <sarnold> ow :(
[19:24] <patdk-wk> you must not read supermicro docs, but the documents for the chips used :)
[19:27] <genii> supermicro has documentation?
[19:28] <kyle__> genii: Yup.  Not very good often.
[19:28] <genii> Heh
[19:28] <sarnold> genii: it's fun to watch firefox pdf.js draw the lines of the servers slowly when rendering the things..
[19:29] <genii> I got 3 bad boards in a row from them and then decided not to use them anymore
[19:29] <sarnold> genii: heh, this took about 40 seconds to progressively draw the server on the front page of http://www.supermicro.com/manuals/chassis/tower/SC846.pdf
[19:30]  * genii twitches
[19:30] <sarnold> it's almost as if they said "we want a cute little loading animation when downloading the docs"
[19:30] <kyle__> genii: I got two preconfigured servers from them, that they forgot to apply the license to the BMC.
[19:31] <genii> Ouch
[19:31] <kyle__> genii: Using the tools they provide to the user, I could get it to claim it was licensed, but it would reset the system on almost every remote management comand, via IPMI or their web UI.
[19:32] <kyle__> 'ipmi chassis power status' should not, under any circumstances, for any reason, reboot a server.
[19:32] <patdk-wk> kyle, but what if it didn't know?
[19:32] <patdk-wk> rebooting puts it into a known state
[19:32] <patdk-wk> so it can answer
[19:33] <sarnold> heh
[20:44] <jge> Hey all. Anyone's got some spare cycles to help me make sense of these mysql logs in ubuntu: http://is.gd/uHvZU6
[20:44] <jge> they keep getting logged, no idea what's causing it though..
[23:42] <DannySMc> Hello, I have a question, I am running a server as a ubuntu service and once the server is loaded, when I tail the upstart log, the console is being spammed with unknown command, please do "/help" for more help options, this is running about 50 times a second, and I have no idea where it is coming from... it only happens when it runs a service... Here is the service code: http://paste.ubuntu.com/12628072/
[23:43] <DannySMc> ^ as a service* and I ran it outside of the service and it does not have this problem
[23:45] <DannySMc> Anyone? Even the smallest idea? does the respawn command send commands to the server? or is there something I am missing?
[23:48] <sarnold> DannySMc: can you pastebin the /srv/minecraft/Survival/start.sh script?
[23:49] <sarnold> DannySMc: line 4 of that file looks funny; it's probably unrelated, but try adding a space between the 'runlevel' and the '[' char
[23:50] <DannySMc> sarnold: Added the space, and: http://paste.ubuntu.com/12628122/
[23:50] <teward> sarnold: remember I asked if Landscape can run on 1GB of RAM?
[23:51] <teward> (unrelated to support, but an observation)
[23:51] <sarnold> DannySMc: okay, two thoughts from here: (a) perhaps that 'java' command isn't in the PATH that exists at this point -- try giving the full path to the java executable (b) make sure this file is set to be executable too
[23:51] <sarnold> teward: yeah, any luck? :)
[23:51] <teward> sarnold: well, i got it to run...... with severe limitations
[23:52] <sarnold> aww :(
[23:52] <teward> sarnold: either old hardware or too much resources needed, but i could get landscape-server up, with 1GB of RAM, but it only could handle 3 computers
[23:52] <teward> HATE my laptop
[23:52] <teward> sarnold: after the 4th computer connected, boom, death
[23:52] <teward> so meh
[23:52] <DannySMc> sarnold: I can actually run that start.sh script inside the directory and I get no log at all?
[23:52] <sarnold> DannySMc: when you run it by hand it has a very different execution envirnment than when it is run by upstart
[23:53] <DannySMc> Okay may I ask a silly question sarnold but what is the path to my java?
[23:53] <sarnold> DannySMc: most programs fail because they expect to find an executable in the PATH that you use in your shell, but the services start with a much smaller PATH environment variable
[23:53] <DannySMc> sarnold: but the thing is the server runs
[23:53] <sarnold> DannySMc: run 'which java' to find out
[23:54] <DannySMc> sarnold: the server runs, please beware slight lag: http://paste.ubuntu.com/12628010/
[23:55] <DannySMc> sarnold: This is a fresh install so nothing else is prepacked with it
[23:55] <sarnold> DannySMc: oh! it's a minecraft thing :)
[23:55] <DannySMc> sarnold: yep, I was on yesterday :P
[23:56] <DannySMc> sarnold: as you can see in the space of 4 minutes it called this unknown command just over 700,000 times
[23:56] <teward> "unknown command" sounds like an internal failure
[23:56] <sarnold> DannySMc: heh, I just meant that it's probably not upstart's fault then, if minecraft is actually running now..
[23:56] <DannySMc> sarnold: no it is inaccesible
[23:57] <sarnold> DannySMc: but there it is :) it's running and spewing endless errors about it :)
[23:57] <DannySMc> sarnold: the server runs then seems to time out, because "I assume" the spam
[23:57] <sarnold> DannySMc: what kind of config files does minecraft take? I suspect an error in one of those
[23:57] <DannySMc> sarnold: It works without using upstart though
[23:57] <DannySMc> sarnold: if I did ./start.sh in the directory it runs perfectly
[23:58] <DannySMc> sarnold: only does it error when it runs with upstart
[23:58] <DannySMc> sarnold: which is why I thought you guys may see if there is some kind of recursive part of the scripts I gave you, that is attempting to send a command to the server...?
[23:59] <DannySMc> sarnold: and they mainly take either .properties or .yml
[23:59] <tarpman> DannySMc: when you start it yourself with ./start.sh does it fork off to the background, or stay in the foreground until you ctrl-c it?
[23:59] <tarpman> DannySMc: if the start script forks, that might not play as you expect with 'respawn' ...