Splunk Enterprise

Splunk docker do not work after admin pass change and restart

Ashish_Thakur
Explorer

Step to reproduce

1. Install

version: '3.7'

services:
splunk:
image: splunk/splunk:latest
container_name: splunk
ports:
- "8000:8000"
- "9997:9997"
- "8088:8088"
environment:
- SPLUNK_START_ARGS=--accept-license
- SPLUNK_PASSWORD=Password1
volumes:
- splunk_data_var:/opt/splunk/var
- splunk_data_etc:/opt/splunk/etc
restart: unless-stopped

volumes:
splunk_data_var:
splunk_data_etc:

 

2. change admin pass from web ui

 

3. Restart splunk docker instance

Labels (3)
0 Karma
1 Solution

isoutamo
SplunkTrust
SplunkTrust

The reason why this failed on after first run is that you have changed admin password to different that you have configured on your docker conf file. When it try to login into splunk via REST endpoint with user and password it cannot as it has old password. You could fix this by changing your current admin password into docker config file and run it again.

View solution in original post

Ashish_Thakur
Explorer

Hi Isoutamo,

thanks for reply,

I did not change anywhere just gui i changed password and did a restart from portainer for my docker, since testing it out in homelab enviroment, 

I have documented a video and log, if u r interested I can share.

log : https://pastebin.com/6BHr0t93

0 Karma

isoutamo
SplunkTrust
SplunkTrust

The reason why this failed on after first run is that you have changed admin password to different that you have configured on your docker conf file. When it try to login into splunk via REST endpoint with user and password it cannot as it has old password. You could fix this by changing your current admin password into docker config file and run it again.

Ashish_Thakur
Explorer

thank you so much, 

0 Karma

isoutamo
SplunkTrust
SplunkTrust
After you have change password on GUI have you changed it also into docker config / force it from env when you are starting docker?
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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...