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

bug: Failed to start unit gpg-agent.service #6308

Open
2 tasks done
DamienCassou opened this issue Jan 12, 2025 · 0 comments
Open
2 tasks done

bug: Failed to start unit gpg-agent.service #6308

DamienCassou opened this issue Jan 12, 2025 · 0 comments
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@DamienCassou
Copy link
Contributor

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

Since I switched to Debian stable yesterday, I'm getting errors at the end of home-manager switch:

Stopping units: borgmatic.timer, caffeine.service, clipmenu.service, emacs.service, emacs.socket, [email protected], [email protected], [email protected], gpg-agent-ssh.socket, gpg-agent.service, gpg-agent.socket, mpd.service, signaturepdf.service, syncthing.service, systembus-notify.service, tray.target
Starting units: borgmatic.timer, caffeine.service, clipmenu.service, emacs.service, emacs.socket, [email protected], [email protected], [email protected], gpg-agent-ssh.socket, gpg-agent.service, gpg-agent.socket, mpd.service, signaturepdf.service, syncthing-init.service, syncthing.service, systembus-notify.service, tray.target, vdirsyncer.timer
Error: Error switching

Caused by:
    0: Failed to perform post-reload tasks
    1: Failed to start unit gpg-agent.service
    2: org.freedesktop.systemd1.OnlyByDependency: Operation refused, unit gpg-agent.service may be requested by dependency only (it is configured to refuse manual start/stop).

That never happened when I was using Fedora and I have had systemd.user.startServices set to true for a very long time.

My home-manager configuration is using flakes and is public: https://github.com/DamienCassou/nix-system.

Maintainer CC

No response

System information

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.0-29-amd64, Debian GNU/Linux, 12 (bookworm), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.25.3`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
@DamienCassou DamienCassou added bug triage Issues or feature request that have not been triaged yet labels Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

4 participants