systemd --user not started: XDG_RUNTIME_DIR is not set, but it isWhy is my Systemd unit loaded, but inactive...
Why would the US President need briefings on UFOs?
Is "stainless" a bulk or a surface property of stainless steel?
Would nanotechnology-scale devices be vulnerable to EMP?
How to specify and fit a hybrid machine learning - linear model
Have only girls been born for a long time in this village?
Are there any plans for handling people floating away during an EVA?
Efficiently pathfinding many flocking enemies around obstacles
Was this pillow joke on Friends intentional or a mistake?
How can I run SQL Server Vulnerability Assessment from a SQL Job?
How can I support the recycling, but not the new production of aluminum?
Taking out number of subarrays from an array which contains all the distinct elements of that array
Starships without computers?
The sound of thunder's like a whip
Does adding the 'precise' tag to daggers break anything?
Why we don't have vaccination against all diseases which are caused by microbes?
Does Swashbuckler's Fancy Footwork apply if the attack was made with Booming Blade?
How to compare two different formulations of a problem?
Why didn’t Doctor Strange stay in the original winning timeline?
A second course in the representation theory
How to look up identical column names in two dataframes and combine the matched columns
Why my earth simulation is slower than the reality?
Vacuum collapse -- why do strong metals implode but glass doesn't?
How to persuade recruiters to send me the Job Description?
How do I find the fastest route from Heathrow to an address in London using all forms of transport?
systemd --user not started: XDG_RUNTIME_DIR is not set, but it is
Why is my Systemd unit loaded, but inactive (dead)?I can't enable or disable a user service: Failed to execute operation: No such file or directorymysql service restarted during user being connected lead to failing serviceWhy x0vncserver is not starting at boot?Systemd user units fail to auto-startWhy is systemd stopping service immediately after it is started?Systemd irregular timing issue
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
systemd --user
does not work:
# systemctl --user status
Failed to read server status: Process org.freedesktop.systemd1 exited with status 1
I have:
# echo $XDG_RUNTIME_DIR
/run/user/1000
The underlying problem seems to be that user@1000
is not running. Manually starting produces the same error as by login:
# sudo systemctl start user@$(id -u)
Job for user@1000.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status user@1000.service" and "journalctl -xe" for details.
#systemctl status user@$(id -u)
● user@1000.service - User Manager for UID 1000
Loaded: loaded (/usr/lib/systemd/system/user@.service; static; vendor preset: disabled)
Active: failed (Result: protocol) since Sun 2019-08-18 19:11:41 CEST; 2min 6s ago
Docs: man:user@.service(5)
Process: 13047 ExecStart=/usr/lib/systemd/systemd --user (code=exited, status=1/FAILURE)
Main PID: 13047 (code=exited, status=1/FAILURE)
Tasks: 0
Memory: 452.0K
CGroup: /user.slice/user-1000.slice/user@1000.service
Aug 18 19:11:41 arch0713 systemd[1]: Starting User Manager for UID 1000...
Aug 18 19:11:41 arch0713 systemd[13047]: pam_unix(systemd-user:session): session opened for user roland by (uid=0)
Aug 18 19:11:41 arch0713 systemd[13047]: Trying to run as user instance, but $XDG_RUNTIME_DIR is not set.
Aug 18 19:11:41 arch0713 systemd[1]: user@1000.service: Failed with result 'protocol'.
Aug 18 19:11:41 arch0713 systemd[1]: Failed to start User Manager for UID 1000.
The only service failed:
# systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● user@1000.service loaded failed failed User Manager for UID 1000
I have some other Arch installations with basically the same setup, but
the problem is not there. So I seem to have broken just this machine.
Rebooting does not help.
What could I check to find the reason for the error, $XDG_RUNTIME_DIR not set, when echo
tells me that it is set?
I'm not familiar with the systemd source code, which of course would be a place to look at, and eventually I will, but maybe somebody has a hint for me.
systemd
add a comment |
systemd --user
does not work:
# systemctl --user status
Failed to read server status: Process org.freedesktop.systemd1 exited with status 1
I have:
# echo $XDG_RUNTIME_DIR
/run/user/1000
The underlying problem seems to be that user@1000
is not running. Manually starting produces the same error as by login:
# sudo systemctl start user@$(id -u)
Job for user@1000.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status user@1000.service" and "journalctl -xe" for details.
#systemctl status user@$(id -u)
● user@1000.service - User Manager for UID 1000
Loaded: loaded (/usr/lib/systemd/system/user@.service; static; vendor preset: disabled)
Active: failed (Result: protocol) since Sun 2019-08-18 19:11:41 CEST; 2min 6s ago
Docs: man:user@.service(5)
Process: 13047 ExecStart=/usr/lib/systemd/systemd --user (code=exited, status=1/FAILURE)
Main PID: 13047 (code=exited, status=1/FAILURE)
Tasks: 0
Memory: 452.0K
CGroup: /user.slice/user-1000.slice/user@1000.service
Aug 18 19:11:41 arch0713 systemd[1]: Starting User Manager for UID 1000...
Aug 18 19:11:41 arch0713 systemd[13047]: pam_unix(systemd-user:session): session opened for user roland by (uid=0)
Aug 18 19:11:41 arch0713 systemd[13047]: Trying to run as user instance, but $XDG_RUNTIME_DIR is not set.
Aug 18 19:11:41 arch0713 systemd[1]: user@1000.service: Failed with result 'protocol'.
Aug 18 19:11:41 arch0713 systemd[1]: Failed to start User Manager for UID 1000.
The only service failed:
# systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● user@1000.service loaded failed failed User Manager for UID 1000
I have some other Arch installations with basically the same setup, but
the problem is not there. So I seem to have broken just this machine.
Rebooting does not help.
What could I check to find the reason for the error, $XDG_RUNTIME_DIR not set, when echo
tells me that it is set?
I'm not familiar with the systemd source code, which of course would be a place to look at, and eventually I will, but maybe somebody has a hint for me.
systemd
systemd doesn't start services in the environment of the shell, so the service doesn't see the environment variableXDG_RUNTIME_DIR
. Are you using a login or session manager?
– Torin
yesterday
A login. I don't define XDG_RUNTIME_DIR in any of my scripts, also not in .pam_environment. But it is defined all right immediately after the login. I don't think, it is local to the current shell.
– Roland Puntaier
yesterday
add a comment |
systemd --user
does not work:
# systemctl --user status
Failed to read server status: Process org.freedesktop.systemd1 exited with status 1
I have:
# echo $XDG_RUNTIME_DIR
/run/user/1000
The underlying problem seems to be that user@1000
is not running. Manually starting produces the same error as by login:
# sudo systemctl start user@$(id -u)
Job for user@1000.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status user@1000.service" and "journalctl -xe" for details.
#systemctl status user@$(id -u)
● user@1000.service - User Manager for UID 1000
Loaded: loaded (/usr/lib/systemd/system/user@.service; static; vendor preset: disabled)
Active: failed (Result: protocol) since Sun 2019-08-18 19:11:41 CEST; 2min 6s ago
Docs: man:user@.service(5)
Process: 13047 ExecStart=/usr/lib/systemd/systemd --user (code=exited, status=1/FAILURE)
Main PID: 13047 (code=exited, status=1/FAILURE)
Tasks: 0
Memory: 452.0K
CGroup: /user.slice/user-1000.slice/user@1000.service
Aug 18 19:11:41 arch0713 systemd[1]: Starting User Manager for UID 1000...
Aug 18 19:11:41 arch0713 systemd[13047]: pam_unix(systemd-user:session): session opened for user roland by (uid=0)
Aug 18 19:11:41 arch0713 systemd[13047]: Trying to run as user instance, but $XDG_RUNTIME_DIR is not set.
Aug 18 19:11:41 arch0713 systemd[1]: user@1000.service: Failed with result 'protocol'.
Aug 18 19:11:41 arch0713 systemd[1]: Failed to start User Manager for UID 1000.
The only service failed:
# systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● user@1000.service loaded failed failed User Manager for UID 1000
I have some other Arch installations with basically the same setup, but
the problem is not there. So I seem to have broken just this machine.
Rebooting does not help.
What could I check to find the reason for the error, $XDG_RUNTIME_DIR not set, when echo
tells me that it is set?
I'm not familiar with the systemd source code, which of course would be a place to look at, and eventually I will, but maybe somebody has a hint for me.
systemd
systemd --user
does not work:
# systemctl --user status
Failed to read server status: Process org.freedesktop.systemd1 exited with status 1
I have:
# echo $XDG_RUNTIME_DIR
/run/user/1000
The underlying problem seems to be that user@1000
is not running. Manually starting produces the same error as by login:
# sudo systemctl start user@$(id -u)
Job for user@1000.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status user@1000.service" and "journalctl -xe" for details.
#systemctl status user@$(id -u)
● user@1000.service - User Manager for UID 1000
Loaded: loaded (/usr/lib/systemd/system/user@.service; static; vendor preset: disabled)
Active: failed (Result: protocol) since Sun 2019-08-18 19:11:41 CEST; 2min 6s ago
Docs: man:user@.service(5)
Process: 13047 ExecStart=/usr/lib/systemd/systemd --user (code=exited, status=1/FAILURE)
Main PID: 13047 (code=exited, status=1/FAILURE)
Tasks: 0
Memory: 452.0K
CGroup: /user.slice/user-1000.slice/user@1000.service
Aug 18 19:11:41 arch0713 systemd[1]: Starting User Manager for UID 1000...
Aug 18 19:11:41 arch0713 systemd[13047]: pam_unix(systemd-user:session): session opened for user roland by (uid=0)
Aug 18 19:11:41 arch0713 systemd[13047]: Trying to run as user instance, but $XDG_RUNTIME_DIR is not set.
Aug 18 19:11:41 arch0713 systemd[1]: user@1000.service: Failed with result 'protocol'.
Aug 18 19:11:41 arch0713 systemd[1]: Failed to start User Manager for UID 1000.
The only service failed:
# systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● user@1000.service loaded failed failed User Manager for UID 1000
I have some other Arch installations with basically the same setup, but
the problem is not there. So I seem to have broken just this machine.
Rebooting does not help.
What could I check to find the reason for the error, $XDG_RUNTIME_DIR not set, when echo
tells me that it is set?
I'm not familiar with the systemd source code, which of course would be a place to look at, and eventually I will, but maybe somebody has a hint for me.
systemd
systemd
asked 2 days ago
Roland PuntaierRoland Puntaier
1215 bronze badges
1215 bronze badges
systemd doesn't start services in the environment of the shell, so the service doesn't see the environment variableXDG_RUNTIME_DIR
. Are you using a login or session manager?
– Torin
yesterday
A login. I don't define XDG_RUNTIME_DIR in any of my scripts, also not in .pam_environment. But it is defined all right immediately after the login. I don't think, it is local to the current shell.
– Roland Puntaier
yesterday
add a comment |
systemd doesn't start services in the environment of the shell, so the service doesn't see the environment variableXDG_RUNTIME_DIR
. Are you using a login or session manager?
– Torin
yesterday
A login. I don't define XDG_RUNTIME_DIR in any of my scripts, also not in .pam_environment. But it is defined all right immediately after the login. I don't think, it is local to the current shell.
– Roland Puntaier
yesterday
systemd doesn't start services in the environment of the shell, so the service doesn't see the environment variable
XDG_RUNTIME_DIR
. Are you using a login or session manager?– Torin
yesterday
systemd doesn't start services in the environment of the shell, so the service doesn't see the environment variable
XDG_RUNTIME_DIR
. Are you using a login or session manager?– Torin
yesterday
A login. I don't define XDG_RUNTIME_DIR in any of my scripts, also not in .pam_environment. But it is defined all right immediately after the login. I don't think, it is local to the current shell.
– Roland Puntaier
yesterday
A login. I don't define XDG_RUNTIME_DIR in any of my scripts, also not in .pam_environment. But it is defined all right immediately after the login. I don't think, it is local to the current shell.
– Roland Puntaier
yesterday
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f536164%2fsystemd-user-not-started-xdg-runtime-dir-is-not-set-but-it-is%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f536164%2fsystemd-user-not-started-xdg-runtime-dir-is-not-set-but-it-is%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
systemd doesn't start services in the environment of the shell, so the service doesn't see the environment variable
XDG_RUNTIME_DIR
. Are you using a login or session manager?– Torin
yesterday
A login. I don't define XDG_RUNTIME_DIR in any of my scripts, also not in .pam_environment. But it is defined all right immediately after the login. I don't think, it is local to the current shell.
– Roland Puntaier
yesterday