journalctl --user giving “No journal files were found.”












1















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.










share|improve this question



























    1















    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.










    share|improve this question

























      1












      1








      1


      1






      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.










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 23 '18 at 22:16









      Bryan WalkerBryan Walker

      61




      61






















          2 Answers
          2






          active

          oldest

          votes


















          2














          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.






          share|improve this answer
























          • 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



















          -1














          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.






          share|improve this answer








          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.




















            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            2














            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.






            share|improve this answer
























            • 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
















            2














            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.






            share|improve this answer
























            • 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














            2












            2








            2







            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.






            share|improve this answer













            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.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            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



















            • 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













            -1














            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.






            share|improve this answer








            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.

























              -1














              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.






              share|improve this answer








              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.























                -1












                -1








                -1







                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.






                share|improve this answer








                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.







                share|improve this answer








                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.









                share|improve this answer



                share|improve this answer






                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.






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Entries order in /etc/network/interfaces

                    新発田市

                    Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)