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