Monitoring Splunk

Why are there error messages in Splunkd: "ERROR ExecProcessor - message from "python...splunk_app_infrastructure\bin\em_entity_manager.py"?

dkolekar_splunk
Splunk Employee
Splunk Employee

The messages below appear in splunkd.log from splunk_app_infrastructure. The splunk_app_infrastructure is running fine. Searching is also fine, only indexing lags so only old data is found.

Additionally, when I try to upgrade an app, I get "Oops" and a drawing of a horse and "500 Internal Server Error".
Here are the messages in splunkd.log - it seems to be an intense app so it prevents indexing (I think, but know not):

ERROR ExecProcessor - message from "python D:\Programs\Splunk\etc\apps\splunk_app_infrastructure\bin\em_entity_manager.py"

Prepended to all the lines below

Traceback (most recent call last): 
File "D:\Programs\Splunk\Python-2.7\Lib\logging\handlers.py", line 77, in emit 
self.doRollover() 
File "D:\Programs\Splunk\Python-2.7\Lib\logging\handlers.py", line 142, in doRollover 
os.rename(self.baseFilename, dfn) 
WindowsError: [Error 32] The process cannot access the file because it is being used by another process 
Logged from file em_model_entity.py, line 77 
Labels (2)

dkolekar_splunk
Splunk Employee
Splunk Employee

The messages "The process cannot access the file because it is being used by another process" could be caused by straggling process that still has a file open and we've spawned another process that trying to roll the logs going by: "File "D:\Programs\Splunk\Python-2.7\Lib\logging\handlers.py", line 142, in doRollover os.rename(self.baseFilename, dfn)".

Try: Stop splunk, check with Task Manager that there are no processes from the splunk directories left (like those python ones) and restart splunk after.
More on "WindowsError: [Error 32] The process cannot access the file because it is being used by another process" Kindly check https://github.com/grangier/python-goose/issues/78

Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In January, the Splunk Threat Research Team had one release of new security content via the Splunk ES Content ...

Expert Tips from Splunk Professional Services, Ensuring Compliance, and More New ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Observability Release Update: AI Assistant, AppD + Observability Cloud Integrations & ...

This month’s releases across the Splunk Observability portfolio deliver earlier detection and faster ...