Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling authorization/deauthorization #2

Open
edusperoni opened this issue Feb 26, 2021 · 5 comments
Open

Handling authorization/deauthorization #2

edusperoni opened this issue Feb 26, 2021 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@edusperoni
Copy link

Hello!

First of all, great project, this is helping a lot!

We've been trying to make ArcGIS play nicely, but it seems service.txt is not the only thing it needs to work. I think it saves some information about licenses on /usr/local/share/macrovision/storage. I say this because I've used their wizard to authorize the server and it didn't change the service.txt at all, so I'm wondering how can I make this work in a docker container.

Do you have any idea on how to manage this?

Thanks!

@brian32768
Copy link
Owner

brian32768 commented Feb 26, 2021 via email

@brian32768
Copy link
Owner

The docker-compose is now set up to start a license manager.
The README is updated.

"docker-compose up" will launch two containers, one to run the license manager and one to run the web based monitor.
It mounts the subdirectory "config" as a volume that can hold the service.txt file and one called "licenses" that will
hold the database(s) used to record the license information.

Note that you have to put hostnames in config/service.txt and docker-compose.yml for the license manager.

I don't have a way to test this right now so I can't tell you if it works!

Take a look. If you (or anyone else out there) want to help me with this part drop me a line.

@brian32768 brian32768 self-assigned this Feb 26, 2021
@brian32768 brian32768 added the enhancement New feature or request label Feb 26, 2021
@edusperoni
Copy link
Author

@brian32768 nice work!

I'll take a look next week as we try to dockerize our license manager and report to you if all goes well.

Thanks for your time!

@edusperoni
Copy link
Author

edusperoni commented Mar 26, 2021

So I finally managed to work on this.

My recommendation is: don't use docker to run the ArcGIS flexlm service. We ended up using a VM.

but if you do, bear in mind that you need these extra files to make sure the licenses show up (they're created after the authorization):

/home/flexlm/.config/Esri
/home/flexlm/.config/Esri/softwareauthorization.conf
/home/flexlm/arcgis/licensemanager/bin/options.cfg

Also, ensure the macrovision directory (volume) has a 777 permission ON THE HOST MACHINE.

Silent provisioning doesn't work and it needs a X display anyway because it was made with QT and refuses to start even if it doesn't create any UI element (you can use Xvfb, but it still won't work, so don't bother).

Even with all this, we didn't manage to get the licenses to show up in the client machine, so I also believe you have to install the FNP service, which always errors out saying it's missing the PID file but it works. It also needs fuse installed for some reason, I'd be honestly surprised if the people who developed this weren't high on crack.

If anyone from ArcGIS reads this, please know that I hate you with all my being and I hope you add a weird (maybe invisble) utf-8 character to your source code and spend at least 3 days trying to fix it so you can experience what you're making others go through.

@brian32768
Copy link
Owner

brian32768 commented Mar 27, 2021

Thanks, I have added links to your comments to the README so that others can benefit from your experience.
I wrestled with Dockerizing ArcGIS Enterprise off and on for a year. Some of it worked.
Go work on an OpenLayers or GeoServer or QGIS or PostGIS or GeoPandas project and you'll feel better in no time.

Ah I see you are a full stack developer. That means you probably don't know developers hating Esri is a near universal experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants