Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate why CI fails in Ubuntu 24.04 #602

Closed
thatfiredev opened this issue Jan 20, 2025 · 3 comments · Fixed by #606
Closed

Investigate why CI fails in Ubuntu 24.04 #602

thatfiredev opened this issue Jan 20, 2025 · 3 comments · Fixed by #606
Assignees

Comments

@thatfiredev
Copy link
Member

Most of our GitHub Actions have started failing recently with:

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':admob:app:validateSigningDebug'.
java.io.IOException: Unable to create debug keystore in /home/runner/.config/.android because it is not writable.
138 actionable tasks: 86 executed, 13 from cache, 39 up-to-date

Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 3m 46s
Error: Process completed with exit code 1.

Not entirely sure why, but I'm guessing something changed in GitHub Actions recently.

@thatfiredev
Copy link
Member Author

This seems to be due to Ubuntu 24.04 becoming the new default runner (instead of 22.04 - see actions/runner-images#10636). But I don't see anything in those breaking changes that could potentially cause this error.

However, some folks have noticed that 24.04 adds an extra .config directory to certain paths.

I didn't have the time to investigate this further, so I have just pinned the Ubuntu version to 22.04 for now. (#603)

I'll keep this issue open until we find a fix that lets us use Ubuntu 24.04

@thatfiredev thatfiredev changed the title Investigate why CI keeps failing with error "Unable to create debug keystore" Investigate why CI fails in Ubuntu 24.04 Jan 20, 2025
@kikoso
Copy link

kikoso commented Jan 29, 2025

Did you manage to find out why this is failing? We are experiencing the same in another repo.

@thatfiredev
Copy link
Member Author

@kikoso I'm not entirely sure, but it seems to be working again (as seen in #606) so it was probably a bug in the GitHub Actions image or one of its included tools.

My last failing build was using Ubuntu 24.04 version 20250120.5.0, and #606 uses Ubuntu 24.04 version 20250126.1.0.
Upon diffing the 2 I noticed that those tools were changed:

  • Gradle 8.12 -> 8.12.1
  • Android SDK Build Tools 35.0.1 (added)

Not sure if they were the root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants