On Wed, Oct 24, 2012 at 12:56:27PM -0700, Tobi wrote:
>
> i just tried to get started with ruote on rails.
> I followed the instructions on:
> http://openwferu.rubyforge.org/with_rails.html

Hello Tobi,

welcome to the ruote mailing list.


> So, I modified the routes.rb file to start the redis server (which is
> necessary i guess -> yes, i“m a stupid rookie...)
> But when starting the rails server, i get an error that the redis server is
> not able to start due to a time-out error.
> I as well tried to raise the timeout period from 5.0 to 50.0 seconds -
> without results.

Well, routes.rb is about Rails routing, it's not a place meant to start
external processes.

Read more about routes.rb:

  http://guides.rubyonrails.org/routing.html


> As the code in routes.rb starts the redis server with parameters
> RUOTE_STORAGE = Ruote::Redis::Storage.new(
>   ::Redis.new(:db => 14, :thread_safe => true), {})

Well, this is not starting a redis server, it's instantiating a
Ruote::Redis::Storage.

You have to really start a redis server, in a separate Windows process.

Not sure if there is a good Redis option for Windows:

  http://redis.io/topics/introduction


> I as well tried to start it without:
>
> RUOTE_STORAGE = Ruote::Redis::Storage.new(
>   #::Redis.new(:db => 14, :thread_safe => true), {})
>  ::Redis.new, {})
>
> ...but I get the same error (the one u can see attached to this message)
>
> I really don“t get much information out of this, cause it only quotes
> (after Exiting) an timeout error definition.
> So, why does the redis server not start?
> Does it have something to to with those first 4 lines, telling me something
> about already initialized constants???
> If yes, what does it mean?
> Can you help me out of that, please??
>
> (...)
>
> *Exiting*
> C:/Ruby193/lib/ruby/gems/1.9.1/gems/redis-3.0.2/lib/redis/client.rb:266:in
> `rescue in establish_connection': Timed out connecting to Redis on
> 127.0.0.1:6379 (Redis::Cann
> tConnectError)

There is enough information here (never be afraid to read error messages),
"timed out connecting to Redis on 127.0.0.1:6379". The Redis client used by
ruote-redis failed to connect to the Redis server it expects to find locally
on port 6379.

You could run a Redis server on a GNU/Linux box in your local network or find
a way to run Redis on Windows or use a ruote storage like the
Ruote::FsStorage one.


Best regards,

--
John Mettraux - http://lambda.io/jmettraux

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to