Application upgrade failing with error values.networkPolicy: Not a list

path

Dabbler
Joined
Jul 5, 2013
Messages
46
I recently upgraded my truenas scale to TrueNAS-SCALE-22.02.4. I think I was on 22.02.2 but I'm not sure and I dont know how to check anymore. Ever since that upgrade, many of my apps can no longer be upgraded and give me this error.

Screen Shot 2022-10-11 at 21.07.39.png
 

pixelwave

Contributor
Joined
Jan 26, 2022
Messages
174
Encountered the same error today (TrueNAS-SCALE-22.02.4) trying to update jdownloader2 (truecharts).

Bildschirmfoto 2022-11-02 um 07.53.33.png


All other apps work.
 

pixelwave

Contributor
Joined
Jan 26, 2022
Messages
174
I recently upgraded my truenas scale to TrueNAS-SCALE-22.02.4. I think I was on 22.02.2 but I'm not sure and I dont know how to check anymore. Ever since that upgrade, many of my apps can no longer be upgraded and give me this error.

View attachment 59063
Can you check whether this error only affects TrueCharts apps on your system or also official Docker Hub container?

What I did ... I replaced the TrueCharts container (jdownloader2) with a official Docker Hub container (jlesage/jdownloader-2).

This one works fine and is up-to-date.

Recently I moved most of my containers away from TrueCharts to official Docker Hub. Too much stuff seems to break and also I noticed (for example Home Assistant) with TrueCharts you do not always get the newest update .. they are a few days behind.
 

path

Dabbler
Joined
Jul 5, 2013
Messages
46
Can you check whether this error only affects TrueCharts apps on your system or also official Docker Hub container?
Yes, I too discovered that this was an issue with truecharts. It was a breaking change and there was no upgrade path anymore. Their advice was for me to mount the storage, backup the data, uninstall and reinstall the application and then restore the data after mounting the storage. I did do this, but it was an annoying amount of work.
 

pixelwave

Contributor
Joined
Jan 26, 2022
Messages
174
I can only recommend going with the official Docker Hub container (https://hub.docker.com/) and ditch TrueCharts. Not a single issue so far, always the latest upgrades available, zero breaks and honestly not really that much more difficult to set up. And I am quite a novice when it comes to that stuff.

Usually you just need to put in the timezone variable (TZ) manually, set container port to a 9000+ port and assign local host path volumes.

The last app I moved yesterday was resilio-sync. Worked like a charm ...

Bildschirm­foto 2022-11-03 um 08.29.48.png
 

Jonae

Cadet
Joined
Feb 22, 2022
Messages
8
I have the same issue, is there a solution yet? Only TrueCharts apps not update-ing.
 

pixelwave

Contributor
Joined
Jan 26, 2022
Messages
174
I have the same issue, is there a solution yet? Only TrueCharts apps not update-ing.
I can only underline and repeat my recommendation - switch to Docker Hub "official" apps. No issues, faster, more current updates and not really that much more complicated to set-up.
 

Jonae

Cadet
Joined
Feb 22, 2022
Messages
8
I can only underline and repeat my recommendation - switch to Docker Hub "official" apps. No issues, faster, more current updates and not really that much more complicated to set-up.
I understand you, but now to reinstall and reconfigure 50 apps it is a little ...
 

pixelwave

Contributor
Joined
Jan 26, 2022
Messages
174
Totally understand the pain ... and I am thankful that I am still in the early phase with an oversee-able number of apps.

But I look at it is way ... originally I switched from Synology to TrueNAS because I also wanted to get aways from too much proprietary apps and setups.

It was for me now a one-time pain (although with much fewer apps) but in the future at least I am not dependant on the Truecharts ecosystem anymore. Issues like those can not happen again ... and I can rather rely on the more widespread docker containers.

Eventually I also plan to move away from the kubernetes/truenas system with the next server upgrade going full proxmox or similar. But that is 3-4 years down the road. But for now I stick with the Docker Hub ecosystem which is also then familiar when I migrate to proxmox or other systems...
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
To be clear:
We're not even active here that much, let alone help people here. So reporting issues reporting here, almost never get attention of our staff members that should know how to work through your issues.

So please just reach out to us directly if you've any issues, so our staff can work you through it.

You shouldn't have been using networkPolicies at all, so the issue should never have happened.
If you where not and where getting this error, please do reach out.

When it comes to containers:
We use the same official containers (often from dockerhub) and have just sped-up the update pipeline significantly as well :)
Funny fact: if you got above error, you're, at the very least, months outdated... So the comment about update speed seems a bit of a troll ;-)

However, a SCALE App, is not the same as a simply "launch docker" app, there is a LOT more work going into our Apps that you might be less aware off. For very-simple applications, like jdownloader, though, the benefids of dedicated dockerapps are minimal. So Launch-docker deployments are totally understandable :)

if you're using TrueTool for updating, any breakage should automatically revert and we always have staff available on discord to help you guys through any issues encountered.
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
I have the same issue, is there a solution yet? Only TrueCharts apps not update-ing.
TLDR: Please file a support ticket with our dedicated support staff on discord, they're simply not here ;-)
 

