meonkeys / shb

Source code for an awesome book about self-hosting.
https://selfhostbook.com
GNU Affero General Public License v3.0
39 stars 2 forks source link

"Failed to set time zone: Invalid or not installed time zone 'Zulu'" #3

Closed a-w-1806 closed 1 week ago

a-w-1806 commented 1 week ago

It seems like it is not a valid default value.

fatal: [mario_server]: FAILED! => {"changed": true, "cmd": ["timedatectl", "set-timezone", "Zulu"], "delta": "0:00:00.032956", "end": "2024-06-26 00:11:34.900010", "msg": "non-zero return code", "rc": 1, "start": "2024-06-26 00:11:34.867054", "stderr": "Failed to set time zone: Invalid or not installed time zone 'Zulu'", "stderr_lines": ["Failed to set time zone: Invalid or not installed time zone 'Zulu'"], "stdout": "", "stdout_lines": []}

FYI, it takes about 18 mins for me to reach and fail at this step. I am running on macOS with a VM.

meonkeys commented 1 week ago

Good catch! Thank you. Yes, that should be Etc/Zulu. I'll fix and push.

FYI, it takes about 18 mins for me to reach and fail at this step.

That feels like a really long time. Does the VM have sufficient compute, memory, and disk allocated?

a-w-1806 commented 1 week ago

I am on a M2 Mac Mini and I have 2 cores and 4GB for the VM. Sounds like should be enough for getting started?

a-w-1806 commented 1 week ago

I can confirm that, after I realize this https://github.com/meonkeys/shb/issues/4#issuecomment-2190450282 I just start from fresh VM and it can complete within like 6 minutes.

meonkeys commented 1 week ago

I am on a M2 Mac Mini and I have 2 cores and 4GB for the VM. Sounds like should be enough for getting started?

Sounds like plenty of resources, yep. I'm wondering if that slowdown is an architecture mismatch? M2 uses the arm instruction set, so we should make sure you're all matched up there. Again, I'm not an expert here, just guessing:

You may have to reinstall the OS but it will be worth it if it gets your 6-18min provision down to 5-15 sec.

a-w-1806 commented 1 week ago

Yep on M2 we have to use ARM build of Ubuntu server or VMWare won't install it.

meonkeys commented 1 week ago

I moved the performance issue to #5