Closed rauldpm closed 1 year ago
No such file or directory
─➤ bash generate_base.sh -r wp2521 --app-url https://packages-dev.wazuh.com/warehouse/test/4.8/ui/dashboard/wazuh-4.8.0-wp2521.zip 1 ↵
[+] Building 0.5s (12/12) FINISHED
...
Successfully installed pathfix.py-0.6.2
sed: can't read ./src/plugins/dashboard/target/public/dashboard.chunk.1.js: No such file or directory
# Remove "New to OpenSearch Dashboards" message with link to OpenSearch Dashboards sample data in Dashboard plugin
sed -i 's|external_osdSharedDeps_React_default.a.createElement("p",null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_\["FormattedMessage"\],{id:"dashboard.listing.createNewDashboard.newToOpenSearchDashboardsDescription",defaultMessage:"New to OpenSearch Dashboards|false\&\&external_osdSharedDeps_React_default.a.createElement("p",null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_OsdI18nReact_["FormattedMessage"],{id:"dashboard.listing.createNewDashboard.newToOpenSearchDashboardsDescription",defaultMessage:"New to OpenSearch Dashboards|' ./src/plugins/dashboard/target/public/dashboard.chunk.1.js
gzip -c ./src/plugins/dashboard/target/public/dashboard.chunk.1.js > ./src/plugins/dashboard/target/public/dashboard.chunk.1.js.gz
brotli -c ./src/plugins/dashboard/target/public/dashboard.chunk.1.js > ./src/plugins/dashboard/target/public/dashboard.chunk.1.js.br
setcap
command is run while the package is created, running this command manually does not fix the permission error, although the user is root[root@centos7 vagrant]# /usr/share/wazuh-dashboard/bin/opensearch-dashboards -c /etc/wazuh-dashboard/opensearch_dashboards.yml
OpenSearch Dashboards should not be run as root. Use --allow-root to continue.
--allow-root
option, the Wazuh dashboard service starts normally and the WUI is accessible[root@centos7 vagrant]# /usr/share/wazuh-dashboard/bin/opensearch-dashboards --allow-root -c /etc/wazuh-dashboard/opensearch_dashboards.yml
log [19:07:07.430] [info][plugins-service] Plugin "dataSourceManagement" has been disabled since the following direct or transitive dependencies are missing or disabled: [dataSource]
log [19:07:07.433] [info][plugins-service] Plugin "dataSource" is disabled.
log [19:07:07.433] [info][plugins-service] Plugin "visTypeXy" is disabled.
log [19:07:07.520] [info][plugins-system] Setting up [47] plugins: [usageCollection,opensearchDashboardsUsageCollection,opensearchDashboardsLegacy,mapsLegacy,share,opensearchUiShared,legacyExport,embeddable,expressions,data,home,apmOss,savedObjects,reportsDashboards,dashboard,mlCommonsDashboards,visualizations,visTypeVega,visTypeTimeline,visTypeTable,visTypeMarkdown,visBuilder,visAugmenter,alertingDashboards,tileMap,regionMap,customImportMapDashboards,inputControlVis,ganttChartDashboards,visualize,indexManagementDashboards,notificationsDashboards,management,indexPatternManagement,advancedSettings,console,dataExplorer,charts,visTypeVislib,visTypeTimeseries,visTypeTagcloud,visTypeMetric,discover,savedObjectsManagement,securityDashboards,wazuh,bfetch]
log [19:07:07.692] [info][savedobjects-service] Waiting until all OpenSearch nodes are compatible with OpenSearch Dashboards before starting saved objects migrations...
log [19:07:07.709] [info][savedobjects-service] Starting saved objects migrations
log [19:07:07.741] [info][plugins-system] Starting [47] plugins: [usageCollection,opensearchDashboardsUsageCollection,opensearchDashboardsLegacy,mapsLegacy,share,opensearchUiShared,legacyExport,embeddable,expressions,data,home,apmOss,savedObjects,reportsDashboards,dashboard,mlCommonsDashboards,visualizations,visTypeVega,visTypeTimeline,visTypeTable,visTypeMarkdown,visBuilder,visAugmenter,alertingDashboards,tileMap,regionMap,customImportMapDashboards,inputControlVis,ganttChartDashboards,visualize,indexManagementDashboards,notificationsDashboards,management,indexPatternManagement,advancedSettings,console,dataExplorer,charts,visTypeVislib,visTypeTimeseries,visTypeTagcloud,visTypeMetric,discover,savedObjectsManagement,securityDashboards,wazuh,bfetch]
log [19:07:07.892] [info][listening] Server running at https://0.0.0.0:443
--allow-root
optionwazuh-dashboard
user. Changing User=wazuh-dashboard
to User=root
while also using the --allow-root
option prevents the service from failing.root
user without changing the service configuration/etc/default/wazuh-dashboard
file instead of hardcode it in the opensearch-dashboards
bin files, following the same procedure as the OpenSearch Dashboard package[root@centos7 vagrant]# /usr/share/wazuh-dashboard/bin/opensearch-dashboards -c /etc/wazuh-dashboard/opensearch_dashboards.yml
OpenSearch Dashboards should not be run as root. Use --allow-root to continue.
[root@centos7 vagrant]# /usr/share/opensearch-dashboards/bin/opensearch-dashboards -c /etc/opensearch-dashboards/opensearch_dashboards.yml
OpenSearch Dashboards should not be run as root. Use --allow-root to continue.
setcap
command[root@centos7 vagrant]# /usr/share/wazuh-dashboard/node/fallback/bin/node --version
v14.21.3
[root@centos7 vagrant]# /usr/share/wazuh-dashboard/node/bin/node --version
/usr/share/wazuh-dashboard/node/bin/node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /usr/share/wazuh-dashboard/node/bin/node)
/usr/share/wazuh-dashboard/node/bin/node: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /usr/share/wazuh-dashboard/node/bin/node)
/usr/share/wazuh-dashboard/node/bin/node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /usr/share/wazuh-dashboard/node/bin/node)
/usr/share/wazuh-dashboard/node/bin/node: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/share/wazuh-dashboard/node/bin/node)
/usr/share/wazuh-dashboard/node/bin/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/share/wazuh-dashboard/node/bin/node)
/usr/share/wazuh-dashboard/node/bin/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/share/wazuh-dashboard/node/bin/node)
setcap
on the fallback binary seems to solve the service problem, this should be added to the SPEC and rules filessetcap 'cap_net_bind_service=+ep' /usr/share/wazuh-dashboard/node/fallback/bin/node
setcap
to RPM and DEB packagesWazuh dashboard server is not ready yet
message when accessing the WUIOct 19 13:55:44 centos7 opensearch-dashboards[4930]: {"type":"log","@timestamp":"2023-10-19T13:55:44Z","tags":["error","opensearch","data"],"pid":4930,"message":"[ResponseError]: Response Error"}
Oct 19 13:55:44 centos7 opensearch-dashboards[4930]: {"type":"log","@timestamp":"2023-10-19T13:55:44Z","tags":["error","savedobjects-service"],"pid":4930,"message":"Unable to retrieve version information from OpenSearch nodes."}
Oct 19 14:19:47 centos7 opensearch-dashboards[4930]: {"type":"log","@timestamp":"2023-10-19T14:19:47Z","tags":["warning","savedobjects-service"],"pid":4930,"message":"Unable to connect to OpenSearch. Error: Given the configuration, the ConnectionPool was not able to find a usable Connection for this request."}
[2023-10-19T14:21:59,791][WARN ][o.o.s.a.BackendRegistry ] [node-1] No 'Authorization' header, send 401 and 'WWW-Authenticate Basic'
/usr/share/wazuh-dashboard/data/wazuh
directory does not existwazuh.yml
file does not exist, which can be the cause of the Wazuh dashboard is not ready
messageOn hold due
window.location.href = getHttp().basePath.prepend('/app/wazuh#/health-check?debug');
/app/wazuh
instead of /app/wz-home
, the same happens when clicking on the Home buttonOct 24 16:57:17 centos7 opensearch-dashboards[6932]: {"type":"error","@timestamp":"2023-10-24T16:57:17Z","tags":["connection","client","error"],"pid":6932,"level":"error","error":{"message":"140658201536384:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1563:SSL alert number 46\n","name":"Error","stack":"Error: 140658201536384:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1563:SSL alert number 46\n","code":"ERR_SSL_SSLV3_ALERT_CERTIFICATE_UNKNOWN"},"message":"140658201536384:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1563:SSL alert number 46\n"}
Oct 24 16:57:07 centos7 opensearch-dashboards[6932]: {"type":"log","@timestamp":"2023-10-24T16:57:07Z","tags":["error","opensearch","data"],"pid":6932,"message":"[ResponseError]: Response Error"}
/app/wazuh
-> /app/wz-home
), suggestions:
/app/wazuh
, but internally redirect with /app/wz-wazuh
It has been decided to work on the first option since a user should not have to manually modify the configuration, changes have been applied and the defaultRoute
is modified in both RPM and DEB in the upgrade, whether the user changes the original configuration or not
defaultRoute
is applied whether you choose no
or yes
since it is necessary for the operation of the new versionIt has been detected that the AWS resources related to unattended 4.8 were not updated, specifically the config.yml for 3 months, they have been updated with the latest changes and the Test_stack test runs correctly
A RPM Stack test passed successfully: https://ci.wazuh.info/job/Test_stack/1055/
Launched full Stack test tier: https://ci.wazuh.info/job/Test_stack_tier/97/ :green_circle:
Wazuh installation assistant :green_circle:
LGTM!
Description
It is necessary to adapt the Wazuh dashboard to version 2.10.0 of OpenSearch Dashboards Request: https://github.com/wazuh/internal-devel-requests/issues/301
Tasks
Validation
Working branch