Closed (won't fix)
Project:
Bot
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2011 at 15:24 UTC
Updated:
19 Apr 2011 at 17:56 UTC
Jump to comment: Most recent file
Comments
Comment #1
dave reidI've also ran into this several times when running the bot from drush
Comment #2
q0rban commentedBTW, this is PHP 5.2.6-1, drush 3.1, and Pressflow 6.19.96
Comment #3
morbus iff@Dave: what version of PHP, Drush, and bot?
Comment #4
morbus iffAt this point, it's gonna be tough for me to help you all debug/fix it, since the only version of Drush I've personally run is Drush 4.x, PHP 5.3.x, under bot-7.x-dev (which has a different Drush patch then q0rban's latest, which DOES DO a backend invoke for status updates, which is what the above error points to).
Comment #5
morbus iff(This is the patch I'm running, which won't be a drop-in replacement - line 40 needs to be tweaked/removed.)
Comment #6
q0rban commentedFor the record, Dave Reid and I are both not using the version of the drush command that was actually committed. I will update to the committed version and test with that.
Comment #7
q0rban commentedNevermind, not really possible to use the committed command, as it has only been committed for 7.x, and not trivial to backport.
Comment #8
q0rban commentedHere's an updated version of the bot daemon that implements drushd. This is a patch against 6.x-1.x-dev. You must have drushd, which can be found at https://github.com/q0rban/drushd
drushd will restart the process if it reaches 85% of ram, which will mean you may see your bot disappear for a few seconds and then re-appear. But it may never need to, since this will reduce memory leaks as well, as it no longer uses drush_backend_invoke.
Comment #9
morbus iffAs a general FYI to onlookers, it is unlikely that drushd support will become part of the core 7.x release, as 7.x doesn't exhibit the memory exhaustion that prompted this "needs to be restarted regularly" approach (which is also rectified, without drushd, in 7.x's scripts/bot_check.sh).
Comment #10
morbus iffI'll keep this ticket open for awhile, for visibility's sake.
Comment #11
morbus iffComment #13
q0rban commentedThis is a more accurate status.