journalctl --user giving “No journal files were found.”
If I do systemctl --user status <myservice> I get the status of the service together with some recent log output. If I do journalctl --user -u <myservice> I get "No Journal files were found.". This applies to multiple user services. This does not apply to non-user/system services.
Debian sid.
debian systemd
add a comment |
If I do systemctl --user status <myservice> I get the status of the service together with some recent log output. If I do journalctl --user -u <myservice> I get "No Journal files were found.". This applies to multiple user services. This does not apply to non-user/system services.
Debian sid.
debian systemd
add a comment |
If I do systemctl --user status <myservice> I get the status of the service together with some recent log output. If I do journalctl --user -u <myservice> I get "No Journal files were found.". This applies to multiple user services. This does not apply to non-user/system services.
Debian sid.
debian systemd
If I do systemctl --user status <myservice> I get the status of the service together with some recent log output. If I do journalctl --user -u <myservice> I get "No Journal files were found.". This applies to multiple user services. This does not apply to non-user/system services.
Debian sid.
debian systemd
debian systemd
asked Apr 23 '18 at 22:16
Bryan WalkerBryan Walker
61
61
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You want journalctl --user-unit <myservice>.
The --user parameter to journalctl is a filter to restrict it to units running under the current user, but it still distinguishes between user and system units. I personally don't understand the design choice of why -u doesn't automatically select the user unit when --user is enabled, especially when it does so for systemctl, but there it is.
Now it doesn't say no files found, but it does say "No entries", because the log time is only the last ~30 minutes. Every so often the begin-end window will move forward.
– Bryan Walker
Apr 24 '18 at 3:22
add a comment |
You may have to enable persistent storage, because per-user journals are not supported when storing logs in /run tmpfs. This is done with Storage=persistent in /etc/systemd/journald.conf.
If you’d prefer not to do that, the only alternative I know is to add your user to the systemd-journal group, or (in Debian and perhaps Ubuntu) the adm group.
New contributor
Dato is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
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%2f439597%2fjournalctl-user-giving-no-journal-files-were-found%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You want journalctl --user-unit <myservice>.
The --user parameter to journalctl is a filter to restrict it to units running under the current user, but it still distinguishes between user and system units. I personally don't understand the design choice of why -u doesn't automatically select the user unit when --user is enabled, especially when it does so for systemctl, but there it is.
Now it doesn't say no files found, but it does say "No entries", because the log time is only the last ~30 minutes. Every so often the begin-end window will move forward.
– Bryan Walker
Apr 24 '18 at 3:22
add a comment |
You want journalctl --user-unit <myservice>.
The --user parameter to journalctl is a filter to restrict it to units running under the current user, but it still distinguishes between user and system units. I personally don't understand the design choice of why -u doesn't automatically select the user unit when --user is enabled, especially when it does so for systemctl, but there it is.
Now it doesn't say no files found, but it does say "No entries", because the log time is only the last ~30 minutes. Every so often the begin-end window will move forward.
– Bryan Walker
Apr 24 '18 at 3:22
add a comment |
You want journalctl --user-unit <myservice>.
The --user parameter to journalctl is a filter to restrict it to units running under the current user, but it still distinguishes between user and system units. I personally don't understand the design choice of why -u doesn't automatically select the user unit when --user is enabled, especially when it does so for systemctl, but there it is.
You want journalctl --user-unit <myservice>.
The --user parameter to journalctl is a filter to restrict it to units running under the current user, but it still distinguishes between user and system units. I personally don't understand the design choice of why -u doesn't automatically select the user unit when --user is enabled, especially when it does so for systemctl, but there it is.
answered Apr 24 '18 at 1:12
PatrickPatrick
50.2k11127179
50.2k11127179
Now it doesn't say no files found, but it does say "No entries", because the log time is only the last ~30 minutes. Every so often the begin-end window will move forward.
– Bryan Walker
Apr 24 '18 at 3:22
add a comment |
Now it doesn't say no files found, but it does say "No entries", because the log time is only the last ~30 minutes. Every so often the begin-end window will move forward.
– Bryan Walker
Apr 24 '18 at 3:22
Now it doesn't say no files found, but it does say "No entries", because the log time is only the last ~30 minutes. Every so often the begin-end window will move forward.
– Bryan Walker
Apr 24 '18 at 3:22
Now it doesn't say no files found, but it does say "No entries", because the log time is only the last ~30 minutes. Every so often the begin-end window will move forward.
– Bryan Walker
Apr 24 '18 at 3:22
add a comment |
You may have to enable persistent storage, because per-user journals are not supported when storing logs in /run tmpfs. This is done with Storage=persistent in /etc/systemd/journald.conf.
If you’d prefer not to do that, the only alternative I know is to add your user to the systemd-journal group, or (in Debian and perhaps Ubuntu) the adm group.
New contributor
Dato is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
You may have to enable persistent storage, because per-user journals are not supported when storing logs in /run tmpfs. This is done with Storage=persistent in /etc/systemd/journald.conf.
If you’d prefer not to do that, the only alternative I know is to add your user to the systemd-journal group, or (in Debian and perhaps Ubuntu) the adm group.
New contributor
Dato is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
You may have to enable persistent storage, because per-user journals are not supported when storing logs in /run tmpfs. This is done with Storage=persistent in /etc/systemd/journald.conf.
If you’d prefer not to do that, the only alternative I know is to add your user to the systemd-journal group, or (in Debian and perhaps Ubuntu) the adm group.
New contributor
Dato is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
You may have to enable persistent storage, because per-user journals are not supported when storing logs in /run tmpfs. This is done with Storage=persistent in /etc/systemd/journald.conf.
If you’d prefer not to do that, the only alternative I know is to add your user to the systemd-journal group, or (in Debian and perhaps Ubuntu) the adm group.
New contributor
Dato is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Dato is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 6 hours ago
DatoDato
1
1
New contributor
Dato is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Dato is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Dato is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
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%2f439597%2fjournalctl-user-giving-no-journal-files-were-found%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