expo / eas-cli

Fastest way to build, submit, and update iOS and Android apps
https://docs.expo.dev/eas/
MIT License
844 stars 85 forks source link

"Install dependencies" phase takes longer then expected error eas build android #2625

Open HasithaJayatilake opened 1 month ago

HasithaJayatilake commented 1 month ago

Build/Submit details page URL

https://expo.dev/accounts/fill-up-today/projects/fill-up-today/builds/d2959d7b-0893-44dd-bc8f-30ea7e00dda3

Summary

Same as a previously reported (issue)[https://github.com/expo/eas-cli/issues/2493]

The build seems to fail sporadically - and we have not been able to identify a root cause. The build seems to succeed randomly with no config or dependency changes (no changes to eas.json, app.json or package.json). We have tried using a large worker as well, to no avail.

Managed or bare?

Managed

Environment

env info

expo-env-info 1.2.0 environment info: System: OS: Windows 11 10.0.22631 Binaries: Node: 18.20.4 - ~.nvm\versions\node\v18.20.4\bin\node.EXE Yarn: 1.22.22 - ~.yarn\bin\yarn.CMD npm: 10.7.0 - ~.nvm\versions\node\v18.20.4\bin\npm.CMD IDEs: Android Studio: AI-222.4459.24.2221.9971841 npmPackages: react: 18.2.0 => 18.2.0 react-dom: 18.2.0 => 18.2.0 react-native: 0.74.5 => 0.74.5 react-native-web: ~0.19.10 => 0.19.12 Expo Workflow: managed

Error output

"Install dependencies" phase takes a very long time and it did not produce any logs in the past 30 minutes. Most likely an unexpected error happened with your dependencies which caused the process to hang and it will be terminated "Install dependencies" phase was inactive for over 30 minutes. Please evaluate your package.json file

Reproducible demo or steps to reproduce from a blank project

package.json

szdziedzic commented 1 month ago

@HasithaJayatilake it seems to fail on building packages. Maybe some packages don't build properly on the new Android builders' architecture? Can you try to go to https://expo.dev/accounts/fill-up-today/projects/fill-up-today/settings and uncheck the Use the New Android Builds Infrastructure setting? I believe it can help in your case.

HasithaJayatilake commented 1 month ago

Thank you, that did the trick!

HasithaJayatilake commented 1 month ago

Sorry, spoke too soon - it worked for one build, but failed again (even on the old infrastructure). https://expo.dev/accounts/fill-up-today/projects/fill-up-today/builds/f8940914-ee2f-471f-805c-c2b8de2f0c59

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 30 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

HasithaJayatilake commented 6 days ago

Hi Team, any updates on this? Android build still intermittently fails. It doesn't affect iOS builds - which might be a clue.