ahoward/rq — Issue #1: strange stdin error "No such file or directory"
Author: yannickwurm
Created: 2011-12-02 12:00:12+00:00
State: open

Hi,
I'm trying to set up rq. Install failed using ruby 1.9.2, thus I set my default ruby back to 1.8.7 using rvm (in bashrc). `gem install rq` was then successful.

```[ywurm@dee-serv03 ~]$ rq --version
3.3.0
[ywurm@dee-serv03 ~]$ ruby --version
ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]```

Here's what happens from a blank installation:

[ywurm@dee-serv03 ~]$ echo $RQ_Q
/home/ywurm/.rqqueue
[ywurm@dee-serv03 ~]$ rq create
---
q: /home/ywurm/.rqqueue
db: /home/ywurm/.rqqueue/db
schema: /home/ywurm/.rqqueue/db.schema
lock: /home/ywurm/.rqqueue/lock
bin: /home/ywurm/.rqqueue/bin
stdin: /home/ywurm/.rqqueue/stdin
stdout: /home/ywurm/.rqqueue/stdout
stderr: /home/ywurm/.rqqueue/stderr
data: /home/ywurm/.rqqueue/data
[ywurm@dee-serv03 ~]$ rq submit ls
---
-
jid: 1
priority: 0
state: pending
submitted: 2011-12-02 12:49:39.803640
started:
finished:
elapsed:
submitter: dee-serv03
runner:
stdin: stdin/1
stdout:
stderr:
data: data/1
pid:
exit_status:
tag:
restartable:
command: ls
[ywurm@dee-serv03 ~]$ rq start
pid <13685> started
[ywurm@dee-serv03 ~]$ __rq_job__1__bash__: line 1: /Home/ywurm/.rqqueue/stdin/1: No such file or directory

[ywurm@dee-serv03 ~]$ rq status
---
jobs:
pending: 0
holding: 0
running: 0
finished: 1
dead: 0
total: 1
temporal:
finished:
min: {1: 00h00m04.30s}
max: {1: 00h00m04.30s}
performance:
avg_time_per_job: 00h00m04.30s
n_jobs_in_last_hrs:
1: 1
12: 1
24: 1
exit_status:
successes: 0
failures: 1
ok: 0
[ywurm@dee-serv03 ~]$ ls ~/.rqqueue/
bin/ data/ db db.schema lock stderr/ stdin/ stdout/
[ywurm@dee-serv03 ~]$ ls ~/.rqqueue/*
/home/ywurm/.rqqueue/db /home/ywurm/.rqqueue/db.schema /home/ywurm/.rqqueue/lock

/home/ywurm/.rqqueue/bin:
rqmailer

/home/ywurm/.rqqueue/data:
1

/home/ywurm/.rqqueue/stderr:

/home/ywurm/.rqqueue/stdin:

/home/ywurm/.rqqueue/stdout:

So whats up with this weird error? (/home is in fact a soft link to /Home. trying the same thing with a virgin path where I explicitly use /Home leads to the same result)

Thanks for your help
cheers,
yannick