Unable to get IronWorker started

106 views
Skip to first unread message

David Chua

unread,
Jan 19, 2012, 4:39:13 AM1/19/12
to ironwork...@googlegroups.com
Hi IronWorkeres,

I'm following the tutorial at http://docs.iron.io/worker/ruby/getting-started/ironworker-in-5-minutes and when I send it as a queue, I get an error like:

davidc@davidc-VirtualBox:~/codebase/tmp> ruby run_my_worker.rb 
Could not load typhoeus. LoadError: no such file to load -- typhoeus. Falling back to rest-client. Please install 'typhoeus' gem for best performance.
I, [2012-01-19T17:33:44.657055 #5661]  INFO -- : IronWorker initialized.
/home/davidc/.rvm/gems/ruby-1.9.2-p180/gems/iron_worker-2.3.3/lib/iron_worker/service.rb:76:in `delete': No such file or directory - /tmp/iron_worker_MyWorker_<TOKEN>.md5 (Errno::ENOENT)
from /home/davidc/.rvm/gems/ruby-1.9.2-p180/gems/iron_worker-2.3.3/lib/iron_worker/service.rb:76:in `rescue in upload'

My /tmp directory is chmod to 777 so permissions shouldn't be an issue.

Am I missing something?

Travis Reeder

unread,
Jan 19, 2012, 5:06:47 AM1/19/12
to ironwork...@googlegroups.com
Hi David,

Can you try updating the gem to 2.3.4 and trying again?  It looks like something is raising an exception, but it's hidden by another exception when trying to delete that md5 file. I put a fix in here: 

And it is in the 2.3.4 gem.

That should make the original exception show up. Post that one here after you try it and we'll help get through that one. 

Travis

David Chua

unread,
Jan 19, 2012, 9:48:31 PM1/19/12
to ironwork...@googlegroups.com
Hi Travis,

Thanks.

I've updated to 2.3.7 and got the following error instead:

davidc@davidc-VirtualBox:~/codebase/tmp> ruby run_my_worker.rb 
I, [2012-01-20T10:47:59.864139 #8310]  INFO -- : IronWorker initialized.
/home/davidc/.rvm/gems/ruby-1.9.2-p180/gems/iron_worker-2.3.7/lib/iron_worker/service.rb:124:in `gem_dependencies': undefined method `all' for Gem::Specification:Class (NoMethodError)
from /home/davidc/.rvm/gems/ruby-1.9.2-p180/gems/iron_worker-2.3.7/lib/iron_worker/service.rb:152:in `build_merged_file'
from /home/davidc/.rvm/gems/ruby-1.9.2-p180/gems/iron_worker-2.3.7/lib/iron_worker/service.rb:54:in `upload'
from /home/davidc/.rvm/gems/ruby-1.9.2-p180/gems/iron_worker-2.3.7/lib/iron_worker/base.rb:402:in `upload_if_needed'
from /home/davidc/.rvm/gems/ruby-1.9.2-p180/gems/iron_worker-2.3.7/lib/iron_worker/base.rb:219:in `queue'
--
http://dchua.com | @davidchua | rails :: sysadmin :: linux :: ideas :: for-hire

Andrew Kirilenko

unread,
Jan 19, 2012, 10:00:05 PM1/19/12
to ironwork...@googlegroups.com
Hey!

Try to upgrade your rubygems to more recent version (1.8 will work nicely).

Chad Arimura

unread,
Jan 20, 2012, 3:24:22 AM1/20/12
to ironwork...@googlegroups.com


David,

Feel free to join our public chat room. You can find the link at support.iron.io

Chad

--
Chad Arimura
415-935-3448

Reply all
Reply to author
Forward
0 new messages