Displaying 10 results from an estimated 10 matches for "backgroundrbunix_localhost_2000".
Did you mean:
backgroundrbunix_localhost_2001
2007 Mar 08
0
worker cant delete?
...t;, "piping done",
"getting youngest", "youngest got", "destfile
/home/goten/projects/svn_working/svn_tool/backups/backup_test123_2007-03-08_rev1.gz",
"backup file created at Thu Mar 08 00:00:04 PST 2007"], :step=>1, :steps=>1}
(drbunix:///tmp/backgroundrbunix_localhost_2000)
(drbunix:///tmp/backgroundrb.6015/svn_worker_3589c0ce3aa090fc5a535718b965af26_0_0.688288742005734)
/usr/lib/ruby/1.8/drb/drb.rb:1552:in `delete'': wrong number of arguments (0
for 1) (ArgumentError)
from (drbunix:///tmp/backgroundrbunix_localhost_2000)
(drbunix:///tmp/backgroundrb....
2007 Mar 02
1
example standalone error.
...sample_app.rb:9: undefined method `new_worker'' for
BackgrounDRb::MiddleMan:Class (NoMethodError)
### code follows ###
# sample_app ... try to get stand-alone happiness.
#require ''release-0.2.1/lib/backgroundrb''
#MiddleManDRbObject.init(:uri
=>''drbunix:///tmp/backgroundrbunix_localhost_2000'')
require ''backgroundrb/middleman''
include BackgrounDRb
puts ''my sample app :)''
key = MiddleMan.new_worker(:class => :example_worker)
worker = MiddleMan.worker(key)
worker.other_method
worker.delete
# now that my job is done (and my worker is actua...
2007 Apr 26
2
looking for a worker that''s gone
...39;'re done. I would expect when I try to get a
worker that has been deleted, I would get nil or a proper exception,
but instead I get:
>> MiddleMan.worker(''foobar'')
NoMethodError: undefined method `object'' for nil:NilClass
from (drbunix:///tmp/backgroundrbunix_localhost_2000) /Users/
brandon/projects/backgroundrb/vendor/plugins/backgroundrb/server/lib/
backgroundrb/middleman.rb:396:in `worker''
I''ve modified MiddleMan#worker to return nil if the job doesn''t exist:
def worker(key)
worker = ex { @jobs[key].object if @jobs[key] }...
2007 Jun 06
2
struggling with stability
Greetings all,
Unit tests are passing, but I''m having mucho problems getting brb to
run without exceptions for more than 6 hours.
I''m seeing a mixture of the following 2 exceptions:
20070605-11:26:56 (21497) failed to find slave socket - (RuntimeError)
20070605-11:26:56 (21497) /usr/local/lib/ruby/gems/1.8/gems/
slave-1.2.1/lib/slave.rb:435:in `initialize''
2007 Oct 12
0
Trouble on Multi Server setup
...if I run "MiddleMan.jobs" from ./script/console on server2 or
server3, I get this:
#<DRb::DRbObject:0x41b3f240
@uri="drbunix:///tmp/backgroundrbunix_172.16.0.3_22223",
@ref=542952540>
>From server1, I get this:
#<DRb::DRbObject:0xb69ee894
@uri="drbunix:///tmp/backgroundrbunix_localhost_2000",
@ref=-610099128>
This **seems** right, since the correct port and host are there. I''m
suspicious about drbunix vs. druby though. If change the protocol to
druby, I get connection refused errors.
DRb::DRbConnError: druby://172.16.0.3:22223 - #<Errno::ECONNREFUSED:
Connectio...
2007 Jun 21
0
config file questions
...running behind a load balancer. I''m starting the backgroundrb server on the
one server with the ip of 192.168.1.101. Each time I try to call an action
that uses backgroundrb I get the followng error. If I''m using druby, why do
I get the following error message?
drbunix:///tmp/backgroundrbunix_localhost_2000 - #
Doesn''t the error tell me that I''m using drbunix? I''ll also post my
backgroundrb_sever.log. I''m stumped and very confused on what to do next.
Thank you for any possible help!
20070621-14:59:39 (10124) Starting BackgrounDRb Server
20070621-14:59:39 (10124)...
2006 Nov 20
2
schedule support on latest svn, a question
...ing.
After running "script/server run" this is what I have in
backgroundrb_server.log:
20061120-17:04:52 (31960) port: 2000
20061120-17:04:52 (31960) worker_dir: /home/ed/Documents/test/lib/workers
20061120-17:04:52 (31960) protocol: drbunix
20061120-17:04:52 (31960) uri: drbunix:///tmp/backgroundrbunix_localhost_2000
20061120-17:04:52 (31960) config:
/home/ed/Documents/test/config/backgroundrb.yml
20061120-17:04:52 (31960) rails_env: development
20061120-17:04:52 (31960) Starting worker:
BackgrounDRb::Worker::WorkerLogger backgroundrb_logger
(backgroundrb_logger) ()
20061120-17:04:52 (31960) Starting worker:
Ba...
2006 Dec 18
3
Creating another database connection for large mysql import?
I''m using backgroundrb to periodically download a large file via ftp from a
remote location and then import it into the database. To perform the
import, I was using the following:
ActiveRecord::Base.connection.execute(%{load data infile ...;})
although on a file with 2.5 million records, this can take 5 minutes, which
seems to tie up my rails application while this executes (even
2007 May 26
0
New worker not being created
...class => :example_worker)
> worker = MiddleMan.worker(key)
> worker.other_method
> worker.delete
> end
>
> When I point the browser to test_backgroundrb, I get:
>
> NoMethodError (undefined method `object'' for nil:NilClass):
> (drbunix:///tmp/backgroundrbunix_localhost_2000)
> /home/wil/proj/3cgworkspace/thoughtless/vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:396:in
> `worker''
> etc. etc. etc.
>
> When I try to use the version from the trunk, it looks like worker returns
> nil if it doesn''t find anything, as dis...
2007 Mar 13
5
worker starting twice
...94) acl: denyallallowlocalhost 127.0.0.1orderdeny allow
20070313-15:45:17 (5594) temp_dir: /tmp
20070313-15:45:17 (5594) port: 2000
20070313-15:45:17 (5594) worker_dir: /Users/jnutting/work/m_project/lib/workers
20070313-15:45:17 (5594) protocol: drbunix
20070313-15:45:17 (5594) uri: drbunix:///tmp/backgroundrbunix_localhost_2000
20070313-15:45:17 (5594) config:
/Users/jnutting/work/m_project/config/backgroundrb.yml
20070313-15:45:17 (5594) rails_env: development
20070313-15:45:17 (5594) socket_dir: /tmp/backgroundrb.5594
20070313-15:45:17 (5594) pool_size: 5
20070313-15:45:17 (5594) host: localhost
20070313-15:45:17 (5594)...