Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

qba

Members
  • Joined

  • Last visited

  1. I had an issue with the plugin: updating non existing containers (cached), Fixed the issue with Cursor, here is the gist of it hope it will help. Issue Summary The CA Update Applications plugin continues to track and report updates for Docker containers/images that no longer exist in Docker. Root CauseThe issue is in the Dynamix Docker Manager plugin's cache system, which the CA Update Applications plugin relies on. Cache File Locationtext /usr/local/emhttp/state/plugins/dynamix.docker.manager/docker.json ProblemWhen containers are removed from Docker, the cache file (docker.json) is not automatically cleaned The DockerTemplates->getAllInfo() function reads from this cached JSON file CA Update Applications plugin calls getAllInfo() and displays all entries, including orphaned ones This causes the plugin to show update notifications for containers that don't exist Code FlowCA Update Applications plugin calls: DockerTemplates->getAllInfo() getAllInfo() function (in /usr/local/emhttp/plugins/dynamix.docker.manager/include/DockerClient.php) reads from the cached JSON file The cache file is populated by DockerClient->getDockerContainers() but never validated against actual Docker containers When containers are removed, the cache entries remain Affected Containers (Example)In this case, 10 GitLab Runner containers were affected: runner-ray-8hamr-project-1-concurrent-0-75caaa08324d5ae3-build runner-ray-8hamr-project-1-concurrent-0-75caaa08324d5ae3-docker-0 runner-ray-8hamr-project-1-concurrent-0-75caaa08324d5ae3-predefined vibrant_chatterjee runner-ray-8hamr-project-1-concurrent-0-ba175883e44aa7ce-postgres-0 bold_goodall runner-ray-8hamr-project-1-concurrent-0-18cf7434f7c65279-build runner-ray-8hamr-project-1-concurrent-0-18cf7434f7c65279-docker-0 runner-ray-8hamr-project-1-concurrent-0-18cf7434f7c65279-predefined sharp_galileo Suggested FixThe getAllInfo() function should: Validate cached entries - Check that each cached container entry still exists in Docker before returning it Auto-cleanup - Remove entries from cache when containers no longer exist Cache invalidation - Implement a mechanism to detect when containers are removed and invalidate/update the cache accordingly Implementation SuggestionIn DockerClient.php, the getAllInfo() function should: After loading from cache, cross-reference with getDockerContainers() Remove any cached entries that don't exist in the current Docker container list Save the cleaned cache back to disk WorkaroundManually remove orphaned entries from the cache file: bash # Backup first cp /usr/local/emhttp/state/plugins/dynamix.docker.manager/docker.json /usr/local/emhttp/state/plugins/dynamix.docker.manager/docker.json.backup # Remove orphaned entries (using PHP) php -r "\$data = json_decode(file_get_contents('/usr/local/emhttp/state/plugins/dynamix.docker.manager/docker.json'), true); \$current = []; exec('docker ps -a --format \"{{.Names}}\"', \$current); \$current = array_map('trim', \$current); foreach(\$data as \$key => \$value) { if(!in_array(\$key, \$current)) { unset(\$data[\$key]); } } file_put_contents('/usr/local/emhttp/state/plugins/dynamix.docker.manager/docker.json', json_encode(\$data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));" Plugin VersionsCA Update Applications: 2024.03.17 (based on file timestamp) Dynamix Docker Manager: (part of Unraid core) Unraid VersionLinux 6.12.54-Unraid

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.