apx icon indicating copy to clipboard operation
apx copied to clipboard

Changing system timezone breaks container

Open BrianWClausen opened this issue 2 years ago • 6 comments

I changed the system timezone on my fresh VanillaOS install and was no longer able to enter the default container, being met with the following message.

Error: OCI runtime error: unable to start container "8a99d8ffdf38fba65f173f069bc0adb567edac94037f0525dfaecc3b6176ce8f": mount /etc/localtime to /etc/localtime: Not a directory

BrianWClausen avatar Jan 31 '23 20:01 BrianWClausen

I have the same problem after changing the time.

"error creating container: exit status 1"

I don't know how to resolve this.

diogopessoa avatar Feb 02 '23 12:02 diogopessoa

I fixed it with a simple apx init. Then just agree with y and it would work again. -> that might damage installed software.

Maybe that should be triggered automatically in a save way.

Pamalosebi avatar Feb 04 '23 20:02 Pamalosebi

I just tried your suggestion. It does make the container work again, but it does so by re-initializing it, deleting all installed packages, changes etc. in the process. I don't think it should be used as a fix, but rather as a last resort if we can't find a better solution.

BrianWClausen avatar Feb 04 '23 22:02 BrianWClausen

I would like to add that after reinitializing the container, I tried to reproduce the error by changing the system time/timezone, but to no avail. Maybe the problem only presents itself if the wrong timezone is chosen during install?

BrianWClausen avatar Feb 04 '23 23:02 BrianWClausen

I had the same problem, this re-init worked But... I almost 100% sure I choose the correct timezone on install, but after some time I saw that the time was wrong and changed to my TZ, and this happened, I'm not sure, but the only thing I did that is (really faaaaaaar) near to time is change the time settings to show weekdays in Gnome Tweaks

Pliavi avatar Feb 05 '23 00:02 Pliavi

I had the same problem, this re-init worked But... I almost 100% sure I choose the correct timezone on install, but after some time I saw that the time was wrong and changed to my TZ, and this happened, I'm not sure, but the only thing I did that is (really faaaaaaar) near to time is change the time settings to show weekdays in Gnome Tweaks

Strange, this was my experience as well. I was sure I had picked the correct timezone on install, but later on I discovered the clock was wrong so I thought I had made a mistake and corrected the timezone. That's when the container stopped working. Maybe this is a problem with the install process in Vanilla and not related to apx?

BrianWClausen avatar Feb 05 '23 10:02 BrianWClausen