Uninstall app (Komga) unsuccessful due to IPv6 error
Solved
Support
-
Servus,
when trying to uninstall an app (in this case Komga) I get the following error in the console:
External Error: Unable to detect IPv6. API server (ipv6.api.cloudron.io) unreachable
Cloudron is running on a Hetzner VM with default settings. Any idea how to approach this?
Here are the latest logs from the box:
Mar 21 06:19:35 box:taskworker Starting task 110. Logs are at /home/yellowtent/platformdata/logs/2c7ed3c1-2ea3-4994-9fe9-2b833ea0765c/apptask.log Mar 21 06:19:35 box:taskworker Running task of type app Mar 21 06:19:35 box:apptask run: startTask installationState: pending_uninstall runState: running Mar 21 06:19:35 box:tasks update 110: {"percent":20,"message":"Deleting container"} Mar 21 06:19:35 box:shell reverseproxy /usr/bin/sudo -S /home/yellowtent/box/src/scripts/restartservice.sh nginx Mar 21 06:19:35 box:shell 2025/03/21 05:19:35 [notice] 1008907#1008907: signal process started Mar 21 06:19:35 box:apptask deleteContainer: deleting app containers (app, scheduler) Mar 21 06:19:35 box:shell apptask /usr/bin/sudo -S /home/yellowtent/box/src/scripts/configurelogrotate.sh remove 2c7ed3c1-2ea3-4994-9fe9-2b833ea0765c Mar 21 06:19:35 box:tasks update 110: {"percent":30,"message":"Teardown addons"} Mar 21 06:19:35 box:services teardownAddons: Tearing down ["localstorage","oidc"] Mar 21 06:19:35 box:services teardownAddons: Tearing down addon localstorage with options {"sqlite":{"paths":["/app/data/komga/database.sqlite","/app/data/komga/tasks.sqlite"]},"ftp":{"uid":1000,"uname":"cloudron"}} Mar 21 06:19:35 box:services teardownLocalStorage Mar 21 06:19:35 box:shell services /usr/bin/sudo -S /home/yellowtent/box/src/scripts/clearvolume.sh rmdir /home/yellowtent/appsdata/2c7ed3c1-2ea3-4994-9fe9-2b833ea0765c/data Mar 21 06:19:35 box:shell : No such file or directory Mar 21 06:19:35 box:shell rmdir: failed to remove '/home/yellowtent/appsdata/2c7ed3c1-2ea3-4994-9fe9-2b833ea0765c/data' Mar 21 06:19:35 box:services Tearing down OpenID connect Mar 21 06:19:35 box:services teardownAddons: Tearing down addon oidc with options {"loginRedirectUri":"/login/oauth2/code/cloudron"} Mar 21 06:19:35 box:tasks update 110: {"percent":40,"message":"Cleanup file manager"} Mar 21 06:19:35 box:tasks update 110: {"percent":50,"message":"Deleting app data directory"} Mar 21 06:19:35 box:tasks update 110: {"percent":60,"message":"Deleting image"} Mar 21 06:19:35 box:docker deleteImage: removing cloudron/org.komga.cloudronapp:202503120856450000 Mar 21 06:19:35 box:tasks update 110: {"percent":70,"message":"Unregistering domains"} Mar 21 06:19:35 box:network/generic getIPv4: querying ipv4.api.cloudron.io to get server IPv4 Mar 21 06:19:35 box:network/generic getIPv6: querying ipv6.api.cloudron.io to get server IPv6 Mar 21 06:21:06 box:network/generic getIPv6: Error getting IP. Error: Timeout of 30000ms exceeded at RequestBase._timeoutError (/home/yellowtent/box/node_modules/superagent/lib/request-base.js:712:17) at Timeout.<anonymous> (/home/yellowtent/box/node_modules/superagent/lib/request-base.js:727:12) at listOnTimeout (node:internal/timers:581:17) at process.processTimers (node:internal/timers:519:7) { timeout: 30000, code: 'ECONNABORTED', errno: 'ETIME', response: undefined, retries: 2 } Mar 21 06:21:06 box:apptask run: app error for state pending_uninstall: BoxError: Unable to detect IPv6. API server (ipv6.api.cloudron.io) unreachable at Object.getIPv6 (/home/yellowtent/box/src/network/generic.js:74:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.getIPv6 (/home/yellowtent/box/src/network.js:162:20) at async Object.unregisterLocations (/home/yellowtent/box/src/dns.js:312:18) at async uninstall (/home/yellowtent/box/src/apptask.js:777:5) { reason: 'External Error', details: {} } Mar 21 06:21:06 box:tasks setCompleted - 110: {"result":null,"error":{"stack":"BoxError: Unable to detect IPv6. API server (ipv6.api.cloudron.io) unreachable\n at Object.getIPv6 (/home/yellowtent/box/src/network/generic.js:74:15)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Object.getIPv6 (/home/yellowtent/box/src/network.js:162:20)\n at async Object.unregisterLocations (/home/yellowtent/box/src/dns.js:312:18)\n at async uninstall (/home/yellowtent/box/src/apptask.js:777:5)","name":"BoxError","reason":"External Error","details":{},"message":"Unable to detect IPv6. API server (ipv6.api.cloudron.io) unreachable"}} Mar 21 06:21:06 box:taskworker Task took 90.895 seconds Mar 21 06:21:06 box:tasks update 110: {"percent":100,"result":null,"error":{"stack":"BoxError: Unable to detect IPv6. API server (ipv6.api.cloudron.io) unreachable\n at Object.getIPv6 (/home/yellowtent/box/src/network/generic.js:74:15)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Object.getIPv6 (/home/yellowtent/box/src/network.js:162:20)\n at async Object.unregisterLocations (/home/yellowtent/box/src/dns.js:312:18)\n at async uninstall (/home/yellowtent/box/src/apptask.js:777:5)","name":"BoxError","reason":"External Error","details":{},"message":"Unable to detect IPv6. API server (ipv6.api.cloudron.io) unreachable"}} Mar 21 06:21:06 BoxError: Unable to detect IPv6. API server (ipv6.api.cloudron.io) unreachable Mar 21 06:21:06 BoxError: Unable to detect IPv6. API server (ipv6.api.cloudron.io) unreachable Mar 21 06:21:06 BoxError: Unable to detect IPv6. API server (ipv6.api.cloudron.io) unreachable
-
@perelin for a start, you can disable IPv6 on Cloudron side (Network -> IPv6 -> Disable) . This will let you uninstall Komga.
Next, the IPv6 is enabled on Hetzner but the VM is probably not configured correctly to use the IPv6. You can run this on the server:
curl -6 https://ipv6.api.cloudron.io/api/v1/helper/public_ip
If the above does not work (i.e it doesn't print the IPv6), then it's a VM configuration issue. Maybe hetzner has articles on how to configure IPv6 on the server.
-
-