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