/srv/irclogs.ubuntu.com/2015/04/30/#ubuntu-server.txt

=== collizio1 is now known as collizion
=== markthomas is now known as markthomas|away
=== zz_DenBeiren is now known as DenBeiren
gdi2kI have no idea where to start with this, so I thought I would start here - hopefully someone can point me in the right direction. We have our office at A and a server hosting a PBX at C. We are trying to optimize the route between A and C to reduce latency, but our ISP is inept. But we also have a server at B which is very close to C but has much better routes from A than A->C. So we would like to route the traffic A->B->C - what do I need at B to make06:13
gdi2k that work?06:13
hariomHey guys, I have installed openblas-dev and liblapack-dev on my Ubuntu 14.04. How to know which version of these libraries are installed?06:22
samba35how do i redirect url to domain for ex .www-abcdefgh-com/xyz should redirect to test-abcdefgh-com06:30
william_homesamba35: http://httpd.apache.org/docs/2.4/mod/mod_alias.html#redirect06:42
=== Lcawte|Away is now known as Lcawte
rbasakteward: pong07:20
lordievaderGood morning.07:42
=== ashleyd is now known as ashd
VexenaHello, I heard that enabling automatic updates can be potentially dangerous on a server in a live environment, why is this exactly?08:56
william_homejamespage: i was told to bug you, for packaging issues in the cloud archive?11:04
=== Lcawte is now known as Lcawte|Away
=== Lcawte|Away is now known as Lcawte
=== Lcawte is now known as Lcawte|Away
=== liam_ is now known as Guest24325
VexenaAnyone know what would be the best way to start a screen session upon startup? I've tried it with a upstart .conf script like this: http://pastebin.com/ybzACJ34 but that only makes "service tsbot start" and "service tsbot stop" work but the service does not start upon startup11:29
VexenaSeems like it's fixed now11:32
tewardrbasak: sorry about not being here around 3AM - nginx dynamic module loading slated to exist in 1.9.x, which I believe Debian might end up having.  (I hate the continual shift between mainline and stable, but Debian nginx maintainers do that)12:42
tewardrbasak: not sure if we'll need additional review of the package going forward or not, because there'd be a lot more 'main' packages if we support 'core' modules...12:42
tewardno timeline yet, but...12:42
=== acrocity_ is now known as acrocity
rbasakteward: thanks. Sounds good - should save us from the multiple static build hell? We can check with the security team nearer the time.12:57
tewardrbasak: it should, but i think we should partly rely on Debian for some of the packaging.  1.9.x was released only a couple days ago, and AFAIK dynamic package support is listed on the timeline of goals, but no idea of actual timeline or ease of implementation ye13:08
tewardyet*13:08
tewardrbasak: if it's anything like Apache, there may be a couple core "global" functions still built in, but additional plugins would be available.  The tricky part, I believe, is balancing stable vs. mainline in Ubuntu - 1.8.x is the stable release, 1.9.x is the mainline release, and that's going to supersede the stable release, my guess is for maybe a year13:12
tewardrbasak: i wouldn't mind additional security reviews closer to then though, code format changes, etc. and what not13:12
rbasakteward: I imagine we'll want the stable release in every LTS release.13:15
rbasakteward: and that implies we should try and stick to the stable release in all releases if we can - otherwise it wouldn't work.13:16
* rbasak wonders what Debian does here.13:16
devster31dd of a 3.1 gb image is taking forever, like 30+ minutes, is this normal?13:17
tewardrbasak: that's... doable to an extent, but that'll require a manual upload to Ubuntu specifically of Stable13:18
tewardrbasak: and at that point we break Debian inheritence13:18
rbasakteward: so Debian stick to mainline?13:19
tewardrbasak: i forget exactly how my Debian maintainer contact worded it, let me see if I can get a oneliner to provide.13:20
tewardi do know at one point they start using mainline then go back to stable, as for actual timeline I don't know how they determine that, probably something related to Debian release dates13:20
tewardrbasak: but if W series is open and 1.9.x made available in Debian, that's a mainline release, which is always going to have a higher version # than nginx stable releases13:21
tewardrbasak: a good 'starting point' would be what i just uploaded to the nginx team PPAs - 1.8.x13:21
tewardwhich is stable, and has debian HEAD as of... what, two days ago now?13:21
teward(debian HEAD as in from the nginx git repo there)13:21
teward(was needed for 1.8.x builds to work)13:22
rbasakOK13:22
tewardbut since W's name hasn't even been released yet, I don't even think W-series is open13:22
tewardso i'll keep my radar pointed at Debian and the announce lists waiting for W to open13:22
rbasakYeah it's not open yet.13:23
tewardthen we'll discuss further13:23
rbasakOK. Thanks!13:23
tewardyou're welcome, i just wanted to give you the heads up :)13:23
tewardrbasak: http://trac.nginx.org/nginx/roadmap  <-- roadmap for the 1.9 milestone13:23
rbasakHmm. Based on that 1.9 will just miss our next LTS.13:25
tewardrbasak: well, i don't trust the milestone date there13:25
tewardbecause of their news statement...13:25
teward2015-04-28: nginx-1.9.0 mainline version has been released, with the stream module for generic TCP proxying and load balancing.13:25
rbasakAh13:25
teward(from http://nginx.org/.  http://nginx.org/en/download.html shows that 1.9.0 is available)13:25
tewardrbasak: i think that's the date the milestone expires, not the date it's absolutely needed by.13:26
tewardrbasak: nginx has always provided both versions... one for 'stable' (not many new features, althoug hwhatever was in 1.7.x is now in 1.8.x), and one for 'mainline' which is cutting edge features13:27
teward(it's an in-development release, but AFAICT it *does* work 'stable'ishly13:27
teward)13:27
teward(trust me, triaging for these versions is a headache sometimes... >.<)13:27
ebonicsanyone know offhand what happens when you run out of memory or disk space while tarring something. like does it delete the temp file13:41
patdk-wkwhat tempfile?13:51
patdk-wktar shouldn't be making a tempfile13:51
tewardrbasak: this is the response from my contact @ Debian: "We stick with mainline in testing until freeze and then we stick with that version. The hope is to bump versions one time after freeze to stable and release a new debian stable with the current nginx stable"14:01
fricklerjamespage: would you have time to look at https://github.com/ceph/ceph/pull/4353? this is blocking http://tracker.ceph.com/issues/11388 which you already fixed for Ubuntu, but it would be great if that could also be fixed upstream15:01
jkylecould someone let me know what the equivalent of the linux-headers-server package is in 15.04?15:02
patdk-wksame as it was on 14.0415:03
patdk-wkthere is no -server for awhile now15:03
patdk-wkI think it went away in 12.0415:03
ronatorif in doubt, use 'aptitude search foobar'15:04
patdk-wkis your kernel in /boot called -server?15:04
patdk-wklikely, only -generic15:04
jkylepatdk-wk: My installation script isn't finding the package15:19
jkyleby that name15:19
jkylealso looks like some preseed options have changed15:19
patdk-wkthe package has not existed since before 14.0415:19
patdk-wkit was a meta package that just referenced -general instead15:19
patdk-wksince that reference hasn't been needed for upgrades, it's gone15:19
jkyleah, ok, I see, linux-headers-server is marked "transitional" in 14.0415:21
jkyleI'll switch my scripts over15:21
jkylealright, there we go, now I just have to figure out how to automatically install grub into the MBR in the new preseed for 15.0415:38
=== markthomas|away is now known as markthomas
=== DeMiNe0_ is now known as DeMiNe0
=== Lcawte|Away is now known as Lcawte
=== freeflying__ is now known as freeflying
=== yokel_ is now known as yokel
=== tomaw_ is now known as tomaw
=== PaulePan1er is now known as PaulePanetr
=== PaulePanetr is now known as PaulePanter
=== rattking_ is now known as rattking
=== bilde2910|away is now known as bilde2910
=== bilde2910 is now known as bilde2910|away
_2_misstiababyhi19:31
=== zz_DenBeiren is now known as DenBeiren
VexenaHave anyone used Plesk before? I don't have a apache server running but I got a license for Plesk together with my VPS. I wonder if I could use Plesk for example to restart my teamspeak server?19:38
VexenaOr is this only to monitor, restart,... web hosting processes such as apache, nginx, ...?19:39
sarnoldI have a strong dislike for web-based admin panels, I'm going to guess that they are the second most common route for attackers to gain access to systems (after ssh password bruteforce)19:40
VexenaI agree with that, but it's so tempting to use :)19:40
VexenaAs I would like to be able to control my server from distance with my phone incase something goes wrong19:40
=== markthomas is now known as markthomas|away
tflgen2Question: just set up ltsp-pnp on a 14.04 box and I was wondering if there was a way to have the pxebooted clients search for their specific config file (I'd like only specifed mac addresses to be able to boot to ltsp. All others should boot from local HDD) So far, even with the correct aa-bb-cc-dd-ee-ff file, the client always gets default config. Any ideas?19:50
=== markthomas|away is now known as markthomas
=== erlon is now known as erlon_awaY
swizgardhi. any advice on getting rid of dnsmasq here?21:23
swizgardor even a good reading resource would be nice as i don't get how all these things (dhclient, network-manager, dnsmasq, etc.) play together in ubuntu21:23
spyridonasHello guys , i try to make a website work on my apache , both apache2 runs as www-data user and the folder is under www-data user/group but php can't write. Whats wrong with that? :/21:26
=== Lcawte is now known as Lcawte|Away
spyridonasecho shell_exec("whoami"); says www-data21:37
spyridonasfolder is www-data group,user with 777 , still cant' write...21:38
Patrickdkso?21:38
Patrickdkdid you check apparmor?21:38
Patrickdkdmesg?21:39
spyridonasi dont have apparmor21:39
spyridonasand dmesh21:39
spyridonasand dmesg21:39
Patrickdkheh?21:39
PatrickdkEVERYONE has dmesg21:39
spyridonasoh wait21:40
spyridonashow i check if apparmor is installed?21:40
Patrickdkif apparmor is an issue, it would be logged in dmesg21:40
Patrickdkif apparmor was active, it would also be in there21:40
jjohansenspyridonas: sudo aa-status21:40
Patrickdkor, someone that knows more :)21:41
spyridonasoh well i guess i have it installed then21:41
spyridonasbut apache is not on the rules thing21:41
spyridonas 5 processes are in enforce mode.    /usr/bin/freshclam (2070)    /usr/sbin/clamd (1953)    /usr/sbin/mysqld (1130)    /usr/sbin/named (1105)    /usr/sbin/ntpd (2837)21:42
jjohansenPatrickdk: is correct in that if apparmor is denying something it should be logging it to dmesg, and /var/log/syslog21:42
ebonicsdoes anyone know if there's a difference in the way some ssh commands are piped back to the ssh client from sshd21:42
bekks?21:42
bekksdifference in the way compared to what?21:42
ebonicslike fundamentally. i'm using a "session" to send a command. say "ls" and it returns a single string with the output for that command21:43
ebonicsbut when i do something like "du"  i just get read errors21:43
bekksWhich doesnt mean the ssh session is the issue.21:44
ebonicswhich is why i'm asking :( cause i can't think of what it could be21:45
bekksopen a terminal, ssh to the remote host, run du.21:46
ebonicsbekks, it works fine21:46
Patrickdkcan the command run without a pty?21:46
Patrickdkdid you tell ssh to use a pty?21:46
Patrickdkor did you mean actually ssh to the other machine and run it?21:47
Patrickdkssh user@remote du21:47
ebonicsPatrickdk, i am sshing to another machine and running it.21:47
Patrickdkis different from ssh user@remote, then run du21:47
ebonicsbut i have the ability to request a pty21:47
spyridonasjjohansen: i disabled apparmor, apache still can't write on folder...21:47
ebonicsi do the latter Patrickdk21:47
ebonicsi don't know if pty is necessary for du, that's definitely a possibility21:48
bekksSo try it.21:48
Patrickdkworks with and without pty21:48
bekksThats what I told you :)21:48
jjohansenspyridonas: well then its definitely not apparmor21:48
Patrickdkyour issue is clearly not ssh :)21:49
spyridonasjjohansen: apache2 whoami says www-data21:49
ebonicsPatrickdk, i' m not "blaming" ssh, i just think i'm not understanding21:49
Patrickdkare acl's enabled?21:49
jjohansenspyridonas: I assume you have checked DAC permission21:49
spyridonasjjohansen: /var/www says www-data (user-group)21:49
spyridonasjjohansen: permissions are on 77721:49
jjohansenright21:50
spyridonasjjohansen: (temporary)21:50
bekks777 on /var/www is pretty safe way for shooting injuries in your knees.21:50
jjohansenspyridonas: hrmmm other so other things that could be blocking it, are how its mounted, seccomp21:51
jjohansenapache could be failing it self because of 77721:51
spyridonaswell since 777 can't write i dont think any kind of injuries is possible21:51
jjohansenI'm not sure21:52
PatrickdkI have my suexec disable itself on world writable21:52
Patrickdknot sure what stock apache does21:52
spyridonasthe specific error is about unziping (does php have other user/permissions than apache?)21:53
spyridonaserror] PHP Warning:  ZipArchive::extractTo(): Permission denied in /var/wwwl/testshop/classes/Tools.php on line 254821:54
ebonicsops Patrickdk it was because i wasn't waiting for the command to complete. ls just happens to return gaster21:54
ebonicsfaster*21:54
Patrickdkheh?21:55
Patrickdk/var/www != /var/wwwl21:55
Patrickdkebonics, maybe a pmtu issue?21:55
spyridonasyeah i typed l somehow here >_<;21:56
ebonicsPatrickdk, not in this case, but i think that could very well be a problem later on21:57
ebonicswhen i start using scp protocol21:57
Patrickdkwell, it would affect everything21:57
Patrickdkif you have mtu issue, blocking icmp, ..., causing pmtu to break21:57
Patrickdkit's noticable cause like when doing du, or ls21:57
Patrickdkanything large, suddently, it stops21:57
Patrickdkunless you have pmtu blackhole detection enabled21:58
ebonicsPatrickdk, i don't know what that is. but what's the solution? chunk the response packets?21:58
Patrickdkwhat kind of internet connection is it on?21:59
ebonicsTCP21:59
Patrickdkor, what is it's ip address?21:59
Patrickdktcp is a protocol21:59
ebonicswhat do you mean21:59
Patrickdkis it reachable publically?21:59
Patrickdkthat ssh host?21:59
ebonicsPatrickdk, no21:59
Patrickdkwell, try installing tracepath22:00
Patrickdkand running it against the ssh host22:00
Patrickdkand see22:00
Patrickdkif both are on the same local network22:00
Patrickdkyour mtu's should likely be 150022:00
Patrickdkand you shouldn't have this issue22:00
Patrickdkit's normally when going over the internet, and expecially if one side is on dsl22:00
Patrickdkthis issue will crop up22:00
Patrickdkor if you use a vpn22:01
ebonicsPatrickdk, is there a solution, assuming it is a problem?22:01
ebonicsand yes i am on a vpn22:01
Patrickdkyes, just properly configuring the vpn correctly :)22:01
Patrickdkand not blocking icmp22:01
ebonicsPatrickdk, i'm not sure if this is my problem though22:02
ebonicswhen i wait for the response then du works22:02
ebonicsi thought you were talking about max packet sizes over ssh22:02
PatrickdkI am22:02
Patrickdkbut normally ssh packets are tiny22:02
Patrickdkbut when you run du, ls, ..., that will make larger packets22:03
Patrickdkand you will notice pmtu issues22:03
Patrickdksame for scp22:03
Patrickdkor http22:03
PatrickdkI'm not saying this IS your problem, but it sounds close22:03
ebonicsso Patrickdk i guess i would just need to read the ssh manpage22:04
ebonicsthe solution would be to understand how ssh handles pmtu i guess22:04
Patrickdkit doesn't22:07
Patrickdktcp does22:07
Patrickdkor rather, ip does22:08
grendal_primehey im creating a ln to a usb->serial adapter for a wine application. It works fine untell i reboot.23:26
grendal_primeso..as the user i run ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1 and everything works fine. application can get access to the com port. Then after i reboot i have to destroy the link and recreate it.23:27
grendal_primewhhat would cause that.23:28
grendal_prime?23:28
bekksthe fact that the inode of the device in /dev/ is changing this is linux, not UNIX.23:32
bekksEasy workaround: create an entry in /etc/rc.local with full paths23:32
grendal_primeoh23:32
grendal_primesorry for my ignorance23:33
bekksIn linux, nowadays, /dev/ is a dynamic FS, thats why it is changing23:33
grendal_primesooooo...basically if i use a full path when i create it....well will that fix it?23:33
sarnoldI'm surprised it fails23:33
bekksif you are using something like /usr/bin/ls -sf /dev/... /home/user/... ---- then yes.23:34
sarnoldit makes me wonder if wine is checking the lstat of each link and ignoring symlinks older than dev entries or osmething to try to workaround the linux dynamic /dev23:34
bekksIt isnt wine which is checking that.23:34
grendal_primeit is wine could be a half a dozen problems23:35
bekksAnd since the symlink resides outside of /dev/, its age is irrelevant.23:35
bekksSome more sophisticated way would be creating a script in the initrd which recreates the symlink.23:36
bekksBut thats more a headshot than a simple workaround.23:36
grendal_primeso exact syntax to creat the ln would be ... ln -s /dev/ttyUSB0 /home/myuser/.wine/dosdevices/com123:36
bekksNope.23:37
bekks /where/is/ls ...23:37
bekksDont assume you have any sort of $PATH in /etc/rc.local23:37
grendal_primehave to have the /usr/bin/ls ...im confused23:37
bekksWhy are you confused?23:38
grendal_primeok so basically because its not being created on system boot it is pointing to an inode that no longer exists...23:40
grendal_primethat is what i sounds like your saying23:40
bekkscorrect.23:40
grendal_primeok, so if i create a boot up script that just deletes it and then creates it..that should do the trick right?23:41
bekksthats what /full/path/to/ln -sf ... does.23:42
grendal_primeoh see thats what confused me23:43
grendal_primein your post you put ls no ln23:43
grendal_primei was not understanding how ls would do that.23:43
bekksSo take "ln" then.23:44
grendal_primealright ill give it a shot.23:44
grendal_primei need to add that to a initrd job though.23:44
bekksWhy? :)23:47
bekksDont you have a sane OS? :)23:47
bekkswine doesnt start before /etc/rc.local23:47
bekksSo you can do that in /etc/rc.local23:47
grendal_primeim using ..well on that machine it is using linuxmint23:47
grendal_primeoh ok or there23:48
grendal_primeexcept ln is not in /usr/bin/23:48
grendal_primehmm23:48
bekks"which ln".23:50
grendal_primeok i need to put this into rc.local  /usr/bin/ln -sf /dev/ttyUSB0 /home/user/.wine/dosdevices/com123:53
grendal_primebut, ln is not located in that dir.23:53
grendal_primebasically looking for the absolute path to ln executable.23:54
grendal_primemaybe im going about it the wrong way23:55
grendal_primeim gonna give it a shot without the full path23:59

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