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

/usr/sbin/policy-rc.d file exists which prevents daemons from (re-)starting during package upgrades #8316

Closed
adrelanos opened this issue Jul 3, 2023 · 5 comments · Fixed by QubesOS/qubes-builder-debian#72
Labels
C: builder Qubes Builder C: Debian/Ubuntu diagnosed Technical diagnosis has been performed (see issue comments). P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. pr submitted A pull request has been submitted for this issue. T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Milestone

Comments

@adrelanos
Copy link
Member

Qubes OS release

R4.2

Brief summary

File /usr/sbin/policy-rc.d file exists and prevents daemons from (re-)starting during package upgrades.

Steps to reproduce

  1. install Qubes R4.2
  2. Install whonix-gw-16 template from qubes-templates-community-testing repository
  3. ls -la /usr/sbin/policy-rc.d

Expected behavior

No such message and service restarted.

Actual behavior

During upgrades:

/usr/sbin/policy-rc.d returned 101, not running 'restart qubes-whonix-network.service qubes-whonix-postinit.service qubes-whonix-qubes-updates-proxy-enable-maybe.service qubes-whonix-redirect-9050.service qubes-whonix-redirect-9050.socket qubes-whonix-remote-support.service qubes-whonix-sysinit.service qubes-whonix-torified-updates-proxy-check.service'

Additional information

cat /usr/sbin/policy-rc.d

exit 101

Does Qubes builder or a Qubes package create file /usr/sbin/policy-rc.d?

Whonix doesn't create file /usr/sbin/policy-rc.d as this isn't needed and I highly discourage it.

A Qubes user reported message /usr/sbin/policy-rc.d returned 101, not running 'start qubes-qrexec-agent.service' here: https://forum.qubes-os.org/t/4-1beta-upgrade-stage1-errors/5227/4

Therefore this is most likely a general Qubes issue. Not caused by Whonix.

Affects Qubes-Whonix: yes

Related tickets

@adrelanos adrelanos added P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists. labels Jul 3, 2023
@marmarek
Copy link
Member

marmarek commented Jul 3, 2023

File /usr/sbin/policy-rc.d file exists and prevents daemons from (re-)starting during package upgrades.

It is meant to exist only during template build, and should be removed at the end. I just checked official debian-12 template and indeed the file is left there, so something went wrong during the build.

@unman
Copy link
Member

unman commented Jul 3, 2023 via email

@marmarek
Copy link
Member

marmarek commented Jul 3, 2023

The PR above seems to fix it for builderv2.

@andrewdavidwong andrewdavidwong added C: builder Qubes Builder C: Debian/Ubuntu diagnosed Technical diagnosis has been performed (see issue comments). pr submitted A pull request has been submitted for this issue. labels Jul 4, 2023
@andrewdavidwong andrewdavidwong added this to the Non-release milestone Jul 4, 2023
@adrelanos
Copy link
Member Author

Will this be applied when building new templates?
(Planning to build new Qubes-Whonix templates today.)

Should this be fixed in already uploaded templates?

@marmarek
Copy link
Member

marmarek commented Jul 5, 2023

New templates will have the fix included. Existing templates will not be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: builder Qubes Builder C: Debian/Ubuntu diagnosed Technical diagnosis has been performed (see issue comments). P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. pr submitted A pull request has been submitted for this issue. T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants