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

artifactory-ha nodes not getting license #156

Closed
mzupan opened this issue Dec 19, 2018 · 4 comments
Closed

artifactory-ha nodes not getting license #156

mzupan opened this issue Dec 19, 2018 · 4 comments

Comments

@mzupan
Copy link

mzupan commented Dec 19, 2018

Version of Helm and Kubernetes:

Helm

$ helm version
Client: &version.Version{SemVer:"v2.12.0", GitCommit:"d325d2a9c179b33af1a024cdb5a4472b6288016a", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.12.0", GitCommit:"d325d2a9c179b33af1a024cdb5a4472b6288016a", GitTreeState:"clean"}

Kubernetes 1.10

Which chart:

artifactory-ha

What happened:

Running the HA chart and getting the following when I try to open artifactory on my browser.

primary log

2018-12-19 06:11:30,247 [localhost-startStop-1] [JFrog-Access] [INFO ] (o.j.a.AccessApplication:597) - The following profiles are active: production,grpc
06:11:31.138 [localhost-startStop-2] DEBUG org.artifactory.addon.ConverterBlockerImpl - License status is: valid
06:11:31.138 [localhost-startStop-2] DEBUG org.artifactory.addon.ConverterBlockerImpl - Found a valid license, allowed to perform conversion

Node log

2018-12-19 06:34:34,609 [http-nio-8081-exec-8] [WARN ] (o.a.r.f.LicenseRestFilter:59) - License is not installed
2018-12-19 06:34:34,609 [http-nio-8081-exec-4] [WARN ] (o.a.r.f.LicenseRestFilter:59) - License is not installed
2018-12-19 06:34:34,609 [http-nio-8081-exec-6] [WARN ] (o.a.r.f.LicenseRestFilter:59) - License is not installed
2018-12-19 06:34:34,721 [http-nio-8081-exec-10] [WARN ] (o.a.r.f.LicenseRestFilter:59) - License is not installed
2018-12-19 06:34:35,004 [http-nio-8081-exec-1] [WARN ] (o.a.r.f.LicenseRestFilter:59) - License is not installed
2018-12-19 06:34:35,026 [http-nio-8081-exec-5] [WARN ] (o.a.r.f.LicenseRestFilter:59) - License is not installed
2018-12-19 06:34:35,026 [http-nio-8081-exec-7] [WARN ] (o.a.r.f.LicenseRestFilter:59) - License is not installed
2018-12-19 06:34:35,027 [http-nio-8081-exec-2] [WARN ] (o.a.r.f.LicenseRestFilter:59) - License is not installed
2018-12-19 06:34:35,033 [http-nio-8081-exec-9] [WARN ] (o.a.r.f.LicenseRestFilter:59) - License is not installed
2018-12-19 06:34:35,035 [http-nio-8081-exec-3] [WARN ] (o.a.r.f.LicenseRestFilter:59) - License is not installed
2018-12-19 06:34:35,175 [http-nio-8081-exec-8] [WARN ] (o.a.r.f.LicenseRestFilter:59) - License is not installed
2018-12-19 06:34:35,175 [http-nio-8081-exec-6] [WARN ] (o.a.r.f.LicenseRestFilter:59) - License is not installed
2018-12-19 06:34:35,345 [http-nio-8081-exec-4] [WARN ] (o.a.r.f.LicenseRestFilter:59) - License is not installed
2018-12-19 06:34:35,349 [http-nio-8081-exec-10] [WARN ] (o.a.r.f.LicenseRestFilter:59) - License is not installed

When I install the license by running pro in a normal docker container on my laptop I get

High Availability license is installed but HA feature is not configured.
Visit Artifactory High Availability Installation and Setup page in JFrog's wiki for detailed instructions.

So it seems the license is correct for HA

What you expected to happen:

Be able to see artifactory

@eldada
Copy link
Contributor

eldada commented Dec 19, 2018

@mzupan - The Artifactory HA licensing is done by providing a license per each node. Each of these is a High Availability license.
In the initial onboarding It should be a block of multiple licenses separated by a newline. Number of licenses is the number of primary + nodes.

@mzupan
Copy link
Author

mzupan commented Dec 19, 2018

@eldada ok thanks.. so the license file I import as a secret is multiple licenses separated by a comma?

@eldada
Copy link
Contributor

eldada commented Dec 19, 2018

@mzupan mzupan closed this as completed Dec 19, 2018
@EmmanuelOuzan
Copy link

For Future reference and people struggling with it: 2024 update

From This Knowledge base, we can see that JFrog requires 2 blank new lines between the licenses in the artifactory.cluster.license for them to work and be recognized properly by the Artifactory.
See: https://jfrog.com/help/r/artifactory-how-to-replace-the-license-key-for-your-artifactory-instance/introduction

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

No branches or pull requests

3 participants