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

[deb/rpm] Build aarch64 distributions #84364

Merged
merged 6 commits into from
Dec 4, 2020
Merged

Conversation

jbudz
Copy link
Member

@jbudz jbudz commented Nov 25, 2020

Closes #72885

Release note:
Adds deb and rpm packages for ARM64

@jbudz jbudz marked this pull request as ready for review November 25, 2020 20:05
@jbudz jbudz requested a review from a team as a code owner November 25, 2020 20:05
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@mistic
Copy link
Member

mistic commented Nov 30, 2020

@elasticmachine merge upstream

@jbudz
Copy link
Member Author

jbudz commented Dec 2, 2020

@elasticmachine merge upstream

@tylersmalley
Copy link
Contributor

I am running into issues getting reporting to work on deb.

I have installed sudo apt install libnss3 fonts-liberation libfontconfig1

{"type":"log","@timestamp":"2020-12-03T00:14:42+00:00","tags":["error","plugins","reporting","PNG","execute","ki837bpq1wudbdd7eab01e2r"],"pid":89221,"message":"Error: Protocol error (Runtime.callFunctionOn): Target closed.\n    at /usr/share/kibana/node_modules/puppeteer-core/lib/Connection.js:183:56\n    at new Promise (<anonymous>)\n    at CDPSession.send (/usr/share/kibana/node_modules/puppeteer-core/lib/Connection.js:182:12)\n    at ExecutionContext._evaluateInternal (/usr/share/kibana/node_modules/puppeteer-core/lib/ExecutionContext.js:107:44)\n    at ExecutionContext.evaluateHandle (/usr/share/kibana/node_modules/puppeteer-core/lib/ExecutionContext.js:57:17)\n    at ExecutionContext.<anonymous> (/usr/share/kibana/node_modules/puppeteer-core/lib/helper.js:112:23)\n    at WaitTask.rerun (/usr/share/kibana/node_modules/puppeteer-core/lib/DOMWorld.js:582:65)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (internal/process/task_queues.js:97:5)\n  -- ASYNC --\n    at Frame.<anonymous> (/usr/share/kibana/node_modules/puppeteer-core/lib/helper.js:111:15)\n    at Frame.waitFor (/usr/share/kibana/node_modules/puppeteer-core/lib/FrameManager.js:613:19)\n    at Page.waitFor (/usr/share/kibana/node_modules/puppeteer-core/lib/Page.js:1080:29)\n    at HeadlessChromiumDriver.waitForSelector (/usr/share/kibana/x-pack/plugins/reporting/server/browsers/chromium/driver/chromium_driver.js:146:34)\n    at getNumberOfItems (/usr/share/kibana/x-pack/plugins/reporting/server/lib/screenshots/get_number_of_items.js:38:19)\n    at MergeMapSubscriber.project (/usr/share/kibana/x-pack/plugins/reporting/server/lib/screenshots/observable.js:128:86)\n    at MergeMapSubscriber._tryNext (/usr/share/kibana/node_modules/rxjs/internal/operators/mergeMap.js:67:27)\n    at MergeMapSubscriber._next (/usr/share/kibana/node_modules/rxjs/internal/operators/mergeMap.js:57:18)\n    at MergeMapSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/internal/Subscriber.js:66:18)\n    at MergeMapSubscriber.notifyNext (/usr/share/kibana/node_modules/rxjs/internal/operators/mergeMap.js:93:26)\n    at SimpleInnerSubscriber._next (/usr/share/kibana/node_modules/rxjs/internal/innerSubscribe.js:27:21)\n    at SimpleInnerSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/internal/Subscriber.js:66:18)\n    at /usr/share/kibana/node_modules/rxjs/internal/util/subscribeToPromise.js:7:24\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (internal/process/task_queues.js:97:5)"}
{"type":"log","@timestamp":"2020-12-03T00:14:42+00:00","tags":["info","plugins","reporting","esqueue","queue-worker"],"pid":89221,"message":"ki833un51wudbdd7ea9grp1a - Job marked as failed: /.reporting-2020-11-29/ki837bpq1wudbdd7eab01e2r"}

Sounds like the page crashed?

However, I am able to run chromium directly against google:

:/usr/share/kibana/x-pack/plugins/reporting/chromium/headless_shell-linux_arm64$ ./headless_shell --disable-translate --disable-extensions --disable-background-networking --safebrowsing-disable-auto-update --disable-sync --metrics-recording-only --disable-default-apps --mute-audio --no-first-run --disable-gpu --no-sandbox --headless --hide-scrollbars --window-size=400,400 --remote-debugging-port=9221 https://google.com/
$ curl http://localhost:9221/json/list
[ {
   "description": "",
   "devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:9221/devtools/page/392EE068BD5B5DA11466EEBA8D0259F1",
   "id": "392EE068BD5B5DA11466EEBA8D0259F1",
   "title": "Google",
   "type": "page",
   "url": "https://www.google.com/",
   "webSocketDebuggerUrl": "ws://localhost:9221/devtools/page/392EE068BD5B5DA11466EEBA8D0259F1"
} ]

@elastic/kibana-reporting-services any ideas here?

@jbudz
Copy link
Member Author

jbudz commented Dec 3, 2020

Hmm - debug logs:

{"type":"log","@timestamp":"2020-12-03T16:25:19+00:00","tags":["debug","plugins","reporting","printab
le_pdf","execute-job","ki91vkgk13f7e70b7ce4qant","ki91vkgk13f7e70b7ce4qant"],"pid":51091,"message":"U
sing custom headers for http://0.0.0.0:5601/38409/bundles/plugin/maps/e3b1bd3256c6e2785c1c7786bf60a1a
7.js"}
{"type":"log","@timestamp":"2020-12-03T16:25:19+00:00","tags":["error","plugins","reporting","printable_pdf","execute-job","ki91vkgk13f7e70b7ce4qant","ki91vkgk13f7e70b7ce4qant"],"pid":51091,"message":"Reporting encountered an error: Error: Page crashed!"}
{"type":"log","@timestamp":"2020-12-03T16:25:19+00:00","tags":["debug","plugins","reporting","printable_pdf","execute-job","ki91vkgk13f7e70b7ce4qant","ki91vkgk13f7e70b7ce4qant","browser-driver"],"pid":51091,"message":"The browser process observer has unsubscribed. Closing the browser..."}
{"type":"log","@timestamp":"2020-12-03T16:25:19+00:00","tags":["debug","plugins","reporting","printable_pdf","execute-job","ki91vkgk13f7e70b7ce4qant","ki91vkgk13f7e70b7ce4qant","browser-driver"],"pid":51091,"message":"deleting chromium user data directory at [/tmp/chromium-hw3fBu]"}
{"type":"log","@timestamp":"2020-12-03T16:25:19+00:00","tags":["error","plugins","reporting","esqueue","queue-worker","error"],"pid":51091,"message":"ki91v5ex13f7e70b7c5w125a - Failure occurred on job ki91vkgk13f7e70b7ce4qant: Reporting encountered an error: Error: Page crashed!"}
{"type":"log","@timestamp":"2020-12-03T16:25:19+00:00","tags":["debug","plugins","reporting"],"pid":51091,"message":"Worker error: (ki91vkgk13f7e70b7ce4qant)"}
{"type":"log","@timestamp":"2020-12-03T16:25:19+00:00","tags":["warning","plugins","reporting","esqueue","queue-worker"],"pid":51091,"message":"ki91v5ex13f7e70b7c5w125a - Failing job ki91vkgk13f7e70b7ce4qant"}
{"type":"log","@timestamp":"2020-12-03T16:25:19+00:00","tags":["info","plugins","reporting","esqueue","queue-worker"],"pid":51091,"message":"ki91v5ex13f7e70b7c5w125a - Job marked as failed: /.reporting-2020-11-29/ki91vkgk13f7e70b7ce4qant"}
{"type":"log","@timestamp":"2020-12-03T16:25:19+00:00","tags":["debug","plugins","reporting","printable_pdf","execute-job","ki91vkgk13f7e70b7ce4qant","ki91vkgk13f7e70b7ce4qant","browser-driver","headless-browser-process"],"pid":51091,"message":"child process closed"}

The self diagnosis tool was functioning.

@jbudz
Copy link
Member Author

jbudz commented Dec 3, 2020

I was able to successfully generate a Canvas report, so it seems limited to dashboard for now. I'm going to try on x86 to see if that's limited to ARM.

@jbudz
Copy link
Member Author

jbudz commented Dec 3, 2020

It's something to do with the maps visualization. The sample ecommerce dashboard had the same error on x86, and after removing maps it was fine.

@jbudz
Copy link
Member Author

jbudz commented Dec 3, 2020

I opened #84930 with the details here.

Copy link
Contributor

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - the reporting error doesn't appear to be related to the changes here.

@jbudz
Copy link
Member Author

jbudz commented Dec 4, 2020

@elasticmachine merge upstream

@jbudz jbudz merged commit 0dbe1cd into elastic:master Dec 4, 2020
@jbudz jbudz deleted the build/os-arm64 branch December 4, 2020 16:59
@jbudz
Copy link
Member Author

jbudz commented Dec 4, 2020

7.x/7.11: 448dcca

@jbudz
Copy link
Member Author

jbudz commented Dec 4, 2020

@mgreau does the release manager need any changes to pick this up? The file names are kibana-8.0.0-SNAPSHOT-arm64.deb and kibana-8.0.0-SNAPSHOT-aarch64.rpm and there's no dependency changes.

jbudz added a commit that referenced this pull request Dec 4, 2020
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@mgreau
Copy link
Member

mgreau commented Dec 4, 2020

@mgreau does the release manager need any changes to pick this up? The file names are kibana-8.0.0-SNAPSHOT-arm64.deb and kibana-8.0.0-SNAPSHOT-aarch64.rpm and there's no dependency changes.

Yes I will open an internal issue to talk about it

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

Successfully merging this pull request may close these issues.

[build] Support for deb/RPM aarch64
6 participants