All Apps and Add-ons

Splunk add-on Builder blank page?

norbertt911
Communicator

Hello,

The Splunk add-on builder won't load, it has the header, but the rest is blank. (9.0.3 enterprise + 4.1.1 app)

- Reinstall not helps

-Nothing in splunkd.log, add-on builder logs

- I found this event in web_service.log, but I don't know what should I do with it:

File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/utils.py", line 169, in extract_http_scheme_host_port
raise ValueError(http_url + " is not in http(s)://hostname:port format")
ValueError: splunk."mydomain"."ext" is not in http(s)://hostname:port format

note: I changed the real hostname.

Everything else is ok, all other apps are works fine. I reach the server on  https://splunk."mydomain"."ext":8000  . splunk."mydomain"."ext" format set in server. conf as serverName and in web. conf for mgmtHostPort (with :"port")

Any ideas?

 

Thanks in advance,

 

 

Labels (2)
0 Karma

triptraptresko
Path Finder

Hey!
I had the same issue.
If you look in

 

index=_internal log_level IN ("error", "warn") splunk_app_addon-builder

 

You'll find

 

/opt/splunk/etc/apps/splunk_app_addon-builder/appserver/controllers/app_validation.py cannot be executed by Python: cannot import name 'soft_unicode' from 'markupsafe' (/opt/splunk/lib/python3.7/site-packages/markupsafe/__init__.py)

 

 

Seems the python package markupsafe removed 'soft_unicode' , starting from versions later than 2.0.0.

Solution is to use pip to downgrade

 

pip3 install --target=/opt/splunk/lib/python3.7/site-packages markupsafe==2.0.0 --force --upgrade

 

Then restart splunk.
As I'm sure you're aware, this is absolutely a hack...

Happy app-building 🙂

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

Ready to make your IT operations smarter and more efficient? Discover how to automate Splunk alerts with Red ...