[Backgroundrb-devel] worker cant delete?

David Gurba david.gurba at gmail.com
Thu Mar 8 03:04:11 EST 2007


Hi,

I get the following error from my client program when I try to call delete
after my worker is completed:

goten at goten-server:~/projects/svn_working/m29svn_back/app$ ruby
backup_app.rb       {:done=>true, :txt=>["piping to tmp", "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.6015/svn_worker_3589c0ce3aa090fc5a535718b965af26_0_0.688288742005734)
/usr/lib/ruby/1.8/drb/drb.rb:1552:in `perform_without_block'
        from (drbunix:///tmp/backgroundrbunix_localhost_2000)
(drbunix:///tmp/backgroundrb.6015/svn_worker_3589c0ce3aa090fc5a535718b965af26_0_0.688288742005734)
/usr/lib/ruby/1.8/drb/drb.rb:1512:in `perform'
        from (drbunix:///tmp/backgroundrbunix_localhost_2000)
(drbunix:///tmp/backgroundrb.6015/svn_worker_3589c0ce3aa090fc5a535718b965af26_0_0.688288742005734)
/usr/lib/ruby/1.8/drb/drb.rb:1586:in `main_loop'
        from (drbunix:///tmp/backgroundrbunix_localhost_2000)
(drbunix:///tmp/backgroundrb.6015/svn_worker_3589c0ce3aa090fc5a535718b965af26_0_0.688288742005734)
/usr/lib/ruby/1.8/drb/drb.rb:1582:in `main_loop'
        from (drbunix:///tmp/backgroundrbunix_localhost_2000)
(drbunix:///tmp/backgroundrb.6015/svn_worker_3589c0ce3aa090fc5a535718b965af26_0_0.688288742005734)
/usr/lib/ruby/1.8/drb/drb.rb:1578:in `main_loop'
        from (drbunix:///tmp/backgroundrbunix_localhost_2000)
(drbunix:///tmp/backgroundrb.6015/svn_worker_3589c0ce3aa090fc5a535718b965af26_0_0.688288742005734)
/usr/lib/ruby/1.8/drb/drb.rb:1427:in `run'
        from (drbunix:///tmp/backgroundrbunix_localhost_2000)
(drbunix:///tmp/backgroundrb.6015/svn_worker_3589c0ce3aa090fc5a535718b965af26_0_0.688288742005734)
/usr/lib/ruby/1.8/drb/drb.rb:1424:in `run'
        from (drbunix:///tmp/backgroundrbunix_localhost_2000)
(drbunix:///tmp/backgroundrb.6015/svn_worker_3589c0ce3aa090fc5a535718b965af26_0_0.688288742005734)
/usr/lib/ruby/1.8/drb/drb.rb:1344:in `initialize'
         ... 43 levels...
        from (drbunix:///tmp/backgroundrbunix_localhost_2000)
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons.rb:181:in `run_proc'
        from (drbunix:///tmp/backgroundrbunix_localhost_2000)
/home/goten/projects/svn_working/m29svn_back/vendor/backgroundrb-0.2.1/server/lib/backgroundrb_server.rb:301:in
`run'
        from (drbunix:///tmp/backgroundrbunix_localhost_2000)
../vendor/backgroundrb-0.2.1/script/backgroundrb:29
        from backup_app.rb:14


I am not certain why this is happening ... it seems to happen when I
redirect $stdout from child processes of my worker.

This does not happen when I call the following in my worker:
output = system(cmd);

Any help appreciated :)

regards,
David G.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20070308/26e18547/attachment.html 


More information about the Backgroundrb-devel mailing list