=== DaveR is now known as col_panic === col_panic is now known as The_Pugilist === freeflying is now known as freeflying_away [06:16] I 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? === freeflying_away is now known as freeflying [06:51] hi. 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? [07:13] Hi all can I ask a question about apache running on ubuntu server here or just questions about ubuntu server ? [07:14] TazmainianDevil, ask away [07:16] Okay 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:18] TazmainianDevil, I could tell you how to do in Nginx [07:18] it [07:18] a better option as a proxy [07:19] TazmainianDevil: you have most mosules, but you need to enable them - 'sudo a2enmod rewrite' [07:20] maxb I looked in the mods available folder its not there [07:23] maxb okay the command work, so I just couldn't see it [07:25] Good - though you don't actually need mod_rewrite here [07:25] maxb what would I use then ? [07:27] Whilst 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 URL [07:28] maxb 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 funny [07:28] I imagine you might want something like 'ProxyPass /fisheye/ http://localhost:8060/fisheye/' based on the URLs mentioned earlier [07:29] I 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 404ed [07:31] maxb well just there are no images and the left side of the page is located at the bottom. [07:31] Right, missing images and CSS [07:31] how do I get those to load then ? [07:32] At 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 Chrome [07:33] Once you've found an URL that's being requested that's 404-ing, you can see in what manner it appears to be wrong [07:33] maxb, 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:34] That's certainly one way to do it, though there are a2ensite and a2dissite commands to automate the linking into the sites-enabled directory [07:38] maxb, 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. === 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 [09:19] maxb, if I get an error You don't have permission to access /fisheye on this server. what does that mean ? [09:20] Most likely it means you want to add an 'Allow from all' to the relevant bit of configuration [09:21] maxb, That would be under the apache2.conf right ? [09:24] Yes, but not just anywhere in it [09:25] That is one of the apache config directives that needs to be in directory context [09:25] So inside a or block in this case [09:27] maxb, okay let me just set it up from scratch then. What would ne the best way to do this ? [09:27] uh, just type some config :-) ? === irv_ is now known as irv [09:28] -.- that helps lol. i meant the redirect. [09:31] maxb, 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] I don't know enough about your setup to just dictate an entire config, and I'm unclear why you suddenly want to restart from scratch [09:31] um, wait, are you actually using httpd 2.4, or are you reading the wrong documentation? [09:32] Using 2.22 was on the wrong page, but the command is the same === diplo_ is now known as diplo [09:33] https://httpd.apache.org/docs/2.2/howto/access.html It has the usuage and all but where is that? [09:33] inside a or block as I said [09:33] maxb, okay where are the or blocks ? What file ? [09:34] whereever you put them [09:35] maxb, 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/www === freeflying is now known as freeflying_away [09:36] Fisheye isn't in any directory on disk that apache reads from, so you probably want a [09:38] maxb, still the same [09:40] I'm out of ideas for obvious things to check [09:41] maxb, thats why I want to redo the redirect. [09:43] go on then? [09:46] maxb, thats Why I was asking what would be the best way to do the redirect. Since creating a proxiedhosts file does not work [09:59] If I used the sudo ln -s /etc/apache2/sites-available/proxiedhosts /etc/apache2/sites-enabled how do I break that link again ? [10:01] rm it [10:03] mardraum, rm the file ? [10:06] mardraum, if I do that apache wont start [10:09] rm the link [10:10] mardraum, okay how would a total noob remove a link ? google referes to the name of the link [10:14] hello, need input on how to install samba4 [10:14] apt-get install samba4 gives some errors [10:18] '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 directory [10:19] error probing vfs module 'acl_xattr': NT_STATUS_UNSUCCESSFUL [10:21] A 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:24] blueking, did you try installing it using synaptic. That worked for me [10:25] what are synaptic ? === highvolt1ge is now known as highvoltage === MikaT_ is now known as MikaT [10:30] TazmainianDevil: how ? [10:57] Hi, does anyone have experience with proftp? [10:58] why don't you just ask the question you want the answer to [10:58] That would make too much sense [11:00] Anyway, 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 start [11:00] Any ideas? [11:01] unclezipper: I'd look at the config file for chroot options, that may explain why the users are bound to their home directories, [11:02] unclezipper: 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 user [11:02] ikonia: 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 though [11:02] unclezipper: that actually sounds like the "right" setup, if you're chrooting them into their home they should only see the content in their home dir [11:03] ikonia: 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] You can understand my confusion here [11:04] defaultroot is worthless if you are chrooting the users, which it sounds like you are [11:04] also look in the ftpd log files to geta clue of what's going on and the xfer logs [11:05] I used synaptic to install samba4 but how I enter setup of samba ? [11:06] "enter the setup" what do you mean ? [11:06] ikonia: Thanks, you might have just pointed my nose in the right direction [11:06] unclezipper: not a problem, if you have problems, just explain what you see and they can be worked through [11:06] ikonia: yes [11:07] to set password domain name and so on [11:07] blueking: "what do you mean" - "yes" is not a valid answer to that question [11:08] when used apt-get install samba4 it started right on setup to put in password and more stuff synaptic didn't [11:08] XD [11:08] blueking: I see so you're expecting some sort of q/a type session [11:08] blueking: The configuration file should be at /etc/smb.conf [11:09] ok [11:09] You'll need to open it as root/with sudo to edit it. [12:35] is there a way to dump oidentd requests? === wickedpuppy2 is now known as wickedpuppy [12:54] <_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:56] damn samba4 wasn't easy to fix [12:58] _root_: try ifdown and then ifup, but if you edited the files first you may have a problem putting them down [12:58] _root_: so you might need to put them down manually with ifconfig [12:58] <_root_> madneon: you mean ifdown eth0 for example? [12:59] _root_: yeah, like that [13:01] _root_: next time try this way: ifdown eth0, then edit config, then ifup eth0 [13:06] <_root_> madneon: ifdown:interface eth0 not configured . is that error you were talking about? [13:06] _root_: most likely, try using: ifconfig eth0 down [13:11] One machine, `time ps aux | wc -l` shows 213 lines, takes 53s to complete. 17G mem free. 88% cpu idle. Any ideas? === chmac7 is now known as chmac [13:11] Takes nearly 60 seconds to start top... [13:11] top shows iowait 0.0% [13:13] cat /proc/mdstat looks fine [13:13] Maybe it's only sudo that's slow... === psivaa is now known as psivaa-lunch [13:15] Sure enough, `sudo su -` and then `ps aux | wc -l` is super fast... [13:15] Don'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] The server's hostname is mapped to the external IP of the server, not localhost [13:16] Same on 3 other machines, same OS, and no issues... [13:19] Crazy, changed the machine's hostname to resolve to localhost and it's fixed... === geser_ is now known as geser [13:27] Darnit, issue is back, even with the hostname change... [13:34] OK, issue seems to be bind9 running crazy slow... [13:53] <_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:56] _root_: FAQ here: https://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/ [14:00] <_root_> rbasak: you mean i put nameserver x.x.x.x in /etc/network/interfaces ?? [14:08] Hi there. [14:09] I 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 unable [14:09] There is an error in logs (I use nginx and php) [14:10] [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:184 [14:11] I'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] What else can I check? === Gurkenmaster_ is now known as Gurkenmaster [14:17] I've tried different creditentials and it still fails === psivaa-lunch is now known as psivaa [14:33] Anyone here? [14:43] _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:44] Hm. So I Was trying to send email as root using mail to one of my gmail accounts. I didn't receive a message. === Ursinha is now known as Ursinha-afk [14:52] How do I setup /etc/mail/local-host-names ? [14:53] i'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 to ...." Am i missing some very important step? === PaulePan1er is now known as PaulePanter === freeflying_away is now known as freeflying [15:23] jamespage: https://code.launchpad.net/~zulcss/glance/icehouse-ftbfs/+merge/197223 [15:28] zul, +1 [15:28] how's the opening of icehouse looking now? [15:28] jamespage: getting closer...need to work on blueprints [15:36] Is there a way to tell why I can't send mails from my server to gmail? [15:36] using 'mail' command [15:36] what logs should I check [15:38] aha syslog [15:41] dufuq [15:42] postfix/master[17024]: fatal: bind 0.0.0.0 port 25: Address already in use [15:42] I purged that sendmail and netstat -pel | grep smtp still shows sendmail: tcp 0 0 localhost:smtp *:* LISTEN root 1911831 15891/sendmail: MTA [15:42] jamespage: have you noticed that your latest mysql upload failed dep8 testing again? [15:43] rbasak, yeah - I sponsored a upstart tweak [15:43] Oh OK, np [15:43] It's like I must use kill -9 for this sendmail [15:43] rbasak, but I'd been ignoring it whilst I got on with some other stuff [15:43] rbasak, not sure why the test suite fails as it does exactly the same thing during the package build [15:44] jamespage: we really need to resync with Debian at some point and sort it out :-/ [15:44] rbasak, yes - I added that to the mysql blueprint [15:44] There was some trickery involved, IIRC. [15:44] rbasak, frustratingly the previous upload passed its autopkg tests [15:45] I don't think it's deterministic. === Ursinha-afk is now known as Ursinha === Ursinha is now known as Ursinha-afk === Ursinha-afk is now known as Ursinha [16:37] jamespage: yay glance is blue [16:42] zul, woot [16:42] zul, I was trying to figure out how to sync the local repo in the lab with the packages from precise-havana [16:42] I setup a pull but that's not working so well [16:43] jamespage: well alot of those packages are going to be updated in the next 5 months [16:43] zul, yes - but we need a base to start from [16:44] and the lab archive need to be fully populated for deploy testing [16:44] jamespage: right [16:44] I'm rather new to this === Ursinha is now known as Ursinha-afk [16:47] zul, w00t! my team's movember donations just busted through £2k! [16:47] zul, think my bro is showing iff [16:47] sweet [16:47] apologies channel - that was a little OT [16:48] or alot really [16:48] slightly ;) [16:48] frojnd, /var/log/mail.log is pretty useful normally [16:48] I've configured posfix and dovecot. When I try to use thunderbird and I add new mail: it says username of password invalid [16:49] If I understand this correctly, my email addrss is username@domain ? [16:49] kirkland, stop byobu-ing :-) [16:50] frojnd, 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 serving [16:52] jamespage: where do I check this? I have configured /etc/mail/local-host-names to be like this: localhost and next line is my domain [16:53] frojnd, /etc/dovecot and /etc/postfix (I think - straining the grey cells now) [16:55] hello. 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:56] jamespage: One question: if I havve just created A record for server's ip will this still work? [16:57] frojnd, you need MX records as well [16:59] jamespage: yeah but which MX records? [17:00] jamespage: just mydomain MX server'sIP as value? [17:02] jamespage: I mean, for A recrods I did: name: mydomain.net type: A and value serverIP for mx the same? [17:02] frojnd, without know the specifics of either your dns or your mail setup its hard to say [17:04] s off [17:04] jamespage: 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:05] jamespage: under /etc/resolv.conf I have three nameservers === exekias_ is now known as exekias [17:11] I'm not sure what I should do next [17:11] jamespage: I found this: [17:11] Below 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] Our secondary nameserver IP is: 62.212.76.50 (ns7.leaseweb.net) [17:11] Ups === Ursinha-afk is now known as Ursinha [17:42] jamespage: mind if we merge the openstack-virt spec? [17:43] zul, not at all [17:43] jamespage: same as the qa one, if we can just do everything in one spec then life will be happier [17:43] hm [17:48] I think I'm gonna ned a litle help over here [17:48] ned=need :) [17:55] frojnd, sorry - a few other things going on out of channel as well [17:55] * jamespage reads backscroll [17:56] frojnd, so a MX record tells the rest of the world how to deliver email for your domain - so that's mostly used for incoming delivery [17:56] but 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:57] SPF [17:57] your postfix/dovecot setup is probably going to reside on the server that you point that record at [17:57] jamespage: 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 record [17:58] frojnd, 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 is [17:59] frojnd, example - "dig shingle-house.org.uk MX" [18:00] frojnd, like jrwren says - SPF - sender policy framework - google it for more details [18:00] thanks jrwren - I must have filed that in long term memory :-) [18:00] jamespage: aha with dig I see if the mx records are set [18:01] frojnd, remember it can also take time for DNS changes to propagate as by design stuff gets cached.... [18:15] YOU MAY BE WATCHED [18:15] WARNING WARNING WARNING, WARNING [18:15] WARNING WARNING WARNING, WARNING WARNING [18:15] YOU MAYWATCHED [18:15] YOU MAY BE WATCHED [18:15] YOU MAY BE WATCHED [18:22] jamespage: is there a way to test if I can send email when I'm connected on a server? [18:25] define, connected on a server [18:25] sshed to it [18:26] <_root_> the question was long help on : http://serverfault.com/questions/558301/setting-2-ips-on-ubuntu-12-04-with-two-network-adaptor-card [18:36] jamespage: my domain name provider does not have spf === pleia2_ is now known as pleia2 [19:23] aaaaaa [19:25] hey, 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:38] jeffci: 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 instead [19:40] ok thanks genii [21:04] how to install zram on 13.04? [21:14] !info zram-config | ice [21:14] ice: 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 kB [21:14] Hm, no wonder tab complete failed, they left. [23:55] smoser, what would you say to including git in the default cloud images [23:59] hazmat: why? its trivial to add git-core to packages section of a cloud-config