Displaying 20 results from an estimated 1000 matches similar to: "uninitialized constants in worker class"
2006 Dec 04
4
Question about acls
Hi,
I''m not much of a developer but I''ve been using backgroundrb for a
while now and with the release of 0.2.1 it looks like I can finally
upgrade from the old version (0.2.0 had some weird issues when jobs
just wouldn''t run, seems to have cleared up now - Thanks!).
Anyhow, while I''m doing this, I would like to tackle this problem.
Most tasks I run in
2007 Aug 08
3
Cannot start workers in production mode
I have a job that I am starting from a Rails controller in production mode
using MiddleMan:
MiddleMan.new_worker(:class => :import_ccg_category_worker, :args => {
:category_id => @category.id, :remote_category_id =>
params[:remote_category_id], :description => "Importing CCG products for #{@
category.name}" })
Both of the category ID variables are just basic integers. I
2006 Sep 24
5
Can''t Connect to BackgroundRB
I''m having trouble getting backgroundrb up and running in a
production environment.
Here''s my backgroundrb.yml:
---
port: "22222"
timer_sleep: 60
load_rails: true
environment: production
host: XXX.XX.XXX.50
database_yml: config/database.yml
acl:
deny: all
allow: localhost 127.0.0.1 XXX.XX.XXX.51
order: deny,allow
I start BackgroundRB from XXX.XX.XXX.50 with
2006 Jul 07
4
Problems with ActiveRecord in workers
Hi *,
are there some special settings except of "load_rails: true" to make
ActiveRecord models accessible within my workers?
I''ve just installed the latest version of this great plugin, but I keep
getting
undefined method [] for #<DRb::DRbUnknown:0x12345> (line 105 in
backgroundrb.rb)
when one of the arguments for the worker is an ActiveRecord object.
I assume that
2009 Jul 20
0
No subject
at least once a week I receive such an attack coming from a different ip.
I will read the articles. Thanks again to everyone.
Regards,
Rodrigo Lang.
2010/6/29 Kenny Watson <kwatson at geniusgroupltd.com>
> Hi, you can use fail2ban
>
2006 Aug 25
3
uninitialised constant LoginEngine
In my worker class, when i try to start the worker thread, it throws the
error:
uninitialized constant LoginEngine - (NameError)
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in
`const_missing''
2006 Jul 18
6
backgroundrb - Connection closed
Hello,
maybe someone can help with backgroundrb. I''ve written an application, which
makes use of backgroundrb. Everything works fine on my development machine, but
it crashes on my production server.
Something seems to be wrong with backgroundrb, but I don''t know the cause. All I
get is the error message attached below, which is extracted from the production.log.
I
2006 Jun 12
5
New release!
Hey Folks-
I have just pushed a new release of BackgrounDRb to rubyforge. It
has some nice new features to allow for usage of your ActiveRecord
Models within your worker classes. I also added a config file for
setting hosts and ports and if you want to load rails or not.
Please have a look and let me know if anyone runs into any issues.
If you already have an older version installed
2006 Aug 07
1
:load_rails
if CONFIG[''load_rails'']
ActiveRecord::Base.allow_concurrency = true
ActiveRecord::Base.establish_connection(YAML.load(ERB.new(IO.read
("#{RAILS_ROOT}/#{CONFIG[''database_yml'']}")).result)[CONFIG[''environment'']])
end
if i read the code right, this option doesnt really load rails. wouldnt it
be better (for those who rely on the
2006 Jul 06
6
Mutex::Synchronize with backgroundrb
I have a question concerning where to use the synchronize function. The
point of it is to put all of the code blacks passed to this function in
a queue. This make sure that code gets ran one at a time. This is
required when doing any kind of database activity in backgrondrb and
multiple threads. Otherwise I lose the connection to my database.
So here is my question:
Do I need to do:
@lock =
2006 Jul 17
2
Very strange after_save problem. Please help.
I have a very strange problem here. I do not get this. So any help is
greatly appreciated.
Basically I have a model that calls a method in the background
process in the "after_save" method. Let''s call the model products. So
what happens is this:
1. I create a new product.
2. Everything works and the product is saved with id 13.
3. A method is called in my background
2006 Jun 21
4
one more suggestion for backgroundrb
this:
Index: script/backgroundrb/lib/backgroundrb.rb
===================================================================
--- script/backgroundrb/lib/backgroundrb.rb (revision 16)
+++ script/backgroundrb/lib/backgroundrb.rb (working copy)
@@ -29,7 +29,11 @@
# the log via @logger
def initialize(args)
@logger = BACKGROUNDRB_LOGGER
- Thread.new { do_work(args) }
+
2007 Dec 30
3
A newbie question regarding BackgroundRb
Hi all,
I just read Ezra''s article on BackgroundRb and decided to use it one
of my projects. I installed the plugin into my rails project using
script/plugin and then ran rake backgroundrb:setup to copy the yml
scripts.
Now my backgroundrb.yml looks like
=======
---
port: "22222"
timer_sleep: 60
load_rails: true
environment: development
host: localhost
database_yml:
2007 Apr 09
1
Drb Connection error on multiple dispatch.fcgi ''s
Hi All,
I''m using Backgroundrb as a general purpose long-running-task back-end
(upload processing, email sending, etc), and it''s been a great solution.
However I''ve recently run into some some intermittent connection issues
that have me baffled. I''m running on apache2/fcgid and the problem
occurs in both devlopment and production mode. The problem seems to
2008 Jan 14
3
problem with backgroundrb
hi, i am using drb and it is working fine on my local pc on windows..
and after uploading the code to the server it was working for
sometime but now it gives me error every time i invoke the process..
error---
uninitialized constant EmailWorker::Notifier - (NameError)
/usr/lib64/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:477:in `const_missing''
2007 Nov 30
1
backgroundrb not cleaning up tmp files?
I just had an interesting issue on a production system that has been
running nicely for about a year. There were approximately 10,000
backgroundrb temp files in the /tmp directory. It looks like
backgroundrb wasn''t cleaning them up.
I noticed it with the following error:
DRb::DRbConnError: drbunix:///tmp/backgroundrb.20015/
backgroundrb_logger_0_0.101544829808665 -
2001 Jul 16
1
openssh 2.9p1 on Solaris 2.6 with AFS
Jan,
maybe I should check the /afs information that you pointed me at
in a subsequent email first, but I wanted to update you on what
happened following this path:
I did get some mileage out of both of your suggestions below,
but still did not make it through (now working with openssh-2.9p2):
gcc -o ssh ssh.o sshconnect.o sshconnect1.o sshconnect2.o sshtty.o
readconf.o clientloop.o -L.
2006 Feb 09
2
breakpointer error
Hi,
I can''t get breakpointer to work on locomotive. Pretty sure it used to
work...
Any ideas??
Jeroen
jeroen$ ruby script/breakpointer
/Applications/Locomotive/Bundles/rails-1.0.0-max.bundle/Contents/Resources/ports/lib/ruby/1.8/drb/drb.rb:828:in
`getaddrinfo'': getaddrinfo: No address associated with nodename
(SocketError)
from
2007 Oct 02
3
deadlocks in Drb Server
Hi,
we still have the problem in that the Ferret Drb server dies on us
sometimes. Looking through ferret_server.out and we come accross this:
deadlock 0xb7261cb0: sleep:F(1012) - /usr/lib/ruby/1.8/drb/drb.rb:566
deadlock 0xb71d8654: sleep:F(409) - /usr/lib/ruby/1.8/drb/drb.rb:566
deadlock 0xb723f3e0: sleep:F(7) - /usr/lib/ruby/1.8/drb/drb.rb:566
deadlock 0xb72607c0: sleep:F(11) -
2006 Nov 01
1
strange issue with backgroundrb behind apache/lighttpd
I''m getting strange data back from my worker whenever I run our rails
app with more than one dispatcher under lighttpd.
just to give some info on what the app does:
user submits data to rails app. rails app hands off data to worker,
which goes and does it''s thing, storing results in an array of
response objects (the array is an attribute of the worker). the
response object