Hello everyone. I have a problem installing "Python for Scientific Computing. Every time I try to install the App I get this error
Error during app install: failed to extract app from C:\Program Files\Splunk\var\run\4f044214eacc4962.tar.gz to C:\Program Files\Splunk\var\run\splunk\bundle_tmp\6f09d351dce26128: The system cannot find the path specified.
I have tried creating the folder manually with no success. also tried installing it through the terminal but the same problem occurs. Does anyone have an idea to solve this problem?
There is a precaution of this noted in the Machine Learning Toolkit notes as follows:
The Splunk Enterprise Security App relies on MLTK and the PSC add-on. If you are a Splunk Enterprise Security App user, and you are upgrading that app, restart your Splunk instance first. Doing so closes any background PSC processes that can cause the Splunk Enterprise Security App upgrade to error out.
Looks like the installer on Windows is hitting the MAX_PATH limitation in Windows itself just had a look at the splunkd.log output.
Untarring into etc/apps seems to work fine.
2-30-2023 14:29:56.212 +0400 WARN Pathname [3268 TcpChannelThread] - Pathname 'C:\Program Files\Splunk\var\run\splunk\bundle_tmp\e1dd8fe8ca2eeba4\Splunk_SA_Scientific_Python_windows_x86_64\bin\windows_x86_64\Lib\site-packages\caffe2\python\serialized_test\data\operator_test\collect_and_distribute_fpn_rpn_proposals_op_test.test_collect_and_dist.zip' larger than MAX_PATH, callers: call_sites=[0x100f9b8, 0xdf3670, 0xdf1884, 0x8e9215, 0x8f0141, 0x8ef770, 0x8cc811, 0x8b2c61, 0xffcd08, 0x1083908, 0xfa45c3]
12-30-2023 14:29:56.212 +0400 WARN LocalAppsAdminHandler [3268 TcpChannelThread] - File length is greater than 260, File creation may fail for C:\Program Files\Splunk\var\run\splunk\bundle_tmp\e1dd8fe8ca2eeba4\Splunk_SA_Scientific_Python_windows_x86_64\bin\windows_x86_64\Lib\site-packages\caffe2\python\serialized_test\data\operator_test\collect_and_distribute_fpn_rpn_proposals_op_test.test_collect_and_dist.zip
12-30-2023 14:29:56.212 +0400 WARN LocalAppsAdminHandler [3268 TcpChannelThread] - Failed to create file C:\Program Files\Splunk\var\run\splunk\bundle_tmp\e1dd8fe8ca2eeba4\Splunk_SA_Scientific_Python_windows_x86_64\bin\windows_x86_64\Lib\site-packages\caffe2\python\serialized_test\data\operator_test\collect_and_distribute_fpn_rpn_proposals_op_test.test_collect_and_dist.zip while untarring C:\WINDOWS\TEMP\tmpfgko5w2i: The system cannot find the path specified.
I just had this problem and I suspect that it is just to big and that this would have fixed it:
For me, that was a hassle so I just downloaded it and did this from the CLI:
cd $SPLUNK_HOME/etc/apps
tar xf /tmp/python-for-scientific-computing-for-windows-64-bit_410.tgz
How are you installing the package - are you using the UI, or copying the package directly?
Also are you certain you are using specific Windows version?
https://apps.splunk.com/app/2883/
I have tried both but same error message. I use the windows version, have not tried the linux version, but am on a windows machine
Try this
1. Unzip app.tgz to etc\apps
2. Restart splunk
3. Good luck:)