truenas / charts

TrueNAS SCALE Apps Catalogs & Charts
BSD 3-Clause "New" or "Revised" License
301 stars 290 forks source link

Installed Tailscale fails to update after update to Dragonfish #2545

Closed sync-by-unito[bot] closed 4 months ago

sync-by-unito[bot] commented 4 months ago

The app that is failing to update is Tailscale (the one found in the official apps catalog) I have two different systems and both systems failed to update the app and the app had to be rolled back to the 1.66.3_1.0.39 version on both systems. The 1.66.3_1.0.39 is the version that had issues I mention in the post. https://forums.truenas.com/t/anyone-having-application-update-issues-after-upgrade-to-dragonfish-24-04-1-1/5645/2

I pulled the following from the GUI for the app.

New alerts: An update is available for “tailscale” application. tailscale 1.66.3_1.0.39 Version to be upgraded to:1.66.4_1.0.40

Name:tailscale 1.66.3_1.0.39 App Version: 1.66.3 Chart Version:1.0.39 Version to be upgraded to:1.66.4_1.0.40

Containers docker .io/tailscale/tailscale:v1.66.3 Up to date

Related Kubernetes Events 20240603 18:49:56 Back-off restarting failed container tailscale in pod tailscale-5576d7b7d7-v8hw8_ix-tailscale(e6b3ce43-dd60-4904-a166-29a18eeef9ae)

I looked at the debug file and pulled a couple lines out of the k3s_logs.txt file. It appears that a database table (dbstat) is missing and causing the update to fail. If it requires this table, then the update should include creating the table if it is missing from the database.

{quote}Jun 03 18:39:46 owen k3s[13148]: {“level”:“warn”,“ts”:“2024-06-03T18:39:46.512-0500”,“logger”:“etcd-client”,“caller”:“v3@v3.5.7-k3s1/retry_interceptor.go:62”,“msg”:“retrying of unary invoker failed”,“target”:“etcd-endpoints://0xc000851500/kine.sock”,“attempt”:0,“error”:“rpc error: code = Unknown desc = no such table: dbstat”}

Jun 03 18:39:43 owen k3s[13148]: E0603 18:39:43.456290 13148 pod_workers.go:965] “Error syncing pod, skipping” err=“failed to "StartContainer" for "tailscale" with CrashLoopBackOff: "back-off 2m40s restarting failed container=tailscale pod=tailscale-8d8ddff6-8qpkf_ix-tailscale(1ee70241-435e-4b97-953e-540cd8b40870)"” pod=“ix-tailscale/tailscale-8d8ddff6-8qpkf” podUID=1ee70241-435e-4b97-953e-540cd8b40870{quote}

sync-by-unito[bot] commented 4 months ago

➤ Bug Clerk commented:

Thank you for submitting this TrueNAS Bug Report! So that we can quickly investigate your issue, please attach a Debug file and any other information related to this issue through our secure and private upload service below. Debug files can be generated in the UI by navigating to System > Advanced > Save Debug.

https://ixsystems.atlassian.net/servicedesk/customer/portal/15/group/37/create/153

sync-by-unito[bot] commented 4 months ago

➤ Michelle Johnson commented:

Thank you for your report, Phil DeGruy!

When an app has an available update, the Installed applications screen indicates by activating/showing the Update button and adds a badge to the app. If Tailscale is not showing this Update badge or active Update button then we do not have an update for it. Are you seeing either of these indicators?

sync-by-unito[bot] commented 4 months ago

➤ Phil DeGruy commented:

Yes there is an yellow update circle with the !, and when the installed apps screen is opened there is a yellow update marker be any app that needs updating. Opening the app details will show what the app version is on and what the update version to is. the Alerts will also tell me there is an update needed as will an alert sent by email.

InfoAn update is available for "tailscale" application.2024-06-04 21:11:17 (America/Chicago)

sync-by-unito[bot] commented 4 months ago

➤ Michelle Johnson commented:

Thank you for your response, Phil DeGruy!

This issue ticket is now in the queue for review. An Engineering representative will update with further details or questions in the near future.