On Aug 22, 2007, at 9:20 AM, Michael Check wrote:
On 8/22/07, Steve Alex <[EMAIL PROTECTED]> wrote:
Have you checked your libraries for errors? (might have to disable
the library and put code in test routine)
So loading the library at server start does not produce any errors in
the log (if there are any) ?
Not sure I understand how to test it otherwise. Could I change it
from a library to a group of methods then just include it in a web
page without actually calling any of the methods?
I might be barking up the wrong tree on the library, it does show up
in the log and if not loaded and there would probably be an error. I
don't think it looks inside the method, so there could be a syntax
error, but that should not kill housekeeper - just report an error.
Had a case last year where houeskeeper was trying to load a library
with a bad error and it crashed housekeeper (actually it was a bug
that I'm sure was fixed in the current version that tried to load a
"._foo.a4l" file left behind by TextMate).
Right. I saw your messages to the list. On our development sever
this comand yields lots of results:
[09:07 [EMAIL PROTECTED]:v2.x]$ find . -name ".*.a4l" -print
I got excited when I saw that. But then, on their production server
there is not one stray .a4l file. (or .ini or .a4d). Ugh.
Does housekeeper start and run okay for a while, or does it crash on
start?
Ah, good question. I think it crashes on start now. Because I can
call a site that creates a session, but does not do any session
saving, and once abandon session is called, the expiry time goes to 0,
but the session does not disappear. This leads me to believe that it
is either crashing on start (it is still in the 4D Server window as
delayed), or something is happening so that the housekeeping process
never gets woken up.
I don't think housekeeper has anything to do with saving sessions. It
basically just purges sessions every 10 seconds and looks to refresh
libraries every minute. Might try to see if it is really running on
the web server. If it is in the process list, it should be running.
It does so little so fast, don't think you'll every see it executing.
Open Activity Monitor from the application/utilities directory.
Select the 4D process running the web server (mine is 4D client)
Click the Inspect icon (think it is also in a menu)
Click "Sample Data"
Somewhere down at the bottom of this large list of threads (which I
have no idea what they mean - just remember that Aparajita had me
send him the data in debugging another problem) you should find some
references to A4DHoueskeeper().
Any chance some semaphore could be dead locked? Don't know much about
those either - just an Active4D guy. I remember that was what we were
looking for in trying to solve my limbo land problem. They are also
down on the bottom of the sample data.
Have not tried this, but you might be able to copy the code out
a4d_init and wrap it in a method that would restart the process. It
would be better to find the cause.
I agree to find the cause. But I _really_ need to save those sessions
if at all possible. There are about 800 of them.
Might have to get logging version of A4D plugin but you need to try
to find out what is crashing housekeeper.
Logging version of A4D? I wasn't aware of such a thing.
You'll have to talk to Aparajita about that. It just creates a
message log that logs a bunch of stuff, include session purge checks,
etc.
If it is creating sessions and not storing data - that just not sound
right - almost like it marks it abandoned before it is used or some
other strange thing.
Steve
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/