[00:34] 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. === markthomas is now known as markthomas|away === PermaMag is now known as Kutakizukari [06:04] good mornin [08:16] Good morning. === cy_home_ is now known as cy_home === Lcawte|Away is now known as Lcawte === Lcawte is now known as Lcawte|Away [09:32] hello [09:33] 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] i have 4.4 installed, but when i try to use xl or xm it is looking for 4.1 [09:34] any idea how to resolve it ? [09:35] leeyaa, do you still have any 4.1 packages installed (dpkg -l|grep xen) except the hypervisor one? [09:36] smb: yeah it seems libxen-4.1 is still present along with libxen-4.4 [09:39] 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] 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] it is using 3.2.0-31 so i guess thats older [09:40] hm [09:41] latest is 3.13 [09:41] for 14.04, right [09:42] you can check /boot/grub/grub.cfg for which entry is default and what that points to [09:42] that means older kernel is booted [09:42] it is set to set default="0>2" [09:42] how to tell which one is latest and choose it ? [09:43] 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] nah i have no /etc/default/grud.d/xen.cfg [09:44] default should be a text string "set default="Ubuntu GNU/Linux, with Xen hypervisor"" [09:44] ah sorry typo [09:45] smb: i believe it does boot with xen but it boots older kernel [09:45] so it is a matter of changing boot order i guess [09:46] and yes XEN_OVERRIDE_GRUB_DEFAULT=1 === zz_DenBeiren is now known as DenBeiren [09:48] 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] smb: i have no entry for 3.13.0-40 in grub config [09:50] lets see i might have forgotten to run update-grub [09:51] i though upgrade scripts do that for me [09:51] Yeah, they should [09:53] assuming you ran do-release-upgrade [09:53] i did [09:53] well update-grub detects the new kernel [09:53] but i have no menu entry for it http://paste.ubuntu.com/9342672/ [09:57] 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] Anyone know what might be wrong in my Iptables rules? [09:58] thats odd... does it contain any "Xen 4.4" or even "3.13" for kernel versions at all? [10:04] 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] smb: yes. i just need to force it to boot from latest kernel [10:06] leeyaa, more latest hypervisor [10:06] smb: yes [10:06] You should have a /boot/xen-4.4-amd64 as well [10:07] This one will change /sys/hypervisor/version/* which is used by the tools [10:07] smb: yeah i have /boot/xen-4.4-amd64.gz [10:08] leeyaa, I would probably check the access/mod time of /boot/grub/grub.cfg to ensure this actually gets updated [10:09] Since you ran update-grub again it should be todays date [10:09] smb: it does [10:09] -r--r--r-- 1 root root 20924 Dec 2 10:59 /boot/grub/grub.cfg [10:11] ffs [10:11] i had update-grub and update-grub2 [10:11] this box is such a mess [10:13] 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] now that grep sees the new xen kernel [10:14] but how the heck to force it to boot from ti :D [10:16] 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] Its hard to say for sure with an unknown boot config :) [10:18] smb: thats the whole grub.cfg http://paste.ubuntu.com/9342904/ [10:18] i miss grub1 :D [10:19] leeyaa, the cfg file was a bit more human readable but from the functionality I rather like grub2 ;) [10:20] smb: ok then how to choose 3.13 ;p [10:20] leeyaa, I believe that if you reboot now, you would be fine [10:20] smb: nope tried [10:20] it boots into 3.2.0-31-generic [10:22] 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] what about another approach - is it possible to check which entry is 3.13 and force it to boot that entry ? [10:25] ima change GRUB_DEFAULT="0>2" to GRUB_DEFAULT="Xen 4.4-amd64" [10:25] thats what i have on the servers without problems [10:27] 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] smb: do you mean menu.lst ? [10:29] leeyaa, Ah yeah that... it has been a while [10:29] i have no idea how to determine that. menu.lst looks normal too [10:30] leeyaa, maybe pastbinit for me, too [10:31] this is menu.lst smb http://paste.ubuntu.com/9342994/ [10:33] leeyaa, Right, that default is 0 and the first element to hit is the new hv/kernel... [10:33] exaftly ... [10:33] exactly ... [10:34] really strange... hm, is there something with 'grub-editenv /boot/grub/grubenv list' [10:34] something like next_entry set... [10:38] smb: that prints nothing [10:38] ok, so not overriding the default there... hm === genpaku_ is now known as genpaku [10:41] 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] 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 === Lcawte|Away is now known as Lcawte [10:51] smb: nope xen version wont change until i dont change the kernel ;p [10:52] leeyaa, wrong. the dom0 kernel has nothing to do with the hv version [10:53] smb: well /sys/hypervisor/version/ still shows 4.1 [10:54] 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] 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] leeyaa, Just a guess, but I saw root=md0, so you normally would have /boot on a seperate fs/partition [10:55] leeyaa, Make sure that is mounted [11:00] smb: yeah its mounted [11:07] 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] smb: i think it is installing grub on wrong disk rofl [11:17] leeyaa, Well that does explain a lot. So maybe dpkg-reconfigure grub-pc lets you set things right? [11:46] salt puppet or chef? [11:59] 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] NigeyS: For Apache? [12:04] 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] Odd_Bloke yup, 2.4.7 i think it is [12:07] 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] NigeyS: IncludeOptional just avoids erroring if there isn't anything to include. [12:08] NigeyS: So essentially the same thing. :) [12:09] got ya, that's very helpful, thanks! [12:13] 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] morning [12:16] 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] acmehandle does the provider you have the vps with not have a snapshot function ? [12:19] They claim they do but when I click on the backup link nothing shows up and they claim they take a nightly snapsho === Ursinha is now known as Ursinha-brb === Ursinha-brb is now known as Ursinha [12:24] might be worth emailing them to see why nothing shows up === Lcawte is now known as Lcawte|Away [12:44] NigeyS, the ballon message should go away with the latest kernels that just were released [12:44] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1304001 [12:45] Launchpad bug 1304001 in linux "xen:balloon errors in 14.04 beta" [High,Fix released] [13:00] smb nice! thanks, ill update the kernel then. [13:16] 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] I've deleted everything in side, it's an empty directory [13:20] you want to delete /home ? [13:21] no just the one folder in the user's directory. /home/hcc/hcc [13:22] rm -rf returns rm: cannot remove `hcc': Device or resource busy [13:22] but there's nothign in the directory [13:22] ls -lah show any hidden files ? [13:22] NigeyS: -a does [13:22] nah [13:22] total 0 [13:23] kully3xf: what about 'lsof /home/hcc/hcc' ? [13:23] and ls -al on the directory shows d, so it's not linked [13:23] weird, but yeah try lsof [13:24] command bash twice user me, fd cwd, type dir, device 202,80, size /off 0 node number name hcc [13:24] both are the same [13:26] 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] no ideas? :( [13:41] how can I set an interface to use a static IP? [13:42] always, as soon as it's connected === Guest74903 is now known as Pici [13:44] http://www.howtoforge.com/linux-basics-set-a-static-ip-on-ubuntu [13:56] kully3xf: thanks === Lcawte|Away is now known as Lcawte [14:38] Is there a free version available of Nagios for home users? [14:39] kevindf: Er... yes? [14:42] kevindf: apt-get install nagios? ;) [14:42] I tought Nagios was for enterprise only :) just noticed now they have Nagios Core [14:43] kevindf: to be honest, choose something else [14:43] How about Monin? [14:43] kevindf: nagios hasn't been updated much the last 10 years or so [14:43] Monit* [14:43] I use icinga personally. it is a fork of nagios. [14:43] kevindf: I use munin *and* icinga (a nagios fork), and we have some old xymon, and we're moving towards zabbix [14:43] munin is really nice for trending [14:44] and easy to setup [14:44] one system doesn't exclude the other [14:44] alright, thank you for your advice. will take a look at icinga and munin [14:44] 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] both munin and nagios are in main which makes them fully supported [14:48] kevindf: I'd start off with munin - it won't hurt - then look into icinga and zabbix and whatnot [14:50] 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] 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] ah :) === bilde2910|away is now known as bilde2910 [15:07] 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] Alina-malina: you could prolly do some upstart stuff to do it. otherwise a shell script [15:10] well sometimes i need to stop both to make some c hanges quickly, since it is high loaded resourse [15:10] so good to know such features [15:10] maybe some .bat script? [15:14] Alina-malina: Some bash script, or some upstart script. I've written a upstart script that starts/stops pulseaudio+mpd. [15:15] hmmm i have heared about that stuff first time [15:54] smb: thanks for the help earlier. it was failed raid ;p [15:55] which really explains all [15:55] leeyaa, awesome... not. but you're welcome :) === caribou_ is now known as caribou === markthomas|away is now known as markthomas === markthomas is now known as markthomas|away === markthomas|away is now known as markthomas [16:30] How do I set up my var/log/syslog ? [16:30] The machine is running but the log is 0 === MeltedDed is now known as MeltedLux [17:55] hello, I was directed to ask bigjools or Odd_Bloke about getting packages in ubuntu cloud archive, are they around? [17:55] crinkle: they appear to be [17:56] 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] crinkle: if no help here then i suggest sending a note to ubuntu-server mailing list [17:58] pmatulis: great, thank you [19:28] I just need a very simple email forwarding on my server. for example, forward invite@domain.com to something@gmail.com [19:29] hadifarnoud: this server is acting as the final destination MTA? [19:29] pmatulis: not sure what that means [19:29] hadifarnoud: what happens when you do not have such a forwarding set up? [19:30] pmatulis: delivery failure. I have no mail server whatsoever [19:31] hadifarnoud: well, then forwarding won't work b/c the server is not even receiving the mail [19:31] 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] whaat should I use? [19:32] do you need to receive email at this server at all? you could just let google handle it all for you [19:33] sarnold: unfortunately, Google apps blocked Iran IPs. sanctions suck [19:33] hadifarnoud: you need to configure an MTA (mail receiving server) that receives invite@domain.com [19:34] hadifarnoud: ah. that is very frustrating. [19:34] pmatulis: can you name a few? I'd google for tuts [19:34] hadifarnoud: take a look at postfix or exim; I slightly prefer postfix but both are fine mail servers. [19:34] sarnold: not to mention it's stupid. what does Google have to do with anything [19:35] cool [19:35] hadifarnoud: no, no, you need to have some control over an MTA. do you? [19:35] pmatulis: what do you mean by control? [19:35] hadifarnoud: ability to configure it via root privileges [19:35] pmatulis: yep [19:35] I'm thinking about having a separate mail server. it looks easier :D [19:36] hadifarnoud: good. what software is it running? [19:36] hadifarnoud: gmail's anti-spam is significantly better than anything I have ever configured myself. [19:36] pmatulis: nginx and mysql [19:36] hadifarnoud: hmm, i'm probably misunderstanding your situation. is invite@domain.com an active email? [19:37] pmatulis: nope. we do not have ANY mail server at all. if you send one to that address, it will not deliver. [19:38] hadifarnoud: ok finally [19:38] this is a quick fix to be able to receive email at invite@domain.com for now [19:38] hadifarnoud: sadly, email servers are never a quick fix [19:39] so true. [19:39] hadifarnoud: but postfix is the standard MTA in the Ubuntu community [19:40] pmatulis: now I have to find a tut that just handles postfix [19:40] hadifarnoud: well not really [19:40] hadifarnoud: actually, yes, if you will be forwarding to gmail [19:41] :) [19:42] hadifarnoud: your biggest concern is to not become an open relay. and no port blocking from your ISP? [19:42] what happens when two programs compete over bandwidth? [19:42] pmatulis: dude. email servers are hard [19:43] hadifarnoud: yeah [19:43] I have a video streaming server and a web server serving static files [19:43] pmatulis: what should I set FQDN? mail.domain.com or just domain.com? [19:43] can I give more priority to the streaming server? [19:43] hadifarnoud: dude, you'll need to study :) [19:43] benbro1: yes, http://lartc.org/howto/ [19:43] pmatulis: I know, right? [19:44] sarnold: reading thanks [19:44] 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] hadifarnoud: you'll need a domain bro [19:45] pmatulis: got one. camva.ir [19:45] hadifarnoud: good [19:45] so I can set hostname to mail.camva.ir? [19:46] or has FQDN has to be camva.ir? [19:46] hadifarnoud: it can be anything but that sounds very good [19:46] ok cool [19:46] hadifarnoud: what matters in terms of names is in DNS [19:46] hadifarnoud: but it's good to keep them in sync [19:46] I thought so pmatulis [19:46] 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] (dynamic mailserver IPs that change frequently likely will end up badly for one) [19:47] aww, thanks teward. [19:47] (dynamically changing IPs on mailservers might usually end up flagged as possible spam in some spamfiltering) === DenBeiren is now known as zz_DenBeiren [20:17] hi guys, is it possible to emulate VT/tty/console over ssh? as in, "virtual" keyboard over ssh? [20:21] aandy_: screen / tmux / script do various amounts of terminal emulation [20:22] sarnold: neat idea with screen/tmux, i hadn't thought of that. scripting as in bash + /dev/tty or? [20:24] 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] sarnold: nice! :) thanks a lot === bilde2910 is now known as bilde2910|away [21:38] 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] Is there a way to figure out what file or why it might be failing? [21:39] oh... wait it's on another tty :) [21:39] no idea, it worked for me when I used to do that [21:40] it's looking for /pub/ubuntu/dists/trysty/universe/debian-installer/binary-amd64/Packages [21:40] Mine stops at universe and jumps straight to binary-amd64 [21:44] Ah, it appears main/debian-installer is a seperate thing and needs it's own line in apt/mirror.list [21:44] @_@ [21:51] random question, but how do make text BOLD in a shell script? [21:51] depends on your term [21:52] true, was thinking of using tput === markthomas is now known as markthomas|away [22:06] what u think about investing in silver? [22:08] I think it's off topic for a channel about Ubuntu Server. === bastidra1or is now known as bastidrazor === markthomas|away is now known as markthomas === MeltedLux is now known as MeltedDed === Lcawte is now known as Lcawte|Away === ideopathic_ is now known as ideopathic === yokel_ is now known as yokel [23:25] im trying to set up letodms but im having a really werid issue