/srv/irclogs.ubuntu.com/2013/05/04/#ubuntu-server.txt

=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
agu10^Hello. I have a VPS in amazon ec2 cloud. It has two network interfaces with private IPs. Amazon routes two public IPs to those two private ones. How can I route my packets that arrive through eth1 so that they're sent back through eth1 instead of eth0?01:55
justizintry enabling the rp_filter if it isn't already..01:58
agu10^what is that? and how01:59
justizinit's the reverse path filter, google rp_filter it's pretty easy to toggle via sysctl or somesuch01:59
justizini thought it was on by default, but check01:59
agu10^justizin, why would i want to turn it on?02:03
=== arrrghhh is now known as arrrghhhAWAY
Hitieksarnold: thanks. that got me started.03:22
=== wedgwood is now known as wedgwood_away
=== nouitfvf is now known as nouitfvf_
=== Jikan is now known as Jikai
=== Jikai is now known as Jikan
=== Jikan is now known as Jikai
=== Jikai is now known as Jikan
=== Jikan is now known as Jikai
=== Jikai is now known as Jikan
=== Jikan is now known as Jikai
=== Jikai is now known as Jikan
=== Jikan is now known as Jikai
=== Jikai is now known as Jikan
=== Jikan is now known as Jikai
=== Jikai is now known as Jikan
=== Jikan is now known as Jikai
Guest16799hi everyone09:36
Guest16799i really need help epoptes...09:36
Guest16799on ubuntu 12.04 server with ltsp09:37
Guest16799any1 here?09:43
Guest16799hi09:50
Guest16799hi09:55
=== Jikai is now known as Jikan
=== Jikan is now known as Jikai
hxmhello12:09
hxmplease, how to install a imap/smtp server on ubuntu tls 12.04 server? i have multiple domains and i want to use roundcube, but i dont find the way to make dovecot or postfix work12:09
hxmim already desesperated or closer12:09
Nafallohxm: seen https://help.ubuntu.com/12.04/serverguide/email-services.html ?12:11
hxmi saw many howtos, but that not, thanks, there i go12:11
Nafallothat's the official Ubuntu Server Guide, fwiw :-)12:11
Nafalloit's a good first place to check usually.12:11
hxmwhy the heck the official documentations are always the hardest to find in google12:12
hxmbtw i have multiple domains in the same machine12:12
Nafallo*shrugs* too much noise. I tend to just type in help.ubuntu.com and be done with it :-)12:12
hxmyes, too much noise12:13
=== Jikai is now known as Jikan
Nafallothe community part on help.u.c is also really helpful12:14
hxmmost of cases i find better professional support in the community than the helpdesk companies12:16
=== Jikan is now known as Jikai
=== Jikai is now known as Jikan
=== Jikan is now known as Jikai
luis_hi13:40
jacobwHi13:41
luis_i like  help with Epoptes13:43
luis_Basically I cant view the clients13:46
luis_any ideas?13:46
jacobwSorry, I haven't used it before.13:48
=== nouitfvf_ is now known as nouitfvf___
=== Jikai is now known as Jikan
=== Ursinha-afk is now known as Ursinha
ShogootAnyone to help me troubleshoot this? Forbidden You don't have permission to access /smn.php on this server. Apache/2.2.22 (Ubuntu) Server at 192.168.1.166 Port 8017:52
ShogootSeems i got the var/www direcotry messed up rightswise, and i can t mak emy web page dispaly....17:52
silo_no? noone?18:07
=== silo_ is now known as shogoot
shogootNickServ identify salsero18:10
shogootanyone taht can help18:13
shogoot?18:13
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
hxmhello18:33
hxmim trying to do this https://help.ubuntu.com/12.04/serverguide/postfix.html18:33
hxmsorry i start over, i found a misstype18:34
hxmin the part 2. mail.example.com i have multiple domains in the machine18:35
hxmcant i manage all of them?18:35
hxmor i create a hostname and then use spf TXT dns entry for each other?18:35
hxmwell after following this  https://help.ubuntu.com/12.04/serverguide/postfix.html and testing the smtp when  i use the ehlo command nothing appears18:58
SpamapShxm: check /var/log/syslog and /var/log/mail.log18:59
=== Ursinha is now known as Ursinha-afk
hxmhttp://pastebin.com/bggsH5Af it says bad command startup no mecachism but is the last line (i added \n after it)19:03
LargePrimemy server has 32k zombies19:20
LargePrimehow do i fix?19:20
streulmahello, is there a good tutorial how to set up postfix dovecot and postfixadmin with mysql?19:23
LargePrime also got a /usr/bin/lesspipe: fork: Cannot allocate memory19:23
LargePrimeand it seems i cannot reboot!  please help19:23
streulmaLargePrime: shutdown -r now ?19:23
LargePrimeit just hangs19:24
LargePrimeand the session locks up.19:24
LargePrimeI can immediatly reconnect with a new session19:25
LargePrimei think it took19:25
streulmakill your inodes first19:25
LargePrimenoob.  how? googleing19:25
streulmasudo sync && sudo echo 3 | sudo tee /proc/sys/vm/drop_caches19:27
streulmaLargePrime: ^19:27
LargePrimeand now it wont come back up19:27
streulma?19:27
streulmaserver is down?19:27
LargePrimenot responding19:28
* maxb observes that sudo-ing 'echo 3' is a bit redundant19:28
streulmathen it is rebooting...19:29
maxbstreulma: Why do you suggest drop_caches, that doesn't seem related to the problem here?19:30
streulmaclearing memory19:30
maxbI think you are mistaken, those caches would be automatically shrunk if needed19:31
maxbAlso, the mention of 32k zombies and the fact that it's a fork call reporting that is highly suggestive that the system has run out of process IDs, not general memory19:32
* LargePrime listens19:35
maxbLargePrime: Do you care more about just rebooting, or looking in to why this happened in the first place?19:36
LargePrimefirst place19:36
LargePrimeand the server is down19:36
LargePrimeit seems dead19:37
maxbHrm. It will be next to impossible to deduce what happened without the output of 'ps -efH' or similar19:37
LargePrimeforcing hard reboot19:38
LargePrimemaxb:  can i get that after reboot?19:39
maxbNo19:39
maxbWhat data did you have before to know there were 32k zombies?19:39
LargePrimemax, can you give a guide or chcklist i should do for nextime?19:40
LargePrimeupon ligin the server said there were 32k zombies19:40
LargePrimelogin*19:40
maxbThe most important thing would be to capture some view of the process tree like 'ps -efH' gives you, to know what process the zombies are associated with19:41
maxb"said" - where?19:41
LargePrimeno idea19:41
LargePrimeagain, total noob.  server up19:42
LargePrimewhat is the pastebinit command?19:43
LargePrimeheh, its pastebinit19:45
LargePrimemaxb: upon ssh login there is a small graph of server usage and a anvert from conical for landscape. under that it say there were 32k zombies.  it had specific number but i dont have it.19:47
LargePrimeadvert*19:47
LargePrimehow do i send ps -efH to pastebinit19:48
maxbInteresting, I guess it must be part of the dynamic informational motd generation19:48
maxbI would never have thought that would be monitored there19:48
LargePrimeso you saying your servers never have zombies?  you that good?19:49
LargePrimeheh19:49
LargePrimehow does one monitor for zombies?19:49
maxbPeople generally don't need to19:52
maxbIt takes a process misbehaving in very specific ways for it to ever become a problem19:53
LargePrimewell i think if i had 32k+ of them perhaps i shoul look for them?19:53
maxbI don't have anything in my /etc/update-motd.d/ that would report on such things - but perhaps you have other packages installed19:55
maxbAh, it will be from landscape-sysinfo I imagine19:57
LargePrimeyes19:58
maxbAnyway, I wouldn't worry about it much for now, but grab some ps -efH output for diagnosis if you find any zombies persisting for more than a few seconds in the future19:59
LargePrimehttp://paste.ubuntu.com/5633389/20:02
LargePrimeare zombies named zombies?20:02
streulmaha20:04
streulmaI think it's the Java process20:04
streulmathat eats your server20:04
streulmayour setting is high20:05
LargePrime?20:06
LargePrimeyes it is hosing java servers20:07
LargePrimewhat is "your setting is high"20:07
streulmayes20:09
streulmaXmx and Xms20:09
streulmaSet it to half20:10
streulma1024M20:10
streulma4096M is that it uses 4GB of memory for each process !20:10
LargePrimeand?20:15
streulmathen your mem is not free anymore ?20:22
streulmahow many memory is in your server ?20:22
qman__generally, having zombies is a bad coding decision but isn't directly harmful, as long as they're not flooding you out, which in this case, they appear to be20:24
LargePrimeare thier logs for this ?20:26
maxbstreulma: Sorry, but I have to say that you are giving bad advice. -Xms and -Xmx have ABSOLUTELY NOTHING to do with zombie processes20:39
hxmim able to send messages, but the email is root@localhost20:53
hxmwhere do i change that? i use mail() php20:54
hxmah found it20:54
nsaquaticsafternoon, I need help and so far nobody has been able to help me. I'20:59
nsaquaticsI'm running 10.04 LTS with mysql on it and mysql server will not start stating not being able to read/write to the PID file...21:00
nsaquaticsas far as I can tell it has all the required permissions, yet it still won't start for me.21:00
jacobwnsaquatics: Can you pastebin the exact error that you see from the init script?21:19
nsaquaticsjacobw: will do.21:23
nsaquaticsthis is from the error.log: http://pastebin.com/hyqsvB2121:28
nsaquaticsI'm tailing both the error.log and syslog...21:29
jacobwSamba configuration error?21:29
nsaquaticshuh?... hangon..21:29
jacobwnsaquatics: I don't think that's the right paste21:29
jacobwnsaquatics: What do you see when you try to stop and start the service with init/upstart?21:30
nsaquaticsjacobw: woops.. hangon21:30
nsaquaticsjacobw: this is it: http://pastebin.com/hyqsvB2121:30
nsaquaticsI start and stop via "service mysql sart/stop"21:31
jacobwHmm, that's the same paste21:31
nsaquaticsdangit...21:32
nsaquaticshttp://pastebin.com/jGh2j405 ??? Yeah, that's it... It didn't copy the new URL...21:32
jacobwnsaquatics: It should be using something like /var/run/mysql.pid instead of that path21:34
nsaquaticswell I move the databases to that path because that's my datadisk. I wanted everything data to be on it. But it's been working since then21:34
nsaquaticsOnly recently when we lost power and the server restarted did this crap start.21:35
jacobw:)21:35
nsaquatics:( so now I can't get to the email server... (zarafa)21:35
jacobwSee if that file exists and what the permissions are on it with 'ls -l'21:36
jacobwIf it exists, remove it and try to start MySQL again21:36
nsaquaticsNSAServer.pid right? Doesn't exist.21:37
nsaquaticsI tried touching it and then modifing owner/rights to no avail.. I can try it again though.21:38
nsaquaticsthe folder mysql is owned by mysql:mysql21:38
nsaquaticsand, yes I know its bad but it has 777 permissions on it at the moment.21:39
jacobwLet's see if putting the AppArmor profile for MySQL in complain mode helps21:40
nsaquaticsit already is... but I'll check again.21:40
jacobw`sudo aa-complain /usr/sbin/mysqld`21:40
nsaquaticsok, so I touched the file and chown'ed it and chmod'ed it...21:42
nsaquaticsalso ran the aa-complain... restarting the server via "service mysql stop" and "service mysql start &"21:42
jacobwDid you try removing it?21:42
hxmafter configure postfix if i send an email to hotmail is moved to spam folder, it says Microsoft SmartScreen has clasified this message as spam21:44
hxmis because of the spf entry?21:44
hxmi have a server with various domains21:44
nsaquaticsjacobw: it being the NSAServer.pid file?21:44
jacobwnsaquatics: Yeah21:44
jacobwhxm: You need DKIM21:45
nsaquaticsjacobw: I'll try that now.21:45
jacobwhxm: https://help.ubuntu.com/community/Postfix/DKIM21:47
hxmthanks, i was googleing21:48
jacobwnsaquatics: Also check the AppArmor profile is in complain mode with `sudo apparmor_status`21:48
nsaquaticsjacobw: even though I stopped the mysql server it is still trying to respawn... I can see it in the logs...21:48
nsaquatics1 profiles are in complain mode.    /usr/sbin/mysqld21:49
nsaquaticsbut no process is in complain mode...21:49
jacobwnsaquatics: OK, make sure to kill all the mysqld and mysqld_safe processes21:50
nsaquaticsok...21:50
nsaquaticsjacobw: "ps -ef |grep mysql" should show me all of them right?21:51
jacobwYeah21:52
nsaquaticssure enough, it just keeps trying to start it..21:53
nsaquaticsjacobw: from the looks of it every 30 seconds it trys to respawn.21:53
jacobwnsaquatics: what does `ps -ef` show?21:54
jacobwnsaquatics: Um, that matches 'mysql'21:55
hxmjacobw: in the config file i can only set up a domain, but i have 221:55
nsaquaticsI was about to say, besides a shitload?21:55
hxmi use one ip for manage 2 mail domains, is this incorrect?21:55
nsaquaticsroot@NSAServer:/media/DataDisk/mysql# ps -ef |grep mysql21:56
nsaquaticsroot      2178 21303  0 16:55 pts/1    00:00:00 grep --color=auto mysql21:56
nsaquaticsroot     18714 12276  0 May03 pts/3    00:00:00 tail -f mysql.err21:56
nsaquaticsat the moment but everytime I see it logging and rerun the command I can see the mysqld process pop up again.21:56
nsaquaticsjacobw: here is what syslog and error.log pop out every 30sec's or so: http://pastebin.com/Ju3vxgCq21:59
jacobwhxm: check out this blog post, http://blog.tjitjing.com/index.php/2012/03/guide-to-install-opendkim-for-multiple-domains-with-postfix-and-debian.html21:59
jacobwnsaquatics: Does `service mysql stop` stop it respawning?22:00
nsaquaticsjacobw: nope.22:00
nsaquaticsjacobw: but trying it again just to make sure.22:01
jacobwnsaquatics: Use `pstree -ps` to see what's spawning the mysqld processes22:02
nsaquaticsactually this time it looks like it did..22:02
jacobwCool, start it again and check apparmor_status22:02
nsaquaticsok, at the moment it's like it was last time I checked it, so only the profile is in complain mode... starting it noe.22:03
nsaquaticsjacobw: ok, it stayed the same because mysql bombs out, but right as I saw it trying to respawn, I ran it again and apparmor showed the mysqld process as being in complain mode, so it IS catching that it is supposed to ignore the mysql server. So if I'm understanding it correctly, it's definately not apparmor that's causing the problem, correct?22:06
jacobwThat's right22:06
jacobwMy laptop is about to run out of battery22:06
nsaquaticshmm no good...22:06
nsaquaticsplug it in? :)22:07
nsaquaticswhere else can I look?22:07
jacobwTry starting mysql with --pid-file=/var/run/mysql.pid or similar22:07
jacobwAlso check which user mysql runs as, and try operating on the file from the mysql user, etc.22:08
nsaquaticsjacobw: ok will do22:08
jacobwo/22:08
nsaquaticsjacobw: how do I see under which user it is actually runnign?22:08
nsaquaticsanybody else care to help?22:28
maxbErm, you're running mysql using paths on removable media?22:33
maxbThat sounds a bit .... wrong22:33
nsaquaticsno, not removable media... Mirrored drive...22:34
nsaquaticsMounted under /media/DataDisk22:34
maxbHm22:36
maxbI suggest you not do that22:36
maxbThe /media directory is conventionally reserved for automounting things22:37
maxbIf you're statically configuring things in /etc/fstab, you should put them under /mnt22:37
nsaquaticsmaxb: I'll keep that in mind... I'll move it o monday but for now, I just need mysql to come up for one to two hours so I can backup the data...22:41
maxbThat aside, the next obvious step would be to sudo to the mysql user and try touching a file in /media/DataDisk/mysql/22:41
nsaquaticsah... never thought of that.. moment...22:42
maxbAnd also do a pastebin of 'find /media/DataDisk/mysql -ls' so we can see the permissions in detail22:42
nsaquaticsok.22:42
nsaquaticsmaxb: pastebin: http://pastebin.com/CiYjih5Q22:44
nsaquaticsmaxb: also, how do I sudo to mysql?22:45
maxbsudo -s -u mysql22:45
nsaquaticsmaxb: ahh...22:46
maxbNote for the future: you might want to consider paste.ubuntu.com, it's not festooned with ads and prone to line-wrap things unhelpfully22:47
nsaquaticsmaxb: ok... will switch to that.22:48
* maxb pauses to take a moment to shudder at all those mode 777 files22:50
nsaquaticsmaxb: sudo'd to mysql as was able to create the NSAServer.pid file by touching it. it now exists and has the following permissions: "-rw-rw-rw-+  1 mysql   mysql             0 2013-05-04 17:47 NSAServer.pid" however I cannot run the "find" command as mysql I guess?22:51
nsaquaticsAnd yes, those will be changed back once this is figured out... :)22:52
maxboh, now that's interesting. You got a +22:53
maxbIndicating extended ACLs are at work22:53
maxbHm22:54
maxbI don't recall if find -ls shows those + signs22:54
nsaquaticsmaxb: well... I just added acl to the disk like yesterday..22:54
nsaquaticshere is the output of find once I exited out from the mysql user:22:55
maxbTry 'ls -l', are there more files besides the newly created one with + signes after the mode listing?22:55
nsaquatics60293221    0 -rw-rw-rw-   1 mysql    mysql           0 May  4 17:47 /media/DataDisk/mysql/NSAServer.pid22:55
nsaquaticshang on22:55
nsaquaticsmaxb: yes, all the other folders22:55
maxbSo, you added ACLs to the disk yesterday and now your DB has stopped working....? :-)22:55
nsaquaticsmaxb: no cigar... I have been working on this for 4 days on and off.22:56
maxbI suppose I should also ask: what is the filesystem being used here?22:56
nsaquaticsbut I switched to working on upgrading to samba 4 in between sessions22:56
nsaquaticsmaxb: Tried the old work on something else for a while trick... didn't work..22:57
nsaquaticsbtw, ls -l shows the + but nothing more...22:58
maxbRight, for a full display of the ACLs over the entire directory tree, you'll need 'getfacl -R /media/DataDisk/mysql'22:58
nsaquaticsmaxb: this should be good...22:59
maxbAlthough given you could create the file as the mysql user, and you've apparently already eliminated apparmor, I'm starting to run out of ideas23:00
nsaquaticsgrrrr23:01
nsaquaticsok, here is the output just for the NSAServer.pid file. http://paste.ubuntu.com/5633809/23:02
maxbThat ACL is a bit baffling. I'd like to see the nonrecursive (drop the -R) info for the containing directory23:03
nsaquaticsmaxb: http://paste.ubuntu.com/5633813/23:04
maxbHm. Well, whilst I cannot point to any specific issues with these ACLs, given the general mystery that seems to exist here, I would be strongly inclined to remove all the extended ACLs from the mysql tree entirely, leaving just the traditional mode bits23:07
nsaquaticshmmm and how does one go about doing that?23:09
maxbLooks like it would be something like setfacl --recursive --remove-all /media/DataDisk/mysql23:11
maxbThough for completeness you should also review and potentially remove the ACL on /media/DataDisk23:12
=== LargePrime is now known as Guest75514
nsaquaticsmaxb: thanks, I'll look at that... for now I'm trying to get someone to look at it first hand...23:29

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