I have been following the twitalytics demo under trinidad on my Mac using Lion.
I had no trouble getting the scheduler to work. However I could not compile the redis version (2.4.2), getting this compile error:
hiredis.c:700:31: error: second argument to 'va_arg' is of incomplete type 'void'
The current stable redis version (2.4.15) compiled and started without problem, and that is what I have been using
However, the trinidad_resque_extension does not start the worker. I have gone over my Gemfile and config/trinidad.yml, and they match the code in the book. The Resque overview console works (and shows that no workers are started). The only console errors I see are deprecation notices:
NOTE: Gem::GemPathSearcher#initialize is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::GemPathSearcher#initialize called from /Users/nachbar/.rvm/gems/jruby-220.127.116.11/gems/trinidad_resque_extension-0.1.1/lib/trinidad_resque_extension.rb:51.
The redis server is accepting the connection from the client when I start trinidad:
 15 Jul 07:44:39 - DB 0: 2 keys (0 volatile) in 4 slots HT.  15 Jul 07:44:39 - 0 clients connected (0 slaves), 923216 bytes in use  15 Jul 07:44:41 - Accepted 127.0.0.1:57997  15 Jul 07:44:44 - DB 0: 2 keys (0 volatile) in 4 slots HT.  15 Jul 07:44:44 - 1 clients connected (0 slaves), 931840 bytes in use
If I stop the redis server before stopping trinidad, the trinidad process hangs and has to be kill -9’d, as you describe in the text.
The work/resque/log/production.log gets created and written to as the application starts:
2012-07-15 14:44:15 INFO: No global web.xml found 2012-07-15 14:44:29 INFO: Starting ProtocolHandler ["http-bio-3000"]
(on termination, I get errors about threads not being stopped)
However, although the work/log/production.log is being used, I think I am in development mode in Rails, and log/development.log is the rails log being used:
2012-07-15 14:44:29 INFO: Starting ProtocolHandler ["http-bio-3000"] 2012-07-15 14:44:54 INFO: Pausing ProtocolHandler ["http-bio-3000"] 2012-07-15 14:44:54 INFO: Stopping service Tomcat
</code> Each time I add a job by visiting customers/index, the number of jobs in the ‘normal’ queue increases, but the status screen says ‘0 of 0 Workers Working’. The job count persists over stopping and restarting both redis and trinidad.
I am at a loss as to what to check next. Any ideas what I could be doing wrong?