GNU bug report logs - #78718
Calling rdiff-backup in timers fail

Previous Next

Package: guix;

Reported by: Simon Streit <simon <at> netpanic.org>

Date: Sun, 8 Jun 2025 09:49:01 UTC

Severity: normal

To reply to this bug, email your comments to 78718 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#78718; Package guix. (Sun, 08 Jun 2025 09:49:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simon Streit <simon <at> netpanic.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 08 Jun 2025 09:49:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Simon Streit <simon <at> netpanic.org>
To: bug-guix <at> gnu.org
Subject: Calling rdiff-backup in timers fail
Date: Sun, 08 Jun 2025 11:48:22 +0200
Hello,

the package rdiff-backup can't find ps if it is used in timers:

--8<---------------cut here---------------start------------->8---
2025-06-08 11:15:09 localhost shepherd[1]: Timer 'backup' spawned process 11779.
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup] Traceback (most recent call last):
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]   File "/gnu/store/fhzcy6lq1kgz3l40xmn493jjs1nl04f7-rdiff-backup-2.2.6/bin/.rdiff-backup-real", line>
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]     sys.exit(load_entry_point('rdiff-backup==2.2.6', 'console_scripts', 'rdiff-backup')())
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]   File "/gnu/store/fhzcy6lq1kgz3l40xmn493jjs1nl04f7-rdiff-backup-2.2.6/lib/python3.11/site-packages/>
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]     sys.exit(main_run(sys.argv[1:]))
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]              ^^^^^^^^^^^^^^^^^^^^^^
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]   File "/gnu/store/fhzcy6lq1kgz3l40xmn493jjs1nl04f7-rdiff-backup-2.2.6/lib/python3.11/site-packages/>
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]     ret_val |= conn_act.setup()
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]                ^^^^^^^^^^^^^^^^
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]   File "/gnu/store/fhzcy6lq1kgz3l40xmn493jjs1nl04f7-rdiff-backup-2.2.6/lib/python3.11/site-packages/>
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]     ret_code = self.repo.setup(self.dir, owners_map=owners_map,
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]   File "/gnu/store/fhzcy6lq1kgz3l40xmn493jjs1nl04f7-rdiff-backup-2.2.6/lib/python3.11/site-packages/>
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]     lock_result = self.lock()
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]                   ^^^^^^^^^^^
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]   File "/gnu/store/fhzcy6lq1kgz3l40xmn493jjs1nl04f7-rdiff-backup-2.2.6/lib/python3.11/site-packages/>
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]     return self._shadow.lock(self.lockfile, self.must_be_writable)
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]   File "/gnu/store/fhzcy6lq1kgz3l40xmn493jjs1nl04f7-rdiff-backup-2.2.6/lib/python3.11/site-packages/>
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]     'cmd': simpleps.get_pid_name(pid),
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]            ^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]   File "/gnu/store/fhzcy6lq1kgz3l40xmn493jjs1nl04f7-rdiff-backup-2.2.6/lib/python3.11/site-packages/>
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]     output = subprocess.run(
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]              ^^^^^^^^^^^^^^^
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]   File "/gnu/store/xk9rvp232a2kdjmm20c0bks3x3wjpi4n-python-3.11.11/lib/python3.11/subprocess.py", li>
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]     with Popen(*popenargs, **kwargs) as process:
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]   File "/gnu/store/xk9rvp232a2kdjmm20c0bks3x3wjpi4n-python-3.11.11/lib/python3.11/subprocess.py", li>
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]     self._execute_child(args, executable, preexec_fn, close_fds,
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]   File "/gnu/store/xk9rvp232a2kdjmm20c0bks3x3wjpi4n-python-3.11.11/lib/python3.11/subprocess.py", li>
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup]     raise child_exception_type(errno_num, err_msg, err_filename)
2025-06-08 11:15:10 localhost shepherd[1]: [rdiff-backup] FileNotFoundError: [Errno 2] No such file or directory: 'ps'
--8<---------------cut here---------------end--------------->8---

I confirmed this with a clean container in Guix Home that is only
prepared with a timer calling it.

Adding python-psutil solves this.  Therefor I recommend adding it to
the input list.


Kind regards

-- 
Simon




Information forwarded to bug-guix <at> gnu.org:
bug#78718; Package guix. (Sun, 08 Jun 2025 10:10:01 GMT) Full text and rfc822 format available.

Message #8 received at 78718 <at> debbugs.gnu.org (full text, mbox):

From: simon <at> netpanic.org
To: 78718 <at> debbugs.gnu.org
Cc: Simon Streit <simon <at> netpanic.org>
Subject: [PATCH] gnu: rdiff-backup: Add python-psutil to inputs.
Date: Sun,  8 Jun 2025 12:09:23 +0200
From: Simon Streit <simon <at> netpanic.org>

Otherwise it fails to run in timers.

* gnu/packages/backup.scm (rdiff-backup): [inputs]: Add python-psutil.

Change-Id: I3e96e6911c4953ea6c78511dc1278e89b2cdf2e0
---
 gnu/packages/backup.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index b4aca86774..50c594aeb0 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -26,6 +26,7 @@
 ;;; Copyright © 2023 Timo Wilken <guix <at> twilken.net>
 ;;; Copyright © 2024 Nicolas Graves <ngraves <at> ngraves.fr>
 ;;; Copyright © 2024 jgart <jgart <at> dismail.de>
+;;; Copyright © 2025 Simon Streit <simon <at> netpanic.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -535,7 +536,7 @@ (define-public rdiff-backup
     (native-inputs
      (list python-setuptools-scm))
     (inputs
-     (list python python-pyaml librsync))
+     (list python python-psutil python-pyaml librsync))
     (arguments
      `(#:tests? #f))                    ; Tests require root/sudo
     (home-page "https://rdiff-backup.net/")

base-commit: 199fd26ab268d4f26cebcb39e844fe4ff9bea9bc
-- 
2.49.0





This bug report was last modified 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.