I submitted two builds at 2:54pm (UTC+8), the first one (iOS) passed, and the second one (Android) failed when it ran about 20 minutes later.
The second one failed due to the preinstall script that runs to set up the SSH key for access to a private git repository. This is really strange since nothing has changed in between the runs. Retrying does nothing to solve the issue.
Here’s the log of the build step:
Script 'eas-build-pre-install' is present in package.json, running it... > firstname.lastname@example.org eas-build-pre-install > ./init-ssh-key.sh npm exited with non-zero code: 1
Contents of init-ssh-key.sh:
#!/usr/bin/env bash mkdir -p ~/.ssh echo "$ssh_key" | base64 -d > ~/.ssh/id_rsa chmod 0600 ~/.ssh/id_rsa ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub ssh-keyscan bitbucket.org >> ~/.ssh/known_hosts
echo "1" in between each line of the init-ssh-key.sh file makes the step pass, but the
npm install step later just fails:
ssh: connect to host bitbucket.org port 22: Network is unreachable
Was something changed on the EAS servers? It doesn’t make sense for this to suddenly break, it has been working fine for months.
Edit: I submitted an iOS build again and it works. Android still fails. There shouldn’t be a difference between the iOS and Android builds at this point of the build stage, but somehow there is.
- Managed workflow
- eas-cli 2.1.0