opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.69k stars 896 forks source link

[Build] Build amd64 for rpm #1748

Open lliu0947 opened 2 years ago

lliu0947 commented 2 years ago

Describe build amd64 rpm failed

To Reproduce Steps to reproduce the behavior:

Build amd64 for rpm with the following commands: yarn build --rpm --skip-archives --release

Expected behavior build amd64 rpm success

Dashboards Version branch 2.0

Host/Environment (please complete the following information):

build log yarn run v1.22.19 $ node scripts/build --all-platforms --rpm --skip-archives --allow-root info [ global ] Verifying environment meets requirements │ succ Node.js version verified │ succ ✓ 0 sec

info [ global ] Cleaning artifacts from previous builds │ debg Deleting patterns: [ │ '/root/OpenSearch-Dashboards/build', │ '/root/OpenSearch-Dashboards/target', │ '/root/OpenSearch-Dashboards/.node_binaries' │ ] │ debg Deleted 3 files/directories │ succ ✓ 17 sec

info [ global ] Downloading node.js builds for all platforms │ debg Downloading shasum values for node version 14.19.1 from https://nodejs.org/dist/v14.19.1/SHASUMS256.txt │ debg Attempting download of https://nodejs.org/dist/v14.19.1/node-v14.19.1-linux-x64.tar.gz 3019e0508145c4c1fc6662f0b9b1c78bb84181aeea4749fac38ca51587aaf82f │ debg Attempting download of https://nodejs.org/dist/v14.19.1/node-v14.19.1-linux-arm64.tar.gz b365659aa9f31c984668ac60b70fcfae90ffabb3dd51b031898b050e403c1794 │ debg Attempting download of https://nodejs.org/dist/v14.19.1/node-v14.19.1-darwin-x64.tar.gz b3159080641c7cf0b9b3826190623c41c28cca26fd137e0c275c3de4b767422a │ debg Attempting download of https://nodejs.org/dist/v14.19.1/win-x64/node.exe ac22afbfd31cb0951a22b7956cdd307c2c5d8893aa1c52ff7866af31b0f380bd │ debg Downloaded https://nodejs.org/dist/v14.19.1/node-v14.19.1-linux-arm64.tar.gz and verified checksum │ debg Download failed: Client network socket disconnected before secure TLS connection was established │ debg Deleting downloaded data at /root/OpenSearch-Dashboards/.node_binaries/14.19.1/node-v14.19.1-darwin-x64.tar.gz │ debg Retrying - 3 attempt remaining │ debg Attempting download of https://nodejs.org/dist/v14.19.1/node-v14.19.1-darwin-x64.tar.gz b3159080641c7cf0b9b3826190623c41c28cca26fd137e0c275c3de4b767422a │ debg Download failed: socket hang up │ debg Deleting downloaded data at /root/OpenSearch-Dashboards/.node_binaries/14.19.1/node-v14.19.1-linux-x64.tar.gz │ debg Retrying - 3 attempt remaining │ debg Attempting download of https://nodejs.org/dist/v14.19.1/node-v14.19.1-linux-x64.tar.gz 3019e0508145c4c1fc6662f0b9b1c78bb84181aeea4749fac38ca51587aaf82f │ debg Download failed: connect ETIMEDOUT 104.20.23.46:443 │ debg Deleting downloaded data at /root/OpenSearch-Dashboards/.node_binaries/14.19.1/node-v14.19.1-darwin-x64.tar.gz │ debg Retrying - 2 attempt remaining │ debg Attempting download of https://nodejs.org/dist/v14.19.1/node-v14.19.1-darwin-x64.tar.gz b3159080641c7cf0b9b3826190623c41c28cca26fd137e0c275c3de4b767422a │ debg Downloaded https://nodejs.org/dist/v14.19.1/node-v14.19.1-darwin-x64.tar.gz and verified checksum │ debg Download failed: read ECONNRESET │ debg Deleting downloaded data at /root/OpenSearch-Dashboards/.node_binaries/14.19.1/node-v14.19.1-linux-x64.tar.gz │ debg Retrying - 2 attempt remaining │ debg Attempting download of https://nodejs.org/dist/v14.19.1/node-v14.19.1-linux-x64.tar.gz 3019e0508145c4c1fc6662f0b9b1c78bb84181aeea4749fac38ca51587aaf82f │ debg Downloaded https://nodejs.org/dist/v14.19.1/node-v14.19.1-linux-x64.tar.gz and verified checksum │ debg Download failed: read ETIMEDOUT │ debg Deleting downloaded data at /root/OpenSearch-Dashboards/.node_binaries/14.19.1/node.exe │ debg Retrying - 3 attempt remaining │ debg Attempting download of https://nodejs.org/dist/v14.19.1/win-x64/node.exe ac22afbfd31cb0951a22b7956cdd307c2c5d8893aa1c52ff7866af31b0f380bd │ debg Download failed: connect ETIMEDOUT 104.20.22.46:443 │ debg Deleting downloaded data at /root/OpenSearch-Dashboards/.node_binaries/14.19.1/node.exe │ debg Retrying - 2 attempt remaining │ debg Attempting download of https://nodejs.org/dist/v14.19.1/win-x64/node.exe ac22afbfd31cb0951a22b7956cdd307c2c5d8893aa1c52ff7866af31b0f380bd │ debg Download failed: read ECONNRESET │ debg Deleting downloaded data at /root/OpenSearch-Dashboards/.node_binaries/14.19.1/node.exe │ debg Retrying - 1 attempt remaining │ debg Attempting download of https://nodejs.org/dist/v14.19.1/win-x64/node.exe ac22afbfd31cb0951a22b7956cdd307c2c5d8893aa1c52ff7866af31b0f380bd │ debg Downloaded https://nodejs.org/dist/v14.19.1/win-x64/node.exe and verified checksum │ succ ✓ 17 min 8 sec info [ global ] Extracting node.js builds for all platforms │ succ ✓ 10 sec

info [ opensearch-dashboards ] Copying source into platform-generic build directory │ succ ✓ 6 sec

info [ opensearch-dashboards ] Copying bin scripts into platform-generic build directory │ succ ✓ 0 sec

info [ opensearch-dashboards ] Creating some empty directories and files to prevent file-permission issues │ succ ✓ 0 sec info [ opensearch-dashboards ] Creating README.md file │ succ ✓ 0 sec

info [ opensearch-dashboards ] Building distributable versions of packages info Preparing production build for [@elastic/safer-lodash-set, @osd/ace, @osd/analytics, @osd/apm-config-loader, @osd/config, @osd/config-schema, @osd/i18n, @osd/interpreter, @osd/logging, @osd/monaco, @osd/std, @osd/ui-framework, @osd/ui-shared-deps, @osd/utils] info Running script [build] in [@osd/ace]: $ node ./scripts/build.js info Deleting old output info [tsc ] > tsc info [tsc ] exited with 0 after a few seconds succ Copying worker file to target. succ Complete info Running script [build] in [@osd/analytics]: $ node scripts/build info Deleting old output info Starting babel and typescript info [babel:web ] > babel src --config-file /root/OpenSearch-Dashboards/packages/osd-analytics/babel.config.js --out-dir /root/OpenSearch-Dashboards/packages/osd-analytics/target/web --extensions .ts,.js,.tsx --quiet info [babel:node] > babel src --config-file /root/OpenSearch-Dashboards/packages/osd-analytics/babel.config.js --out-dir /root/OpenSearch-Dashboards/packages/osd-analytics/target/node --extensions .ts,.js,.tsx --quiet info [tsc ] > tsc info [babel:node] exited with 0 after a few seconds info [babel:web ] exited with 0 after a few seconds info [tsc ] exited with 0 after a few seconds succ Complete info Running script [build] in [@osd/config-schema]: $ tsc info Running script [build] in [@osd/i18n]: $ node scripts/build info Deleting old output info Starting babel and typescript info [babel:web ] > babel src --config-file /root/OpenSearch-Dashboards/packages/osd-i18n/babel.config.js --out-dir /root/OpenSearch-Dashboards/packages/osd-i18n/target/web --extensions .ts,.js,.tsx --quiet info [babel:node] > babel src --config-file /root/OpenSearch-Dashboards/packages/osd-i18n/babel.config.js --out-dir /root/OpenSearch-Dashboards/packages/osd-i18n/target/node --extensions .ts,.js,.tsx --quiet info [tsc ] > tsc info [babel:node] exited with 0 after a few seconds info [babel:node] exited with 0 after a few seconds info [babel:web ] exited with 0 after a few seconds info [tsc ] exited with 0 after a few seconds succ Complete info Running script [build] in [@osd/monaco]: $ node ./scripts/build.js info Deleting old output info [worker] > webpack --config /root/OpenSearch-Dashboards/packages/osd-monaco/webpack.config.js info [worker] exited with 0 after a few seconds info [tsc ] > tsc info [tsc ] exited with 0 after a few seconds succ Complete info Running script [build] in [@osd/std]: $ tsc info Running script [build] in [@osd/ui-framework]: $ grunt prodBuild Running "clean:target" (clean) task

