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

fix Gradle permission errors during build #10339

Merged
merged 1 commit into from
Apr 16, 2020
Merged

Conversation

jakubgs
Copy link
Member

@jakubgs jakubgs commented Apr 15, 2020

This is a fix for the failure of local builds due to:

Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
Could not create service of type FileHasher using BuildSessionScopeServices.createFileSnapshotter().

By adding --stracktrace to gradle in Nix you can see the actual error:

Caused by: org.gradle.api.UncheckedIOException:
  Failed to create parent directory '/build/project/android/.gradle/5.6.4'
  when creating directory '/build/project/android/.gradle/5.6.4/fileHashes'

Which is caused by lack of write permissions on .gradle folder in the build diretory.

@status-github-bot
Copy link

Pull Request Checklist

  • Docs: Updated the documentation, if affected
  • Docs: Added or updated inline comments explaining intention of the code
  • Tests: Ensured that all new UI elements have been assigned accessibility IDs
  • Tests: Signaled need for E2E tests with label, if applicable
  • Tests: Briefly described what was tested and what platforms were used
  • UI: In case of UI changes, ensured that UI matches Figma
  • UI: In case of UI changes, requested review from a Core UI designer
  • UI: In case of UI changes, included screenshots of implementation

@status-github-bot status-github-bot bot added this to REVIEW in Pipeline for QA Apr 15, 2020
@status-im-auto
Copy link
Member

status-im-auto commented Apr 15, 2020

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ f24abbd #1 2020-04-15 16:05:34 ~9 min android 📦apk 📲
✔️ f24abbd #1 2020-04-15 16:06:35 ~10 min ios 📦ipa 📲
✔️ f24abbd #1 2020-04-15 16:10:25 ~14 min android-e2e 📦apk 📲

Copy link
Contributor

@Ferossgp Ferossgp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💪

Specifically:
org.gradle.internal.service.ServiceCreationException: Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
Caused by: org.gradle.api.UncheckedIOException: Failed to create parent directory '/build/project/android/.gradle/5.6.4' when creating directory '/build/project/android/.gradle/5.6.4/fileHashes'

Signed-off-by: Jakub Sokołowski <jakub@status.im>
@jakubgs jakubgs merged commit ae411a4 into develop Apr 16, 2020
Pipeline for QA automation moved this from REVIEW to DONE Apr 16, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix/gradle-perm-errors branch April 16, 2020 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants