/srv/irclogs.ubuntu.com/2014/08/13/#ubuntu-server.txt

=== _TJ_ is now known as TJ-
JayPiHi everyone! I would like to build a public ftp server (or http) that can manage a queue-like system. By example, if I give the link www.my-server.com/test.zip, I would like to create a *queue* in case of many users trying to download it at the same time... So, the first one got the download directly, the second has to wait, etc.06:25
JayPiNo idea, anyone?06:29
sarnoldJayPi: that's not how ftp works; you can delay a bit but sooner or later the ftp client is going to time out and fail. either then they re-try or they give up.06:32
JayPisarnold, ok. but is there a way to have like a *waiting line* for a download http request?06:33
sarnoldJayPi: better is to reject their connection outright if someone else is already connected. that way their client can just pound away reconnecting like a monkey until eventually you let them in.06:33
sarnoldJayPi: there might be bandwidth shaping modules for e.g. apache that let you say you handle at most three connections...06:34
JayPiI would like to create a webpage with their download informations like : you are 2nd in waiting line. Your approx. waiting time is : 2 min 45 s.06:34
sarnoldah sure you can dothat06:35
sarnoldif you don't mind having people land on a landing page, and only give them access to a long randomly generated URL after a while, that'd be easy enough06:36
sarnoldprobably an afternoon's work for someone who knows python / ruby..06:36
JayPiIf I have 45 requests, I would like my server to give them a number from 1 to 45 (their priority)... How can I achieve that?06:36
JayPiand if I don't know python or ruby lol ?06:36
sarnoldwell, I guess you could use erlang or perl ... probably not as easy to pull off though06:37
JayPiI don't know any programming language06:38
sarnoldthis would be my starting point if I wanted to do it: http://www.sinatrarb.com/06:38
sarnoldthis will be a fun project to learn :D06:38
* Abhijit smells money06:38
Abhijit:-(06:40
foo357Hello, I'm setting up apache on a ubuntu 14.04 machine, I've installed apache from the repository. When I try to browse to the server I get no connection. "telnet <ip> 80" on the server results in a connection, but not if I try from another machine09:41
obi12341maybe you have a firewall installed?09:42
obi12341try: ufw status09:42
foo357On the machine, hmm could be possible.09:42
obi12341and look in your iptables09:43
foo357obi12341: ufw is inactive09:43
obi12341iptables --list09:43
obi12341and maybe your server has a hardware firewall09:44
foo357obi12341: iptables looks empty to me. http://pastebin.com/9KfzdrXi09:45
obi12341yes so no software firewall09:46
obi12341what is the ip of your server?09:46
foo357obi12341: sorry, I can't tell you the exact address09:46
obi12341okay, then you have to look on your own. looks like you have a hardware firewall09:47
foo357obi12341: but if I can do a telnet from within the server (specifying the ip), I should reasonably be able to do that from any other machine as well?09:47
obi12341no the firewall can detect that the connection is from the "inside" so he allows the packages09:48
obi12341the firewall sees the source IP09:49
foo357obi12341: of course, what I meant was that the server itself shouldn't stop it.09:49
obi12341your telenet is successful isn't it?09:50
foo357obi12341: yes, but only from the server, the local machine.09:50
obi12341yes so you do: telnet 127.0.0.1 8009:50
obi12341and telnet <ip> 8009:50
foo357obi12341: no I've always tried with the eth0 interface09:51
obi12341the firewall recognize the source ip (your server ip) and allows these packages09:51
obi12341yes so telnet <ip> 8009:51
foo357obi12341: ok, thanks for your help. I guess there's no configuration on the server that should cause this problem then.09:53
obi12341just take a deeper look in your contract with your hoster and you will see you have a firewall in front of your server09:54
obi12341i guess no configuration issue09:54
foo357obi12341: thanks09:54
obi12341no problem09:54
YamakasYI forgot... why can I remote login without password with username@hostname but not as username@fqdn09:57
pmatulismorning11:09
pmatulisYamakasY: check ~/.ssh/config11:10
YamakasYpmatulis: already fixed! thanks12:31
pmatulisYamakasY: keep on truckin'12:44
=== mld_ is now known as mld
YamakasYpmatulis: broaaaammmm!12:55
pmatulis:)12:56
ddsfAre extra packages required to do iptables MASQUERADE on -server?13:02
rbasakddsf: I don't think so. Though IIRC masquerade is intended for dialup (dynamic IPs). Usually on a server SNAT is used instead.13:20
patdk-wkmasquerade is snat :)13:27
jamespagecoreycb, did arges reject nova? don't want to put two in the queue13:29
coreycbjamespage, hmm, not sure13:30
* coreycb checks13:30
jamespagecoreycb, https://launchpad.net/ubuntu/trusty/+queue?queue_state=1&queue_text=13:32
jamespageno13:32
coreycbjamespage, ok13:33
argesjamespage: i can reject the older one if necessary13:35
jamespagearges, please13:35
jamespagearges, just a tweak to the changelog13:35
argesjamespage: i'll look at those soon13:35
jamespagearges, thanks!13:35
zagazahi, what's a healthy memory usage percentage for a ubuntu vps?13:42
kklimondathat's too general of a question - it all depends on what you are planning on running13:42
zagazajust 4-5 wordpress sites13:43
kklimondaagain, it depends on the workload - misconfigured wordpress is known to use excessive resources13:44
kklimondaI'd probably start with the 512MB VPS and see if it's enough13:44
kklimondaif not, you can always upgrade13:44
zagazaI use a 512mb one, it uses up 40-50% mem13:45
kklimondawell, memory is there to be used :)13:46
zagazaI guess my question is: is there any upper breakpoint where it gets critical?13:46
zagazagenerally13:46
kklimondawell, at some point your sites are going to take too long to respond to queries, then it's critical :)13:47
kklimondayou can monitor system load13:47
kklimondain general, once your server starts swapping (if you have swap enabled) it's a good sign you should start thinking about upgrading ram13:47
zagazaI'm a hardcase newbie on vps'es and servers, so I don't even know what swapping is :) but gonna read upon it13:48
kklimondayeah, it's a good idea to read about that stuff if you want to manage a server.13:49
kklimondaalso, if you just need a place to host a couple of wordpress sites, maybe you should take a look at some hosted solutions13:49
zagazawell I know some basics, I managed to set up a wordpress site on it, mysql, phpmyadmin, nginx etc.. so Im not completely out of it :) just need to get a broader grip of it13:50
kklimondamhm13:50
zagazaI ad a hosted solution for wp, but it was more expensive than this digitalocean vps I grapped so I thought it was pretty much pointless13:51
zagazaalthough this is way more work13:51
zagazahad*13:51
kklimondayeah, that's why a hosted solution is more expensive - when you have to managed stuff yourself, it takes time - especially when you are still learning.13:52
zagazayep yep, nonetheless its healthy to learn this stuff if one is into webdev, that's mainly why I picked up a vps13:54
zagazabut I like to learn by doing, that's why I know some more difficult stuff, but I might have missed out on some of the basics lol13:54
argesjamespage: ok nova rejected, upload the new one when ready ( also you can upload multiple versions and I can reject them after the fact too)13:56
jamespagearges, will do13:56
kklimondazagaza: well, yeah - knowing more about the stack you are running is always beneficial.13:57
jamespagearges, new version uploaded13:57
jamespageI think that covers neutron, nova and cinder revisions13:58
argesjamespage: ok i'll go through those now13:58
jamespageta13:58
=== Ursinha is now known as Ursinha-afk
=== Lcawte|Away is now known as Lcawte
=== Ursinha-afk is now known as Ursinha
funcoland1does anyone know how i can do a dist-upgrade on 14.04 to 14.04.1 without the internet?14:24
cfhowlettfuncoland1,   http://jeffhoogland.blogspot.com/2010/06/howto-installing-ubuntu-packages.html          or  techspalace.blogspot.com/2009/04/offline-update-ubuntu.html14:26
argesjamespage: fyi, for nova it would be good to have a line in the changelog saying "dropped Fixed-rbd-backend-* patch", but probably not a big deal now14:26
funcoland1thanks cfhowlett14:27
cfhowlettfuncoland1, happy2help14:27
funcoland1is it as easy as just grabbing all of the new packages and just running an apt-get update then?14:27
funcoland1the thing is, i've grabbed packages off of a 14.04.1 disc and then tried to run an update... what ends up happening is the number when i first log in at the top does not change to 14.04.114:28
funcoland1it still says "Ubuntu 14.04 LTS"14:28
cfhowlettfuncoland1, I used it years ago --- it worked.  Don't remember details14:28
funcoland1alright14:29
cfhowlettfuncoland1, that won't work.  the alternate install (no longer made) allowed one to use the Ubuntu CD as a software source as you desribe.  not any more14:30
funcoland1ahhhh, is that written up anywhere on the ubuntu site? I'd like to read more into that14:31
cfhowlettfuncoland1, as I said, the alternate CD method no longer works, no longer available14:31
funcoland1alright, thanks sir14:34
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
argesjamespage: ok got them all in proposed. I see heat listed as a task, but I don't see an upload for that btw14:39
=== esde_ is now known as esde
linuxgeek_on a 14.04 server, i want to configure vlan on em1 device.16:07
linuxgeek_i have installed the vlan package16:08
linuxgeek_http://paste.ubuntu.com/8037328/ is the interfaces file16:11
linuxgeek_the issue is the kvm host [14.04] server does not get a dhcp ip16:12
linuxgeek_if i remove the vlan config in the interfaces file and use just em1, it gets the dhcp ip16:12
=== arrrghhhAWAY is now known as arrrghhh
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== croepha_ is now known as croepha
tgm4883I have a 12.04 server with LDAP, MySQL and Jasig CAS installed and I'm running into an intermittant issue where CAS will stop working and throwing errors indicating that it cannot reach mysql anymore. Attempting to connect to Mysql or ldap during this time also fails until mysql or ldap is restarted. Looking at netstat, It doesn't appear that I'm hitting any18:10
tgm4883connection limits, and during this time load on the machine is pretty low. Any ideas where to keep looking?18:10
sarnold"fails" why? connection reset? timeout? ..18:11
tgm4883timeout18:11
tgm4883Yesterday this happened 3 times, it hasn't happened today though18:12
sarnoldhow long is the timeout? is it reasonable?18:12
tgm4883it seems to timeout after 10 or so seconds. I'm a bit limited in the troubleshooting I can do on this since it's a production server and needs to be back up :/18:13
RoyKhow does update-initramfs -u know which files to put in the initrd.img-something file?18:28
=== ming is now known as Guest61014
=== croepha_ is now known as croepha
=== io is now known as IdleOne
=== Locke2002 is now known as Guest6576
=== ValicekB_ is now known as ValicekB
=== mjohnson151 is now known as mjohnson15
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
michelehi there. I run do-release-upgrade on an ubuntu server. The upgrade failed with grub, with the following error: http://pastebin.com/NeShL1sw - I did not reboot, so I am still inside the machine. How do I solve?19:55
=== tom][ is now known as tom[]
rberghuh /boot is a LV? you probably want to install grub to the underlying device20:00
TJ-michele: The issue is that GRUB2 has problems with fake-raid controllers, and in your case it looks like an SIL fake-raid controller disk's partition #1 has the /boot/ file-system on it. Depending on how the SIL controller presents the underlying device to the system via BIOS calls, GRUB may be able to access partition #1 on the inderlying device. It depends on whether the SIL controller puts its RAID meta-data at the beginning of the drive, or not20:12
TJ-michele: "grub-install --disk-module=biosdisk ..." *may* be a workaround20:14
TJ-michele: Otherwise, if the underlying device doesn't have RAID meta-data at the beginning (meaning that the underlying device and the Device Mapper device have identical sector 0's, you may be able to do "grub-install /dev/sdX" where X is the underlying device letter20:16
micheleTJ-: thanks for the detailed answer. I will try with module=biosdisk, but what should I put after?20:18
micheleroot@zulu:/boot/grub# grub-install --disk-module=biosdisk20:19
michelegrub-install: --disk-module: (PROGRAM ERROR) Option should have been recognized!?20:19
micheleTry 'grub-install --help' or 'grub-install --usage' for more information.20:19
TJ-michele: the device to install grub to, so with no other changes it'd be "grub-install --disk-module=bios /dev/mapper/sil_bhbiaicbfaah1" but I doubt the BIOS option will work20:19
TJ-michele: oops, typo! "grub-install --disk-module=biosdisk /dev/mapper/sil_bhbiaicbfaah1"20:19
michelesame as above20:20
micheleroot@zulu:~# grub-install --disk-module=biosdisk /dev/mapper/sil_bhbiaicbfaah120:20
michelegrub-install: --disk-module: (PROGRAM ERROR) Option should have been recognized!?20:20
TJ-michele: OK, so that option isn't viable. Move on to the 2nd suggestion.20:21
micheleroot@zulu:~# grub-install /dev/sda20:21
micheleInstalling for i386-pc platform.20:21
michelegrub-install: error: cannot find a GRUB drive for /dev/mapper/sil_bhbiaicbfaah1.  Check your device.map.20:21
TJ-michele: You'll need to identify if the kernel can see the raw device underlying /dev/mapper/sil_bhbiaicbfaah20:22
TJ-michele: Then you'll need to compare sector 0 on each to discover if they are identical.20:22
TJ-michele: If so, you can "grub-install <underlying-device>"20:22
RoyKhow does update-initramfs -u know which files to put in the initrd.img-something file?20:50
RoyKlinuxgeek_: I guess the dhcp server isn't on that VLAN...20:51
TJ-RoyK: it calls hook scripts installed by packages that require an initrd.img presence21:02
RoyKTJ-: where can I read more about that?21:12
=== khaitanya is now known as Guest4419
=== Guest6576 is now known as Locke2002
StolenToastwhenever i log into my ubuntu server now and it asks me to log in I want to type in groot21:55
=== arrrghhh is now known as arrrghhhAWAY
=== Lcawte is now known as Lcawte|Away

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