/srv/irclogs.ubuntu.com/2014/12/02/#ubuntu-server.txt

Jeeves_Mosshow 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.00:34
=== markthomas is now known as markthomas|away
=== PermaMag is now known as Kutakizukari
Alina-malinagood mornin06:04
lordievaderGood morning.08:16
=== cy_home_ is now known as cy_home
=== Lcawte|Away is now known as Lcawte
=== Lcawte is now known as Lcawte|Away
leeyaahello09:32
leeyaai did upgrade of 12.04 LTS to 14.04 LTS, xen server host and it seems upgrade messed up xen hypervisor versioning09:33
leeyaai have 4.4 installed, but when i try to use xl or xm it is looking for 4.109:34
leeyaaany idea how to resolve it ?09:34
smbleeyaa, do you still have any 4.1 packages installed (dpkg -l|grep xen) except the hypervisor one?09:35
leeyaasmb: yeah it seems libxen-4.1 is still present along with libxen-4.409:36
smbleeyaa, 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 selected09:39
leeyaasmb: server was rebooted. i have no console access though, so i cant check visually which kernel is selected. check with grub maybe ?09:40
leeyaait is using 3.2.0-31 so i guess thats older09:40
leeyaahm09:40
leeyaalatest is 3.1309:41
smbfor 14.04, right09:41
smbyou can check /boot/grub/grub.cfg for which entry is default and what that points to09:42
leeyaathat means older kernel is booted09:42
leeyaait is set to set default="0>2"09:42
leeyaahow to tell which one is latest and choose it ?09:42
smbActually 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 though09:43
leeyaanah i have no /etc/default/grud.d/xen.cfg09:44
smbdefault should be a text string "set default="Ubuntu GNU/Linux, with Xen hypervisor""09:44
leeyaaah sorry typo09:44
leeyaasmb: i believe it does boot with xen but it boots older kernel09:45
leeyaaso it is a matter of changing boot order i guess09:45
leeyaaand yes XEN_OVERRIDE_GRUB_DEFAULT=109:46
=== zz_DenBeiren is now known as DenBeiren
smbDepends 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 string09:48
leeyaasmb: i have no entry for 3.13.0-40 in grub config09:49
leeyaalets see i might have forgotten to run update-grub09:50
leeyaai though upgrade scripts do that for me09:51
smbYeah, they should09:51
smbassuming you ran do-release-upgrade09:53
leeyaai did09:53
leeyaawell update-grub detects the new kernel09:53
leeyaabut i have no menu entry for it http://paste.ubuntu.com/9342672/09:53
kevindfHello, 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 that09:57
kevindfAnyone know what might be wrong in my Iptables rules?09:57
smbthats odd... does it contain any "Xen 4.4" or even "3.13" for kernel versions at all?09:58
smbleeyaa, 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.0410:04
leeyaasmb: yes. i just need to force it to boot from latest kernel10:04
smbleeyaa, more latest hypervisor10:06
leeyaasmb: yes10:06
smbYou should have a /boot/xen-4.4-amd64 as well10:06
smbThis one will change /sys/hypervisor/version/* which is used by the tools10:07
leeyaasmb: yeah i have /boot/xen-4.4-amd64.gz10:07
smbleeyaa, I would probably check the access/mod time of /boot/grub/grub.cfg to ensure this actually gets updated10:08
smbSince you ran update-grub again it should be todays date10:09
leeyaasmb: it does10:09
leeyaa-r--r--r-- 1 root root 20924 Dec  2 10:59 /boot/grub/grub.cfg10:09
leeyaaffs10:11
leeyaai had update-grub and update-grub210:11
leeyaathis box is such a mess10:11
smbleeyaa, 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:13
leeyaanow that grep sees the new xen kernel10:14
leeyaabut how the heck to force it to boot from ti :D10:14
smbleeyaa, If its the newer layout the default string boots the first xen entry and through the ordering it should be the latest...10:16
smbIts hard to say for sure with an unknown boot config :)10:16
leeyaasmb: thats the whole grub.cfg http://paste.ubuntu.com/9342904/10:18
leeyaai miss grub1 :D10:18
smbleeyaa, the cfg file was a bit more human readable but from the functionality I rather like grub2 ;)10:19
leeyaasmb: ok then how to choose 3.13 ;p10:20
smbleeyaa, I believe that if you reboot now, you would be fine10:20
leeyaasmb: nope tried10:20
leeyaait boots into 3.2.0-31-generic10:20
smbOh 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.cfg10:22
leeyaawhat about another approach - is it possible to check which entry is 3.13 and force it to boot that entry ?10:23
leeyaaima change GRUB_DEFAULT="0>2" to GRUB_DEFAULT="Xen 4.4-amd64"10:25
leeyaathats what i have on the servers without problems10:25
smbleeyaa, 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.cfg10:27
leeyaasmb: do you mean menu.lst ?10:28
smbleeyaa, Ah yeah that... it has been a while10:29
leeyaai have no idea how to determine that. menu.lst looks normal too10:29
smbleeyaa, maybe pastbinit for me, too10:30
leeyaathis is menu.lst smb http://paste.ubuntu.com/9342994/10:31
smbleeyaa, Right, that default is 0 and the first element to hit is the new hv/kernel...10:33
leeyaaexaftly ...10:33
leeyaaexactly ...10:33
smbreally strange... hm, is there something with 'grub-editenv /boot/grub/grubenv list'10:34
smbsomething like next_entry set...10:34
leeyaasmb: that prints nothing10:38
smbok, so not overriding the default there... hm10:38
=== genpaku_ is now known as genpaku
smbleeyaa, 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_linux10:41
smbMaybe 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 working10:45
=== Lcawte|Away is now known as Lcawte
leeyaasmb: nope xen version wont change until i dont change the kernel ;p10:51
smbleeyaa, wrong. the dom0 kernel has nothing to do with the hv version10:52
leeyaasmb: well /sys/hypervisor/version/ still shows 4.110:53
Jeeves_Mossis 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 run10:54
smbIn 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 boot10:54
smbleeyaa, Just a guess, but I saw root=md0, so you normally would have /boot on a seperate fs/partition10:55
smbleeyaa, Make sure that is mounted10:55
leeyaasmb: yeah its mounted11:00
smbleeyaa, 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:07
leeyaasmb: i think it is installing grub on wrong disk rofl11:16
smbleeyaa, Well that does explain a lot. So maybe dpkg-reconfigure grub-pc lets you set things right?11:17
tafa2salt puppet or chef?11:46
NigeySwould 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.11:59
Odd_BlokeNigeyS: For Apache?12:03
Odd_BlokeNigeyS: 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:04
NigeySOdd_Bloke yup, 2.4.7 i think it is12:06
NigeySi see. thanks, i'll take a look at that, our eold setup was on RHEL so it was just Include /bla/vhosts/*.conf12:07
Odd_BlokeNigeyS: IncludeOptional just avoids erroring if there isn't anything to include.12:08
Odd_BlokeNigeyS: So essentially the same thing. :)12:08
NigeySgot ya, that's very helpful, thanks!12:09
NigeySwhile 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: -1712:13
pmatulismorning12:15
acmehandleI'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:16
NigeySacmehandle does the provider you have the vps with not have a snapshot function ?12:19
acmehandleThey claim they do but when I click on the backup link nothing shows up and they claim they take a nightly snapsho12:19
=== Ursinha is now known as Ursinha-brb
=== Ursinha-brb is now known as Ursinha
NigeySmight be worth emailing them to see why nothing shows up12:24
=== Lcawte is now known as Lcawte|Away
smbNigeyS, the ballon message should go away with the latest kernels that just were released12:44
smbhttps://bugs.launchpad.net/ubuntu/+source/linux/+bug/130400112:44
uvirtbotLaunchpad bug 1304001 in linux "xen:balloon errors in 14.04 beta" [High,Fix released]12:45
NigeySsmb nice! thanks, ill update the kernel then.13:00
kully3xfHey 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 busy13:16
kully3xfI've deleted everything in side, it's an empty directory13:17
NigeySyou want to delete /home ?13:20
kully3xfno just the one folder in the user's directory. /home/hcc/hcc13:21
kully3xfrm -rf returns rm: cannot remove `hcc': Device or resource busy13:22
kully3xfbut there's nothign in the directory13:22
NigeySls -lah show any hidden files ?13:22
RoyKNigeyS: -a does13:22
kully3xfnah13:22
kully3xftotal 013:22
RoyKkully3xf: what about 'lsof /home/hcc/hcc' ?13:23
kully3xfand ls -al on the directory shows d, so it's not linked13:23
NigeySweird, but yeah try lsof13:23
kully3xfcommand bash twice user me, fd cwd, type dir, device 202,80, size /off 0 node number name hcc13:24
kully3xfboth are the same13:24
kully3xflsof: 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_bids13:26
kully3xfno ideas? :(13:36
ejhow can I set an interface to use a static IP?13:41
ejalways, as soon as it's connected13:42
=== Guest74903 is now known as Pici
kully3xfhttp://www.howtoforge.com/linux-basics-set-a-static-ip-on-ubuntu13:44
ejkully3xf: thanks13:56
=== Lcawte|Away is now known as Lcawte
kevindfIs there a free version available of Nagios for home users?14:38
Picikevindf: Er... yes?14:39
RoyKkevindf: apt-get install nagios? ;)14:42
kevindfI tought Nagios was for enterprise only :) just noticed now they have Nagios Core14:42
RoyKkevindf: to be honest, choose something else14:43
kevindfHow about Monin?14:43
RoyKkevindf: nagios hasn't been updated much the last 10 years or so14:43
kevindfMonit*14:43
PiciI use icinga personally. it is a fork of nagios.14:43
RoyKkevindf: I use munin *and* icinga (a nagios fork), and we have some old xymon, and we're moving towards zabbix14:43
RoyKmunin is really nice for trending14:43
RoyKand easy to setup14:44
RoyKone system doesn't exclude the other14:44
kevindfalright, thank you for your advice. will take a look at icinga and munin14:44
PiciI'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:44
pmatulisboth munin and nagios are in main which makes them fully supported14:46
RoyKkevindf: I'd start off with munin - it won't hurt - then look into icinga and zabbix and whatnot14:48
RoyKkevindf: 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 days14:50
kevindfWill do that, It's more for experimenting that I'm installing monitoring software so it's a good thing to test them all out14:51
RoyKah :)14:51
=== bilde2910|away is now known as bilde2910
Alina-malinahmmm how can i stop servers all together, apache and mysql with 1 line of command?15:07
* pmatulis kind of wants to say 'sudo poweroff' but no15:08
pmatulisAlina-malina: you could prolly do some upstart stuff to do it.  otherwise a shell script15:09
Alina-malinawell sometimes i need to stop both to make some c hanges quickly, since it is high loaded resourse15:10
Alina-malinaso good to know such features15:10
Alina-malinamaybe some  .bat script?15:10
lordievaderAlina-malina: Some bash script, or some upstart script. I've written a upstart script that starts/stops pulseaudio+mpd.15:14
Alina-malinahmmm i have heared about that stuff first time15:15
leeyaasmb: thanks for the help earlier. it was failed raid ;p15:54
leeyaawhich really explains all15:55
smbleeyaa, awesome... not. but you're welcome :)15:55
=== 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
acmehandleHow do I set up my var/log/syslog ?16:30
acmehandleThe machine is running but the log is 016:30
=== MeltedDed is now known as MeltedLux
crinklehello, I was directed to ask bigjools or Odd_Bloke about getting packages in ubuntu cloud archive, are they around?17:55
pmatuliscrinkle: they appear to be17:55
crinkleI'm hoping to see https://pypi.python.org/pypi/python-openstackclient in UCA at some point and wondering what the process and timeline would be17:56
pmatuliscrinkle: if no help here then i suggest sending a note to ubuntu-server mailing list17:57
crinklepmatulis: great, thank you17:58
hadifarnoudI just need a very simple email forwarding on my server. for example, forward invite@domain.com to something@gmail.com19:28
pmatulishadifarnoud: this server is acting as the final destination MTA?19:29
hadifarnoudpmatulis: not sure what that means19:29
pmatulishadifarnoud: what happens when you do not have such a forwarding set up?19:29
hadifarnoudpmatulis: delivery failure. I have no mail server whatsoever19:30
pmatulishadifarnoud: well, then forwarding won't work b/c the server is not even receiving the mail19:31
hadifarnoudpmatulis: 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
hadifarnoudwhaat should I use?19:31
sarnolddo you need to receive email at this server at all? you could just let google handle it all for you19:32
hadifarnoudsarnold: unfortunately, Google apps blocked Iran IPs. sanctions suck19:33
pmatulishadifarnoud: you need to configure an MTA (mail receiving server) that receives invite@domain.com19:33
sarnoldhadifarnoud: ah. that is very frustrating.19:34
hadifarnoudpmatulis: can you name a few? I'd google for tuts19:34
sarnoldhadifarnoud: take a look at postfix or exim; I slightly prefer postfix but both are fine mail servers.19:34
hadifarnoudsarnold: not to mention it's stupid. what does Google have to do with anything19:34
hadifarnoudcool19:35
pmatulishadifarnoud: no, no, you need to have some control over an MTA.  do you?19:35
hadifarnoudpmatulis: what do you mean by control?19:35
pmatulishadifarnoud: ability to configure it via root privileges19:35
hadifarnoudpmatulis: yep19:35
hadifarnoudI'm thinking about having a separate mail server. it looks easier :D19:35
pmatulishadifarnoud: good.  what software is it running?19:36
sarnoldhadifarnoud: gmail's anti-spam is significantly better than anything I have ever configured myself.19:36
hadifarnoudpmatulis: nginx and mysql19:36
pmatulishadifarnoud: hmm, i'm probably misunderstanding your situation.  is invite@domain.com an active email?19:36
hadifarnoudpmatulis: nope. we do not have ANY mail server at all. if you send one to that address, it will not deliver.19:37
pmatulishadifarnoud: ok finally19:38
hadifarnoudthis is a quick fix to be able to receive email at invite@domain.com for now19:38
pmatulishadifarnoud: sadly, email servers are never a quick fix19:38
sarnoldso true.19:39
pmatulishadifarnoud: but postfix is the standard MTA in the Ubuntu community19:39
hadifarnoudpmatulis: now I have to find a tut that just handles postfix19:40
pmatulishadifarnoud: well not really19:40
pmatulishadifarnoud: actually, yes, if you will be forwarding to gmail19:40
hadifarnoud:)19:41
pmatulishadifarnoud: your biggest concern is to not become an open relay.  and no port blocking from your ISP?19:42
benbro1what happens when two programs compete over bandwidth?19:42
hadifarnoudpmatulis: dude. email servers are hard19:42
pmatulishadifarnoud: yeah19:43
benbro1I have a video streaming server and a web server serving static files19:43
hadifarnoudpmatulis: what should I set FQDN? mail.domain.com or just domain.com?19:43
benbro1can I give more priority to the streaming server?19:43
pmatulishadifarnoud: dude, you'll need to study :)19:43
sarnoldbenbro1: yes, http://lartc.org/howto/19:43
hadifarnoudpmatulis: I know, right?19:43
benbro1sarnold: reading thanks19:44
hadifarnoudjust 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:44
pmatulishadifarnoud: you'll need a domain bro19:45
hadifarnoudpmatulis: got one. camva.ir19:45
pmatulishadifarnoud: good19:45
hadifarnoudso I can set hostname to mail.camva.ir?19:45
hadifarnoudor has FQDN has to be camva.ir?19:46
pmatulishadifarnoud: it can be anything but that sounds very good19:46
hadifarnoudok cool19:46
pmatulishadifarnoud: what matters in terms of names is in DNS19:46
pmatulishadifarnoud: but it's good to keep them in sync19:46
hadifarnoudI thought so pmatulis19:46
tewardFQDN 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 rotation19:46
teward(dynamic mailserver IPs that change frequently likely will end up badly for one)19:46
hadifarnoudaww, thanks teward.19:47
teward(dynamically changing IPs on mailservers might usually end up flagged as possible spam in some spamfiltering)19:47
=== DenBeiren is now known as zz_DenBeiren
aandy_hi guys, is it possible to emulate VT/tty/console over ssh? as in, "virtual" keyboard over ssh?20:17
sarnoldaandy_: screen / tmux / script do various amounts of terminal emulation20:21
aandy_sarnold: neat idea with screen/tmux, i hadn't thought of that. scripting as in bash + /dev/tty or?20:22
sarnoldaandy_: 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:24
aandy_sarnold: nice! :) thanks a lot20:26
=== bilde2910 is now known as bilde2910|away
K4kI'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:38
K4kIs there a way to figure out what file or why it might be failing?21:39
K4koh... wait it's on another tty :)21:39
Patrickdkno idea, it worked for me when I used to do that21:39
K4kit's looking for /pub/ubuntu/dists/trysty/universe/debian-installer/binary-amd64/Packages21:40
K4kMine stops at universe and jumps straight to binary-amd6421:40
K4kAh, it appears main/debian-installer is a seperate thing and needs it's own line in apt/mirror.list21:44
K4k@_@21:44
NigeySrandom question, but how do make text BOLD in a shell script?21:51
Patrickdkdepends on your term21:51
NigeyStrue, was thinking of using tput21:52
=== markthomas is now known as markthomas|away
userfwhat u think about investing in silver?22:06
ScottKI think it's off topic for a channel about Ubuntu Server.22:08
=== 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
grendal_primeim trying to set up letodms but im having a really werid issue23:25

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