Bug 1531890 - XDG_RUNTIME_DIR not set and `systemctl --user` fails
Summary: XDG_RUNTIME_DIR not set and `systemctl --user` fails
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-06 13:16 UTC by Aleksandar Kostadinov
Modified: 2018-11-30 22:20 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-30 22:20:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Aleksandar Kostadinov 2018-01-06 13:16:06 UTC
Description of problem:
I installed fedora 27 "minimal" on x86_64. That is without DE. I wanted to enable systemd user services.

So I did:

> # loginctl enable-linger myuser
> # reboot
> # su - myuser
> $ systemctl --user enable myservice

Version-Release number of selected component:
systemd-pam-234-9.fc27.x86_64

Actual results:

> Failed to connect to bus: No such file or directory

Expected results:

> Created symlink /home/myuser/.config/systemd/user/default.target.wants/myservice.service → /home/myuser/.config/systemd/user/myuser.service.

Additional info:
If I set XDG_RUNTIME_DIR variable then it works. I read that pam_systemd should take care of setting that variable. The workaround is to either set this variable in user profile files or run systemctl like:

> XDG_RUNTIME_DIR=/run/user/`id -u` systemctl --user enable myservice

Comment 1 seb 2018-01-27 17:22:33 UTC
Same problem on a Fedora Server 27.

Comment 2 mwp.junk 2018-06-22 19:09:25 UTC
Same issue on Fedora 28

Comment 3 Ben Cotton 2018-11-27 14:51:13 UTC
This message is a reminder that Fedora 27 is nearing its end of life.
On 2018-Nov-30  Fedora will stop maintaining and issuing updates for
Fedora 27. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora  'version' of '27'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 27 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Ben Cotton 2018-11-30 22:20:35 UTC
Fedora 27 changed to end-of-life (EOL) status on 2018-11-30. Fedora 27 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.