All Apps and Add-ons

Splunk add-on Builder blank page?

norbertt911
Path Finder

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
Explorer

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
Get Updates on the Splunk Community!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...