I have redis running, but when i try to run my resque worker, I get:
cosmos@domU-12-31-39-07-BC-12 ~/.hudson/jobs/data-extraction/workspace
$ rake resque:work QUEUE=dataextraction
(in /data/.hudson/jobs/data-extraction/workspace)
*** Starting worker Usage: hostname [ flags ] < options >
Normal Options:
start stop restart pause zap
Default init.d options.
Flags:
--quiet
Suppress output to stdout, except if:
1) It is a warning, then output to stdout
2) It is an error, then output to stderr
--verbose Output extra information
--debug Output debug information
--nocolor Suppress the use of colors
Configuration files:
/etc/conf.d/hostname /etc/rc.conf
For more info, please run '/etc/init.d/hostname help'.:
4508:dataextraction
rake aborted!
-ERR unknown command 'Normal'
(See full trace by running task with --trace)
I see this in the redis logs:
12 Mar 18:40:29 . DB 0: 2 keys (0 volatile) in 4 slots HT.
12 Mar 18:40:29 . 0 clients connected (0 slaves), 620867 bytes in use,
0 shared objects
12 Mar 18:40:33 . Accepted 127.0.0.1:53407
12 Mar 18:40:33 . Reading from client: Connection reset by peer
12 Mar 18:40:34 . DB 0: 2 keys (0 volatile) in 4 slots HT.
12 Mar 18:40:34 . 0 clients connected (0 slaves), 620867 bytes in use,
0 shared objects
I am using redis 1.2.2.
thx.
-karl
On Sat, Mar 13, 2010 at 3:45 AM, Karl Baum <karl.baum@gmail.com> wrote: > I have redis running, but when i try to run my resque worker, I get: > cosmos@domU-12-31-39-07-BC-12 ~/.hudson/jobs/data-extraction/workspace $ > rake resque:work QUEUE=dataextraction > (in /data/.hudson/jobs/data-extraction/workspace) > *** Starting worker Usage: hostname [ flags ] < options > which OS are you running ? What's happing when you type "hostname" in a shell ?
Ooopss.. it was a path issue. hostname was pointing to /etc/init.d/
hostname which gave that crazy output.
cosmos@domU-12-31-39-07-BC-12 ~ $ hostname
Usage: hostname [ flags ] < options >
Normal Options:
start stop restart pause zap
Default init.d options.
Flags:
--quiet
Suppress output to stdout, except if:
1) It is a warning, then output to stdout
2) It is an error, then output to stderr
--verbose Output extra information
--debug Output debug information
--nocolor Suppress the use of colors
Configuration files:
/etc/conf.d/hostname /etc/rc.conf
Thanks!
-karl
On Mar 13, 2010, at 3:08 AM, Philippe Lafoucrière wrote:
> On Sat, Mar 13, 2010 at 3:45 AM, Karl Baum <karl.baum@gmail.com>
> wrote:
>> I have redis running, but when i try to run my resque worker, I get:
>> cosmos@domU-12-31-39-07-BC-12 ~/.hudson/jobs/data-extraction/
>> workspace $
>> rake resque:work QUEUE=dataextraction
>> (in /data/.hudson/jobs/data-extraction/workspace)
>> *** Starting worker Usage: hostname [ flags ] < options >
>
> which OS are you running ?
> What's happing when you type "hostname" in a shell ?