/srv/irclogs.ubuntu.com/2013/11/29/#ubuntu-server.txt

=== DaveR is now known as col_panic
=== col_panic is now known as The_Pugilist
=== freeflying is now known as freeflying_away
pabs3I have a server where one drive is marked as failed in /proc/mdstat (RAID1, 2 drives). I went to look at smartctl but the device node no longer exists. nothing in syslog apart from mdadm noticing marking the disk as failed. thoughts?06:16
=== freeflying_away is now known as freeflying
makarahi. I've setup Wordpress on Apache behind Nginx. Problem is directories in the form "site.com/dir" don't load. "site.com/file" and "site.com/dir/" work fine. What have I configured incorrectly?06:51
TazmainianDevilHi all can I ask a question about apache running on ubuntu server here or just questions about ubuntu server ?07:13
makaraTazmainianDevil, ask away07:14
TazmainianDevilOkay I have apache 2.2.22 running on ubuntu 12.04. I would like to have a redirect when I go to localhpost/fisheye it should then load the page that is normally on localhost:8060/fisheye. I have tried the proxy.load module but it doesn't render the page correctly. fisheye is its own web server. I don't have the mod_rewrite module, or I just can't find it.07:16
makaraTazmainianDevil, I could tell you how to do in Nginx07:18
makarait07:18
makaraa better option as a proxy07:18
maxbTazmainianDevil: you have most mosules, but you need to enable them - 'sudo a2enmod rewrite'07:19
TazmainianDevilmaxb I looked in the mods available folder its not there07:20
TazmainianDevilmaxb okay the command work, so I just couldn't see it07:23
maxbGood - though you don't actually need mod_rewrite here07:25
TazmainianDevilmaxb what would I use then ?07:25
maxbWhilst you certainly can configure a redirect if you really want to, as makara points out, it's a lot more common to proxy things like fisheye, so that they are available to your network / the world without a port number in the URL07:27
TazmainianDevilmaxb Okay do I need to setup the proxy in fisheye as well ? I tried that but the page didn't render correctly, it looked all funny07:28
maxbI imagine you might want something like 'ProxyPass /fisheye/ http://localhost:8060/fisheye/' based on the URLs mentioned earlier07:28
maxbI don't use fisheye myself, but 'looks funny' usually implies that your URL config isn't quite right, and supplementary images / CSS / javascript are getting 404ed07:29
TazmainianDevilmaxb  well just there are no images and the left side of the page is located at the bottom.07:31
maxbRight, missing images and CSS07:31
TazmainianDevilhow do I get those to load then ?07:31
maxbAt that point you usually want to turn on one of the web developer tools in your browser which lets you look at the HTTP requests being made to see how the URLs are wrong - e.g. F12 in Chrome07:32
maxbOnce you've found an URL that's being requested that's 404-ing, you can see in what manner it appears to be wrong07:33
TazmainianDevilmaxb, So to do the proxypass I created a file called proxiedhosts under /etc/apache2/site-available and did an ln command to the default.07:33
maxbThat's certainly one way to do it, though there are a2ensite and a2dissite commands to automate the linking into the sites-enabled directory07:34
TazmainianDevilmaxb, awh okay so I just need to fix the url then. I had similar thing with upgrading a media wiki and it did the same.07:38
=== freeflying is now known as freeflying_away
=== gfrog is now known as gfrog_busy
=== bkhan is now known as trick14
=== freeflying_away is now known as freeflying
=== gfrog_busy is now known as gfrog
TazmainianDevilmaxb, if I get an error You don't have permission to access /fisheye on this server. what does that mean ?09:19
maxbMost likely it means you want to add an 'Allow from all' to the relevant bit of configuration09:20
TazmainianDevilmaxb, That would be under the apache2.conf right ?09:21
maxbYes, but not just anywhere in it09:24
maxbThat is one of the apache config directives that needs to be in directory context09:25
maxbSo inside a <Directory> or <Location> block in this case09:25
TazmainianDevilmaxb, okay let me just set it up from scratch then. What would ne the best way to do this ?09:27
maxbuh, just type some config :-) ?09:27
=== irv_ is now known as irv
TazmainianDevil-.- that helps lol. i meant the redirect.09:28
TazmainianDevilmaxb, okay let me just ask this in the apache documentation say https://httpd.apache.org/docs/current/mod/mod_access_compat.html where do I put that Allow from all. I can't find where I should put this.09:31
maxbI don't know enough about your setup to just dictate an entire config, and I'm unclear why you suddenly want to restart from scratch09:31
maxbum, wait, are you actually using httpd 2.4, or are you reading the wrong documentation?09:31
TazmainianDevilUsing 2.22 was on the wrong page, but the command is the same09:32
=== diplo_ is now known as diplo
TazmainianDevil https://httpd.apache.org/docs/2.2/howto/access.html It has the usuage and all but where is that?09:33
maxb inside a <Directory> or <Location> block as I said09:33
TazmainianDevilmaxb, okay where are the  <Directory> or <Location> blocks ? What file ?09:33
maxbwhereever you put them09:34
TazmainianDevilmaxb, okay under the default one under site-available for the directory /var/www/ allow from all is there or should I make a directory for fisheye , since its not under /var/www09:35
=== freeflying is now known as freeflying_away
maxbFisheye isn't in any directory on disk that apache reads from, so you probably want a <Location /fisheye>09:36
TazmainianDevilmaxb, still the same09:38
maxbI'm out of ideas for obvious things to check09:40
TazmainianDevilmaxb, thats why I want to redo the redirect.09:41
maxbgo on then?09:43
TazmainianDevilmaxb, thats Why I was asking what would be the best way to do the redirect. Since creating a proxiedhosts file does not work09:46
TazmainianDevilIf I used the sudo ln -s /etc/apache2/sites-available/proxiedhosts /etc/apache2/sites-enabled how do I break that link again ?09:59
mardraumrm it10:01
TazmainianDevilmardraum, rm the file ?10:03
TazmainianDevilmardraum, if I do that apache wont start10:06
mardraumrm the link10:09
TazmainianDevilmardraum, okay how would a total noob remove a link ? google referes to the name of the link10:10
bluekinghello, need input on how to install samba410:14
bluekingapt-get install samba4 gives some errors10:14
blueking'error loading module '/usr/lib/x86_64-linux-gnu/samba//vfs/acl_xattr.so': /usr/lib/x86_64-linux-gnu/samba//vfs/acl_xattr.so: cannot open shared object file: no such file or directory10:18
bluekingerror probing vfs module 'acl_xattr': NT_STATUS_UNSUCCESSFUL10:19
bluekingA Kerberos configuration suitable for Samba 4 has been generated at /var/lib/samba/private/krb5.conf  Once the above files are installed, your Samba4 server will be ready to use  <- what files ?10:21
TazmainianDevilblueking, did you try installing it using synaptic. That worked for me10:24
bluekingwhat are synaptic ?10:25
=== highvolt1ge is now known as highvoltage
=== MikaT_ is now known as MikaT
bluekingTazmainianDevil:  how ?10:30
unclezipperHi, does anyone have experience with proftp?10:57
ikoniawhy don't you just ask the question you want the answer to10:58
unclezipperThat would make too much sense10:58
unclezipperAnyway, I'm just trying to set up an SFTP server. I have TLS enabled server-side, generated a key, and logging in works fine. But, users are locked in their home directories even though I set DefaultRoot to /var/www, and even in their home directories they can't download their own files. It seems like a simple permissions issue but I don't know where to start11:00
unclezipperAny ideas?11:00
ikoniaunclezipper: I'd look at the config file for chroot options, that may explain why the users are bound to their home directories,11:01
ikoniaunclezipper: with regard to the permissions, I'd check the error message to confirm it's positions, but it's possible that (depending on your setup) that the user running the proftpd daemon may not have permissions to the actual file system inside their home directory via the ftpd running user11:02
unclezipperikonia: I'll check in just a sec. I don't know if it matters, but they can see folders in the root directory. They can't view any of their contents except for /home though11:02
ikoniaunclezipper: that actually sounds like the "right" setup, if you're chrooting them into their home they should only see the content in their home dir11:02
unclezipperikonia: I'll keep an eye on open files while I try this; I was under the impression that it actually logged in as the user. And no, that would be the "right" setup, but I have DefaultRoot set to /var/www/ instead of ~11:03
unclezipperYou can understand my confusion here11:03
ikoniadefaultroot is worthless if you are chrooting the users, which it sounds like you are11:04
ikoniaalso look in the ftpd log files to geta clue of what's going on and the xfer logs11:04
bluekingI used synaptic to install samba4   but how I enter setup of samba ?11:05
ikonia"enter the setup" what do you mean ?11:06
unclezipperikonia: Thanks, you might have just pointed my nose in the right direction11:06
ikoniaunclezipper: not a problem, if you have problems, just explain what you see and they can be worked through11:06
bluekingikonia:  yes11:06
bluekingto set  password domain name and so on11:07
ikoniablueking: "what do you mean" - "yes" is not a valid answer to that question11:07
bluekingwhen  used apt-get install samba4   it started right on setup to put in  password  and more stuff  synaptic didn't11:08
unclezipperXD11:08
ikoniablueking: I see so you're expecting some sort of q/a type session11:08
unclezipperblueking: The configuration file should be at /etc/smb.conf11:08
bluekingok11:09
unclezipperYou'll need to open it as root/with sudo to edit it.11:09
madneonis there a way to dump oidentd requests?12:35
=== wickedpuppy2 is now known as wickedpuppy
_root_hello i have eth0 and eth1 . I just edited the /etc/network/interfaces ;;; anyway to reload the network interface or what ever that is completely in order to that editing take effect without rebooting the server?12:54
bluekingdamn samba4 wasn't easy to fix12:56
madneon_root_: try ifdown and then ifup, but if you edited the files first you may have a problem putting them down12:58
madneon_root_: so you might need to put them down manually with ifconfig12:58
_root_madneon: you mean ifdown eth0 for example?12:58
madneon_root_: yeah, like that12:59
madneon_root_: next time try this way: ifdown eth0, then edit config, then ifup eth013:01
_root_madneon: ifdown:interface eth0 not configured . is that error you were talking about?13:06
madneon_root_: most likely, try using: ifconfig eth0 down13:06
chmac7One machine, `time ps aux | wc -l` shows 213 lines, takes 53s to complete. 17G mem free. 88% cpu idle. Any ideas?13:11
=== chmac7 is now known as chmac
chmacTakes nearly 60 seconds to start top...13:11
chmactop shows iowait 0.0%13:11
chmaccat /proc/mdstat looks fine13:13
chmacMaybe it's only sudo that's slow...13:13
=== psivaa is now known as psivaa-lunch
chmacSure enough, `sudo su -` and then `ps aux | wc -l` is super fast...13:15
chmacDon't think it's hostname related, my hostname hasn't changed and it's properly set in /etc/hosts as far as I can tell...13:15
chmacThe server's hostname is mapped to the external IP of the server, not localhost13:15
chmacSame on 3 other machines, same OS, and no issues...13:16
chmacCrazy, changed the machine's hostname to resolve to localhost and it's fixed...13:19
=== geser_ is now known as geser
chmacDarnit, issue is back, even with the hostname change...13:27
chmacOK, issue seems to be bind9 running crazy slow...13:34
_root_i have a nameserver and i wanted to set it in /etc/resolv.conf ;;; but it says it will be re-written;; So where should I set my name-server (DNS)13:53
_root_???13:53
rbasak_root_: FAQ here: https://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/13:56
_root_rbasak: you mean i put nameserver x.x.x.x in /etc/network/interfaces ??14:00
frojndHi there.14:08
frojndI hope someone will be able to help me. I transfered a site to my ubuntu server for my firend. Before he had at some paid company. The problem is that now when users try to send email via php form they are unable14:09
frojndThere is an error in logs (I use nginx and php)14:09
frojnd[error] 11348#0: *34 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught exception 'Swift_TransportException' with message 'Failed to authenticate on SMTP server with username "somegamil.account@gmail.com" using 2 possible authenticators' in public_html/app/lib/classes/Swift/Transport/Esmtp/AuthHandler.php:18414:10
frojndI've red the internet and tried to enable ssl. I've created ssl certificate spesifically for this site, then I checked phpinfo to see if ssl is enabled and indeed is enabled.14:11
frojndWhat else can I check?14:11
=== Gurkenmaster_ is now known as Gurkenmaster
frojndI've tried different creditentials and it still fails14:17
=== psivaa-lunch is now known as psivaa
frojndAnyone here?14:33
rbasak_root_: well, it depends on your situation. See the post. It looks like if you do put something in /etc/network/interfaces, it should be "dns-nameservers" though, not "nameserver".14:43
frojndHm. So I Was trying to send email as root using mail to one of my gmail accounts. I didn't receive a message.14:44
=== Ursinha is now known as Ursinha-afk
frojndHow do I setup /etc/mail/local-host-names ?14:52
disposable2i'm trying to run linux containers (lxc version 1.0.0~alpha2) on a 12.04 server. on 13.04 i had no problem, but when i do it on 12.04, i get no getty in my containers. whenever i issue lxc-console -n asfd, all i get is "connected to tty 1; Type <Ctrl + a q> to ...." Am i missing some very important step?14:53
=== PaulePan1er is now known as PaulePanter
=== freeflying_away is now known as freeflying
zuljamespage:  https://code.launchpad.net/~zulcss/glance/icehouse-ftbfs/+merge/19722315:23
jamespagezul, +115:28
jamespagehow's the opening of icehouse looking now?15:28
zuljamespage:  getting closer...need to work on blueprints15:28
frojndIs there a way to tell why I can't send mails from my server to gmail?15:36
frojndusing 'mail' command15:36
frojndwhat logs should I check15:36
frojndaha syslog15:38
frojnddufuq15:41
frojndpostfix/master[17024]: fatal: bind 0.0.0.0 port 25: Address already in use15:42
frojndI purged that sendmail and netstat -pel | grep smtp still shows sendmail: tcp        0      0 localhost:smtp          *:*                     LISTEN      root       1911831     15891/sendmail: MTA15:42
rbasakjamespage: have you noticed that your latest mysql upload failed dep8 testing again?15:42
jamespagerbasak, yeah - I sponsored a upstart tweak15:43
rbasakOh OK, np15:43
frojndIt's like I must use kill -9 for this sendmail15:43
jamespagerbasak, but I'd been ignoring it whilst I got on with some other stuff15:43
jamespagerbasak, not sure why the test suite fails as it does exactly the same thing during the package build15:43
rbasakjamespage: we really need to resync with Debian at some point and sort it out :-/15:44
jamespagerbasak, yes - I added that to the mysql blueprint15:44
rbasakThere was some trickery involved, IIRC.15:44
jamespagerbasak, frustratingly the previous upload passed its autopkg tests15:44
rbasakI don't think it's deterministic.15:45
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
zuljamespage:  yay glance is blue16:37
jamespagezul, woot16:42
jamespagezul, I was trying to figure out how to sync the local repo in the lab with the packages from precise-havana16:42
jamespageI setup a pull but that's not working so well16:42
zuljamespage:  well alot of those packages are going to be updated in the next 5 months16:43
jamespagezul, yes - but we need a base to start from16:43
jamespageand the lab archive need to be fully populated for deploy testing16:44
zuljamespage:  right16:44
frojndI'm rather new to this16:44
=== Ursinha is now known as Ursinha-afk
jamespagezul, w00t!  my team's movember donations just busted through £2k!16:47
jamespagezul, think my bro is showing iff16:47
zulsweet16:47
jamespageapologies channel - that was a little OT16:47
jamespageor alot really16:48
zulslightly ;)16:48
jamespagefrojnd, /var/log/mail.log is pretty useful normally16:48
frojndI've configured posfix and dovecot. When I try to use thunderbird and I add new mail: it says username of password invalid16:48
frojndIf I understand this correctly, my email addrss is username@domain ?16:49
jamespagekirkland, stop byobu-ing :-)16:49
jamespagefrojnd, I've not done a postfix/dovecot setup for quite a while - but I think its very much dependent on how the services are configured - i.e. which domain they think they are serving16:50
frojndjamespage: where do I check this? I have configured /etc/mail/local-host-names to be like this: localhost and next line is my domain16:52
jamespagefrojnd, /etc/dovecot and /etc/postfix (I think - straining the grey cells now)16:53
geoffmcchello. I have been reading tutorials on securing ubuntu server and most say to install rkhunter and chkrootkit but from what i have read on the two rkhunter does a better job. Is there really a benifit to having both installed?16:55
frojndjamespage: One question: if I havve just created A record for server's ip will this still work?16:56
jamespagefrojnd, you need MX records as well16:57
frojndjamespage: yeah but which MX records?16:59
frojndjamespage: just mydomain MX server'sIP  as value?17:00
frojndjamespage: I mean, for A recrods I did: name: mydomain.net type: A and value serverIP for mx the same?17:02
jamespagefrojnd, without know the specifics of either your dns or your mail setup its hard to say17:02
w0rmies off17:04
frojndjamespage: I have a server at leaseweb. I got ip for the server. Then I have bought a domain at another company and made A records for server ip.17:04
frojndjamespage: under /etc/resolv.conf I have three nameservers17:05
=== exekias_ is now known as exekias
frojndI'm not sure what I should do next17:11
frojndjamespage: I found this:17:11
frojndBelow you will see the list of domains which we are secondary nameserver for. This is a free service for our customers. Please make sure you put in the IP of the primary nameserver. Also make sure you allow zone-transfers from our IP.17:11
frojndOur secondary nameserver IP is: 62.212.76.50 (ns7.leaseweb.net)17:11
frojndUps17:11
=== Ursinha-afk is now known as Ursinha
zuljamespage: mind if we merge the openstack-virt spec?17:42
jamespagezul, not at all17:43
zuljamespage:  same as the qa one, if we can just do everything in one spec then life will be happier17:43
frojndhm17:43
frojndI think I'm gonna ned a litle help over here17:48
frojndned=need :)17:48
jamespagefrojnd, sorry - a few other things going on out of channel as well17:55
* jamespage reads backscroll17:55
jamespagefrojnd, so a MX record tells the rest of the world how to deliver email for your domain - so that's mostly used for incoming delivery17:56
jamespagebut some spam/spoofing systems do checking to ensure that the mail is coming from the right place as well (can't remember the specifics)17:56
jrwrenSPF17:57
jamespageyour postfix/dovecot setup is probably going to reside on the server that you point that record at17:57
frojndjamespage: so I have to do mx record at domain company / different than the one that I have server located and set mx for server's ip just like I did for  A record17:57
jamespagefrojnd, you need todo it for the domain records that the rest of the world can see - I can't tell specifically from what you say above where that is17:58
jamespagefrojnd, example - "dig  shingle-house.org.uk MX"17:59
jamespagefrojnd, like jrwren says - SPF - sender policy framework - google it for more details18:00
jamespagethanks jrwren - I must have filed that in long term memory :-)18:00
frojndjamespage: aha with dig I see if the mx records are set18:00
jamespagefrojnd, remember it can also take time for DNS changes to propagate as by design stuff gets cached....18:01
zhbfvuvabar87r  YOU MAY BE WATCHED18:15
zhbfvuvabar87rWARNING       WARNING      WARNING,                       WARNING18:15
zhbfvuvabar87rWARNING             WARNING              WARNING,     WARNING         WARNING18:15
zhbfvuvabar87r YOU MAYWATCHED18:15
zhbfvuvabar87rYOU MAY BE WATCHED18:15
zhbfvuvabar87r   YOU MAY BE WATCHED18:15
frojndjamespage: is there a way to test if I can send email when I'm connected on a server?18:22
patdk-lapdefine, connected on a server18:25
frojndsshed to it18:25
_root_the question was long help on : http://serverfault.com/questions/558301/setting-2-ips-on-ubuntu-12-04-with-two-network-adaptor-card18:26
frojndjamespage: my domain name provider does not have spf18:36
=== pleia2_ is now known as pleia2
frojndaaaaaa19:23
jeffcihey, I have a bunch of flvs in a directory and all of that are named with a series of random numbers e.g: 9382.flv. I need to do a find on that current directory and re-encode with ffmpeg to a new format but preserve the numbers in the filename, how do I do this quickly without having to do them one by one?19:25
geniijeffci: http://ubuntuforums.org/showthread.php?t=1430243 has an example of how to do this, I think in posting #5 or so. In that case they are going flv to mp3 but you could choose whatever format instead19:38
jeffciok thanks genii19:40
ice9how to install zram on 13.04?21:04
genii!info zram-config | ice21:14
ubottuice: zram-config (source: zram-config): Upstart job to enable zram support. In component main, is extra. Version 0.1 (saucy), package size 3 kB, installed size 41 kB21:14
geniiHm, no wonder tab complete failed, they left.21:14
hazmatsmoser, what would you say to including git in the default cloud images23:55
jrwrenhazmat: why? its trivial to add git-core to packages section of a cloud-config23:59

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