I did some testing today, and found the problem. The BASE variable defaults to ".". This is fine when it is run from the command line, because it knows it is running from C:\ASSP, and uses that as its base directory.

However, when running as a service - EVEN THOUGH the service command line is:

"C:\Perl\bin\perl.exe" "c:\assp\assp.pl" "c:\assp"

ASSP instead uses C:\Windows\System32 as its base (on X64 windows, it uses C:\Windows\SysWOW64). Oddly enough, it READS the assp.cfg file out of the C:\ASSP directory, but from that point forward, assumes it is running from C:\Windows\System32, so it writes all config files, log files, creates new mail storage directories, etc. there.

Fixing this problem is easy - manually edit assp.cfg and change

base:=.

to

base:=C:/ASSP

After that, it works correctly - as far as the web interface and file writing goes.

It does not solve the "IO-subsystem error - unable to poll handles on OS" problem with threads dying and becoming deaf until the system stops altogether.



At 04:49 PM 2/17/2009, Matti Haack wrote:

Maybe it is a problem with the user rights.
Use Sysinternals NTfilemon to see if there is a conflict with user
right.
Or go to the services console and try to run the service as an
Administrator. If this solves the problem it is caused by NTFS
Permissons or GPOs


Matti


SM> I'm attempting to run 2.0.0 (13.02) on Windows Server 2003 under
SM> ActiveState 5.8.9 (825).

SM> I have a few problems. First, if I configure it to run as a service
SM> (AsAService:=1) and run it as a Windows service, it starts, but it:

SM> - does not write to the maillog.txt file
SM> - does not write to the assp.cfg file
SM> - in the configuration web, no images or CSS are loaded, and it is unusable

SM> Running it from the command line solves this problem. This same PC,
SM> running the same service with same permissions, works correctly
SM> running v1 ASSP.

SM> If I change it and run it from the command line, it works correctly
SM> for about two-five minutes, correctly processing mail. However, the
SM> worker threads start to die off one by one, with this error:

SM> [Worker_x] Error: IO-subsystem error - unable to poll handles on OS

SM> When this error occurs, the thread in question never recovers or restarts.

SM> Gradually, as each thread dies, the system comes to a stop, refusing
SM> any further connections. The main thread is unable to transfer to any
SM> worker, and it loops like this, over and over, until it is manually
SM> stopped and restarted:

SM> Feb-17-09 14:20:50 [Main_Thread] Info: Loop in Worker_1 was not
SM> active for 192 seconds
SM> Feb-17-09 14:20:50 [Main_Thread] Info: last sigoff in package:main -
SM> file:assp.pl - line:27641 at Feb-17-09 14:17:38
SM> Feb-17-09 14:20:50 [Main_Thread] Info: last sigon in package:main -
SM> file:assp.pl - line:27643 at Feb-17-09 14:17:38
SM> Feb-17-09 14:20:50 [Main_Thread] Info: Loop in Worker_2 was not
SM> active for 187 seconds
SM> Feb-17-09 14:20:50 [Main_Thread] Info: last sigoff in package:main -
SM> file:assp.pl - line:23052 at Feb-17-09 14:17:43
SM> Feb-17-09 14:20:50 [Main_Thread] Info: last sigon in package:main -
SM> file:assp.pl - line:27585 at Feb-17-09 14:17:43
SM> Feb-17-09 14:20:50 [Main_Thread] Info: Loop in Worker_3 was not
SM> active for 188 seconds
SM> Feb-17-09 14:20:50 [Main_Thread] Info: last sigoff in package:main -
SM> file:assp.pl - line:23052 at Feb-17-09 14:17:42
SM> Feb-17-09 14:20:50 [Main_Thread] Info: last sigon in package:main -
SM> file:assp.pl - line:27585 at Feb-17-09 14:17:42
SM> Feb-17-09 14:20:50 [Main_Thread] Info: Loop in Worker_4 was not
SM> active for 188 seconds
SM> Feb-17-09 14:20:50 [Main_Thread] Info: last sigoff in package:main -
SM> file:assp.pl - line:27641 at Feb-17-09 14:17:42
SM> Feb-17-09 14:20:50 [Main_Thread] Info: last sigon in package:main -
SM> file:assp.pl - line:27643 at Feb-17-09 14:17:42
SM> Feb-17-09 14:20:50 [Main_Thread] Info: Loop in Worker_5 was not
SM> active for 191 seconds
SM> Feb-17-09 14:20:50 [Main_Thread] Info: last sigoff in package:main -
SM> file:assp.pl - line:27576 at Feb-17-09 14:17:39
SM> Feb-17-09 14:20:50 [Main_Thread] Info: last sigon in package:main -
SM> file:assp.pl - line:27585 at Feb-17-09 14:17:39
SM> Feb-17-09 14:20:50 [Main_Thread] Warning: Main_Thread is unable to
SM> transfer connection to any worker - try again!




SM> ------------------------------------------------------------------------------ SM> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA SM> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise SM> -Strategies to boost innovation and cut costs with open source participation SM> -Receive a $600 discount off the registration fee with the source code: SFAD
SM> http://p.sf.net/sfu/XcvMzF8H
SM> _______________________________________________
SM> Assp-test mailing list
SM> Assp-test@lists.sourceforge.net
SM> https://lists.sourceforge.net/lists/listinfo/assp-test



--
Matti Haack - Hit Haack IT Service Gmbh
Poltlbauer Weg 4, D-94036 Passau
+49 851 50477-22 Fax: +49 851 50477-29
http://www.haack-it.de



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to