ARM64 rebuild/bootstrap fail

I’m getting the following strange error on trying to rebuild/bootstrap:

I, [2024-07-01T01:51:27.741415 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
Updating files: 100% (34557/34557), done.
I, [2024-07-01T01:51:30.764498 #1]  INFO -- : HEAD is now at cada17298 FIX: Do not capture OAuth user on 2FA page (#27617)

I, [2024-07-01T01:51:30.764638 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2024-07-01T01:51:30.915386 #1]  INFO -- :
I, [2024-07-01T01:51:30.915510 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
      git remote set-branches --add origin main
      git remote set-branches origin tests-passed
      git fetch --depth 1 origin tests-passed
  else
      git fetch --tags --prune-tags --prune --force origin
  fi
'
fatal: unable to access 'https://github.com/discourse/discourse.git/': Could not resolve host: github.com

Anyone else on ARM64 get this?

I tried on x86 and it worked OK. Coming to 4am now so trying to get a sanity check from somebody.

Seems like your arm64 machine is having connectivity issues, are you able to ping github from the host machine?

1 Like

I haven’t found the route cause, but it seems to be a connectivity issue with docker. A service restart docker was a workaround. It was annoying as the rebuild worked just a few hours earlier and git pulls to github were working fine to github.

This is why you don’t do stuff at 4am and are exhausted. I should have taken 2 hours of extra sleep and worked on it again in the morning!