Skip to content

[Bug] Apps in app directory not available in UI in version 7.2.0 #3043

Closed

Description

@sdamm4z

Describe the bug

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.

Affected apps include:

  • draw.io v2.0.0
  • External Sites v2.0.0
  • Unzip v2.0.1

Activity

  1. DasCarstel commented on Jun 29, 2026

    @DasCarstel

    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.
    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
    

    Fix (one line):

    -{ name: remoteUrl, entry: remoteUrl, type: 'module' }
    +{ name: remoteUrl, entry: remoteUrl, type: 'esm' }

    Why built-in apps work: They use loadScriptDynamicImport via window.WEB_APPS_MAP, not Module Federation at all.

  2. micbar commented on Jun 29, 2026

    @micbar
    Member
  3. JammingBen commented on Jun 29, 2026

    @JammingBen
    Member

    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.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.

    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.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?

  4. sdamm4z commented on Jun 29, 2026

    @sdamm4z
    Author

    @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:

    {"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’s UID:GID, and the app directory is currently set to chmod 777.

  5. DasCarstel commented on Jun 29, 2026

    @DasCarstel

    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:

    1. Apps listed in config.json external_apps:
    [{"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"}]
    1. Files serve 200 also with , permissions 777.
    2. Browser console still shows:
    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
    

    Environment: OpenCloud 7.2.0 (Docker), web-extensions releases: json-viewer/pastebin v2.0.0, unzip v2.0.1, presentation-viewer 2.3.0.

  6. JammingBen commented on Jun 29, 2026

    @JammingBen
    Member

    @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?

  7. sdamm4z commented on Jun 29, 2026

    @sdamm4z
    Author

    @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
    
    
  8. 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
  9. ralfbergs commented on Jun 29, 2026

    @ralfbergs

    Could you please also check the https://your-cloud.com/config.json request

    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...

  10. individual-it commented on Jun 29, 2026

    @individual-it
    Contributor

    @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

  11. sdamm4z commented on Jun 29, 2026

    @sdamm4z
    Author

    That was my problem; since disabling it, it works.

  12. JammingBen commented on Jun 30, 2026

    @JammingBen
    Member

    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.

  13. moved this from Qualification to Done in OpenCloud Team Boardon Jun 30, 2026
  14. DasCarstel commented on Jun 30, 2026

    @DasCarstel

    Thanks @JammingBen for pinpointing the issue! Removing presentation-viewer indeed resolved everything. json-viewer, pastebin, and unzip all load fine now. Appreciate the help!

  15. individual-it commented on Jun 30, 2026

    @individual-it
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions