Skip to content

Files removed from an app's listing stay in its folder on update, so a stale compose file can keep running the old version #595

Closed

Description

@nixfred

What happens

copyListing() (omarchyd/apps.mjs line 1421) copies the new listing over the existing app folder on update, but never deletes files that the new listing no longer has. placeApp() (line 1475) then picks the compose file with readYaml(dir, COMPOSE_FILES) (line 1480), where the order is ['omarchy-compose.yml', 'docker-compose.yml'] (line 40).

If version 1 of an app shipped omarchy-compose.yml and version 2 ships only docker-compose.yml (a rename, or dropping the Omarchy-specific file), the old omarchy-compose.yml stays in the installed folder and wins. The update "succeeds", the app shows the new version, and the new compose file (new image, new ports, new services) is never used. A removed exports.sh has the same problem: runExports (line 1196) runs whatever exports.sh is in the app folder.

How to reproduce

I drove the real omarchyd in-process (as test/apps.test.mjs does) with a scripted docker-compose and a file:// store. Version 1 has omarchy-compose.yml (image img:one). Install, then commit version 2 that deletes that file and adds docker-compose.yml with img:two, appStore.refresh, apps.update:

apps.list version: 2     compose.omarchy.yml: image: img:one

Expected image: img:two.

Suggested fix

On update, remove files from the app folder that were part of the old listing and are missing from the new one (outside the app's data folders), or at least remove the stale omarchy-compose.yml, docker-compose.yml, exports.sh before reading them.

Environment

Omarchy Server main (6aa7f7d, 0.9.52), Node 26.

Activity

  1. calledtoconstruct commented on Nov 21, 2026

    @calledtoconstruct
    Collaborator

    Working to resolve this.

    No open pull request references this issue, and no one has commented that they are working on it.

    #870, #136, #593, #743, #789, #739, #764, #132, and #681 share the app installer with this and will land in one pull request.

    🤖 Generated with Grok 4.7

  2. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Thank you @nixfred. An update removes a compose file or exports.sh the new listing dropped, and leaves files in the app data folder. This is on main in #874.

    🤖 Generated with Grok 4.7

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions