惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
B
Blog
Last Week in AI
Last Week in AI
Jina AI
Jina AI
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
P
Proofpoint News Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
Google DeepMind News
Google DeepMind News
U
Unit 42
雷峰网
雷峰网
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
美团技术团队
Y
Y Combinator Blog
腾讯CDC
B
Blog RSS Feed
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements

Proxmox Support Forum

[SOLVED] - Github Auth for Mirrors-Kernel Repo? [Automation] Mass migration tool for MS Win11/Server Proxmox GUI hang - not response is it possible to reject or quarantine spam based on conditions I set ? The PVENode task list in PVE9 is partially obscured due to the terminal font being too large. About 100% error reporting due to pveproxy.service hooks Kubernetes overlay networking breaks when upgrading from PVE 9.1 to PVE 9.2.3 Zentraler Speicher No space left on device Combine datastore and direct file archival to tape Kernel panic VFS: Unable to mount root fs on unknown-block (0,0) sobald ein 7.x Kernel verwendet wird. How to migrate disk of a VM from one ZFS to another Windows Server 2025 fails to boot after PVE 9.2 / Linux 7.0 Kernel upgrade Cannot Install Proxmox on T610 Poweredge with H700 PERC card sdn Config. gateway not reachable How to safely change domain/FQDN? Welche Filterquote erreicht ihr? NFS Share status unknown on 2 of 5 nodes Can't connect to PVE9 consoles [solved] Can't connect to PVE9 consoles [solved] [SOLVED] - Use secondary network for PVE commands Created cluster, one node storage gone BUG: proxmox mail gateway FROM = null bypass spam filtering Moving existing PBS from VMWare workstation to PVE cluster Does eBGP SDN fabric support external peering? Bug: PDM 1.1 not recognizing valid license status Proxmox GUI hang - not response PVE crashes unexpectedly Proxmox Backup Server 4.2 released! Advice
[SOLVED] - systemctl --user in LXC failed with error: Fai...
invalid@exam · 2026-06-16 · via Proxmox Support Forum

Hi everyone,

I'm currently facing an issue while trying to use systemctl --user within an LXC. Whenever I run any systemctl --user command, I receive the following error message:

Code:

(error from Debian 12) Failed to connect to bus: No medium found
(error from Fedora 41) Failed to connect to user scope bus via local transport: No medium found

It used to work until I rebooted my PVE. I'm not sure what additional information might be helpful for troubleshooting this problem, so I would appreciate any guidance on what details to provide.

Here are some details:

LXC OS: Debian 12 and Fedora 41
PVE version: 8.4.1

Any help or suggestions would be greatly appreciated. Thank you!

Last edited:

Hi!

Were there any package upgrades before rebooting? Were there any kernel upgrades in between? Is the output of last reboot -F -n 3?

Hi dakralex,

Were there any package upgrades before rebooting?

Yes.

Were there any kernel upgrades in between?

I think no.

Is the output of last reboot -F -n 3?

Do you mean "What is the output of last reboot -F -n 3?" or "Is kernel versions before and after reboot matches the output of last reboot -F -n 3?"

Here is the output of last reboot -F -n 3:

Code:

root@pve:~# last reboot -F -n 3
reboot   system boot  6.8.12-9-pve     Fri Apr 18 21:09:35 2025   still running
reboot   system boot  6.5.13-1-pve     Fri Apr 18 19:19:29 2025 - Fri Apr 18 21:09:17 2025  (01:49)
reboot   system boot  6.5.13-1-pve     Thu Apr 17 19:26:38 2025 - Fri Apr 18 19:19:09 2025  (23:52)

wtmp begins Wed Aug 16 23:24:57 2023

I rebooted system at Fri Apr 18 19:19:09 2025 and found systemctl --user failed. Then I upgraded packages and kernel and rebooted at Fri Apr 18 21:09:17 2025, but still failed. I think I made an upgrade between Thu Apr 17 19:26:38 2025 and Fri Apr 18 19:19:09 2025, but I'm not certain about the time.

Thanks for your help and let me know if you need more details!

I rebooted system at Fri Apr 18 19:19:09 2025 and found systemctl --user failed.

Hm, I wonder why it worked before. Have you used it as the container's root user or as a separate user with that command? For the former it shouldn't work as the root user doesn't have its own user service manager.

Have you used it as the container's root user or as a separate user with that command?

A normal user in container, not root.

What is the output of echo $DBUS_SESSION_BUS_ADDRESS and echo $XDG_RUNTIME_DIR for that user? If those are directories, what are their permissions and do you have read/write access?

What is the output of echo $DBUS_SESSION_BUS_ADDRESS and echo $XDG_RUNTIME_DIR for that user? If those are directories, what are their permissions and do you have read/write access?

Neither of these exists.

I searched again and consulted AI. It seems that directly login from the LXC from PVE web console is not considered as a "login". I tried using SSH instead, and everything worked just fine. (Still dont have $DBUS_SESSION_BUS_ADDRESS but have $XDG_RUNTIME_DIR now. After setting $XDG_RUNTIME_DIR to /run/user/$(id -u), the web console started working properly as well.)

Thank you very much for your help!

Neither of these exists.

I searched again and consulted AI. It seems that directly login from the LXC from PVE web console is not considered as a "login". I tried using SSH instead, and everything worked just fine. (Still dont have $DBUS_SESSION_BUS_ADDRESS but have $XDG_RUNTIME_DIR now. After setting $XDG_RUNTIME_DIR to /run/user/$(id -u), the web console started working properly as well.)

Thank you very much for your help!

Just loged-in for upvoting this answer as AI didn't know how to solve

I had to do

Code:

sudo loginctl enable-linger USERNAME

which enables dbus for not logged in user.

If the target user isn't actively logged into a graphical or SSH session, their /run/user/UID/ directory and D-Bus processes won't start. You can allow their user session to start at boot and stay alive without an active login.

Last edited: