Mbeddable factory [embeddableFactoryId = search] already registered in Embeddables API

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Os: Ubuntu 20.04
Opensearch version: 2.18.0
Dashboard version: 2.18.0
OSX: 15.2 (24C101)
Browser: Chrome Version 132.0.6834.84 (Official Build) (arm64)

Describe the issue:
After upgrading from 2.10.0 to 2.18.0 I am presented with the error “mbeddable factory [embeddableFactoryId = search] already registered in Embeddables API.”

Version: 2.18.0
Build: 8053

Error: Embeddable factory [embeddableFactoryId = search] already registered in Embeddables API.
    at Object.registerEmbeddableFactory (https://osdashb-acc-nl1-cwc/8053/bundles/plugin/embeddable/embeddable.plugin.js:6:109169)
    at plugin_DiscoverPlugin.registerEmbeddable (https://osdashb-acc-nl1-cwc.nl1/8053/bundles/plugin/discover/discover.plugin.js:21:195992)
    at plugin_DiscoverPlugin.setup (https://osdashb-acc-nl1-cwc/8053/bundles/plugin/discover/discover.plugin.js:21:194598)
    at plugin_PluginWrapper.setup (https://osdashb-acc-nl1-cwc/8053/bundles/core/core.entry.js:15:457780)
    at async plugins_service_PluginsService.setup (https://osdashb-acc-nl1-cwc/8053/bundles/core/core.entry.js:15:462752)
    at async core_system_CoreSystem.setup (https://osdashb-acc-nl1-cwc.nl1/8053/bundles/core/core.entry.js:15:539737)
    at async Module.__osdBootstrap__ (https://osdashb-acc-nl1-cwc/8053/bundles/core/core.entry.js:15:546627)

{"type":"log","@timestamp":"2025-01-22T08:17:54Z","tags":["info","plugins","queryEnhancements"],"pid":7015,"message":"queryEnhancements: Setup complete"}
{"type":"log","@timestamp":"2025-01-22T08:17:54Z","tags":["info","plugins","securityDashboards"],"pid":7015,"message":"WreckHttpsOptions properties:\n"}
{"type":"log","@timestamp":"2025-01-22T08:17:55Z","tags":["info","dynamic-config-service"],"pid":7015,"message":"initiating start()"}
{"type":"log","@timestamp":"2025-01-22T08:17:55Z","tags":["info","dynamic-config-service"],"pid":7015,"message":"finished start()"}
{"type":"log","@timestamp":"2025-01-22T08:17:55Z","tags":["info","savedobjects-service"],"pid":7015,"message":"Waiting until all OpenSearch nodes are compatible with OpenSearch Dashboards before starting saved objects migrations..."}
{"type":"log","@timestamp":"2025-01-22T08:17:55Z","tags":["info","savedobjects-service"],"pid":7015,"message":"Starting saved objects migrations"}
{"type":"log","@timestamp":"2025-01-22T08:17:55Z","tags":["warning","cross-compatibility-service"],"pid":7015,"message":"Starting cross compatibility service"}
{"type":"log","@timestamp":"2025-01-22T08:17:55Z","tags":["info","plugins-system"],"pid":7015,"message":"Starting [54] plugins: [usageCollection,opensearchDashboardsUsageCollection,opensearchDashboardsLegacy,mapsLegacy,share,opensearchUiShared,legacyExport,embeddable,expressions,data,savedObjects,queryEnhancements,home,dashboard,visualizations,visTypeVega,visTypeTimeline,visTypeMarkdown,visTypeTable,visBuilder,visAugmenter,tileMap,regionMap,inputControlVis,ganttChartDashboards,visualize,apmOss,management,indexPatternManagement,dataSourceManagement,securityAnalyticsDashboards,reportsDashboards,searchRelevanceDashboards,mlCommonsDashboards,customImportMapDashboards,indexManagementDashboards,assistantDashboards,anomalyDetectionDashboards,alertingDashboards,notificationsDashboards,console,advancedSettings,dataExplorer,charts,visTypeVislib,visTypeTimeseries,visTypeTagcloud,visTypeMetric,discover,savedObjectsManagement,securityDashboards,observabilityDashboards,queryWorkbenchDashboards,bfetch]"}
{"type":"log","@timestamp":"2025-01-22T08:17:56Z","tags":["listening","info"],"pid":7015,"message":"Server running at http://osdashb1-acc-nl1-cwc.nl1:5601"}
{"type":"log","@timestamp":"2025-01-22T08:17:56Z","tags":["info","http","server","OpenSearchDashboards"],"pid":7015,"message":"http server running at http://osdashb1-acc-nl1-cwc.nl1:5601"}

@pjanzen Do you have any custom plugins in OpenSearch Dashboards?

No, no custom plugins. This is happening on Ubuntu 20.04. When switching to Ubuntu 22.04 the problem is gone.

@pjanzen Do you use the same Java version on both?

HI,

I use the tarball which comes with java. I have no other java environment on that box.

Paul.

@pjanzen How did you deploy the cluster? Is it container or service?

Hi,

I deploy the cluster on Ubuntu 20.04 VM’s (vmware). I download the appropriate tar balls and extract those.

Paul.

@pjanzen This means that the 2.10 and 2.18 OpenSearch Dashboards are in two different folders and have no common files. Is that correct?