0 paths cleaned.

Running "copy:makeProdBuild" (copy) task Created 59 directories, copied 176 files

Running "babel:prodBuild" (babel) task

Done. info Running script [build] in [@osd/interpreter]: $ node scripts/build info Deleting old output info Starting babel info [babel ] > babel src --ignore *.test.js --out-dir target --copy-files --quiet info [babel ] exited with 0 after a few seconds succ Complete info Running script [build] in [@osd/logging]: $ tsc info Running script [build] in [@osd/ui-shared-deps]: $ node scripts/build info cleaning previous build output succ webpack completed in about 45 seconds info Running script [build] in [@osd/utils]: $ tsc info Running script [build] in [@osd/apm-config-loader]: $ tsc info Running script [build] in [@osd/config]: $ tsc │ succ ✓ 1 min 55 sec

info [ opensearch-dashboards ] Creating build-ready version of package.json │ succ ✓ 0 sec

info [ opensearch-dashboards ] Installing node_modules, including production builds of packages info [opensearch-dashboards] running yarn

[1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... [4/5] Linking dependencies... [5/5] Building fresh packages...

│ succ ✓ 1 min 12 sec

info [ opensearch-dashboards ] Building distributable versions of OpenSearch Dashboards platform plugins │ debg OPENSEARCH_DASHBOARDS_CI_STATS_CONFIG environment variable not found, disabling CiStatsReporter │ debg [core] bundle not cached because [cache disabled] │ debg [advancedSettings] bundle not cached because [cache disabled] │ debg [apmOss] bundle not cached because [cache disabled] │ debg [bfetch] bundle not cached because [cache disabled] │ debg [charts] bundle not cached because [cache disabled] │ debg [console] bundle not cached because [cache disabled] │ debg [dashboard] bundle not cached because [cache disabled] │ debg [data] bundle not cached because [cache disabled] │ debg [devTools] bundle not cached because [cache disabled] │ debg [discover] bundle not cached because [cache disabled] │ debg [embeddable] bundle not cached because [cache disabled] │ debg [expressions] bundle not cached because [cache disabled] │ debg [home] bundle not cached because [cache disabled] │ debg [indexPatternManagement] bundle not cached because [cache disabled] │ debg [inputControlVis] bundle not cached because [cache disabled] │ debg [inspector] bundle not cached because [cache disabled] │ debg [management] bundle not cached because [cache disabled] │ debg [mapsLegacy] bundle not cached because [cache disabled] │ debg [navigation] bundle not cached because [cache disabled] │ debg [opensearchDashboardsLegacy] bundle not cached because [cache disabled] │ debg [opensearchDashboardsOverview] bundle not cached because [cache disabled] │ debg [opensearchDashboardsReact] bundle not cached because [cache disabled] │ debg [opensearchDashboardsUtils] bundle not cached because [cache disabled] │ debg [opensearchUiShared] bundle not cached because [cache disabled] │ debg [regionMap] bundle not cached because [cache disabled] │ debg [savedObjects] bundle not cached because [cache disabled] │ debg [savedObjectsManagement] bundle not cached because [cache disabled] │ debg [share] bundle not cached because [cache disabled] │ debg [tileMap] bundle not cached because [cache disabled] │ debg [timeline] bundle not cached because [cache disabled] │ debg [uiActions] bundle not cached because [cache disabled] │ debg [urlForwarding] bundle not cached because [cache disabled] │ debg [usageCollection] bundle not cached because [cache disabled] │ debg [visDefaultEditor] bundle not cached because [cache disabled] │ debg [visTypeMarkdown] bundle not cached because [cache disabled] │ debg [visTypeMetric] bundle not cached because [cache disabled] debg [visTypeTable] bundle not cached because [cache disabled] │ debg [visTypeTagcloud] bundle not cached because [cache disabled] │ debg [visTypeTimeline] bundle not cached because [cache disabled] │ debg [visTypeTimeseries] bundle not cached because [cache disabled] │ debg [visTypeVega] bundle not cached because [cache disabled] │ debg [visTypeVislib] bundle not cached because [cache disabled] │ debg [visTypeXy] bundle not cached because [cache disabled] │ debg [visualizations] bundle not cached because [cache disabled] │ debg [visualize] bundle not cached because [cache disabled] │ info initialized, 0 bundles cached │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] │ info starting worker [3 bundles] │ debg modules [NaN] work units [NaN] debg [visualize] state = "running" │ debg [timeline] state = "running" │ debg [inputControlVis] state = "running" │ debg [visTypeXy] state = "running" │ debg [visTypeVislib] state = "running" │ debg [share] state = "running" │ debg [home] state = "running" │ debg [savedObjectsManagement] state = "running" │ debg [expressions] state = "running" │ debg [visualizations] state = "running" │ debg [tileMap] state = "running" │ debg [indexPatternManagement] state = "running" │ debg [visTypeVega] state = "running" │ debg [savedObjects] state = "running" │ debg [embeddable] state = "running" │ debg [visTypeTimeline] state = "running" │ debg [opensearchUiShared] state = "running" │ debg [devTools] state = "running" │ debg [visTypeTable] state = "running" │ debg [opensearchDashboardsReact] state = "running" │ debg [dashboard] state = "running" │ debg [visTypeTagcloud] state = "running" │ debg [opensearchDashboardsUtils] state = "running" │ debg [data] state = "running" │ debg [visTypeTimeseries] state = "running" │ debg [visTypeMetric] state = "running" │ debg [regionMap] state = "running" │ debg [discover] state = "running" │ debg [opensearchDashboardsOverview] state = "running" │ debg [core] state = "running" │ debg [visTypeMarkdown] state = "running" │ debg [opensearchDashboardsLegacy] state = "running" │ debg [urlForwarding] state = "running" │ debg [console] state = "running" │ debg [uiActions] state = "running" │ debg [management] state = "running" │ debg [apmOss] state = "running" │ debg [usageCollection] state = "running" │ debg [inspector] state = "running" │ debg [advancedSettings] state = "running" │ debg [mapsLegacy] state = "running" │ debg [bfetch] state = "running" │ debg [visDefaultEditor] state = "running" │ debg [navigation] state = "running" │ debg [charts] state = "running" │ debg [visTypeXy] state = "compiler success" after 4.4 sec │ debg [apmOss] state = "compiler success" after 4.4 sec │ debg [urlForwarding] state = "compiler success" after 5.4 sec │ warn worker stderr WARNING: The $opacity variable of euiBottomShadowMedium() will be deprecated in a future version of EUI. │ warn worker stderr on line 35 of node_modules/@elastic/eui/src/themes/eui-amsterdam/global_styling/mixins/_shadow.scss, in mixin euiBottomShadowMedium │ warn worker stderr from line 12 of src/plugins/maps_legacy/public/map/_leaflet_overrides.scss │ warn worker stderr from line 2 of src/plugins/maps_legacy/public/map/index.scss │ warn worker stderr │ warn worker stderr WARNING: The $opacity variable of euiBottomShadowMedium() will be deprecated in a future version of EUI. │ warn worker stderr on line 35 of node_modules/@elastic/eui/src/themes/eui-amsterdam/global_styling/mixins/_shadow.scss, in mixin euiBottomShadowMedium │ warn worker stderr from line 3 of src/plugins/maps_legacy/public/map/_legend.scss │ warn worker stderr from line 3 of src/plugins/maps_legacy/public/map/index.scss │ warn worker stderr │ debg [usageCollection] state = "compiler success" after 21.4 sec │ debg [uiActions] state = "compiler success" after 23.1 sec │ debg [bfetch] state = "compiler success" after 23.7 sec │ debg [charts] state = "compiler success" after 33.3 sec │ debg [tileMap] state = "compiler success" after 38.6 sec │ debg [inputControlVis] state = "compiler success" after 39.9 sec │ debg [share] state = "compiler success" after 42.1 sec │ debg [navigation] state = "compiler success" after 43 sec │ warn worker stderr WARNING: The $opacity variable of euiBottomShadowMedium() will be deprecated in a future version of EUI. │ warn worker stderr on line 35 of node_modules/@elastic/eui/src/themes/eui-amsterdam/global_styling/mixins/_shadow.scss, in mixin euiBottomShadowMedium │ warn worker stderr from line 12 of src/plugins/maps_legacy/public/map/_leaflet_overrides.scss │ warn worker stderr from line 2 of src/plugins/maps_legacy/public/map/index.scss │ warn worker stderr │ warn worker stderr WARNING: The $opacity variable of euiBottomShadowMedium() will be deprecated in a future version of EUI. │ warn worker stderr on line 35 of node_modules/@elastic/eui/src/themes/eui-amsterdam/global_styling/mixins/_shadow.scss, in mixin euiBottomShadowMedium │ warn worker stderr from line 3 of src/plugins/maps_legacy/public/map/_legend.scss │ warn worker stderr from line 3 of src/plugins/maps_legacy/public/map/index.scss │ warn worker stderr │ debg [visTypeTable] state = "compiler success" after 46.5 sec │ debg [home] state = "compiler success" after 51 sec │ debg [devTools] state = "compiler success" after 52.1 sec │ debg [embeddable] state = "compiler success" after 53.3 sec │ debg [expressions] state = "compiler success" after 57.2 sec │ debg [regionMap] state = "compiler success" after 57.3 sec │ debg [timeline] state = "compiler success" after 57.4 sec │ debg [mapsLegacy] state = "compiler success" after 57.7 sec │ debg [console] state = "compiler success" after 59.7 sec │ debg [inspector] state = "compiler success" after 60 sec │ debg [management] state = "compiler success" after 60.3 sec │ debg [savedObjects] state = "compiler success" after 61.3 sec │ debg [visualizations] state = "compiler success" after 62.2 sec │ debg [visDefaultEditor] state = "compiler success" after 69 sec │ debg [dashboard] state = "compiler success" after 70.5 sec │ debg [opensearchDashboardsLegacy] state = "compiler success" after 75.3 sec │ debg [visTypeTimeline] state = "compiler success" after 80 sec │ debg [advancedSettings] state = "compiler success" after 80.6 sec │ debg [visTypeVislib] state = "compiler success" after 85.2 sec │ debg [visTypeMarkdown] state = "compiler success" after 85.5 sec │ debg [opensearchDashboardsOverview] state = "compiler success" after 86.3 sec │ debg [visTypeTagcloud] state = "compiler success" after 87.2 sec │ debg [opensearchUiShared] state = "compiler success" after 89.1 sec │ debg [visTypeTimeseries] state = "compiler success" after 89.2 sec │ debg [savedObjectsManagement] state = "compiler success" after 89.9 sec │ debg [visualize] state = "compiler success" after 90.3 sec │ debg [visTypeMetric] state = "compiler success" after 92.7 sec │ debg [opensearchDashboardsUtils] state = "compiler success" after 93.8 sec │ debg [visTypeVega] state = "compiler success" after 95 sec │ debg [data] state = "compiler success" after 96.6 sec │ debg [indexPatternManagement] state = "compiler success" after 105.3 sec │ debg [opensearchDashboardsReact] state = "compiler success" after 106.4 sec │ debg [core] state = "compiler success" after 114.2 sec │ debg [discover] state = "compiler success" after 123.8 sec │ succ 45 bundles compiled successfully after 123.8 sec │ debg core metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'core', │ value: 454 │ }, │ { │ group: 'page load bundle size', │ id: 'core', │ value: 699056, │ limit: 692646, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'core', value: 271423 }, │ { group: 'miscellaneous assets size', id: 'core', value: 0 } │ ] │ debg advancedSettings metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'advancedSettings', │ value: 52 │ }, │ { │ group: 'page load bundle size', │ id: 'advancedSettings', │ value: 12825, │ limit: 27596, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'advancedSettings', value: 970391 }, │ { │ group: 'miscellaneous assets size', │ id: 'advancedSettings', │ value: 0 │ } │ ] │ debg apmOss metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'apmOss', │ value: 6 │ }, │ { │ group: 'page load bundle size', │ id: 'apmOss', │ value: 3966, │ limit: 18996, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'apmOss', value: 0 }, │ { group: 'miscellaneous assets size', id: 'apmOss', value: 0 } │ ] │ debg bfetch metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'bfetch', │ value: 20 │ }, │ { │ group: 'page load bundle size', │ id: 'bfetch', │ value: 26134, │ limit: 41874, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'bfetch', value: 0 }, │ { group: 'miscellaneous assets size', id: 'bfetch', value: 0 } │ ] │ debg charts metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'charts', │ value: 39 │ }, │ { │ group: 'page load bundle size', │ id: 'charts', │ value: 145546, │ limit: 159211, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'charts', value: 0 }, │ { group: 'miscellaneous assets size', id: 'charts', value: 0 } │ ] │ debg console metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'console', │ value: 171 │ }, │ { │ group: 'page load bundle size', │ id: 'console', │ value: 33356, │ limit: 46235, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'console', value: 1110725 }, │ { group: 'miscellaneous assets size', id: 'console', value: 0 } │ ] │ debg dashboard metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'dashboard', │ value: 170 │ }, │ { │ group: 'page load bundle size', │ id: 'dashboard', │ value: 391535, │ limit: 374267, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'dashboard', value: 233451 }, │ { group: 'miscellaneous assets size', id: 'dashboard', value: 0 } │ ] │ debg data metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'data', │ value: 573 │ }, │ { │ group: 'page load bundle size', │ id: 'data', │ value: 1188170, │ limit: 1174083, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'data', value: 305071 }, │ { group: 'miscellaneous assets size', id: 'data', value: 0 } │ ] │ debg devTools metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'devTools', │ value: 17 │ }, │ { │ group: 'page load bundle size', │ id: 'devTools', │ value: 26284, │ limit: 38781, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'devTools', value: 6681 }, │ { group: 'miscellaneous assets size', id: 'devTools', value: 0 } │ ] │ debg discover metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'discover', │ value: 246 │ }, │ { │ group: 'page load bundle size', │ id: 'discover', │ value: 91175, │ limit: 105147, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'discover', value: 486002 }, │ { group: 'miscellaneous assets size', id: 'discover', value: 0 } │ ] │ debg embeddable metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'embeddable', │ value: 71 │ }, │ { │ group: 'page load bundle size', │ id: 'embeddable', │ value: 192804, │ limit: 242671, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'embeddable', value: 0 }, │ { group: 'miscellaneous assets size', id: 'embeddable', value: 0 } │ ] │ debg expressions metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'expressions', │ value: 106 │ }, │ { │ group: 'page load bundle size', │ id: 'expressions', │ value: 190023, │ limit: 224120, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'expressions', value: 0 }, │ { group: 'miscellaneous assets size', id: 'expressions', value: 0 } │ ] │ debg home metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'home', │ value: 208 │ }, │ { │ group: 'page load bundle size', │ id: 'home', │ value: 27921, │ limit: 41661, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'home', value: 394574 }, │ { group: 'miscellaneous assets size', id: 'home', value: 0 } │ ] │ debg indexPatternManagement metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'indexPatternManagement', │ value: 211 │ }, │ { │ group: 'page load bundle size', │ id: 'indexPatternManagement', │ value: 151210, │ limit: 154366, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { │ group: 'async chunks size', │ id: 'indexPatternManagement', │ value: 705643 │ }, │ { │ group: 'miscellaneous assets size', │ id: 'indexPatternManagement', │ value: 0 │ } │ ] │ debg inputControlVis metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'inputControlVis', │ value: 41 │ }, │ { │ group: 'page load bundle size', │ id: 'inputControlVis', │ value: 168248, │ limit: 172819, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'inputControlVis', value: 0 }, │ { │ group: 'miscellaneous assets size', │ id: 'inputControlVis', │ value: 0 │ } │ ] │ debg inspector metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'inspector', │ value: 59 │ }, │ { │ group: 'page load bundle size', │ id: 'inspector', │ value: 147517, │ limit: 148999, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'inspector', value: 0 }, │ { group: 'miscellaneous assets size', id: 'inspector', value: 0 } │ ] │ debg management metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'management', │ value: 43 │ }, │ { │ group: 'page load bundle size', │ id: 'management', │ value: 33369, │ limit: 46112, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'management', value: 40456 }, │ { group: 'miscellaneous assets size', id: 'management', value: 0 } │ ] │ debg mapsLegacy metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'mapsLegacy', │ value: 186 │ }, │ { │ group: 'page load bundle size', │ id: 'mapsLegacy', │ value: 99424, │ limit: 116961, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'mapsLegacy', value: 764474 }, │ { group: 'miscellaneous assets size', id: 'mapsLegacy', value: 0 } │ ] │ debg navigation metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'navigation', │ value: 23 │ }, │ { │ group: 'page load bundle size', │ id: 'navigation', │ value: 24746, │ limit: 37413, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'navigation', value: 0 }, │ { group: 'miscellaneous assets size', id: 'navigation', value: 0 } │ ] │ debg opensearchDashboardsLegacy metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'opensearchDashboardsLegacy', │ value: 122 │ }, │ { │ group: 'page load bundle size', │ id: 'opensearchDashboardsLegacy', │ value: 96948, │ limit: 107855, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { │ group: 'async chunks size', │ id: 'opensearchDashboardsLegacy', │ value: 164431 │ }, │ { │ group: 'miscellaneous assets size', │ id: 'opensearchDashboardsLegacy', │ value: 950853 │ } │ ] │ debg opensearchDashboardsOverview metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'opensearchDashboardsOverview', │ value: 46 │ }, │ { │ group: 'page load bundle size', │ id: 'opensearchDashboardsOverview', │ value: 45259, │ limit: 56426, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { │ group: 'async chunks size', │ id: 'opensearchDashboardsOverview', │ value: 52766 │ }, │ { │ group: 'miscellaneous assets size', │ id: 'opensearchDashboardsOverview', │ value: 0 │ } │ ] │ debg opensearchDashboardsReact metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'opensearchDashboardsReact', │ value: 309 │ }, │ { │ group: 'page load bundle size', │ id: 'opensearchDashboardsReact', │ value: 145268, │ limit: 162353, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { │ group: 'async chunks size', │ id: 'opensearchDashboardsReact', │ value: 382657 │ }, │ { │ group: 'miscellaneous assets size', │ id: 'opensearchDashboardsReact', │ value: 0 │ } │ ] │ debg opensearchDashboardsUtils metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'opensearchDashboardsUtils', │ value: 195 │ }, │ { │ group: 'page load bundle size', │ id: 'opensearchDashboardsUtils', │ value: 172029, │ limit: 198829, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { │ group: 'async chunks size', │ id: 'opensearchDashboardsUtils', │ value: 129145 │ }, │ { │ group: 'miscellaneous assets size', │ id: 'opensearchDashboardsUtils', │ value: 0 │ } │ ] │ debg opensearchUiShared metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'opensearchUiShared', │ value: 208 │ }, │ { │ group: 'page load bundle size', │ id: 'opensearchUiShared', │ value: 316627, │ limit: 326798, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'opensearchUiShared', value: 0 }, │ { │ group: 'miscellaneous assets size', │ id: 'opensearchUiShared', │ value: 0 │ } │ ] │ debg regionMap metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'regionMap', │ value: 14 │ }, │ { │ group: 'page load bundle size', │ id: 'regionMap', │ value: 47442, │ limit: 66098, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'regionMap', value: 271574 }, │ { group: 'miscellaneous assets size', id: 'regionMap', value: 0 } │ ] │ debg savedObjects metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'savedObjects', │ value: 40 │ }, │ { │ group: 'page load bundle size', │ id: 'savedObjects', │ value: 98100, │ limit: 108662, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { group: 'async chunks size', id: 'savedObjects', value: 0 }, │ { group: 'miscellaneous assets size', id: 'savedObjects', value: 0 } │ ] │ debg savedObjectsManagement metrics [ │ { │ group: '@osd/optimizer bundle module count', │ id: 'savedObjectsManagement', │ value: 136 │ }, │ { │ group: 'page load bundle size', │ id: 'savedObjectsManagement', │ value: 85933, │ limit: 100503, │ limitConfigPath: 'packages/osd-optimizer/limits.yml' │ }, │ { │ group: 'async chunks size', │ id: 'savedObjectsManagement', .... info [ opensearch-dashboards ] Verify that no UUID file is baked into the build │ succ ✓ 0 sec

info [ opensearch-dashboards ] Creating rpm package │ debg calling fpm with args: [ │ '--force', │ '-t', │ 'rpm', │ '--package', │ '/root/OpenSearch-Dashboards/target/NAME-2.0.0-SNAPSHOT-ARCH.TYPE', │ '-s', │ 'dir', │ '--name', │ 'opensearch-dashboards', │ '--description', │ 'Explore and visualize your OpenSearch data', │ '--version', │ '2.0.0-SNAPSHOT', │ '--url', │ 'https://opensearch.org', │ '--vendor', │ 'OpenSearch', │ '--maintainer', │ 'OpenSearch Dashboards Team opensearch@amazon.com', │ '--license', │ 'ASL 2.0', │ '--conflicts', │ 'opensearch-dashboards', │ '--after-install', │ '/root/OpenSearch-Dashboards/src/dev/build/tasks/os_packages/package_scripts/post_install.sh', │ '--before-install', │ '/root/OpenSearch-Dashboards/src/dev/build/tasks/os_packages/package_scripts/post_install.sh', │ '--before-install', │ '/root/OpenSearch-Dashboards/src/dev/build/tasks/os_packages/package_scripts/pre_install.sh', │ '--before-remove', │ '/root/OpenSearch-Dashboards/src/dev/build/tasks/os_packages/package_scripts/pre_remove.sh', │ '--after-remove', │ '/root/OpenSearch-Dashboards/src/dev/build/tasks/os_packages/package_scripts/post_remove.sh', │ '--config-files', │ '/etc/opensearch-dashboards/opensearch_dashboards.yml', │ '--template-value', │ 'user=opensearch-dashboards', │ '--template-value', │ 'group=opensearch-dashboards', │ '--template-value', │ 'optimizeDir=/usr/share/opensearch-dashboards/optimize', │ '--template-value', │ 'configDir=/etc/opensearch-dashboards', │ '--template-value', │ 'pluginsDir=/usr/share/opensearch-dashboards/plugins', │ '--template-value', │ 'dataDir=/var/lib/opensearch-dashboards', │ '--exclude', │ 'usr/share/opensearch-dashboards/config', │ '--exclude', │ 'usr/share/opensearch-dashboards/data', │ '--exclude', │ 'usr/share/opensearch-dashboards/assets', │ '--architecture', │ 'x64', │ '--rpm-os', │ 'linux', │ '/root/OpenSearch-Dashboards/build/opensearch-dashboards-2.0.0-SNAPSHOT-linux-x64/=/usr/share/opensearch-dashboards/', │ '/root/OpenSearch-Dashboards/build/opensearch-dashboards-2.0.0-SNAPSHOT-linux-x64/config/=/etc/opensearch-dashboards/', │ '/root/OpenSearch-Dashboards/build/opensearch-dashboards-2.0.0-SNAPSHOT-linux-x64/data/=/var/lib/opensearch-dashboards/', │ '/root/OpenSearch-Dashboards/src/dev/build/tasks/os_packages/service_templates/sysv/=/', │ '/root/OpenSearch-Dashboards/src/dev/build/tasks/os_packages/service_templates/systemd/=/' │ ] │ info $ fpm --force -t rpm --package /root/OpenSearch-Dashboards/target/NAME-2.0.0-SNAPSHOT-ARCH.TYPE -s dir --name opensearch-dashboards --description Explore and visualize your OpenSearch data --version 2.0.0-SNAPSHOT --url https://opensearch.org --vendor OpenSearch --maintainer OpenSearch Dashboards Team opensearch@amazon.com --license ASL 2.0 --conflicts opensearch-dashboards --after-install /root/OpenSearch-Dashboards/src/dev/build/tasks/os_packages/package_scripts/post_install.sh --before-install /root/OpenSearch-Dashboards/src/dev/build/tasks/os_packages/package_scripts/pre_install.sh --before-remove /root/OpenSearch-Dashboards/src/dev/build/tasks/os_packages/package_scripts/pre_remove.sh --after-remove /root/OpenSearch-Dashboards/src/dev/build/tasks/os_packages/package_scripts/post_remove.sh --config-files /etc/opensearch-dashboards/opensearch_dashboards.yml --template-value user=opensearch-dashboards --template-value group=opensearch-dashboards --template-value optimizeDir=/usr/share/opensearch-dashboards/optimize --template-value configDir=/etc/opensearch-dashboards --template-value pluginsDir=/usr/share/opensearch-dashboards/plugins --template-value dataDir=/var/lib/opensearch-dashboards --exclude usr/share/opensearch-dashboards/config --exclude usr/share/opensearch-dashboards/data --exclude usr/share/opensearch-dashboards/assets --architecture x64 --rpm-os linux /root/OpenSearch-Dashboards/build/opensearch-dashboards-2.0.0-SNAPSHOT-linux-x64/=/usr/share/opensearch-dashboards/ /root/OpenSearch-Dashboards/build/opensearch-dashboards-2.0.0-SNAPSHOT-linux-x64/config/=/etc/opensearch-dashboards/ /root/OpenSearch-Dashboards/build/opensearch-dashboards-2.0.0-SNAPSHOT-linux-x64/data/=/var/lib/opensearch-dashboards/ /root/OpenSearch-Dashboards/src/dev/build/tasks/os_packages/service_templates/sysv/=/ /root/OpenSearch-Dashboards/src/dev/build/tasks/os_packages/service_templates/systemd/=/ │ERROR failure 0 sec │ERROR Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close │ at new NodeError (internal/errors.js:322:7) │ at Socket.onclose (internal/streams/end-of-stream.js:117:38) │ at Socket.emit (events.js:412:35) │ at Pipe. (net.js:686:12)

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

seanneumann commented 2 years ago

@ahopp @kavilla is this still an issue?

Sharmajee-codes commented 10 months ago

Updating FPM manually fixed this issue.

yum install ruby-devel gcc make rpm-build rubygems gem install --no-ri --no-rdoc fpm