Fix: Custom ZimaOS app tile opens the dashboard instead of the app

Fix: Custom ZimaOS app tile opens the dashboard instead of the app

Tested on: ZimaOS v1.8.0
Example app: Hermes Agent running on port 9119

The problem

I installed a custom Compose app on ZimaOS. The app was running correctly, and I could access its web interface directly, but clicking its dashboard tile opened the ZimaOS dashboard instead of the app.

Changing the x-casaos metadata in docker-compose.yml did not fix the tile’s launch destination.

The cause

ZimaOS stores dashboard tile settings separately from the installed-app metadata.

The relevant database is:

/var/lib/casaos/db/user.db

The table is:

dashboard_resource_configs

Its launch-related fields include:

  • ingress_scheme

  • ingress_hostname

  • ingress_port

  • ingress_index

In my case, the app’s destination fields were incomplete.

The fix — ZimaOS terminal only

1. Find the app’s resource ID.

For example, my custom app ID was:

zimaapp://v2app/custom__jfe28r94

2. Inspect the existing dashboard configuration:

sudo sqlite3 -header -column /var/lib/casaos/db/user.db \
"SELECT user_id,resource_unapp_id,display_name,ingress_url,ingress_scheme,ingress_hostname,ingress_port,ingress_index FROM dashboard_resource_configs WHERE resource_unapp_id LIKE '%custom__jfe28r94%';"

3. Back up the database and update the app’s destination.

Replace the resource ID, hostname, and port with your own values:

sudo sqlite3 /var/lib/casaos/db/user.db <<'SQL'
.backup /var/lib/casaos/db/user.db.bak

UPDATE dashboard_resource_configs
SET display_name = 'Hermes',
    ingress_scheme = 'http',
    ingress_hostname = '192.168.1.140',
    ingress_port = '9119',
    ingress_index = '/',
    updated_at = CURRENT_TIMESTAMP
WHERE user_id = 1
  AND resource_unapp_id = 'zimaapp://v2app/custom__jfe28r94';

SELECT changes() AS rows_updated;
SQL

A result of 1 means one matching dashboard configuration was updated.

4. Refresh the ZimaOS dashboard and click the app tile again.

In my case, the tile then opened:

http://192.168.1.140:9119/

No reinstall or Hermes container restart was required.

Important notes

  • Back up user.db before making changes.

  • Use your own app’s resource ID, hostname, port, and URL path.

  • The example uses user_id = 1; check your own database if your user ID differs.

  • This workaround was tested on ZimaOS v1.8.0. Database behavior may differ in other releases.

Hopefully this saves someone else the time spent tracking down why a running custom app’s dashboard tile opens the wrong page.