Hi team,
We tested hanasitter for automatic gstack log collection in system hang situation on our environment.
The sitter was able to trigger gstack for indexserver but in log file it was not able to write anything.
The automatic gstack collection generated an empty trace file.
Then i tested gstack collection manually using root user it was able to write the logs in gstack traces.
after that we tried to generate gstack collection manually using SIDADM user it was not able to write the logs in gstack trace file.
While troubleshooting we can across SAP note 2478161 which informs to unset environment for SIDADM users.
When we unset the below two environment variables for SIDADM user
$ unset PYTHONHOME
$ unset PYTHONPATH
after unsetting above two settings when we again tried to collect gstack manually it was able to write logs in the traces.
Now i need your support to know the fix how we can allow SIDADM user to collect and write gstacks logs in trace file when it is automatically triggered from sitter.
Thanks and Regards,
Prasad
Hi team,
We tested hanasitter for automatic gstack log collection in system hang situation on our environment.
The sitter was able to trigger gstack for indexserver but in log file it was not able to write anything.
The automatic gstack collection generated an empty trace file.
Then i tested gstack collection manually using root user it was able to write the logs in gstack traces.
after that we tried to generate gstack collection manually using SIDADM user it was not able to write the logs in gstack trace file.
While troubleshooting we can across SAP note 2478161 which informs to unset environment for SIDADM users.
When we unset the below two environment variables for SIDADM user
$ unset PYTHONHOME
$ unset PYTHONPATH
after unsetting above two settings when we again tried to collect gstack manually it was able to write logs in the traces.
Now i need your support to know the fix how we can allow SIDADM user to collect and write gstacks logs in trace file when it is automatically triggered from sitter.
Thanks and Regards,
Prasad