Creating a bug report/issue
I have searched the existing open and closed issues
Required Information
DietPi version
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=2
G_DIETPI_VERSION_RC=1
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
Distro version
bookworm 0
Kernel version
Linux DietRPI 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
Architecture
arm64
SBC model
RPi 4 Model B (aarch64)
Power supply used
5.1V 3A
SD card used
SSD Samsung EVO870
Additional Information (if applicable)
I have create a systemd service to control a noctua fan via a python scripts.
when i run the command :
systemctl --user status noctua
i receive the following error
Failed to connect to bus: No medium found
Extra details
i have followed the troubleshooting in the following thread :
Creating a bug report/issue
Required Information
DietPi version | cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=22
G_DIETPI_VERSION_RC=3
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
bookworm 0
Kernel version | uname -a
Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
Architecture | dpkg --print-architecture
arm64
SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
RPi 4 Modelβ¦
I did install dbus user session by running apt install dbus-user-session
it worked for a moment but it doesnβt anymore.
Thank you for your time !
1 Like
usually it should be
systemctl status <service name>
i followed this tutorial, that uses systemctl --user
systemctl status
returns :
β DietRPI
State: running
Units: 285 loaded (incl. loaded aliases)
Jobs: 0 queued
Failed: 0 units
Since: Thu 1970-01-01 01:00:02 CET; 54 years 2 months ago
systemd: 252.22-1~deb12u1
CGroup: /
ββinit.scope
β ββ1 /sbin/init
ββsystem.slice
β ββcontainerd.service
β β ββ 600 /usr/bin/containerd
β β ββ1185 /usr/bin/containerd-shim-runc-v2 -namespace moby -id 10fd90f55e75259da9447f57cac398fd42aeb34000008597384cc0417894440c -address /run/containerd/containerd.sock
β β ββ1231 /usr/bin/containerd-shim-runc-v2 -namespace moby -id e4c703deeabd557eb4e5a5fb2af58eefef5482f88d686335b1f29524e9193a15 -address /run/containerd/containerd.sock
β β ββ1383 /usr/bin/containerd-shim-runc-v2 -namespace moby -id 3322faf3d0315541d30bdbcd2d891a5f38f92112bcab4a04008929744b484631 -address /run/containerd/containerd.sock
β ββcron.service
β β ββ418 /usr/sbin/cron -f
β ββdbus.service
β β ββ419 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
β ββdocker-10fd90f55e75259da9447f57cac398fd42aeb34000008597384cc0417894440c.scope
β β ββ1298 cloudflared --no-autoupdate tunnel run
β ββdocker-3322faf3d0315541d30bdbcd2d891a5f38f92112bcab4a04008929744b484631.scope
β β ββ1432 /package/admin/s6/command/s6-svscan -d4 -- /run/service
β β ββ1783 s6-supervise s6-linux-init-shutdownd
β β ββ1785 /package/admin/s6-linux-init/command/s6-linux-init-shutdownd -c /run/s6/basedir -g 3000 -C -B
β β ββ1806 s6-supervise frontend
β β ββ1807 s6-supervise nginx
β β ββ1808 s6-supervise backend
β β ββ1810 s6-supervise s6rc-fdholder
β β ββ1812 s6-supervise s6rc-oneshot-runner
β β ββ1828 /package/admin/s6/command/s6-ipcserverd -1 -- /package/admin/s6/command/s6-ipcserver-access -v0 -E -l0 -i data/rules -- /package/admin/s6/command/s6-sudod -t 30000 -- /package/admin/s6-rc/command/s6-rc-oneshot-run -l ../.. --
β β ββ1987 "nginx: master process nginx"
β β ββ1989 bash ./run backend
β β ββ1994 node --abort_on_uncaught_exception --max_old_space_size=250 index.js
β β ββ2014 "nginx: worker process"
β β ββ2015 "nginx: worker process"
β β ββ2016 "nginx: worker process"
β β ββ2017 "nginx: worker process"
β β ββ2018 "nginx: cache manager process"
β ββdocker-e4c703deeabd557eb4e5a5fb2af58eefef5482f88d686335b1f29524e9193a15.scope
β β ββ1303 httpd -DFOREGROUND
β β ββ1616 httpd -DFOREGROUND
β β ββ1617 httpd -DFOREGROUND
β β ββ1619 httpd -DFOREGROUND
β ββdocker.service
β β ββ 628 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
β β ββ1213 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 443 -container-ip 172.18.0.3 -container-port 443
β β ββ1274 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 81 -container-ip 172.18.0.3 -container-port 81
β β ββ1317 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 80 -container-ip 172.18.0.3 -container-port 80
β ββifup@eth0.service
β β ββ509 dhclient -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
β ββssh.service
β β ββ612 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"
β ββsystem-getty.slice
β β ββgetty@tty1.service
β β ββ602 /sbin/agetty -o "-p -- \\u" --noclear - linux
β ββsystemd-journald.service
β β ββ155 /lib/systemd/systemd-journald
β ββsystemd-logind.service
β β ββ424 /lib/systemd/systemd-logind
β ββsystemd-udevd.service
β ββudev
β ββ176 /lib/systemd/systemd-udevd
ββuser.slice
ββuser-1000.slice
ββsession-6.scope
β ββ2201 "sshd: dietpi [priv]"
β ββ2207 "sshd: dietpi@pts/0"
β ββ2208 -bash
β ββ2228 sudo systemctl status
β ββ2229 sudo systemctl status
β ββ2230 systemctl status
β ββ2231 "(pager)"
ββuser@1000.service
ββapp.slice
β ββnoctua.service
β ββ636 /usr/bin/sudo /usr/bin/python3 /home/dietpi/Public/Services/RPI-scripts/noctua/noctuaFan.py
β ββ644 /usr/bin/python3 /home/dietpi/Public/Services/RPI-scripts/noctua/noctuaFan.py
ββinit.scope
ββ603 /lib/systemd/systemd --user
ββ604 "(sd-pam)"
but if i try
systemctl status noctua
it returns an error service not found.
maybe creating the service at the user level was a mistakes and i should redo it without the --user tag
it seems to fix my issues
thx for the advices
system
Closed
20 June 2024 19:08
6
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.