You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Apps in app directory not available in UI in version 7.2.0 #3043
Apps that are added to the /var/lib/opencloud/web/assets/apps directory are not visible or accessible in the UI. No error messages are shown in the UI or server console. The issue affects multiple installed apps in version 7.2.0.
Expected behavior
Apps placed in the app directory should be detected, registered, and displayed in the UI, allowing user interaction.
Actual behavior
Apps are not visible in the UI even though they are present in the app directory. No errors or warnings are logged in the console.
Root cause found: It's a Module Federation protocol mismatch in web (bundled in OpenCloud).
In packages/web-runtime/src/container/application/index.ts, the function loadScriptModuleFederation():
The host uses @module-federation/[email protected] but registers external remotes with type: 'module' (MF v2 Native ESM protocol).
External extensions are built with @module-federation/[email protected] which produces type: 'esm' format (MF v1 Enhanced ESM). Shared module resolution fails across the v1/v2 boundary. Browser console confirms:
RuntimeError: cannot load application
Error: [Module Federation] Shared module '@opencloud-eu/web-pkg' must be provided by host
Error: [Module Federation] Shared module '@opencloud-eu/web-client' must be provided by host
Error: [Module Federation] Shared module 'vue3-gettext' must be provided by host
@sdamm4z Since you don't get any errors in the browser console, that would mean OpenCloud doesn't even recognize the location of the apps. Can you please verify this by checking the request to https://your-cloud.com/config.json in your browser network tab? It happens at the very start when loading the page and should have external_apps in its response. If the key is missing, something seems wrong with your app directory or mount.
I've seen a similar report a few days ago. The user could "fix" their issue by chmoding all app folders/files. So please double check everything is correct with your app directory/mount.
@DasCarstel Your issue differs because your apps actually load, they're just incompatible with the host.
Root cause found: It's a Module Federation protocol mismatch in web (bundled in OpenCloud). In packages/web-runtime/src/container/application/index.ts, the function loadScriptModuleFederation():
federation.registerRemotes([{ name: remoteUrl, entry: remoteUrl, type: 'module' }])
The host uses @module-federation/[email protected] but registers external remotes with type: 'module' (MF v2 Native ESM protocol). External extensions are built with @module-federation/[email protected] which produces type: 'esm' format (MF v1 Enhanced ESM). Shared module resolution fails across the v1/v2 boundary.
Are you 100% sure you're running OpenCloud v7.2.0 and the latest app release? Which app we talking about specifically? Could you please also check the https://your-cloud.com/config.json request and paste the external_apps object of the response here?
@sdamm4z Since you don't get any errors in the browser console, that would mean OpenCloud doesn't even recognize the location of the apps. Can you please verify this by checking the request to https://your-cloud.com/config.json in your browser network tab? It happens at the very start when loading the page and should have external_apps in its response. If the key is missing, something seems wrong with your app directory or mount.
I've seen a similar report a few days ago. The user could "fix" their issue by chmoding all app folders/files. So please double check everything is correct with your app directory/mount.
I can successfully access /config.json, and all apps are listed there. For example, when I open the path from an entry such as:
I had already reset the permissions recursively before. For chown, I used the container’s UID:GID, and the app directory is currently set to chmod 777.
Thanks for the correction about type. You're right both 'esm' and 'module' use the same loadEsmEntry. Sometimes I get lost in the sauce. I've retested with a clean install:
RuntimeError: cannot load application
Error: [Module Federation] Shared module 'luxon' must be provided by host
Error: [Module Federation] Shared module 'vue3-gettext' must be provided by host
Error: [Module Federation] Shared module '@opencloud-eu/web-pkg' must be provided by host
@DasCarstel I think in your case, the presentation-viewer might actually be a problem. Could you try without this app? There seems to be some issue with the app build, and for whatever reason it messes with the entire module federation.
@sdamm4z Are you also using this app? I guess not, otherwise you would be seeing console errors. Kinda hard to debug this without any errors unfortunately. Maybe some other incompatible app(s)? What happens with only the unzip app and no other apps installed - still no "Extract here" action visible for zip files?
@sdamm4z Are you also using this app? I guess not, otherwise you would be seeing console errors. Kinda hard to debug this without any errors unfortunately. Maybe some other incompatible app(s)? What happens with only the unzip app and no other apps installed - still no "Extract here" action visible for zip files?
Oh.. sorry.. same errors:
RuntimeError: cannot load application...
/assets/apps/draw-io/js/remoteEntry-GuQ-Oe7q.mjs, Error: [Module Federation] Shared module '@opencloud-eu/web-client' must be provided by host
/assets/apps/external-sites/js/remoteEntry-B03UpHgM.mjs, Error: [Module Federation] Shared module '@opencloud-eu/web-client' must be provided by host
/assets/apps/maps/js/remoteEntry-lxWu31Tr.mjs, Error: [Module Federation] Shared module '@opencloud-eu/web-pkg' must be provided by host
/assets/apps/unzip/js/remoteEntry-Da3fZJv1.mjs, Error: [Module Federation] Shared module 'vue3-gettext' must be provided by host
changed the title [-][Bug] Apps in app directory not available in UI (no errors shown) in version 7.2.0[/-][+][Bug] Apps in app directory not available in UI in version 7.2.0[/+]on Jun 29, 2026
That's good to know. So there will be a fixed version of the presentation viewer. Also, we'll investigate why this broke the entire module federation for other extensions.
Since the original issue has been resolved, I'm closing here.
Thanks @JammingBen for pinpointing the issue! Removing presentation-viewer indeed resolved everything. json-viewer, pastebin, and unzip all load fine now. Appreciate the help!
Activity
DasCarstel commentedon Jun 29, 2026
Root cause found: It's a Module Federation protocol mismatch in
web(bundled in OpenCloud).In
packages/web-runtime/src/container/application/index.ts, the functionloadScriptModuleFederation():The host uses
@module-federation/[email protected]but registers external remotes withtype: 'module'(MF v2 Native ESM protocol).External extensions are built with
@module-federation/[email protected]which producestype: 'esm'format (MF v1 Enhanced ESM). Shared module resolution fails across the v1/v2 boundary.Browser console confirms:
Fix (one line):
Why built-in apps work: They use
loadScriptDynamicImportviawindow.WEB_APPS_MAP, not Module Federation at all.micbar commentedon Jun 29, 2026
@JammingBen @AlexAndBear can you help?
JammingBen commentedon Jun 29, 2026
Looks like 2 different issues to me.
@sdamm4z Since you don't get any errors in the browser console, that would mean OpenCloud doesn't even recognize the location of the apps. Can you please verify this by checking the request to
https://your-cloud.com/config.jsonin your browser network tab? It happens at the very start when loading the page and should haveexternal_appsin its response. If the key is missing, something seems wrong with your app directory or mount.I've seen a similar report a few days ago. The user could "fix" their issue by
chmoding all app folders/files. So please double check everything is correct with your app directory/mount.@DasCarstel Your issue differs because your apps actually load, they're just incompatible with the host.
This reads like some LLM Hallucination to be honest. Both types get loaded by the exact some method (see https://github.com/module-federation/core/blob/v2.3.1/packages/runtime-core/src/utils/load.ts#L183).
Are you 100% sure you're running OpenCloud
v7.2.0and the latest app release? Which app we talking about specifically? Could you please also check thehttps://your-cloud.com/config.jsonrequest and paste theexternal_appsobject of the response here?sdamm4z commentedon Jun 29, 2026
I can successfully access
/config.json, and all apps are listed there. For example, when I open the path from an entry such as:{"id":"unzip","path":"/assets/apps/unzip/js/remoteEntry-Da3fZJv1.mjs"}I also receive a valid response from that URL.
I had already reset the permissions recursively before. For
chown, I used the container’sUID:GID, and the app directory is currently set tochmod 777.DasCarstel commentedon Jun 29, 2026
Thanks for the correction about type. You're right both 'esm' and 'module' use the same loadEsmEntry. Sometimes I get lost in the sauce. I've retested with a clean install:
[{"id":"json-viewer","path":"/assets/apps/json-viewer/js/remoteEntry-C0YitXXA.mjs"}, {"id":"pastebin","path":"/assets/apps/pastebin/js/remoteEntry-BEb1nJWM.mjs"}, {"id":"unzip","path":"/assets/apps/unzip/js/remoteEntry-Da3fZJv1.mjs"}, {"id":"presentation-viewer","path":"/assets/apps/presentation-viewer/js/remoteEntry-DU96Wvpe.mjs"}]Environment: OpenCloud 7.2.0 (Docker), web-extensions releases: json-viewer/pastebin v2.0.0, unzip v2.0.1, presentation-viewer 2.3.0.
JammingBen commentedon Jun 29, 2026
@DasCarstel I think in your case, the
presentation-viewermight actually be a problem. Could you try without this app? There seems to be some issue with the app build, and for whatever reason it messes with the entire module federation.@sdamm4z Are you also using this app? I guess not, otherwise you would be seeing console errors. Kinda hard to debug this without any errors unfortunately. Maybe some other incompatible app(s)? What happens with only the unzip app and no other apps installed - still no "Extract here" action visible for zip files?
sdamm4z commentedon Jun 29, 2026
Oh.. sorry.. same errors:
[-][Bug] Apps in app directory not available in UI (no errors shown) in version 7.2.0[/-][+][Bug] Apps in app directory not available in UI in version 7.2.0[/+]ralfbergs commentedon Jun 29, 2026
Why is this URL available even without a valid session? I would call this a security risk ("information leak") -- even though it's not a big thing...
individual-it commentedon Jun 29, 2026
@JammingBen is right, deleting the markdown presentation viewer solved the problem for me. We will look into it on our side
JankariTech/web-app-presentation-viewer#143
sdamm4z commentedon Jun 29, 2026
That was my problem; since disabling it, it works.
JammingBen commentedon Jun 30, 2026
That's good to know. So there will be a fixed version of the presentation viewer. Also, we'll investigate why this broke the entire module federation for other extensions.
Since the original issue has been resolved, I'm closing here.
DasCarstel commentedon Jun 30, 2026
Thanks @JammingBen for pinpointing the issue! Removing presentation-viewer indeed resolved everything. json-viewer, pastebin, and unzip all load fine now. Appreciate the help!
individual-it commentedon Jun 30, 2026
@DasCarstel @sdamm4z fix in JankariTech/web-app-presentation-viewer#145
You can test the unreleased version by building yourself or get it from https://opencloud.in-nepal.de/s/HwHedzoxJhWGVFy