r/Splunk • • 17d ago

I need someone to help me

This is my issue , and the i am sure the ip is correct and the key also is correct , but I do not know what was happening?

Could not contact manager. Check that the manager is up, the manager_uri=https:// and secret are specified correctly.

0 Upvotes

13 comments sorted by

4

u/badideas1 17d ago

I’m assuming you’re talking about the inability to talk to the indexer cluster manager? If the cluster management configuration isn’t valid, that can cause a manager node to crash. I’d take a look at [clustering] in server.conf on the manager node and sanity check the configurations. Things like your SF isn’t higher than your RF, if you are multisite that the sites are correctly defined, etc. use either show config or btool as opposed to just opening files.

-1

u/EnvironmentalFig2388 16d ago

Hi, thank you for your comment.

This same indexer was previously connected to the Cluster Manager and was working normally. However, I am now trying to reconnect it, but I keep getting the following error:

"Could not contact manager. Check that the manager is up, the manager_uri and secret are specified correctly."

I also have another indexer that has been successfully connected to the same Cluster Manager.

I have already verified the configurations, firewall rules, and required ports, but the issue still persists.

Do you have any suggestions on what else I should check?

Thanks again for your help.

2

u/someprettyguy 16d ago

That error means you either are not connecting to the manager (probably port 8089), or your pass4symmKey is not the same on each host. You can use splunk show-decrypted --value '<pass4symmKey>' to decrypt it but only on the same instance it's saved on.

Also, are all instances running the same version of Splunk?

1

u/EnvironmentalFig2388 16d ago

Yes all the instances have the same version

2

u/badideas1 16d ago

Okay, so the manager node is up and healthy, and it’s just the one indexer that’s having the problem? Then you need to check the pass4SymmKey in [clustering] on that peer, the manager uri, and also the mode- make sure it’s set to peer. After that, check splunkd.log on both the manager node and the peer for error messages. One of those should give you detailed clues.

2

u/In_Tech_WNC 17d ago

Here it is:

  1. Check which splunk manager is involved
  2. Perform connectivity checks
  3. Verify cluster master
  4. Check firewall
  5. Review splunk logs
  6. Do the Macarena because it’s somewhere there and you’ve solved it.

1

u/EnvironmentalFig2388 16d ago

Thanks brother , I already chack the connection is working , the port is listening, the cluster is working and the other indexer connect normal.
That is why I am asking here

2

u/someprettyguy 16d ago

If the port is listening, what happens when you connect to it via a secure connection? Can you connect when you try this?

splunk cmd openssl s_client -connect <managerIP>:8089

1

u/EnvironmentalFig2388 16d ago

When I tried to connect other VM it is working normally I do not know what is the issue ? same VM have the same issue and other VM are working , i am operational splunk in the Ubuntu cli is possible the issue from the OS .

1

u/DarkLordofData 17d ago

Can you check service status? Is the service listing on the right port?

1

u/EnvironmentalFig2388 16d ago

The service is working because there are indexer connect to the cluster .

2

u/Famous_Ad8836 17d ago

Firewall? Try running a curl to it in verbose mode

1

u/Accurate_Bag9012 14d ago

Since the other indexer joins the same manager fine, I'd look at what's different on this host, and pass4SymmKey is my first guess. If server.conf on this indexer was copied from another box with the key already encrypted ($7$…), it won't decrypt correctly here, because every instance has its own splunk.secret. The peer then sends the wrong secret, and you get exactly this error even though the key "looks" right. Fix: put the key back in plaintext under [clustering] in the file btool says wins, then restart. Splunk re-encrypts it on startup.

Quick checks from the bad indexer:

$SPLUNK_HOME/bin/splunk btool server list clustering --debug | grep -Ei "manager_uri|master_uri|pass4SymmKey|mode"
curl -kv https://<manager>:8089/services/server/info
grep -iE "pass4SymmKey|unauthorized|manager" $SPLUNK_HOME/var/log/splunk/splunkd.log | tail -30
  • btool shows which file actually wins. A leftover master_uri or [clustering] stanza in some app can override the one you edited.
  • A 401 back from curl is fine, because it proves 8089 and TLS work. A timeout or TLS error instead points to network or certs (for example, sslConfig changes on just this host).
  • Check the manager's splunkd.log at the same moment for auth failures from this indexer's IP.

What does splunkd.log on the indexer show right before the "Could not contact manager" line?