[Mongrel] Problems getting mongrel service working
jcfischer at gmail.com
Mon Feb 26 07:28:40 EST 2007
>> psexec -l cmd.exe
> This will pop a new cmd.exe window, and try starting your application
> (mongrel_rails start ...) from it.
> That console is the safest console you could get, and would show the
> problems since you will be logging to STDOUT :-)
we are getting there:
this in a psexec'd shell:
C:\Program Files\xxx\xxxx>mongrel_rails start
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
C:/Program Files/ruby/bin/mongrel_rails: No such file or directory -
SQLite3::SQLException: SQL logic error or missing database: INSERT
INTO wantypes ("name", "bandwidth", "latency") VALUES('E1', 2048, 10)
It seems, that SQLite does not find the database. I get a similar
error when running the console.
HOWEVER: doing the following works:
> Wantype.find :all
=> [... array of wantypes ]
>> w = Wantype.create( :name => 'gaga', :bandwidth => 12, :latency
ActiveRecord::StatementInvalid: SQLite3::SQLException: SQL logic
error or missing database: INSERT INTO wantypes ("name", "bandwidth",
"latency") VALUES('gaga', 12, 10)
That led me to examine the security properties for the log and db
directory and the db files in it. Giving everybody full access to
everything makes mongrel_rails start in the psexec shell.
mongrel_service console single -e production -p 3000 -a 127.0.0.1 -l
"log/mongrel.log" -P "log/mongrel.pid" -t 0 -r "public" -n 1024 -c "c:
still fails. The server doesn't start, no log or pid files written.
thanks for your help
More information about the Mongrel-users