pixelwave

Contributor
Joined
Jan 26, 2022
Messages
174
Funny fact: if you got above error, you're, at the very least, months outdated... So the comment about update speed seems a bit of a troll ;-)

No ... jdownloader-2 and resilio-sync just happened to be my last apps still running via TrueCharts and those I did not update that frequently but definetly once a month.

With home-assistant and others I switched already a few months ago - at that time there still was the issue of truecharts lacking behind in update speed. If that has been improved - good.

But I still prefer to remove as much middleware as possible.

Maybe I am only using "simple apps". I have yet to encounter an app that is better to be installed using truecharts.

The whole kubernetes endeavor is overkill for me anyways but for now I stick with a single TrueNAS Scale Server until splitting the NAS part off in the future...
 
Last edited:

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
No ... jdownloader-2 and resilio-sync just happened to be my last apps still running via TrueCharts and those I did not update that frequently but definetly once a month.

The issue with networkPolicies, is interesting and something we should note. Basically we removed it to ensure users wouldn't get your issue and (re)added it months later. We'll look into what we can do to prevent that in the future :)

With home-assistant and others I switched already a few months ago - at that time there still was the issue of truecharts lacking behind in update speed. If that has been improved - good.

The upgrade speed is still like 1 or 2 days, but it should generally not be much more. Assuming a project keeps decent semver or calver versions (or cases where we wrote a custom updater). It took a little longer previously, because we where forced to bundle all the daily container updates, which meant multiple got stuck if one updates was crooked.

Currently we resolved that by writhing a custom pipeline for this, instead of relying on aftermarket tools.

However, we always where one of the fastest upgrading projects out there.

But I still prefer to remove as much middleware as possible.

Technically TrueCharts and "Launch Docker" (which is actually just an iX App) where precisely the same in terms of the amount of middleware. But at least simple apps should never have given much issues at all on either :)


Maybe I am only using "simple apps". I have yet to encounter an app that is better to be installed using truecharts.

Complex Apps with multiple layers of dependencies and/or relatively complicated reverse-proxy requirements and/or when wanting to use ingress.

Most importantly:
- Vaultwarden
- Nextcloud

Or Apps that require access to ports < 9000 without hostNetworking, such as:
- any DNS App.

To be fair: There is a usecase for each and every App design, but Launch Docker is definately too simplistic for any reasonable semi-production workloads involving more complicated applications.

The whole kubernetes endeavor is overkill for me anyways but for now I stick with a single TrueNAS Scale Server until splitting the NAS part off in the future...

I think this is the primary problem to note:
SCALE is mostly aimed at enthousiast home-users and/or people with future(!) intentions to run it in production.
 

Jonae

Cadet
Joined
Feb 22, 2022
Messages
8
the solution:

If you get the following error: 'invalid choice "simplePVC"' or 'invalid choice "simpleHostpath"' Please do the following prior to updating: - Set all storage to "PVC or "Hostpath" respectively - In case of PVC: enter "999Gi" as size setting
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
the solution:

If you get the following error: 'invalid choice "simplePVC"' or 'invalid choice "simpleHostpath"' Please do the following prior to updating: - Set all storage to "PVC or "Hostpath" respectively - In case of PVC: enter "999Gi" as size setting

Please be sure to actually describe your issue next time though...
" Only TrueCharts apps not update-ing."
is so vague it could literally be 99 different causes ;-)
 

mabearce1

Dabbler
Joined
May 13, 2021
Messages
18
I can only recommend going with the official Docker Hub container (https://hub.docker.com/) and ditch TrueCharts. Not a single issue so far, always the latest upgrades available, zero breaks and honestly not really that much more difficult to set up. And I am quite a novice when it comes to that stuff.

Usually you just need to put in the timezone variable (TZ) manually, set container port to a 9000+ port and assign local host path volumes.

The last app I moved yesterday was resilio-sync. Worked like a charm ...

View attachment 59642
do you have a write up on this. I have tried many a times to try and manually use a docker...no luck!

My Plex and Nextcloud are official...but I use Minecraft bedrock and Kuma Uptime from Truecharts...and no update --- id be more than willing to put in the effort on it, but I have spent time and no luck! thanks
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
do you have a write up on this. I have tried many a times to try and manually use a docker...no luck!

My Plex and Nextcloud are official...but I use Minecraft bedrock and Kuma Uptime from Truecharts...and no update --- id be more than willing to put in the effort on it, but I have spent time and no luck! thanks

The lack of updates is currently intended and updates will resume like normal (completely automated) 01-05-2023 or earlier, as we're currently in code freeze due to deploying a completely rewrite of all our Apps.
 

mabearce1

Dabbler
Joined
May 13, 2021
Messages
18
The lack of updates is currently intended and updates will resume like normal (completely automated) 01-05-2023 or earlier, as we're currently in code freeze due to deploying a completely rewrite of all our Apps.
okay so just hold off on them for half a month...and TrueCharts will work again?
 
Top