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

License checker incorrectly parse the expiry time on 32 bits system. #11650

Closed
ph opened this issue Apr 4, 2019 · 0 comments
Closed

License checker incorrectly parse the expiry time on 32 bits system. #11650

ph opened this issue Apr 4, 2019 · 0 comments

Comments

@ph
Copy link
Contributor

ph commented Apr 4, 2019

2019-04-04T15:24:21.305+0200    DEBUG    [elasticfetcher]    licenser/elastic_fetcher.go:141    Invalid response from server    {"body": "{\"build\":{\"hash\":\"8453f77\",\"date\":\"2019-03-21T15:34:15.162090Z\"},\"license\":{\"uid\":\"4552d43c-e532-47b1-9552-27fed12f7d1a\",\"type\":\"platinum\",\"mode\":\"platinum\",\"status\":\"active\",\"expiry_date_in_millis\":1588291199999},\"features\":{\"ccr\":{\"available\":true,\"enabled\":false},\"graph\":{\"available\":true,\"enabled\":true},\"ilm\":{\"available\":true,\"enabled\":true},\"logstash\":{\"available\":true,\"enabled\":true},\"ml\":{\"available\":true,\"enabled\":true},\"monitoring\":{\"available\":true,\"enabled\":true},\"rollup\":{\"available\":true,\"enabled\":true},\"security\":{\"available\":true,\"enabled\":true},\"sql\":{\"available\":true,\"enabled\":true},\"watcher\":{\"available\":true,\"enabled\":true}}}"}
2019-04-04T15:24:22.969+0200    ERROR    pipeline/output.go:100    Failed to connect to backoff(elasticsearch(https://842d2a3cdf39e9ae2e0b2c7ca7cea075.us-east-1.aws.found.io:9243)): Connection marked as failed because the onConnect callback failed: cannot retrieve the elasticsearch license: could not extract license information from the server response: could not parse value for expiry time: strconv.Atoi: parsing "1588291199999": value out of range
@ph ph changed the title License checker incorrectly parse the expiry time. License checker incorrectly parse the expiry time on 32 bits system. Apr 4, 2019
@ph ph closed this as completed in #11649 Apr 4, 2019
ph added a commit that referenced this issue Apr 4, 2019
…its system. (#11649)

- Relax validation of the X-Pack license UID value.
- Fix a parsing error with the X-Pack license check on 32-bit system. 

Fixes: #11640
Fixes: #11650
ph added a commit to ph/beats that referenced this issue Apr 4, 2019
…its system. (elastic#11649)

- Relax validation of the X-Pack license UID value.
- Fix a parsing error with the X-Pack license check on 32-bit system. 

Fixes: elastic#11640
Fixes: elastic#11650
(cherry picked from commit 4b7823b)
ph added a commit to ph/beats that referenced this issue Apr 4, 2019
…its system. (elastic#11649)

- Relax validation of the X-Pack license UID value.
- Fix a parsing error with the X-Pack license check on 32-bit system. 

Fixes: elastic#11640
Fixes: elastic#11650
(cherry picked from commit 4b7823b)
ph added a commit that referenced this issue Apr 4, 2019
…ense UUID and check on 32 bits system. (#11657)

* Fixes license check issue with invalid license UUID and check on 32 bits system. (#11649)

- Relax validation of the X-Pack license UID value.
- Fix a parsing error with the X-Pack license check on 32-bit system. 

Fixes: #11640
Fixes: #11650
(cherry picked from commit 4b7823b)
ph added a commit that referenced this issue Apr 8, 2019
…ense UUID and check on 32 bits system. (#11658)

Cherry-pick of PR #11649 to 6.7 branch. Original message: 

- Relax validation of the X-Pack license UID value.
- Fix a parsing error with the X-Pack license check on 32-bit system. 

Fixes: #11640
Fixes: #11650
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant