/srv/irclogs.ubuntu.com/2013/03/08/#ubuntu-server.txt

=== wedgwood is now known as wedgwood_away
orudiecan someone recommend socks server software that is easy to configure ?00:44
patdk-lapis there really a place for socks this day in age?00:57
spencerHas anyone used filethingie here?01:55
spencerI am trying to hook different processes but am unsure where to look. This is a pure PHP uploader no mysql required.01:55
spencerphp channel?01:58
sarnoldyikes...01:58
sarnoldspencer: do not use this program over http, only over https.01:58
sarnoldspencer: I think you should also restrict access to this program via your webserver's ip-based access controls01:59
sarnoldspencer: I'd also recommend confining it with apparmor or selinux or smack or tomoyo or running it in a VM or something.02:00
spencerthat bad?02:01
sarnoldspencer: the cookie used for login looks easily replay-able, and the "blacklist" looks .. odd.02:01
spencerWell I plan to change but you are making me think I need to change like yesterday!02:02
sarnoldcode starting at line 469 is a touch cringe-worthy: https://github.com/haugstrup/filethingie/blob/master/ft2.php02:02
spencerOk first that is not something I would think looks bad. Second how did you find that so fast?02:04
spencerIm kind of simple just trying to do big things02:05
sarnoldspencer: hehe, that long cascade of } else { .. } else { ... just sort of stands out to me..02:06
spencerWell let me just come out and ask then:02:07
spencerI need something that I can upload meadia to and then have the server notify the user computer that media is uploaded. I was going to try and hook the upload process of filethingie to email the user on upload.02:07
sarnoldspencer: can you use sftp?02:08
spencerIf it can be scripted for sure. If the user needs to type anything in then I dont think it will work.02:08
sarnoldit's a standard part of the ssh protocol, so it's pretty widespread, but not everyone is prepared to know how to use a tool such as sftp or the various gui front-ends..02:08
spencerscriptable? ie could I have the client computer download from the server automatically?02:09
sarnoldspencer: oof if you want automatic, maybe rsync is the tool. it does nice restarts and everything :)02:10
spencerthat would be nice, at least I have used that before02:10
sarnolds/oof/ooh/  :)02:10
spencerBut what CMS is going to make this easiest for me ;)02:10
sarnoldhehehe, well, if you have to do the uploads with a browser, perhaps this php thing is no worse than any other. Just please nail it down as far as you can. :)02:11
spencer:p02:11
sarnoldspencer: for the notification end, look into this thing: http://inotify.aiken.cz/?section=incron&page=doc&lang=en02:11
spencerwow I am impressed 2nd time that is recommended02:12
spencer2 for 2 must be good. I posted an example script on serverfault and someone recommended this!02:13
sarnold:)02:14
spencerthanks sarnold I think this might get me by for the time being02:15
sarnoldspencer: have fun :)02:15
spencersarnold: ;)02:15
=== Jikan is now known as Jikai
=== aarcane_ is now known as aarcane
spencerIf I want to use postfix to get mail on my system. Should my "mail name" be xxx@machine.mysite.com?03:01
histospencer: yes04:26
histospencer: where are you setting mailname?04:26
arrrghhhhey all.  n00b to RAID arrays here - I am building a raid1 array to start, and just wondering how long it should take to build...?04:43
FATMediadoes anyone have any clue why random files with names like `???p???`???p???`???pα?`???? would be getting created in the root directory of an ubuntu server?04:48
histoFATMedia: No you'd have to look when they were created and try and figure out.04:49
histoFATMedia: also you could search the files in /var/log/* for those names04:49
FATMediahisto: alright, i will try i'm not really sure what to look for, i know when they were created04:50
FATMedialol running find var/log -name "*.log" -exec grep -H "(?-?X?-?" {} \; only returns an entry for me running the search command04:58
FATMediaim having trouble running lsof... it's saying the file doesn't exist do i need to ecapsulate this differently? lsof r1 "(?-?X?-?"05:06
histoFATMedia: lsof 'filename'05:07
histotry that05:07
FATMediasame issue... i've run into the same problem when trying to rm these files05:07
FATMediawhole thing makes me freakin nervous...05:08
histoFATMedia: like what is one of the filenames?05:08
FATMedia(?-?X?-?05:08
FATMediaanother is `???p???`???p???`???pα?`????05:08
histooh boy you need to escape all those05:11
histoso like lsof \(<press tab key>05:11
histoor rm \(<tab>  if you want to delete them. It should escape all the ? with \? for you automatically05:12
=== arrrghhh is now known as arrrghhhAWAY
histoFATMedia: any luck?06:00
FATMedianope, i suck at this...06:00
FATMediamy host is saying they think the box is compromised06:00
FATMediai think i'm going to migrate to a managed hosting platform tomorrow, it's sill for me to spend time doing this when i'm not very good at it06:05
FATMediathanks for your help though histo, i appreciate it06:05
=== aarcane_ is now known as aarcane
=== aarcane_ is now known as aarcane
=== elena_IK is now known as elena-IK
oneShould firefox display SSL cert as run by unknown when visiting ubuntu.com ?07:22
histoone: which page @ ubuntu.com?07:33
histohttps://ubuntu.com doesn't respond here07:34
onehisto: help.ubuntu.com is actually what i was looking at but since help is a subdomain ubuntu.com should use the same SSL cert07:39
onehisto: were you the one that looked up that md5sum for me last?07:44
histoone: yes07:53
histoI don't get an ssl acceptance prompt there.07:53
oneclick the lock on the right side of the address bar07:54
onehisto: there firefox usually gives the basic ssl info07:54
onehisto: i meant left other side of the mirror again07:56
histoone: identity is verified here08:00
histoone: they aren't supplying ownership information to the cert08:01
rbasakadam_g: I was EOD and out, sorry. Pong?08:01
onehisto: oddly enough I cant even get a verified cert for google08:04
onehisto: not much I can do about it at the moment, moving on08:04
oneI am trying to invoke iptraf to run in the background but it keeps saying specified interface not supported08:06
oneusing -i all but when running in console mode it shows all interfaces08:06
onehmm, What can the problem be, any ideas, histo , anyone?08:07
histono idea08:14
onehisto: have you really been on freenode since 2006?08:14
histoone: longer than that. I've just had my cloak since then08:15
onehisto: have you learned a lot?08:15
histoI've been using linux for far to long. I learn something new everyday though08:17
acalvohas anyone succeed with preseeding an installation?08:20
onehisto: learn something new or the same thing repackaged08:21
spencerI am trying to setup incron from http://inotify.aiken.cz/?section=incron&page=doc&lang=en have any of you guys got this working? I have got it installed but I have no clue about using it. The docs say I need to run it from a starting script.08:24
=== smb` is now known as smb
spencerCan someone tell me is curl going to be better than wget for downloading only new files on a URL?08:45
jacobwspencer: Only new files?08:47
spencerOnly new picture files. I tried wget --no-clobber but For some reason it goes through and downloads the same files again.08:48
spenceras a matter of fact I will send my other options in a second I got to open my script back up08:49
spencerSorry jcobw I actually changed it:08:50
spencerwget --mirror --continue --no-host-directories http://www.myaddress.com/file/file108:50
spencerI want to get all new files inside of folder "file1" with no upper directories. I can't remember now why I took the --no-clobber out08:51
=== dijit_ is now known as dijit
=== locust is now known as Guest31986
* xnox ponders who I can trick into verifying bug #833368 and bug #988881 =) as I now have additional SRU to push out =)10:21
uvirtbotLaunchpad bug 833368 in lvm2 "clustered lvm commands fail with "activation/monitoring=0 is incompatible with clustered Volume Group" error" [High,Fix committed] https://launchpad.net/bugs/83336810:21
uvirtbotLaunchpad bug 988881 in lvm2 "/etc/init.d/clvm status exitcode always 0" [Medium,Fix committed] https://launchpad.net/bugs/98888110:21
Davieyjamespage: What is your view of adding collectd as a subordinate to each openstack component ?10:27
Davieyxnox: Dimitry on foundations team will really enjoy lvm2 verification :)10:28
SpamapSDaviey: /me wonders if Daviey is already into the whisky...10:29
xnoxDaviey: I am usually against self-verifying self-uploaded SRUs.10:30
DavieySpamapS: I never left it :)10:31
Davieyxnox: Then you need to form another personality.10:31
* koolhead17 wonders how is SpamapS awake at this time :D10:34
DavieySpamapS has learned to live without sleep.  That is a skill that being a Ubuntu Server developer instills in you from early on.10:36
SpamapSkoolhead17: indeed, the question is not, how are you awake at this hour, but rather, how are you able to sleep, knowing how many bugs there are to fix?!10:39
koolhead17SpamapS: //o.0\\ what package? mysql-server :D10:40
koolhead17Daviey: hello there10:40
acalvopreseeding needs the alternate install CD?10:45
jamespageDaviey, context?10:46
Davieyacalvo: There isn't an alternate server cd.10:46
jamespagezul, adam_g, yolanda: review required - https://code.launchpad.net/~james-page/quantum/grizzly-metadata-agent-fixup/+merge/15237310:46
Davieyjamespage: just generally, collecting data.10:46
jamespageDaviey, fine then10:46
jamespagesame would apply to ganglia for monitoring as well - or nagios10:47
yolandajamespage, i'll take a look10:48
jamespageyolanda, thanks10:48
xnoxacalvo: one can preseed: pxe-boot, mini.iso, server cd, desktop cd, alternate cd (no longer available in quantal and up)10:49
acalvoI've tried with the desktop cd10:49
acalvobut it doesn't start the installer10:50
xnoxacalvo: sure it does. The Desktop CD preseeding is slightly different (e.g. tasksel is not running)10:50
xnoxacalvo: https://wiki.ubuntu.com/UbiquityAutomation10:50
acalvooh, I've been looking at help.ubuntu.com10:51
acalvoxnox, thanks for the link!10:51
xnoxacalvo: Here are sample preseeds for most common configurations of desktops: https://bazaar.launchpad.net/~ubuntu-test-case-dev/ubuntu-test-cases/desktop/files/head:/preseeds/10:51
xnoxacalvo: we use that in automatic jenkins testing of desktop cds.10:52
jamespageDaviey, doh "#lock_path=/usr/lib/python/site-packages/cinder/openstack11:26
jamespage"11:26
jamespagethat won't work to well now will it11:26
jamespageyolanda, if you have time - https://code.launchpad.net/~james-page/cinder/fix-lock-path/+merge/15238111:29
Davieyjamespage: heh11:35
=== hatake is now known as rhyda
jamespageyolanda, thanks!12:03
yolandanp12:04
zenzioI recently had to move a website we run to a new server. After the move, customers are reporting being unable to upload files, but my own tests from work, home, various VPSes, as well as a few friends from other countries all succeed in uploading. The customer reports that the size of the files make no difference.12:08
=== Jikai is now known as Jikan
zenzioPlacing some logging in the PHP code I can see that they are getting UPLOAD_ERR_NO_FILE, as if their request did not include the actual file data in the request body... I am at a loss as to where to look next. The server is running Ubuntu Server 10.04 LTS, PHP 5.3.2 and Apache 2.2.14.12:08
zenzioCould there be a firewall (or something similar) enabled by default (out of the box) that that could end up blocking the customers' uploads, but not touch their normal requests? My only other guess currently is some kind of network configuration on the customers' side interfering, as we did change IP when we switched server. I would prefer not to bother their IT department before having checked the most reasonable possibilities on my end12:08
zenzio(sorry for the wall of text, I couldn't find a clean way to shorten it without losing context)12:08
vezqsounds like a problem at customer end if it works elsewhere12:15
SpamapSzenzio: yeah sounds like an issue on their end. You should ask for remote control of a system there.12:15
zenziothanks, I'll try that then :)12:18
mardraumon latest raring 'virsh migrate --live' is returning "error: operation failed: migration job: unexpectedly failed", anyone knwo about this?13:53
mardraumlibvirt logs have no more detail13:54
mariopHi, lets say that i am connected to a remote server via ssh, i find a file that i want to copy to my local machine, is there away to start the transfer  from the remote shell reusing the already established ssh connection?14:16
smoseradam_g, jamespage 'nova' seems broken for me inraring14:46
smoser$ nova list14:46
smoserERROR:14:46
smoseris that known?14:46
jamespagesmoser, I don't think so no14:47
* jamespage tries to repro14:47
jamespagesmoser, hmm - I'm not seeing that14:52
smoserjamespage, i'm hitting canonistack14:52
jamespagesmoser, me to14:52
smoseri dist-upgraded yesterday.14:53
jamespagesmoser, 1:2.11.1-0ubuntu114:53
jamespageI just did the same14:53
jamespagesmoser, might be worth checking you are fully up-to-date14:53
jamespagea few deps got updated yesterday by zul14:53
smoserjamespage, http://paste.ubuntu.com/5596189/15:14
smoseri dont know if it is regression or not actually.15:15
smoseri might have only ever run this before when something had access to a gnome-keyring.15:15
jamespagesmoser, do you use nova --no-cache15:16
jamespage?15:16
jamespageI'm guessing not15:16
HarisHello all15:16
HarisI just setup a 12.04lts 64bit box15:16
smoserjamespage, no, but i never did before15:16
HarisI forgot the normal user/pass that's made through setup.15:16
HarisI just setup a 12.04lts 64bit box. I forgot the normal user/pass that's made through setup. Is there a way for me to re-set that user or root's pass ? The other option would be to rebuild this box15:17
Hariscentos has an option to reboot the box in single user mode. The rescue mode. Where one can re-set the root pass. Do we have such an option with Ubuntu15:18
tedskiHaris: yes, at the grub screen, you can invoke single-user mode15:20
jamespagesmoser, weird - --no-cache makes no difference anymore anyway15:20
tedskiHaris: edit the kernel line and append the word "Single" to the end15:21
Harisok15:21
smbNot sure that helps much as there is no root passw to type. Though using the install media to run the rescue mode and set the pw there should help15:21
tedskiheh, i need more coffee to remove my redundancy... append to the end?  derp.15:21
smosermdeslaur, https://bugs.launchpad.net/ubuntu/+source/python-keyring/+bug/102343315:22
uvirtbotLaunchpad bug 1023433 in python-keyring "UncryptedFileKeyring creates ~/keyring_pass.cfg world readable, ignores keyring-path" [High,Expired]15:22
tedskismb: i figured he's boot to single mode and then reset the user password15:22
smoserso if i do HOME=somedir nova list15:22
tedskisingle-user15:22
smoserwhere somedir/keyringrc.cfg has 'default-keyring=keyring.backend.UncryptedFileKeyring' in it15:22
smoserwhere does my sensitive data now go ?15:23
smbtedski, Must admit I forgot whether single-user gives a shell without any pw15:23
mdeslaursmoser: somewhere under ~/.config or ~/.local, I'd have to check15:23
tedskismb: i must admit i forget, too... i use too many distros to keep track15:23
smbHaris, so one or the other. ;)15:24
smosermdeslaur, http://paste.ubuntu.com/5596212/15:24
smoser(HOME was set to 'creds')15:24
Harischecking up on it15:25
mdeslaursmoser: hrm, not quite sure where it is then15:26
=== rob_p_ is now known as rob_p
Haristhe install media can do the rescue ?15:27
HarisI'm using netboot image for 12.04lts to boot from15:27
Harisbooting this box via the pxe15:27
HarisI have the recovery menu infront of me15:30
HarisI see the option to drop to root shell. From there I can do this15:30
mdeslaursmoser: what's XDG_DATA_HOME set to?15:31
=== rob_p is now known as kk7av
mdeslaursmoser: looks like it tries XDG_DATA_HOME, else it falls back to '~/.local/share'15:31
=== kk7av is now known as rob_p
smoserhttp://paste.ubuntu.com/5596229/15:33
mdeslaursmoser: what does python -c "import os;print os.path.expanduser('~/.local/share')" give you?15:35
HarisI have a problem changing password. Its the kvm. when I type something on kvm, it sometimes multiple times duplicates the character that is typed. is there another way to change the passwd15:35
HarisI'v tried using , smallsimple password. it doesn't update using that15:36
smoser /home/smoser/data/canonical-stack/creds/.local/share15:36
Harisits not changing the password15:36
Harisit says: passwd: Authentication token manipulation error \n passwd: password unchanged15:37
smosermdeslaur, http://paste.ubuntu.com/5596245/15:37
Harisdo I need to remount the / partition with in rw mode (as with centos) ?15:37
smoserits odd. as if its not writing anywhere.15:37
mdeslaursmoser: I'm not quite sure why that's not working15:38
Harisis there a tool with which I can mention the password on shell, rather than be prompted for it15:43
smoserHaris, chpasswd15:47
smoserecho "user:newpasswrd" | sudo chpasswd15:47
smoseror, sudo chpasswd < some-file-with-that15:48
tedskiHaris: yes, the partition needs to be rw since it will write to the shadow file15:48
Davieysmoser: surely expect is better?!15:49
smosersurely you jest.15:49
smoserand stop calling me Shirley!15:49
Davieysmoser: http://pb.daviey.com/kjwr/15:49
smoserdo you want me to point out why chpasswd is better than that?15:50
tedskiother than simply line count :)15:50
smosera.) you are invoking that program with passwd on the command line, meaning it will be available in 'ps'15:51
smoserb.) you're using TCL!15:51
smoserc.) LANG15:51
Harisok, rebooting the box15:52
Davieysmoser: You don't really think i was being serious?15:53
smoserDaviey, its that british wit.  i just can't read it.15:53
smoserhttp://paste.ubuntu.com/5596282/15:54
smoseri'm pretty sure that allows you to:15:54
smoser PASS=foobar ./changepass user15:54
smoserand nothign is really leaked into ps15:54
smoserbut who knows. maybe i'm wrong.15:54
smoseranyway. chpasswd is nice.15:54
=== arrrghhhAWAY is now known as arrrghhh
Davieysmoser: I want my shell password to be one time password, randomly generated.15:56
tedskiuntil you need sudo15:57
smosertedski, daviey just runs as root. no need for sudo.15:58
smoserhttp://paste.ubuntu.com/5596290/15:58
smoseri'm seriously loving apt-fast.15:58
smosererr... eatmydata rather.15:58
Davieytedski: I use MD5 ssh keys.16:00
tedskiDaviey: for sudo?16:00
DavieyNOPASSWD for sudoers.16:01
Harislol @ british wt16:01
Hariswit+16:01
tedskiDaviey: you're doing it wrong®16:01
* Haris goes back to work16:02
Harisok16:06
tedskiugh, i just realized i forgot to switch my connection to annex m last night before the backup started16:06
Haris1x box rebuild avoided16:06
tedskiHaris: now, set all your root passwords to "P@ssw0rd" so you don't forget them!16:06
tedskiand set permitrootlogin to yes in your sshd  conf so you don't have to bother with that silly kvm16:07
Harisdone16:15
Harisdidn't do the root login part16:15
Haristhat's not needed16:15
eagles0513875_hey guys where is perl installed by default on 12.0417:22
SpamapSeagles0513875_: perl is pretty much always /usr/bin/perl on linux systems.17:23
SpamapSeagles0513875_: never seen it anywhere else17:23
SpamapSeagles0513875_: shouldn't need to qualify it with a path ever except in shebangs17:23
eagles0513875_SpamapS: this is ubuntu they tend at times to put things rarely in non standard locations17:23
SpamapSno, we don't17:24
SpamapSwe religiously put things in the place dictated by the FHS, just like Debian17:24
eagles0513875_SpamapS: reason im askign is the autogen.sh script for libreoffice is complaining it cant find some modules is there a way i can see the dependencies in regards to perl that i needs17:24
eagles0513875_nm found out whats missing17:24
eagles0513875_thanks though SpamapS :)17:25
smosermdeslaur, so... you have to do this:17:48
smoserOS_NO_CACHE=0 nova keypair-list17:48
smoser(or pass '--os-cache')17:48
smoserwhich previously was not the case, and is double-negative logic.17:48
smoserand then data is written to /home/ubuntu/.local/share/python_keyring/keyring_pass.cfg17:48
smoserer... .local/share/python_keyring/keyring_pass.cfg17:49
mdeslaursmoser: hrm...what's parsing OS_NO_CACHE?17:49
smosernova17:49
smoserit is chosing to use keyring or not based on those flags17:49
mdeslauroh, huh17:50
mdeslaurglad you found it17:50
=== shadeslayer_ is now known as shadeslayer
cgseller1anyone ever used Cloudian solution with backblaze's 180TB storage pod solution with ubunut server/cloud ?18:22
=== cgseller1 is now known as cgseller
=== The_Pugilist is now known as DaveR
=== NomadJim_ is now known as NomadJim
CallingPantherI am thinking of building an IRC server and using Dancer since it appears to be designed for FreeNode any thoughts?18:56
CallingPantherAnyone know anything about Dancer-IRCd19:03
hallynheh.  oops. kvm -serial stdio <- try not to ctrl-c in that login session :)19:16
Davieyhallyn: killed kvm?19:20
hallynDaviey: and i just kept typing then looked at my other window and wondered why it hung19:21
hallynthen noticed 'ls' in that term was for the wrong host19:21
Davieyhallyn: Recently, i accidentally reused a hostname in my naming scheme.  Turned out to be the same name as my local machine. I sh'd to a different machine, and couldn't understand why half of my files and generally wasn't responding as i expected19:23
Davieyssh'd*19:23
hallyn:)  as you do lxc nested in lxc nested in qemu nested in qemu, that becomes a real danger19:23
Davieyeep19:24
hallynpsivaa: i still can't reprodcue your bug as is on my hardware, but i think i've verified in principle that what i think is happending is happending.  few more tests to see if my proposed fix will solve that.19:34
adam_gjamespage, still around?19:35
=== arrrghhh is now known as arrrghhhAWAY
capt-rogersI would like users to SFTP and have read-write access to /var/www/.  I can do this if I use 1 SFTP account and change the group for /var/wwww to that user...However I have a number of users...So I created  a group called "website" I add the SFTP user accounts to the website group. However they cannot get access to /var/www that way..what am I missing ? TIA20:07
maveasDoesn't KVM on Ubuntu support _native_ paravirt?20:11
maveasI'm getting "Host does not support virtualization type 'xen'" when I'm trying to install an VM (--paravirt)20:12
jacobwmaveas: nope20:17
maveasBut it do support paravirt at some extend through virtio? Doesn't it? That's what I've understood from reading a lot lately.20:19
sarnoldcapt-rogers: did you apply the group change to all subdirs of /var/www as well?20:21
sarnoldcapt-rogers: is the mode on the directories 775 or 755?20:21
capt-rogerspermissions=775 and group="website" on /var/www and subdirs....I added the SFTP accounts to group=website20:25
capt-rogersnot suer why..but that does not give read-write access to /var/www20:25
sarnoldcapt-rogers: did your users close and restart their sftp session? group membership happens only at login time and when users run 'sg' or 'newgrp' (hard to do from sftp :)20:26
jacobwmaveas: What do you mean by paravirt?20:32
jacobwmaveas: If you mean things like virtio, sure20:34
jacobwmaveas: Just check out the KVM docs20:34
Davieysmoser: I tried to work out WHO would use this.. then thought of you. http://mmb.pcb.ub.es/~carlesfe/blog/creating-a-simple-blog-system-with-a-500-line-bash-script.html20:36
capt-rogersah, yes..that is probably it...logout and back in again...20:42
goddardi have a user that cant connect to smtp even though i can20:51
goddardany idea why this might be happening and where to check20:52
goddardi looked in the auth.log but everything looks fine and doesn't display email/username password login attempts20:58
kpettitgoddard, can other users get to it ok?  I'd check firewall settings on server/client first21:12
=== zurich is now known as level15
goddardkpettit: i got this amavisd21:22
goddardopps21:22
goddardthis http://pastebin.com/i3ymiGuM21:22
goddard\21:22
blazindropis there a way to get apt-mirror to mirror a cd rom? I am using MAAS and want my nodes to use my maas controller to download packages, not the internet21:27
tgm4883anyone in here in charge of kondor21:33
=== arrrghhhAWAY is now known as arrrghhh
=== goddard is now known as Guest74911
=== arrrghhh is now known as arrrghhhAWAY

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