[00:34] <Jeeves_Moss> how do I convert a large number of windows IIS files into somethign that AWStats can read and add to the current log set?  I've pulled them off of an old server that was decomissioned.
[06:04] <Alina-malina> good mornin
[08:16] <lordievader> Good morning.
[09:32] <leeyaa> hello
[09:33] <leeyaa> i did upgrade of 12.04 LTS to 14.04 LTS, xen server host and it seems upgrade messed up xen hypervisor versioning
[09:34] <leeyaa> i have 4.4 installed, but when i try to use xl or xm it is looking for 4.1
[09:34] <leeyaa> any idea how to resolve it ?
[09:35] <smb> leeyaa, do you still have any 4.1 packages installed (dpkg -l|grep xen) except the hypervisor one?
[09:36] <leeyaa> smb: yeah it seems libxen-4.1 is still present along with libxen-4.4
[09:39] <smb> leeyaa, Ok, that one might be ok while transitioning. Just to make sure, you rebooted after the upgrade? And if you have grub menu visible make sure the right hv is selected
[09:40] <leeyaa> smb: server was rebooted. i have no console access though, so i cant check visually which kernel is selected. check with grub maybe ?
[09:40] <leeyaa> it is using 3.2.0-31 so i guess thats older
[09:40] <leeyaa> hm
[09:41] <leeyaa> latest is 3.13
[09:41] <smb> for 14.04, right
[09:42] <smb> you can check /boot/grub/grub.cfg for which entry is default and what that points to
[09:42] <leeyaa> that means older kernel is booted
[09:42] <leeyaa> it is set to set default="0>2"
[09:42] <leeyaa> how to tell which one is latest and choose it ?
[09:43] <smb> Actually with 14.04 there should be a /etc/default/grud.d/xen.cfg which should override the default. There would be a message about it when running update-grub though
[09:44] <leeyaa> nah i have no /etc/default/grud.d/xen.cfg
[09:44] <smb> default should be a text string "set default="Ubuntu GNU/Linux, with Xen hypervisor""
[09:44] <leeyaa> ah sorry typo
[09:45] <leeyaa> smb: i believe it does boot with xen but it boots older kernel
[09:45] <leeyaa> so it is a matter of changing boot order i guess
[09:46] <leeyaa> and yes XEN_OVERRIDE_GRUB_DEFAULT=1
[09:48] <smb> Depends on whether that default string ended up in /boot/grub/grub.cfg. If it is a number it boots the x.th element with the string it would be the first menuentry with that string
[09:49] <leeyaa> smb: i have no entry for 3.13.0-40 in grub config
[09:50] <leeyaa> lets see i might have forgotten to run update-grub
[09:51] <leeyaa> i though upgrade scripts do that for me
[09:51] <smb> Yeah, they should
[09:53] <smb> assuming you ran do-release-upgrade
[09:53] <leeyaa> i did
[09:53] <leeyaa> well update-grub detects the new kernel
[09:53] <leeyaa> but i have no menu entry for it http://paste.ubuntu.com/9342672/
[09:57] <kevindf> Hello, I'm trying to ping on my Ubuntu server but getting "Operation not permitted" when I disable my firewall I can ping perfectly. I've tried analyzing my Iptables http://pastebin.com/ESVWHmjN but don't see wich rule is not allowing the ping. I've heard flushing my iptables would work but I don't want to do that
[09:57] <kevindf> Anyone know what might be wrong in my Iptables rules?
[09:58] <smb> thats odd... does it contain any "Xen 4.4" or even "3.13" for kernel versions at all?
[10:04] <smb> leeyaa, Somehow when I would do the same grepping as you on a 14.04 server I get a completely different generic layout. http://paste.ubuntu.com/9342755/ The one you got feels like a file generated in 12.04
[10:04] <leeyaa> smb: yes. i just need to force it to boot from latest kernel
[10:06] <smb> leeyaa, more latest hypervisor
[10:06] <leeyaa> smb: yes
[10:06] <smb> You should have a /boot/xen-4.4-amd64 as well
[10:07] <smb> This one will change /sys/hypervisor/version/* which is used by the tools
[10:07] <leeyaa> smb: yeah i have /boot/xen-4.4-amd64.gz
[10:08] <smb> leeyaa, I would probably check the access/mod time of /boot/grub/grub.cfg to ensure this actually gets updated
[10:09] <smb> Since you ran update-grub again it should be todays date
[10:09] <leeyaa> smb: it does
[10:09] <leeyaa> -r--r--r-- 1 root root 20924 Dec  2 10:59 /boot/grub/grub.cfg
[10:11] <leeyaa> ffs
[10:11] <leeyaa> i had update-grub and update-grub2
[10:11] <leeyaa> this box is such a mess
[10:13] <smb> leeyaa, Yeah, I was just starting to wonder whether grub-common was the right version... Actually I think the move from grub to grub2 was pre-12.04 but one had to manually run a script...
[10:14] <leeyaa> now that grep sees the new xen kernel
[10:14] <leeyaa> but how the heck to force it to boot from ti :D
[10:16] <smb> leeyaa, If its the newer layout the default string boots the first xen entry and through the ordering it should be the latest...
[10:16] <smb> Its hard to say for sure with an unknown boot config :)
[10:18] <leeyaa> smb: thats the whole grub.cfg http://paste.ubuntu.com/9342904/
[10:18] <leeyaa> i miss grub1 :D
[10:19] <smb> leeyaa, the cfg file was a bit more human readable but from the functionality I rather like grub2 ;)
[10:20] <leeyaa> smb: ok then how to choose 3.13 ;p
[10:20] <smb> leeyaa, I believe that if you reboot now, you would be fine
[10:20] <leeyaa> smb: nope tried
[10:20] <leeyaa> it boots into 3.2.0-31-generic
[10:22] <smb> Oh wait ... there was some script which was supposed to migrate people from grub to grub2. If there is still grub1 there it selects what to boot from /boot/grub/menu.cfg
[10:23] <leeyaa> what about another approach - is it possible to check which entry is 3.13 and force it to boot that entry ?
[10:25] <leeyaa> ima change GRUB_DEFAULT="0>2" to GRUB_DEFAULT="Xen 4.4-amd64"
[10:25] <leeyaa> thats what i have on the servers without problems
[10:27] <smb> leeyaa, The main question right now is whether this servers uses menu.cfg or grub.cfg. The grub.cfg you posted should boot the right kernel. You probably should check whether the kernel/hv you get booted into makes sense when looking at menu.cfg
[10:28] <leeyaa> smb: do you mean menu.lst ?
[10:29] <smb> leeyaa, Ah yeah that... it has been a while
[10:29] <leeyaa> i have no idea how to determine that. menu.lst looks normal too
[10:30] <smb> leeyaa, maybe pastbinit for me, too
[10:31] <leeyaa> this is menu.lst smb http://paste.ubuntu.com/9342994/
[10:33] <smb> leeyaa, Right, that default is 0 and the first element to hit is the new hv/kernel...
[10:33] <leeyaa> exaftly ...
[10:33] <leeyaa> exactly ...
[10:34] <smb> really strange... hm, is there something with 'grub-editenv /boot/grub/grubenv list'
[10:34] <smb> something like next_entry set...
[10:38] <leeyaa> smb: that prints nothing
[10:38] <smb> ok, so not overriding the default there... hm
[10:41] <smb> leeyaa, The only one odd thing with your grub.cfg I notice is that the script order might be modified. By default that would be 10_linux, then 20_linux_xen. And yours is 20_linux_xen and the 21_linux
[10:45] <smb> Maybe that creates a confusing cfg file. But the whole file now only has Xen 4.4 elements, so despite a 3.2 kernel grep . /sys/hypervisor/version/* should now be 4.4 and the xen cmds working
[10:51] <leeyaa> smb: nope xen version wont change until i dont change the kernel ;p
[10:52] <smb> leeyaa, wrong. the dom0 kernel has nothing to do with the hv version
[10:53] <leeyaa> smb: well /sys/hypervisor/version/ still shows 4.1
[10:54] <Jeeves_Moss> is anyone here good with AWstats?  I combined my old IIS logs with my apache logs, and now it's skipping everything when it goes to do the logging run
[10:54] <smb> In that case, whatever you booted was not using the grub.cfg nor the menu.lst you look at. Because both now have no xen-4.1 to boot
[10:55] <smb> leeyaa, Just a guess, but I saw root=md0, so you normally would have /boot on a seperate fs/partition
[10:55] <smb> leeyaa, Make sure that is mounted
[11:00] <leeyaa> smb: yeah its mounted
[11:07] <smb> leeyaa, Somehow I would be at the end of my knowledge. Whatever is booting the system, it cannot be possibly using either config file that currently is in /boot/grub. I don't know how to figure out what gets booted. Not sure I want to suggest reinstalling grub2 to the mbr on a host I had no console...
[11:16] <leeyaa> smb: i think it is installing grub on wrong disk rofl
[11:17] <smb> leeyaa, Well that does explain a lot. So maybe dpkg-reconfigure grub-pc lets you set things right?
[11:46] <tafa2> salt puppet or chef?
[11:59] <NigeyS> would anyone have an idea how to manage vhosts on ubuntu 14.04 that doesnt involve storing the vhost configs in sites-available and sites-enabled ? i'd like to store the configs on a nfs mount instead.
[12:03] <Odd_Bloke> NigeyS: For Apache?
[12:04] <Odd_Bloke> NigeyS: Assuming so: /etc/apache2/apache2.conf has an "IncludeOptional sites-enabled/*.conf"; you should be able to do something along those lines pointing at your own path.
[12:06] <NigeyS> Odd_Bloke yup, 2.4.7 i think it is
[12:07] <NigeyS> i see. thanks, i'll take a look at that, our eold setup was on RHEL so it was just Include /bla/vhosts/*.conf
[12:08] <Odd_Bloke> NigeyS: IncludeOptional just avoids erroring if there isn't anything to include.
[12:08] <Odd_Bloke> NigeyS: So essentially the same thing. :)
[12:09] <NigeyS> got ya, that's very helpful, thanks!
[12:13] <NigeyS> while i'm here, dont suppose anyone knows how to get rid of this from dmesg .. ? seems to be specific to EC2 instances ..   xen:balloon: reserve_additional_memory: add_memory() failed: -17
[12:15] <pmatulis> morning
[12:16] <acmehandle> I'm on a VPS that runs ubuntu server, is there a way I can save the template, or take a snapshot that way if I need to rebuild I dont have to start from scratch?
[12:19] <NigeyS> acmehandle does the provider you have the vps with not have a snapshot function ?
[12:19] <acmehandle> They claim they do but when I click on the backup link nothing shows up and they claim they take a nightly snapsho
[12:24] <NigeyS> might be worth emailing them to see why nothing shows up
[12:44] <smb> NigeyS, the ballon message should go away with the latest kernels that just were released
[12:44] <smb> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1304001
[13:00] <NigeyS> smb nice! thanks, ill update the kernel then.
[13:16] <kully3xf> Hey all. I have two folders i've been rsyncing. /home/hcc/hcc to /var/www/hcc : somehow they've become hardlinked. I need to delete them, and start over, I deleted the /var/www folder, but cannot delete the /home directory as it tells me device or resource busy
[13:17] <kully3xf> I've deleted everything in side, it's an empty directory
[13:20] <NigeyS> you want to delete /home ?
[13:21] <kully3xf> no just the one folder in the user's directory. /home/hcc/hcc
[13:22] <kully3xf> rm -rf returns rm: cannot remove `hcc': Device or resource busy
[13:22] <kully3xf> but there's nothign in the directory
[13:22] <NigeyS> ls -lah show any hidden files ?
[13:22] <RoyK> NigeyS: -a does
[13:22] <kully3xf> nah
[13:22] <kully3xf> total 0
[13:23] <RoyK> kully3xf: what about 'lsof /home/hcc/hcc' ?
[13:23] <kully3xf> and ls -al on the directory shows d, so it's not linked
[13:23] <NigeyS> weird, but yeah try lsof
[13:24] <kully3xf> command bash twice user me, fd cwd, type dir, device 202,80, size /off 0 node number name hcc
[13:24] <kully3xf> both are the same
[13:26] <kully3xf> lsof: WARNING: can't stat() ext4 file system /home/hcc_bids/hcc_bids (deleted)       Output information may be incomplete. COMMAND   PID       USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME bash     9078 {myuser}  cwd    DIR 202,80        0 5161011 hcc bash    19106 {myuser}  cwd    DIR 202,80        0 5161011 hcc_bids
[13:36] <kully3xf> no ideas? :(
[13:41] <ej> how can I set an interface to use a static IP?
[13:42] <ej> always, as soon as it's connected
[13:44] <kully3xf> http://www.howtoforge.com/linux-basics-set-a-static-ip-on-ubuntu
[13:56] <ej> kully3xf: thanks
[14:38] <kevindf> Is there a free version available of Nagios for home users?
[14:39] <Pici> kevindf: Er... yes?
[14:42] <RoyK> kevindf: apt-get install nagios? ;)
[14:42] <kevindf> I tought Nagios was for enterprise only :) just noticed now they have Nagios Core
[14:43] <RoyK> kevindf: to be honest, choose something else
[14:43] <kevindf> How about Monin?
[14:43] <RoyK> kevindf: nagios hasn't been updated much the last 10 years or so
[14:43] <kevindf> Monit*
[14:43] <Pici> I use icinga personally. it is a fork of nagios.
[14:43] <RoyK> kevindf: I use munin *and* icinga (a nagios fork), and we have some old xymon, and we're moving towards zabbix
[14:43] <RoyK> munin is really nice for trending
[14:44] <RoyK> and easy to setup
[14:44] <RoyK> one system doesn't exclude the other
[14:44] <kevindf> alright, thank you for your advice. will take a look at icinga and munin
[14:44] <Pici> I've been using pnp4nagios recently, but munin is nice for things that you don't necessarily need alerts for (although I think it might be able to do those as well)
[14:46] <pmatulis> both munin and nagios are in main which makes them fully supported
[14:48] <RoyK> kevindf: I'd start off with munin - it won't hurt - then look into icinga and zabbix and whatnot
[14:50] <RoyK> kevindf: icinga is built on the old nagios horse (it's a fork plus a bunch of new code), and I'm not sure how good it is compared to other tools these days
[14:51] <kevindf> Will do that, It's more for experimenting that I'm installing monitoring software so it's a good thing to test them all out
[14:51] <RoyK> ah :)
[15:07] <Alina-malina> hmmm how can i stop servers all together, apache and mysql with 1 line of command?
[15:08]  * pmatulis kind of wants to say 'sudo poweroff' but no
[15:09] <pmatulis> Alina-malina: you could prolly do some upstart stuff to do it.  otherwise a shell script
[15:10] <Alina-malina> well sometimes i need to stop both to make some c hanges quickly, since it is high loaded resourse
[15:10] <Alina-malina> so good to know such features
[15:10] <Alina-malina> maybe some  .bat script?
[15:14] <lordievader> Alina-malina: Some bash script, or some upstart script. I've written a upstart script that starts/stops pulseaudio+mpd.
[15:15] <Alina-malina> hmmm i have heared about that stuff first time
[15:54] <leeyaa> smb: thanks for the help earlier. it was failed raid ;p
[15:55] <leeyaa> which really explains all
[15:55] <smb> leeyaa, awesome... not. but you're welcome :)
[16:30] <acmehandle> How do I set up my var/log/syslog ?
[16:30] <acmehandle> The machine is running but the log is 0
[17:55] <crinkle> hello, I was directed to ask bigjools or Odd_Bloke about getting packages in ubuntu cloud archive, are they around?
[17:55] <pmatulis> crinkle: they appear to be
[17:56] <crinkle> I'm hoping to see https://pypi.python.org/pypi/python-openstackclient in UCA at some point and wondering what the process and timeline would be
[17:57] <pmatulis> crinkle: if no help here then i suggest sending a note to ubuntu-server mailing list
[17:58] <crinkle> pmatulis: great, thank you
[19:28] <hadifarnoud> I just need a very simple email forwarding on my server. for example, forward invite@domain.com to something@gmail.com
[19:29] <pmatulis> hadifarnoud: this server is acting as the final destination MTA?
[19:29] <hadifarnoud> pmatulis: not sure what that means
[19:29] <pmatulis> hadifarnoud: what happens when you do not have such a forwarding set up?
[19:30] <hadifarnoud> pmatulis: delivery failure. I have no mail server whatsoever
[19:31] <pmatulis> hadifarnoud: well, then forwarding won't work b/c the server is not even receiving the mail
[19:31] <hadifarnoud> pmatulis: I know. my question wasn't about the forwarding part only. I need a light setup to just receive email on my server.
[19:31] <hadifarnoud> whaat should I use?
[19:32] <sarnold> do you need to receive email at this server at all? you could just let google handle it all for you
[19:33] <hadifarnoud> sarnold: unfortunately, Google apps blocked Iran IPs. sanctions suck
[19:33] <pmatulis> hadifarnoud: you need to configure an MTA (mail receiving server) that receives invite@domain.com
[19:34] <sarnold> hadifarnoud: ah. that is very frustrating.
[19:34] <hadifarnoud> pmatulis: can you name a few? I'd google for tuts
[19:34] <sarnold> hadifarnoud: take a look at postfix or exim; I slightly prefer postfix but both are fine mail servers.
[19:34] <hadifarnoud> sarnold: not to mention it's stupid. what does Google have to do with anything
[19:35] <hadifarnoud> cool
[19:35] <pmatulis> hadifarnoud: no, no, you need to have some control over an MTA.  do you?
[19:35] <hadifarnoud> pmatulis: what do you mean by control?
[19:35] <pmatulis> hadifarnoud: ability to configure it via root privileges
[19:35] <hadifarnoud> pmatulis: yep
[19:35] <hadifarnoud> I'm thinking about having a separate mail server. it looks easier :D
[19:36] <pmatulis> hadifarnoud: good.  what software is it running?
[19:36] <sarnold> hadifarnoud: gmail's anti-spam is significantly better than anything I have ever configured myself.
[19:36] <hadifarnoud> pmatulis: nginx and mysql
[19:36] <pmatulis> hadifarnoud: hmm, i'm probably misunderstanding your situation.  is invite@domain.com an active email?
[19:37] <hadifarnoud> pmatulis: nope. we do not have ANY mail server at all. if you send one to that address, it will not deliver.
[19:38] <pmatulis> hadifarnoud: ok finally
[19:38] <hadifarnoud> this is a quick fix to be able to receive email at invite@domain.com for now
[19:38] <pmatulis> hadifarnoud: sadly, email servers are never a quick fix
[19:39] <sarnold> so true.
[19:39] <pmatulis> hadifarnoud: but postfix is the standard MTA in the Ubuntu community
[19:40] <hadifarnoud> pmatulis: now I have to find a tut that just handles postfix
[19:40] <pmatulis> hadifarnoud: well not really
[19:40] <pmatulis> hadifarnoud: actually, yes, if you will be forwarding to gmail
[19:41] <hadifarnoud> :)
[19:42] <pmatulis> hadifarnoud: your biggest concern is to not become an open relay.  and no port blocking from your ISP?
[19:42] <benbro1> what happens when two programs compete over bandwidth?
[19:42] <hadifarnoud> pmatulis: dude. email servers are hard
[19:43] <pmatulis> hadifarnoud: yeah
[19:43] <benbro1> I have a video streaming server and a web server serving static files
[19:43] <hadifarnoud> pmatulis: what should I set FQDN? mail.domain.com or just domain.com?
[19:43] <benbro1> can I give more priority to the streaming server?
[19:43] <pmatulis> hadifarnoud: dude, you'll need to study :)
[19:43] <sarnold> benbro1: yes, http://lartc.org/howto/
[19:43] <hadifarnoud> pmatulis: I know, right?
[19:44] <benbro1> sarnold: reading thanks
[19:44] <hadifarnoud> just not clear FQDN role is here. if my mail is me@domain.com, then FQDN should be domain.com or I can use anything and set MX to that?
[19:45] <pmatulis> hadifarnoud: you'll need a domain bro
[19:45] <hadifarnoud> pmatulis: got one. camva.ir
[19:45] <pmatulis> hadifarnoud: good
[19:45] <hadifarnoud> so I can set hostname to mail.camva.ir?
[19:46] <hadifarnoud> or has FQDN has to be camva.ir?
[19:46] <pmatulis> hadifarnoud: it can be anything but that sounds very good
[19:46] <hadifarnoud> ok cool
[19:46] <pmatulis> hadifarnoud: what matters in terms of names is in DNS
[19:46] <pmatulis> hadifarnoud: but it's good to keep them in sync
[19:46] <hadifarnoud> I thought so pmatulis
[19:46] <teward> FQDN means fully qualified domain name.  mail.camva.ir is acceptable.  doombringer.domain.tld is also another acceptable, so long as it resolves to one specific server that doesn't have a dynamic rotation
[19:46] <teward> (dynamic mailserver IPs that change frequently likely will end up badly for one)
[19:47] <hadifarnoud> aww, thanks teward.
[19:47] <teward> (dynamically changing IPs on mailservers might usually end up flagged as possible spam in some spamfiltering)
[20:17] <aandy_> hi guys, is it possible to emulate VT/tty/console over ssh? as in, "virtual" keyboard over ssh?
[20:21] <sarnold> aandy_: screen / tmux / script do various amounts of terminal emulation
[20:22] <aandy_> sarnold: neat idea with screen/tmux, i hadn't thought of that. scripting as in bash + /dev/tty or?
[20:24] <sarnold> aandy_: the script(1) tool, it records what you type and the 'responses' and saves them to a file named 'typescript'. pretty neat if very old school :)
[20:26] <aandy_> sarnold: nice! :) thanks a lot
[21:38] <K4k> I've just set up apt-mirror and downloaded everything (I think) to be a full blown package mirror. I can access /pub/ubuntu and see /dists and /pool in there but when I try to install with it set as my mirror it fails with "The installer failed to download a file from the mirror"
[21:39] <K4k> Is there a way to figure out what file or why it might be failing?
[21:39] <K4k> oh... wait it's on another tty :)
[21:39] <Patrickdk> no idea, it worked for me when I used to do that
[21:40] <K4k> it's looking for /pub/ubuntu/dists/trysty/universe/debian-installer/binary-amd64/Packages
[21:40] <K4k> Mine stops at universe and jumps straight to binary-amd64
[21:44] <K4k> Ah, it appears main/debian-installer is a seperate thing and needs it's own line in apt/mirror.list
[21:44] <K4k> @_@
[21:51] <NigeyS> random question, but how do make text BOLD in a shell script?
[21:51] <Patrickdk> depends on your term
[21:52] <NigeyS> true, was thinking of using tput
[22:06] <userf> what u think about investing in silver?
[22:08] <ScottK> I think it's off topic for a channel about Ubuntu Server.
[23:25] <grendal_prime> im trying to set up letodms but im having a really werid issue