Timezone incorrect - can no longer update / install apps

Truenas auto updated, andits now decided it no longer likes my timezone
TrueNAS-SCALE-23.10.2

I can’t change the tz setting in localization.

Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 427, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 465, in __run_body
    rv = await self.method(*([self] + args))
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 177, in nf
    return await func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 44, in nf
    res = await f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/upgrade.py", line 115, in upgrade
    await self.upgrade_chart_release(job, release, options)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/upgrade.py", line 265, in upgrade_chart_release
    config, context = await self.middleware.call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1399, in call
    return await self._call(
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1342, in _call
    return await methodobj(*prepared_call.args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 339, in normalise_and_validate_values
    dict_obj = await self.middleware.call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1399, in call
    return await self._call(
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1342, in _call
    return await methodobj(*prepared_call.args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/validation.py", line 54, in validate_values
    verrors.check()
  File "/usr/lib/python3/dist-packages/middlewared/service_exception.py", line 70, in check
    raise self
middlewared.service_exception.ValidationErrors: [EINVAL] values.TZ: Invalid choice: America/Puerto_Rico

I checked tz and America/Puerto_Rico is right.

Same Issue, with America/Chicago and America/New_York.

I still have no idea how to fix this :frowning:

Are you still on TrueNAS-SCALE-23.10.2?
Is your hardware clock set to UTC (changed from GMT)

You may need to upgrade to a newer version if there were timezone file updates.

ElectricEel-24.10.2.2 is the oldest version I have a VM in Virtualbox to test with.

Checking to see if this section of the Documentation covers the issue.

I upgraded, then downgraded and it seems to have somehow fixed the issue. Its UTC. I’m on 23.10.2, I’d upgrade but all my apps disappear and I don’t have the time to debug that atm…

1 Like

Your TrueNAS version is so far out of date that you no longer have a way to update the apps. Even updating one major version at a time will not get you there anymore, that window closed at the start of June.

If you want to update to 24.10 or 25.04 you will need to remake your apps.
If you didn’t make any big mistakes when you set your apps storage up you can reuse host paths used after transitioning to a current version, but the app itself will need to be installed anew since your kubernetes based apps have been deprecated. Docker is the new apps subsystem.