[00:51] <Gaming4JC> Hey guys, I recently upgraded from 11.04 to 11.10 and MYSQL broke.  ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[00:51] <Gaming4JC> I read around on the forums, adjusted app-armour and did a complete purge and remove and reinstall
[00:51] <Gaming4JC> no luck
[00:51] <Gaming4JC> :(
[00:54] <SpamapS> Gaming4JC: is mysqld running?
[00:55] <Gaming4JC> ps -ef |grep mysql mysql     4004     1  2 04:52 ?        00:00:00 /usr/sbin/mysqld username   4022  1926  0 04:52 pts/0    00:00:00 grep --color=auto mysql
[00:55] <Gaming4JC> SpamapS: believe so
[00:57] <Gaming4JC> SpamapS: yep all seems running, and I can restart the daemon. I kind of need this to work ASAP since it hosts a game server and broke yesterday evening :P
[00:57] <Gaming4JC> when I try to run mysqladmin...
[00:57] <Gaming4JC> mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
[00:58] <SpamapS> Gaming4JC: anything in /var/log/mysql/* ?
[00:59] <SpamapS> Gaming4JC: also is it possible /var/run is not a proper symlink to /run on your system?
[00:59] <SpamapS> lrwxrwxrwx 1 root root 4 2011-11-25 06:58 /var/run -> /run
[01:00] <SpamapS> Gaming4JC: thats what it should look like if you run 'ls -ld /var/run'
[01:00] <Gaming4JC> ran the command lrwxrwxrwx 1 root root 4 Dec  3 04:45 /var/run -> /run
[01:00] <Gaming4JC> also there is an error.log file but it is empty
[01:00] <Gaming4JC> in the /var/log/
[01:01] <SpamapS> Gaming4JC: but no socket file at /var/run/mysql ?
[01:02] <Gaming4JC> SpamapS:  ls: cannot access /var/run/mysql: No such file or directory
[01:02] <Gaming4JC> I assume not
[01:02] <Gaming4JC> :O
[01:02] <SpamapS> Gaming4JC: interesting!
[01:03] <Gaming4JC> indeed...
[01:03] <Gaming4JC> reinstall for the 50th time?
[01:03] <SpamapS> Gaming4JC: no
[01:03] <SpamapS> Gaming4JC: that directory is created in the upstart script
[01:04] <SpamapS> Gaming4JC:     [ -d /var/run/mysqld ] || install -m 755 -o mysql -g root -d /var/run/mysqld
[01:04] <SpamapS> Gaming4JC: that should be line 22 of /etc/init/mysql.conf
[01:05] <Gaming4JC> SpamapS: looks right - http://paste.ubuntu.com/757707/
[01:05] <SpamapS> Gaming4JC: ok, so its kind of weird that the directory would disappear!
[01:05] <SpamapS> Gaming4JC: try 'service mysql stop ; service mysql start'
[01:06] <SpamapS> Gaming4JC: if that fixes it, maybe file a bug about this...
[01:06] <SpamapS> Gaming4JC: I'd investigate further but I have to go
[01:06] <Gaming4JC> SpamapS: stop: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused :O
[01:06] <SpamapS> Gaming4JC: sudo
[01:06] <Gaming4JC> been nothing but trouble updating from natty
[01:06]  * utlemming is away: Gone away for now
[01:06] <SpamapS> whoa wait
[01:07] <SpamapS> Gaming4JC: is this by any chance in a vmware VM?
[01:07] <SpamapS> Gaming4JC: there's a bug in the vmware tools that eats your init scripts on upgrade to 11.10
[01:07] <Gaming4JC> it's an OpenVZ hosted VPS
[01:07] <Gaming4JC> ok sudo worked
[01:07] <SpamapS> Gaming4JC: dbus not running tho.. thats troubling
[01:07] <Gaming4JC> SpamapS: sudo fixed dbus :)
[01:08] <SpamapS> Gaming4JC: no it didn't.. sudo allowed you to use the private socket that root uses to talk to upstart. ;)
[01:08] <Gaming4JC> SpamapS: mysql stop/waiting
[01:08] <Gaming4JC> eek
[01:08] <SpamapS> Gaming4JC: sudo service mysql start should get it running
[01:08] <Gaming4JC> :P
[01:09] <SpamapS> Gaming4JC: if that doesn't work.. I'd try running sudo /usr/sbin/mysqld directly.. which should print errors if there are problems
[01:09] <SpamapS> Gaming4JC: also make sure you have  'socket = /var/run/mysqld/mysqld.sock' in /etc/mysql/my.cnf
[01:09] <SpamapS> anyway, REALLY have to go
[01:09] <SpamapS> Gaming4JC: GOOD LUCK!!
[01:09] <Gaming4JC> SpamapS: system seems halted while running service mysql :O
[01:09] <Gaming4JC> ok
[01:09] <Gaming4JC> thanks!
[01:09] <Gaming4JC> SpamapS: ciao :)
[01:47] <barcef> What else do I need to do? Installed squid on my machine in the US, setup my src ip range and disabled X-forward-for , but hulu still says that I'm out side of the US. Any ideas?
[02:11] <wmp> hello, how to kill python /root/bin/script without pid?
[02:11] <wmp> i try: killall python /root/bin/script
[02:11] <wmp> and pkill python /root/bin/script
[02:11] <wmp> but nothing
[02:12] <EvilResistance> wmp, what user is it running as?
[02:12] <EvilResistance> root?
[02:12] <wmp> yes
[02:12] <EvilResistance> wmp, pidof python /root/bin/script
[02:12] <EvilResistance> try that
[02:12] <EvilResistance> it should get you the pid
[02:13] <wmp> nice
[02:13] <wmp> thx
[02:13] <EvilResistance> as for *killing* the process
[02:13] <EvilResistance> that might be easier said than done
[02:17] <wmp> EvilResistance: hmmm, how to run process in background? i have python $DAEMON &  2>/dev/null
[02:22]  * utlemming is back.
[02:23] <Gaming4JC> wb
[02:49] <smoser> wmp, thats close enough.
[02:49] <virusuy> howdy all
[02:49] <wmp> smoser: ?
[02:49] <smoser> python $DAIEMON &
[02:49] <smoser> will background for sure.
[02:49] <wmp> and how to send echo from python to null?
[02:49] <smoser> stdout ?
[02:50] <smoser> python $DAEMON &  2>/dev/null >/dev/null
[02:50] <smoser> python $DAEMON &  2>/dev/null >/dev/null </dev/null
[02:50] <smoser> you probably want the last one.
[02:50] <smoser> otherwise stdin will still be open.
[02:50] <wmp> ok
[02:50] <smoser> which will leave you with a bug like: https://bugs.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/878600
[02:52] <wmp> smoser: dont work
[02:52] <smoser> error ?
[02:53] <wmp> http://wklej.org/id/639612/
[02:55] <smoser> its writing to the console directly ?
[02:55] <wmp> yes
[02:55] <smoser> if you did >/dev/null, then stdout is going to /dev/null
[02:56] <wmp> smoser: i need to redirect all pipe
[02:56] <smoser> can you paste more context ?
[02:56] <wmp> from init?
[02:57] <smoser> sure.
[02:57] <smoser> and maybe your init script
[02:58] <smoser> because very generally:
[02:58] <smoser> sh -c "python -c 'import time; print \"howdy\"; time.sleep(3); print \"bye\";' 2>&1 </dev/null &"
[02:58] <smoser> there, you will see output
[02:58] <smoser> but
[02:58] <smoser> sh -c "python -c 'import time; print \"howdy\"; time.sleep(3); print \"bye\";' >/dev/null 2>&1 </dev/null &"
[02:58] <smoser> you will not
[02:58] <wmp> python $DAEMON &  2>/dev/null >/dev/null
[02:59] <smoser> theres some other bit of info missing.
[02:59] <smoser> what you've done there closed stdin and stdout to that pid.
[03:00] <smoser> now, its possible that you duped file handle 2 (stderr) to file handle 4 and it is writing to 4, but otherwise i dont kwno what you're seeing. there isn't enough context.
[03:00] <wmp> http://wklej.org/id/639613/
[03:01]  * utlemming is away: Gone away for now
[03:01] <smoser> i'm really sorry, but that doesn't help.
[03:01] <smoser> i have no idea what 'do_start' does
[03:01] <wmp> smoser: all script: http://wklej.org/id/639614/
[03:02] <smoser> oh.
[03:02] <smoser> move & to the end of the line.
[03:02] <smoser> python $DAEMON & >/dev/null 2>&1 </dev/null
[03:02] <smoser> does "make process daemon and background it", then redirect some stuff (i would have thought that'd show you an error)
[03:03] <smoser> and you really do want:
[03:04] <wmp> root@lust:~/soredserver# [2011-12-03 04:04:03] Server started
[03:05] <smoser> pastebin again ?
[03:05] <wmp> all?
[03:05] <smoser> the init script.
[03:06] <wmp> i paste your line
[03:06] <smoser> are you trying to be nice to the owner of the pastebin ?
[03:06] <wmp> http://wklej.org/id/639615/ ?
[03:06] <wmp> i dont understand
[03:06] <smoser> -         python $DAEMON & >/dev/null 2>&1 </dev/null
[03:07] <smoser> +         python $DAEMON >/dev/null 2>&1 </dev/null &
[03:08] <wmp> ok, wrk
[03:08] <wmp> work
[03:08] <wmp> bye
[03:08] <wmp> and thank
[03:13] <Hethrir> I have a script which I want to start, then be able to log out and occasionally check the output(stdout), how is this normally done?
[03:15] <EvilResistance> screen + process?
[03:16] <Hethrir> I only have ssh access?
[03:16] <EvilResistance> screen is a program
[03:16] <EvilResistance> !info screen
[03:16] <EvilResistance> ugh
[03:16] <EvilResistance> oh there
[03:16] <EvilResistance> Hethrir, fwiw, here's how i run a process that needs to continue running after i "logout"
[03:17] <EvilResistance> Hethrir, i installed 'screen' and then ran 'screen'
[03:17] <EvilResistance> within the new "terminal" that opened up (i.e. the 'screen session'), i run the process
[03:17] <EvilResistance> case in point, my IRC bot
[03:17] <Hethrir> Thank you :)
[03:17] <EvilResistance> when i close the ssh session, the process remains
[03:18] <virusuy> You can also deown that process if you dont want to install screen
[03:18] <EvilResistance> true.
[03:19] <virusuy> sorry
[03:19] <virusuy> disown
[03:20] <virusuy> basically disown deletes that job from job's table, in consecuence can't receive a SIGKILL signal
[03:21] <virusuy> which happens when you logout or close ssh
[03:21] <virusuy> system sends SIGKILLs signals to all your process, but if you disown it, it can send that signal, basically because isn't your
[03:21] <virusuy> yours*
[03:22] <Hethrir> can I check back in on it?
[03:22] <virusuy> yes
[03:22] <Hethrir> Thank you as well :)
[03:23] <virusuy> Hethrir: oh sorry
[03:23] <virusuy> i mean, you cannot own a disowned proccess
[03:23] <virusuy> or at least i don't know how to do that
[03:24] <Hethrir> ah, well, thank you anyway :)
[03:25] <virusuy> but you can , for example, redirect the ouput to a file and check that file to see how it goes
[03:53] <Hethrir> wow, screen is very useful
[03:54] <Gaming4JC> I know, I'm just learning to use it
[03:54] <Gaming4JC> it's a Godsend :D
[03:54] <Hethrir> Yes :)
[03:57] <Gaming4JC> Would any of you guys know a quick and easy way to manage startup services? Basically I want to disable apache and sendmail from startup for time being
[03:59] <Gaming4JC> Some one told me to read a book on upstart
[03:59] <Gaming4JC> I thought it was in init.d something
[04:01] <Gaming4JC> nvm, google is my bested friend
[04:02] <Gaming4JC> bestest*
[04:02] <Gaming4JC> http://askubuntu.com/questions/19320/whats-the-recommend-way-to-enable-disable-services :D
[04:08] <chrislabeard> Hi, i'm getting a connection refused when trying to ssh into my server any ideas?
[04:08] <chrislabeard> I even tried it locally on the sever to see if it could connect to itself and it gets the same error
[04:11] <Hethrir> error + google?
[04:12] <chrislabeard> I've goggled but can't find anything on the error I'm now getting when trying to restart the ssh server. "tilde_expand_filename: no such user ."
[04:13] <Hethrir> you're sure you're entering the proper user name?
[04:13] <virusuy> chrislabeard: are you using root to login ?
[04:14] <chrislabeard> virusuy: no
[04:14] <virusuy> chrislabeard: uhm
[04:14] <chrislabeard> virusuy: i'm using sudo /etc/init.d/ssh restart
[04:14] <virusuy> sshd
[04:14] <virusuy> should you use
[04:14] <virusuy> or at least the service is called sshd
[04:15] <chrislabeard> I get command not found when using sshd
[04:16] <virusuy> what about ssh localhost =
[04:16] <virusuy> in your box
[04:16] <chrislabeard> I get the same thing
[04:16] <chrislabeard> connection refused
[04:18] <virusuy> what about service ssh status ?
[04:20] <virusuy> chrislabeard:
[04:20] <chrislabeard> when I use $ ps aux | grep sshd It gives me "beard 26019 0.0 0.0 3588 920 pts/0 S+ 22:19 0:00 grep --color=auto sshd
[04:21] <virusuy> test this
[04:21] <virusuy> ps -ef | grep ssh
[04:21] <chrislabeard> that just gave me a ton of info
[04:22] <virusuy> same but with ps aux instead of ps -ef
[04:22] <virusuy> i mean ps aux | grep ssh
[04:22] <chrislabeard> let me pastebin it
[04:23] <virusuy> chrislabeard: ok
[04:24] <chrislabeard> http://pastebin.com/X8ryiV8u
[04:26] <virusuy> thats the output of ps aux | grep ssh , right ?
[04:26] <chrislabeard> yes
[04:26] <virusuy> can you execute
[04:26] <virusuy> service ssh status
[04:26] <virusuy> please ?
[04:26] <chrislabeard> ssh stop waiting
[04:27] <virusuy> uhmm
[04:27] <virusuy> now, execute service ssh start
[04:28] <chrislabeard> virusuy: http://pastebin.com/6K0sVN5W
[04:29] <virusuy> in your first pastebin link
[04:29] <virusuy> seems like dpkg is trying to configure those packages
[04:29] <virusuy> including openssh-server
[04:29] <chrislabeard> oh let me run it again
[04:29] <virusuy> and maybe that's why the server isn't runing
[04:30] <chrislabeard> http://pastebin.com/MpdeEA8C
[04:30] <chrislabeard> new pastebin
[04:31] <virusuy> and what about service ssh start
[04:31] <chrislabeard> same error as the previous pastebin
[04:32] <virusuy> weird
[04:32] <virusuy> are you running those command with sudo right ?
[04:32] <chrislabeard> haha
[04:32] <chrislabeard> wow
[04:33] <virusuy> :-P
[04:33] <chrislabeard> okay its running but I still can't connect it to
[04:33] <chrislabeard> to it
[04:33] <virusuy> even trying it locally ?
[04:33] <chrislabeard> yeah
[04:33] <virusuy> i mean, doing ssh localhost
[04:34] <chrislabeard> yep port 22: connection refused
[04:35] <virusuy> uhmm
[04:35] <chrislabeard> so confused, I usually never have any problems with ssh
[04:35] <virusuy> that's really weird
[04:36] <virusuy> you didn't modify your sshd_config file, right ?
[04:36] <virusuy> it's standard configuration ?
[04:36] <chrislabeard> virusuy: yeah didn't change anything
[04:36] <chrislabeard> virusuy: it was working fine yesterday and I shut down the server and start it up today and couldn't connect to it
[04:36] <chrislabeard> virusuy: If I run "sudo netstat -nap | grep :22" It doesn't display anything
[04:37] <virusuy> it's weird , really.. i mean, try to shut down ssh
[04:37] <virusuy> see if there's any ssh proccess runing, and start it again
[04:37] <chrislabeard> what is the command with the services thing now
[04:37] <chrislabeard> stop doesn't seem to work
[04:38] <chrislabeard> since I guess /etc/init.d/ssh stop is depreciated
[04:38] <virusuy> service ssh stop
[04:38] <chrislabeard> I'm getting a "stop: unknown instance:"
[04:38] <chrislabeard> when I try to run that
[04:41] <virusuy> uhmm
[04:41] <virusuy> im running sudo service ssh stop in my box and works perfectly
[04:42] <chrislabeard> argg
[04:42] <chrislabeard> Well I'm killing all processes that are ssh
[04:42] <qman__> unknown instance means it isn't running, or at least is not running as a service
[04:43] <qman__> and it's sshd
[04:43] <qman__> ssh is the client
[04:43] <qman__> but the service name is ssh
[04:43] <chrislabeard> sshd is an unkown service for me
[04:43] <qman__> right
[04:43] <qman__> sshd is the process name
[04:43] <qman__> ssh is the service name
[04:43] <qman__> ps aux | grep sshd
[04:43] <chrislabeard> ahh gotcha
[04:44] <chrislabeard> it shows a process and I try to kill it but it says no such process
[04:48] <chrislabeard> so could I like uninstall it and reinstall it
[05:20]  * utlemming is back.
[05:51]  * utlemming is away: Gone away for now
[06:46] <j4jack> hi everyone
[06:59] <j4jack> any idea how I can route 192.168.1.0/24 network to 172.21.1.0/24?
[06:59] <j4jack> there's a default gateway (192.168.1.1) which provides internet
[07:04] <smw> j4jack, how do you route one network to another network?
[07:05] <smw> You could route it to a different gateway, but that would be an ip address.
[07:06] <j4jack> smw: I have 2 interface
[07:06] <j4jack> let me put my senario in a file...
[07:15] <j4jack> smw: http://pastebin.com/FPLCruaB
[08:16] <SpamapS> j4jack: can you be more specific about what you want to have happen?
[08:17] <j4jack> SpamapS: forget about it, i need to bridge my nics to let everbody has internet
[08:17] <j4jack> that's not English! I know
[08:18] <j4jack> I need to select best repository (fastest) in ubuntu server (no gui) any idea?
[08:20] <SpamapS> j4jack: apt-mirror
[08:21] <SpamapS> j4jack: actually no wait
[08:21] <SpamapS> netselect-apt
[08:22]  * j4jack did not find apt-mirror in his repsitory...
[08:23] <SpamapS> j4jack: http://askubuntu.com/questions/39922/how-do-you-select-the-fastest-mirror-from-the-command-line
[08:23] <SpamapS> netselect-apt or apt-spy seem to be popular
[08:23] <j4jack> isn't there anything installed by default
[08:24] <SpamapS> j4jack: I usually just use $COUNTRY.archive.ubuntu.com :)
[08:24] <j4jack> SpamapS: :)
[08:24] <j4jack> i'll try that
[13:48] <CantWinn> Hey peeps. I have been google-ing my *** off looking for a solution to host my on "cloud" with file sync. I only have really come up with iFile and ownCloud - which the later doesn't give a lot of info on what it really does. Anyone know of, or make anything like this? Stipulations are that it has to have administration for folder sharing because this is for my medium sized business.
[13:49] <Azrael> CantWinn: have you seen One.com's CloudDrive?
[13:49] <CantWinn> Hmm.. no I don't think so, I will take a look
[13:49] <Azrael> oh wait you want to host your own
[13:49] <Azrael> you should look at OpenStack
[13:49] <CantWinn> yeah
[13:50] <CantWinn> OpenStack you say?
[13:50] <Azrael> its a whole cloud orchestration infrastructure
[13:50] <Azrael> one of its components (Swift i think) does amazon-like cloud file storage
[13:51] <Azrael> it might be overkill for what you need, as its targeted for large ever-growing super-scaling cloud deployments
[13:52] <CantWinn> Yeah, I am looking for somewhere around 100 users..
[13:52] <CantWinn> if that
[13:52] <CantWinn> probably only about 40-60 will ever use it.
[14:41] <andygraybeal> so i'm reading about drbd and that it we should be configuring kvm's cache=none  :)
[14:42] <andygraybeal> it's not new news, but new to me
[14:42] <andygraybeal> i want to start learning about drbd
[14:54] <ogra_> then say goodbye to a sane ubuntu setup :P
[14:57] <ogra_> oh, sorry, i mixed it up with drbl, ignore me
[15:57] <koolhead17> hi all
[17:13]  * utlemming is back.
[17:52] <jetole> Not sure what room I should post this in but I am wondering if anyone can tell me any ideas they may have to help stop employees from stealing contacts to clients when they leave. I know it's ubuntu-server but just hoping from one admin to another someone has some advice
[18:05] <failover> jetole, get better employees
[18:13] <virusuy> failover: +1
[18:29] <Myrtti> that, or make the place so nice to work in that they don't leave
[18:35] <patdk-lap> myrtti, that is impossible
[18:35] <patdk-lap> some employees like to work alone, some in groups
[18:35] <patdk-lap> some just want more pay, some just a pleasent enviroment
[18:36] <patdk-lap> and to really screw it all up, some employees are just jackasses, but they do good work
[18:37] <ikonia> patdk-lap: if you give them access to the data - you can't stop them taking it by writing it down manually
[18:38] <patdk-lap> nope
[18:39] <patdk-lap> I had one employee do the oppisite though
[18:39] <patdk-lap> they brought in their own data and put it on their computer
[18:39] <patdk-lap> then when their computer was upgraded, refused to let the old one go, till it had been securely wiped by them
[18:40] <patdk-lap> at that time I informed them, yes, but everything on that computer has been backed up many times to atleast 3 different physical locations
[18:43] <SpamapS> patdk-lap: heh... the "data virus" problem :)
[18:44] <SpamapS> patdk-lap: I love it when people delete all the emails they had with recruiters from their work email account right before they get called in to talk about why their resume was found on the copier ;)
[20:29] <wolflkoder> hallo, gibst ne möglichkeit mit hdparm die Systemplatte (Raid1) schlafen zu legen ?