KBI 310197 Insufficient Privileges To Write To Log File Causes Solaris Queue Engine To Stop Accepting Jobs
Version
Argent Queue Engine 5.0A-0607 – Solaris
Date
13 Aug 2010
Summary
The Solaris Queue Engine requires sufficient privileges to write to the service log file ( svc_log ), not having sufficient privileges will prevent the Queue Engine from accepting jobs.
The following error messages are seen in the ‘err_log‘ file:
Sys Log fopen: Permission denied
Sys Log fopen: Permission denied
Sys Log fopen: Permission denied
Sys Log fopen: Permission denied
…..
Check to verify the permissions of the Queue Engine log files using ‘ ls -l ‘ in the /opt/ARGTqe/log, if the ownership does not belong to the user assigned to execute the Argent Queue Engine.
Technical Background
This KBI applies to users that run the Solaris Queue Engine as a user other than root to execute the Queue Engine.
Resolution
Assuming the user ‘argent’ is assigned to run the Queue Engine.
-
(As user “argent”) Stop the Queue Engine
cd /opt/ARGTqe
qsystem -k
-
(As user “root”) Clean the log files
cd /opt/ARGTqe/log
rm err_log svc_log svc_log.001 svc_log.002
-
(As user “argent”) Restart the Queue Engine
cd /opt/ARGTqe
qsystem -x
This should start the Queue Engine using the predefined user account and new log files with the appropriate permissions will be created.
The Queue Engine will now be able to accept jobs.