Deployment Architecture
Highlighted

Why am I getting "Assertion `tresult.token != ((void *)0)' failed. Aborted" trying to configure a deployment client to point at my deployment server?

Path Finder

I'm trying to configure a splunkforwarder so it is pointed at my deployment server

When I run the following command, I get this error:

set deploy-poll deploymentserver:8089

./splunk set deploy-poll deploymentserver:8089
splunk: /home/build/build-src/6.2.1/src/launcher/restcall.c:545: make_simple_rest_call_online: Assertion `tresult.token != ((void *)0)' failed.
Aborted

Any clue what causes this or what I should look at?

0 Karma
Highlighted

Re: Why am I getting "Assertion `tresult.token != ((void *)0)' failed. Aborted" trying to configure a deployment client to point at my deployment server?

Influencer

Strange error. Did you already start Splunk? Also, maybe try putting quotation marks around the deployment server and adding your authentication info?

i.e.
/opt/splunkforwarder/bin/splunk start --accept-license --answer-yes
/opt/splunkforwarder/bin/splunk set deploy-poll "deploymentserver:8089" -auth admin:changeme

0 Karma
Highlighted

Re: Why am I getting "Assertion `tresult.token != ((void *)0)' failed. Aborted" trying to configure a deployment client to point at my deployment server?

Path Finder

I'm getting the same error when I run the set deploy-poll command you have.

0 Karma
Highlighted

Re: Why am I getting "Assertion `tresult.token != ((void *)0)' failed. Aborted" trying to configure a deployment client to point at my deployment server?

Influencer

Try what @somesoni2 suggested?
vi $SPLUNK_HOME/etc/system/local/deploymentclient.conf

[target-broker:deploymentServer]
targetUri = IPAddressOfYourServerHere:8089

Hit ESC, :wq, Enter
Restart Splunk, then check splunkd.log and report back

0 Karma
Highlighted

Re: Why am I getting "Assertion `tresult.token != ((void *)0)' failed. Aborted" trying to configure a deployment client to point at my deployment server?

SplunkTrust
SplunkTrust

How about using the configuration files and restarting the Splunk forwarder?

/opt/splunkforwarder/etc/system/local/deploymentclient.conf

[target-broker:deploymentServer]
targetUri = IPAddressOfYourServerHere:8089

Also, check if you can ping deployment server from your forwarder server.

0 Karma
Highlighted

Re: Why am I getting "Assertion `tresult.token != ((void *)0)' failed. Aborted" trying to configure a deployment client to point at my deployment server?

Path Finder

I added that conf file and restarted splunk there aren't any errors messages showing in the splunkd log but It's also still not checking in to my deployment server.

I already verified the deployment server is setup and 8089 is open.

0 Karma
Highlighted

Re: Why am I getting "Assertion `tresult.token != ((void *)0)' failed. Aborted" trying to configure a deployment client to point at my deployment server?

New Member

Hi,
I receive same error on my setup splunk.

Someone know why this happen. Nothing change on my setup and it stop working.

Unable to do CLI commands..

Thanks

0 Karma
Highlighted

Re: Why am I getting "Assertion `tresult.token != ((void *)0)' failed. Aborted" trying to configure a deployment client to point at my deployment server?

New Member

here is the exact call I try:

# bin/splunk list monitor
splunk: /home/build/build-src/6.2.0/src/launcher/restcall.c:545: make_simple_rest_call_online: Assertion `tresult.token != ((void *)0)' failed.
Aborted

Thanks

0 Karma
Highlighted

Re: Why am I getting "Assertion `tresult.token != ((void *)0)' failed. Aborted" trying to configure a deployment client to point at my deployment server?

Contributor

try removing ~/.splunk/authToken[yourhost]_[yourport], worked for me.

I saw this error for the first time today. It seems to be a new thing with splunk 6.x. Any comments from Splunk engineers about what gives with this?

Highlighted

Re: Why am I getting "Assertion `tresult.token != ((void *)0)' failed. Aborted" trying to configure a deployment client to point at my deployment server?

Contributor

PS strace is your friend...

0 Karma
Speak Up for Splunk Careers!

We want to better understand the impact Splunk experience and expertise has has on individuals' careers, and help highlight the growing demand for Splunk skills.