[00:00] The last line is a valid crontab entry, all the rest is a valid bash script so far. [00:00] ?? [00:00] a crontab entry is a single line. [00:01] there's bin a man somewhere that it's allowed to pass env vars [00:01] in crontab file [00:01] ?? [00:02] crontab -l should reflect a single line invoking your script. [00:02] your python script. [00:03] ok [00:03] so they source a file [00:03] before command [00:03] http://serverfault.com/questions/673480/load-users-environment-variables-in-a-cronjob [00:06] I suspect you do know https://help.ubuntu.com/community/CronHowto [00:07] are you offering to add env vars just with "env"? [00:08] sourcing from env.sh sounds better in this case, there's of them there [00:08] will be more latter on [00:10] No. I am offering to either use a crontab file entry, OR a /etc/cron.*/ script [00:10] that what serverfault offers http://paste.openstack.org/show/474756 [00:10] source it from file [00:11] crontab -f doesn't give no errors, or any other output [00:12] using crontab file entry. passing SHELL var in there is allowed in order cron to use bash instead of sh [00:12] sourcing is also allowed it says [00:13] what else :) [00:38] 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] And if that isn't it, what else might be the problem? [00:39] 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] without using init, upstart, or systemd ? Like sending the command directly to the kernel bypassing all startup/shutdown actions without using the sysrq key? === Lcawte is now known as Lcawte|Away [00:40] bananapie: Perhaps "poweroff" [00:40] Ah, maybe not that low level. [00:41] thanks [00:41] poweroff -f [00:41] :D [00:41] aha, good good :) [00:41] 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] thx [00:42] No problem! [00:43] 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] I love linux :d [00:44] 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] haha [00:49] actually, it was pretty funny. It would have been frustrating if I didn't know about the init parameter in grub :| [00:51] 12 years ago, I got a linux machine stuck in an infinite reboot loop, I just reinstalled the entire machine. === markthomas is now known as markthomas|away === bananapie is now known as bananapie|away === bananapie|away is now known as bananapie|sleepi [04:33] * keithzg tends to just be lazy and boot from USB or such and just chroot [06:53] Good morning. === pdostal_ is now known as pdostal === lukasa is now known as lukasa_away === lukasa_away is now known as lukasa === arlen is now known as arlen_ === arlen_ is now known as arlen__ === arlen__ is now known as arlen === cz2 is now known as swagnemite [08:34] 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 is now known as dannysmc95 [08:37] Sorry say to this user [08:41] dannysmc95: Any errors? [08:43] lordievader: how do I find out? [08:44] First tell me what state you are in. 'Not working' is very vague. [08:44] State? what do you mean? [08:45] What do you see when you go to your phpmyadmin page. [08:48] nothing, does not exist lordievader [08:48] dannysmc95: So you get a 404? [08:48] lordievader: shinexusuk.tk/phpmyadmin [08:48] I get that [08:48] Yes, a 404. Is phpmyadmin installed? And if so, how? [08:49] Also, don't make it publicly available... [08:54] lordievader: what do you mean? it's not you have to login twice? [08:54] and Its a dedicated server that is not located near me, so I need to get to it via phpmyadmin [08:54] and yeah its installed [08:54] lordievader: [09:03] dannysmc95: How? [09:03] lordievader: how what? [09:03] How did you install phpmyadmin? [09:04] sudo apt-get install phpmyadmin [09:07] dannysmc95: Right, what do you see in your apache logs? [09:07] I get the feeling the phpmyadmin configuration ain't enabled. [09:08] Where are thet? lordievader (I am new the Ubuntu) [09:08] they* [09:10] The logs or the config? (logs: /var/log/apache2, config: /etc/apache2/ [09:10] ) [09:12] I have "access.log", "error.log", "other_vhosts_access.log" [09:16] lordievader: [09:20] dannysmc95: Could you pastebin the output of 'apache2ctl -S'? [09:20] !paste [09:20] For posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic. [09:20] I know what that is, should I do pastebinit apache2ctl -S [09:21] apache2ctl -S |pastebinit [09:22] http://paste.ubuntu.com/12623253/ === Lcawte|Away is now known as Lcawte [09:23] Hmm, right it doesn't list aliases. [09:24] So how do I fix that? [09:24] I'd dig around in the conf dirs to see where the phpmyadmin alias is configured. [09:24] Then see if it is enabled. [09:25] where would they be? [09:26] No idea, I don't have phpmyadmin installed. [09:26] I rather dislike it. [09:28] Oh, do you have a better version? that is easy to use? [09:28] Command line is the way to go [09:28] ^that [09:28] Phpmyadmin is just another vulnerability waiting to happen. [09:28] Ssh to your sql server and connect locally. [09:28] Helpful, I need to be able to see what is in the database on screen [09:29] how? [09:29] 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] dannysmc95: show tables; select * from table_name; [09:29] dannysmc95: You should know that ;) [09:30] Maybe, but never used it on command line, do I need something installed? [09:30] If you ssh to your sql server likely everything is already installed. [09:31] Where is my sql server hosted? [09:31] It's the same server already? [09:31] You should know that. We don't. [09:31] do I ssh to a port?:S [09:31] I am on the dedicated server where it is [09:32] dannysmc95: Do you host the sql server? [09:33] Yeah it's hosted on my dedicated server [09:34] dannysmc95: You've just answered your own question [09:35] So ssh to your dedicated server -> mysql -u -p [09:36] so it does mysql> [09:36] That's what the my in phpmyadmin stands for [09:37] 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] You mean you now have a promt 'mysql>'? That means you are logged in. [09:38] dannysmc95: "show databases;" after you get to the prompt [09:38] dannysmc95: http://www.w3schools.com/sql/ [09:38] lordievader: yeah [09:53] hi guys, anyone with some bind9 zone experience i can't work out why my local dns isn't resolving correctly === ikonia_ is now known as ikonia [11:58] coreycb, yes please could you review the ceilometer-polling stuff [12:02] 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] 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] coreycb, yeah - zigo did that in debian [12:58] coreycb, if you want me to review before upload +1 [12:58] I can do that [12:58] jamespage, thanks I'll let you know when I'm done [13:08] coreycb, ok - I have 1hr back of my day [13:08] coreycb, if you want to look at the ceilometer stuff, I'll pickup why ryu ftbfs on i386 [13:08] jamespage, I won't argue with that proposal [13:09] oslo utils and config also in the UNACCEPTED queue for wily [13:14] oslo utils? [13:14] * RoyK lives in oslo === njalk_ is now known as njalk [14:20] coreycb, ryu test failures resolved - uploading now [14:21] jamespage, cool thanks. so how does unaccepted affect us, as I see oslo-utils and config are in wily-proposed. [14:21] coreycb, they have been accepted now [14:22] jamespage, ok [14:22] it means we're still testing with the previous version [14:25] coreycb, ceilometer for some reason won't unit test on the jenkins backport-o-matic [14:25] I've been backporting and testing that one manually [14:28] jamespage, hmm ok I'll look into it [14:28] not a priority for now === lukasa is now known as lukasa_away === lukasa_away is now known as lukasa [15:19] How can I add /dev/sdb (LVM) to existing Ubuntu install? [15:20] fdisk shows as 8e (Linux LVM) [15:20] can I just format that and add to fstab or do I have to do something special? [15:21] zburns: pvcreate /dev/sdb ; vgextend vgname /dev/sdb [15:21] zburns: then lvextend ... [15:22] see the manual [15:23] RoyK: ok will do thanks [15:32] jamespage, ceilometer's pushed if you want to take a look [15:33] jamespage, hmm [15:34] jamespage, shoot I might need to restore the binary packages === ogra_ is now known as ogra === dosaboy_ is now known as dosaboy [16:03] coreycb, yup [16:03] sorry had to reboot [16:08] coreycb, your agent packages need to depend on ceilometer-polling I think [16:11] coreycb, and --namespaces -> --polling-namespaces [16:13] coreycb, also the pidof check in the autopkgtests won't work with the switch in underlying binary [16:14] coreycb, I also don't think we need a daemon running for ceilometer-polling [16:14] its just a binary imho [16:14] wait [16:14] hmm [16:15] coreycb, we might be better to move ceilometer-polling to ceilometer-common [16:19] coreycb, lemme tweak and push [16:23] coreycb, ok pushed [16:23] coreycb, testing a bit as well [16:35] jamespage, ok. I'll drop my add of the agent binaries then. [16:41] jamespage, nevermind my last comment, just looked at your updates [16:49] How do I configure udev [16:55] How do I configure the 70-persistent-net.rules file === markthomas|away is now known as markthomas === lamont is now known as lamont` === lamont` is now known as lamont === lamont is now known as lamont_ === lamont_ is now known as lamont === lamont is now known as lamont2 === lamont2 is now known as lamont === lamont is now known as lamont__ === lamont__ is now known as lamont [17:31] coreycb, hmm I can't see DAEMON_ARGS being picked up [17:33] coreycb, ok so that approach does not work [17:33] we need to set DAEMON [17:35] jamespage, hmm, let me test it out, you're probably close to EOD [17:35] jamespage, ok yeah I just noticed that in another package.. my mistake [17:35] jamespage, I'll fix it up and install test to verify the init scripts are good [17:35] coreycb, I have a fixup [17:35] testing now [17:36] ok [17:36] pushed === Dulcin_ is now known as Dulcin [18:03] Hi [18:03] What's the best way to set website permission/ownership [18:03] I was once told it is bad to set ownership to www-data [18:03] Is that so? [18:04] 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] but meh [18:04] :) [18:05] so root:www-data for all files, and then something like 775 except for cache/upload folders? [18:06] I see no value in giving www-data write-access to anything it doesn't need to write to. [18:07] ^ [18:07] Dulcin: as i said it depends on the web application [18:07] I suppose you're right but could you run me through some scenarios? [18:08] I want to get better/smarter at this [18:08] but as you can see, I would simply do something like 775 [18:11] 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] the problem is it deoends on the web application in use [18:11] and what *it* needs [18:11] (static content, 750 or 755 is typically what I use) [18:12] Ok that makes sense [18:14] 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] jayjo: check your disk IO [18:17] what sort of underlying storage are you running for your volumes [18:17] but....it could also be just inefficient queries too [18:19] dft: I don [18:20] 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] do you mean iotop? [18:20] or is there a better tool [18:21] 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] dstat works too [18:23] dstat --disk-util [18:23] do that before/while/after your queries are running and [18:23] see what's up [18:24] regarding same queries different server/rdbms [18:25] what is the storage backing on that postgresql box? [18:25] is there RAID involved? [18:28] 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] 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] 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 :-) === lukasa is now known as lukasa_away [18:39] 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] but like all investigations, start from the ground and work your way up the stack === lukasa_away is now known as lukasa [19:13] Does anyone know what exactly the 'PCH Temp' reported by ipmi is? [19:14] kyle__: part of the chipset: https://en.wikipedia.org/wiki/Platform_Controller_Hub [19:17] Oh ok. So it's the temp for the chipset. [19:17] I tried figuring out some of these from the super-micro docs. [19:18] heh, the supermicro docs I've read were fairly dissapointing [19:19] sarnold: Not as dissapointing as their hardware can be sometimes ;) [19:19] oww :) [19:19] I've never worked with it, I always had an impression they were pretty good [19:20] 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] ow :( === lukasa is now known as lukasa_away [19:24] you must not read supermicro docs, but the documents for the chips used :) [19:27] supermicro has documentation? [19:28] genii: Yup. Not very good often. [19:28] Heh [19:28] genii: it's fun to watch firefox pdf.js draw the lines of the servers slowly when rendering the things.. [19:29] I got 3 bad boards in a row from them and then decided not to use them anymore [19:29] 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] it's almost as if they said "we want a cute little loading animation when downloading the docs" [19:30] genii: I got two preconfigured servers from them, that they forgot to apply the license to the BMC. [19:31] Ouch [19:31] 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] 'ipmi chassis power status' should not, under any circumstances, for any reason, reboot a server. [19:32] kyle, but what if it didn't know? [19:32] rebooting puts it into a known state [19:32] so it can answer [19:33] heh [20:44] 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] they keep getting logged, no idea what's causing it though.. === Lcawte is now known as Lcawte|Away === PrudentMav is now known as PrudentMav[away] === PrudentMav[away] is now known as PrudentMav === PrudentMav is now known as PrudentMav[away] === PrudentMav[away] is now known as PrudentMav [23:42] 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] ^ as a service* and I ran it outside of the service and it does not have this problem [23:45] Anyone? Even the smallest idea? does the respawn command send commands to the server? or is there something I am missing? [23:48] DannySMc: can you pastebin the /srv/minecraft/Survival/start.sh script? [23:49] 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] sarnold: Added the space, and: http://paste.ubuntu.com/12628122/ [23:50] sarnold: remember I asked if Landscape can run on 1GB of RAM? [23:51] (unrelated to support, but an observation) [23:51] 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] teward: yeah, any luck? :) [23:51] sarnold: well, i got it to run...... with severe limitations [23:52] aww :( [23:52] 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] HATE my laptop [23:52] sarnold: after the 4th computer connected, boom, death [23:52] so meh [23:52] sarnold: I can actually run that start.sh script inside the directory and I get no log at all? [23:52] DannySMc: when you run it by hand it has a very different execution envirnment than when it is run by upstart [23:53] Okay may I ask a silly question sarnold but what is the path to my java? [23:53] 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] sarnold: but the thing is the server runs [23:53] DannySMc: run 'which java' to find out [23:54] sarnold: the server runs, please beware slight lag: http://paste.ubuntu.com/12628010/ [23:55] sarnold: This is a fresh install so nothing else is prepacked with it [23:55] DannySMc: oh! it's a minecraft thing :) [23:55] sarnold: yep, I was on yesterday :P [23:56] sarnold: as you can see in the space of 4 minutes it called this unknown command just over 700,000 times [23:56] "unknown command" sounds like an internal failure [23:56] DannySMc: heh, I just meant that it's probably not upstart's fault then, if minecraft is actually running now.. [23:56] sarnold: no it is inaccesible [23:57] DannySMc: but there it is :) it's running and spewing endless errors about it :) [23:57] sarnold: the server runs then seems to time out, because "I assume" the spam [23:57] DannySMc: what kind of config files does minecraft take? I suspect an error in one of those [23:57] sarnold: It works without using upstart though [23:57] sarnold: if I did ./start.sh in the directory it runs perfectly [23:58] sarnold: only does it error when it runs with upstart [23:58] 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] sarnold: and they mainly take either .properties or .yml [23:59] 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] DannySMc: if the start script forks, that might not play as you expect with 'respawn' ...