Hi Corticon community,
I installed Corticon Server 5.7 on Windows Server 2012r2 and registered it as a Windows Service, as the service needs to run without users logged in and can restart automatically after a reboot.
When running the service with a useraccount, that is member of a local Administrators group on the server (or start the service with the standard local system account), the Corticon Server Windows service has insufficient permissions to create or modify files like CcServer.log, ServerState.xml etc. Log-files like catalina.out, commons-daemon etc that are handled by Tomcat, are created and modified without a problem.
When I manually start Corticon Server (startServer.bin) as the user that is member of local Administrators on the Windows Server, the PAS-Corticon command line window shows that Access is Denied on the log-directory, even though the log-directory has full permissions set to the usergroup Administrators.
So even though a user is a member of an Administrator group with full permissions, the user does not have sufficient rights to write log-files or ServerState.xml.
When manually starting Corticon Server as Administrator, all files like CcServer.log, ServerState.xml etc are accessible. But this is not a wanted situation, just like putting full acces rights for every user on the CorticonWork directory.
I put Run as Administrator privileges on tomact8.exe, tomcat8w.exe, with no luck as well.
Can anyone point to what we are missing here and how to get Corticon Server 5.7 running as a Windows Service, with sufficient privileges?
In the meantime I was able to fix this issue myself.
Somehow an old bug had reappeared in Corticon 5.7, when installing Corticon Server as a Windows service. This caused the ccServerSandbox directory to be installed in the Corticon installation directory (/Server/pas/bin to be precise):
It seems that this issue was caused due to the fact that services.bat in 5.7 incorrectly pointed to Tomcat 7, where Corticon 5.7 is based on Tomcat 8.
I added the -DCORTICON_WORK_DIR=C:\CorticonWork to the jvm.properties, fixing the issue.
Just to clarify: did you follow the instructions set out in
Yes I followed those instructions. I created a copy of tomcat8w.exe as well and renamed it to "Corticon" (the name of the tcman service), in order to be able to set parameters for it.