"This command must be run on the same host as Stardog" when grabbing diagnostics report

Created by Steve Place, Modified on Wed, Jul 5, 2023 at 1:29 PM by Steve Place

You may see the above error message when trying to grab a diagnostics report (stardog-admin diagnostics report or stardog-admin cluster diagnostics-report). It occurs because the machine where you're running the CLI command (the client) is not the same machine where Stardog is running (the server).


In order to successfully run a diagnostics report, you need to do the following:

  • In your stardog.properties file, set diagnostics.allowIP=[the client's IP].
    • If you don't know your client's IP, the easiest way to find it is to enable audit logging and see what IP it logs when you do something. You can enable audit logging by setting logging.audit.enabled=true in stardog.properties. (See our docs page on audit logging for more info.)
  • Restart Stardog.
  • Rerun the diagnostics-report command, this time with the following additional arguments:
    • stardog-admin --server http://[ip address of your server]:[port] diagnostics report --remote -o /path/to/stardog-diagnostics.zip


You can see this docs page for more info on this process.

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article