I installed the windows app and then the Splunk App for Windows Infrastructure. When I launch the Splunk App for Windows Infrastructure, the setup wizard is supposed to display but all I get is a blank screen. Tried IE and Firefox, added Java exceptions and security exceptions.
The problem likely occurs as a result of a MIME type mismatch.
Because the Splunk App for Windows Infrastructure uses Django, the app looks in the mime.types file on the OS for information on how to deal with the MIME types of the files it uses to display the config page (as well as some dashboards.)
The config.js file reports itself as being of type
text/js which is what you see in the error message. It should instead be
This is a bug that we plan to fix in a future version of Splunk Enterprise. In the meantime, to work around the problem, use the Firefox browser, or complete the following procedure:
/etc/apache2/mime.typesfor editing. The location might differ based on your operating system.
text/js, comment it out by inserting a
#(hash) at the beginning of the line.
We have identified this to be an issue in the core Splunk Enterprise product and will fix it in a future version of the product.
There isn't a file like that in Windows.
However, you might have some luck by adding an entry in the Registry.
This is a WILD GUESS, and I DO NOT PRESUME OR GUARANTEE THAT IT WILL WORK. Take all kinds of precautions before performing this task.
I believe that web browsers on Windows read these entries. If my theory is correct, then this should fix the problem on Windows systems.
Good luck! I'll post it as an answer if it does work and delete this comment if it doesn't. :)))))
SyntaxError: unterminated string
TypeError: Splunk.Module is undefined.
Had the issue with Windows app too running on SLES and Splunk Enterprise 6.4.2
Warning: I don't know the flow on effects of changes to mime-types so I don't know the broader impact of this. But along the lines of @malmoore suggestion I commented out the line:
in the file
and restarted Splunk and the app worked
RHEL doesn't have 'text/x-js js' in /etc/mime-types so I guess that explains why it only seems to present as an issue on SLES
What version of Splunk Enterprise are you running?
There was a bug that caused pages not to display after an upgrade to Splunk 6.2 but this was fixed in version 1.1.1. Can you confirm that you are running the latest version of Splunk and the Splunk App for Windows Infrastructure? Thanks.
Tried all of the workarounds listed above. Currently deploying Splunk ESS App 3.3.2 with Splunk 6.4.2 and Add-on for WIndows 4.8.3. All I get when clicking on the app is a set up web page with a small window showing the upper part of the setup screen. I cannot display the entire setup screen, and the screen within the window contains no scroll bars. If I use my mouse to select the contents of the setup screen and drag down, the setup screen will scroll through to the bottom, but that's about it. I cannot even use the arrow keys to affect the scrolling. There seems to be no way for me to set the input focus on to the setup window.
I tried various ways of attempting to access the guided setup menu. However in Chrome and IE, I get the following error messages in console:
Refused to execute script from 'https://xxxxxxx:8000/dj/static/js/build/splunkjs.min/config.js' because its MIME type ('text/x-js') is not executable, and strict MIME type checking is enabled.
xxxxxxx/:220 Uncaught ReferenceError: require is not defined
xxxxxxx/:230 Uncaught ReferenceError: require is not defined
xxxxxxx/:237 Uncaught ReferenceError: requirejs is not defined
The only browser that worked for me is Firefox, was able to go ahead with the installation and use the app. Anyone else experiencing the same issue?
In splunkd.log I did not see any errors related to the app, only warnings of the following:
/opt/splunk/etc/apps/splunk_app_windows_infrastructure/lookups/windows_services_service.csv is empty, multi-line header is missing matching quotation, or could not parse CSV header
/opt/splunk/etc/apps/splunk_app_windows_infrastructure/lookups/windows_processes_system.csv is empty, multi-line header is missing matching quotation, or could not parse CSV header
/opt/splunk/etc/apps/splunk_app_windows_infrastructure/lookups/windows_services_system.csv is empty, multi-line header is missing matching quotation, or could not parse CSV header
Thank you for this bit of information.
I will run this by our engineers and see what they say. If you haven't already, please file a support case, it makes investigating and resolving this kind of stuff happen a lot faster.
Looks like it's a problem with Splunk Enterprise and how it handles MIME types. I'm going to make my update an official Answer to this particular question, and update the release notes in the Windows Infra docs. There is a workaround which I will detail in the answer.
Basically, the problem is a MIME type mismatch. The reason why you got it to work in Firefox is because that browser is not as strict as others are at checking MIME types.
Apologies for the frustration on this.
I have installed splunk-6.2.2-255606-x64-release and I am also getting a blank webpage both in Firefox and IE. I could not spot any error in the logs. Is this issue really fixed? Thank you.