Select to view content in your preferred language

webgisdr not recognizing any commands except -h, --help

382
8
Jump to solution
10-31-2024 11:52 AM
JVig
by
Occasional Contributor

Hello, we have just implemented version 11.3 of ArcGIS Enterprise on Ubuntu 22.04. Everything is working great except I cannot seem to get the webgisdr utility to run. The only command the utility will recognize is `./webgisdr.sh -h` and `./webgisdr.sh --help`. All other commands return:

ERROR: Unrecognized command specified. For help, type ''webgisdr -h''.


I have added a couple of echoes to the shell script there to see if JAVA_HOME and CLASSPATH are being successfully populated, and they are (I've read a few other threads where this problem has crept up), so I don't think that's the issue. I'm not a java expert, but I think this shell script is a wrapper for a java class that runs the operations, and it feels like that java class is not present or something.

Any help would be greatly welcome!

EDIT: I'd like to also note this a highly available system. Each component of the enterprise suite has two servers, exempting the webadaptor and portal services, which live together on the same two servers. Six total nodes, plus an ec2 acting as a fileserver for the arcgis server component (datastore and portal are using S3). I've mounted the fileserver to all 6 nodes to act as the shared location where the webgisdr utility will store information before moving to s3. I've also enabled point-in-time on the datastore.

0 Kudos
2 Solutions

Accepted Solutions
EdwardBuckley
Occasional Contributor

I think I see your issue: you HAVE to add one of the -e, -i, or -c commands before the -f. You're missing them and only -h doesn't need it.

View solution in original post

JVig
by
Occasional Contributor

Oh wow, that's probably it then! I am in the middle of testing a few other things so I will accept this as a solution once I can test, but that makes a lot more sense. Thanks a lot!

View solution in original post

8 Replies
EdwardBuckley
Occasional Contributor

Are you running it from the correct location? That's tripped me up plenty before!
The WebGISDR utility is installed to <Portal for ArcGIS installation directory>/tools/webgisdr."
ArcGIS Enterprise backups—Portal for ArcGIS | Documentation for ArcGIS Enterprise

0 Kudos
JVig
by
Occasional Contributor

Hey, @EdwardBuckley , thanks for the response. I am def running it from the right location. I am logged into the primary portal ip and running it from cmdline there. Really not sure what's going on here, it's like it does not recognize the program at all, except the help command. Every command returns an error saying it's an unrecognized command, except --help, -h. That command is recognized and does not return an error.

0 Kudos
EdwardBuckley
Occasional Contributor

@JVig, out of curiosity, what specific commands did you use when it failed?

0 Kudos
JVig
by
Occasional Contributor

Here is the screenshot of the help command working just fine.

JVig_0-1730994186220.png

Followed by trying the -f with the webgisdr.properties file:

JVig_1-1730994270545.png

And for fun, here is the current configuration command:

JVig_2-1730994331412.png


Kind of maddening right?!

0 Kudos
EdwardBuckley
Occasional Contributor

I think I see your issue: you HAVE to add one of the -e, -i, or -c commands before the -f. You're missing them and only -h doesn't need it.

JVig
by
Occasional Contributor

Oh wow, that's probably it then! I am in the middle of testing a few other things so I will accept this as a solution once I can test, but that makes a lot more sense. Thanks a lot!

JVig
by
Occasional Contributor

Sure, enough, that was the issue. Many thanks my man!

0 Kudos
EdwardBuckley
Occasional Contributor

You're so welcome!!

0 Kudos