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

The snap package hangs when calling asciidoctor #11116

Closed
jmooring opened this issue Jun 15, 2023 · 5 comments · Fixed by #11125
Closed

The snap package hangs when calling asciidoctor #11116

jmooring opened this issue Jun 15, 2023 · 5 comments · Fixed by #11125

Comments

@jmooring
Copy link
Member

jmooring commented Jun 15, 2023

Introduced in #11101 due to an invalid "strict confinement" test. Transitioning to core22 bumped ruby from 2.7 to 3.0. Snap debugging indicates gemspec permission requirement that was not present with ruby 2.7:

= AppArmor =
Time: Jun 15 12:54:59
Log: apparmor="DENIED" operation="file_lock" class="file" profile="snap.hugo.hugo" name="/snap/hugo/x1/usr/lib/ruby/gems/3.0.0/specifications/default/abbrev-0.1.0.gemspec" pid=95381 comm="ruby" requested_mask="w" denied_mask="w" fsuid=1000 ouid=0
File: /snap/hugo/x1/usr/lib/ruby/gems/3.0.0/specifications/default/abbrev-0.1.0.gemspec (write)
Suggestion:
* adjust program to not write to $SNAP

Instead of staging the asciidoctor package, consider staging the ruby snap and install the gem.

@jmooring
Copy link
Member Author

@bep The effect of this is currently limited to the "edge" channel, but as soon as you roll a release it will effect the "stable" channel as well.

@bep
Copy link
Member

bep commented Jun 15, 2023

OK. I'm not doing any release until over the weekend. I have been burned pretty badly when doing Friday releases before.

@jmooring
Copy link
Member Author

@jmooring
Copy link
Member Author

jmooring commented Jun 17, 2023

Although it may be possible to include Asciidoctor with core22 under strict confinement, I have explored several avenues and cannot get past the Apparmor denials. Conclusions:

  1. Revert snap: Transition base snap from core20 to core22 #11101.
  2. Transition to classic confinement. See #11126.

@github-actions
Copy link

github-actions bot commented Jul 9, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants