-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
journalctl --user -u xxx No journal files were found. -- No entries -- (if invoked from system user UID) #23679
Copy link
Copy link
Closed
Labels
journalneeds-reporter-feedback ❓There's an unanswered question, the reporter needs to answerThere's an unanswered question, the reporter needs to answer
Description
systemd version the issue has been seen with
mc@ubuntu:~$ systemctl --version
systemd 249 (249.11-0ubuntu3)
+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS -OPENSSL +ACL +BLKID +CURL +ELFUTILS -FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP -LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified
mc@ubuntu:~$
Used distribution
os info
mc@ubuntu:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
Linux kernel version used (uname -a)
mc@ubuntu:~$ uname -a
Linux ubuntu 5.15.0-27-generic #28-Ubuntu SMP Thu Apr 14 04:55:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
mc@ubuntu:~$
CPU architecture issue was seen on
…
Expected behaviour you didn't see
see service logs
Unexpected behaviour you saw
there have journalctl logs
mc@ubuntu:~$ systemctl --user status minecraft@survival
● minecraft@survival.service - Minecraft Server survival
Loaded: loaded (/opt/minecraft/.config/systemd/user/minecraft@.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-06-09 14:50:25 CST; 32min ago
Main PID: 10123 (java)
Tasks: 25 (limit: 4538)
Memory: 2.2G
CPU: 2min 59.801s
CGroup: /user.slice/user-998.slice/user@998.service/app.slice/app-minecraft.slice/minecraft@survival.service
└─10123 /usr/bin/java -Xms2G -Xmx4G -jar /opt/minecraft/jars/server.jar nogui
Jun 09 14:51:48 ubuntu java[10123]: [14:51:48] [Worker-Main-1/INFO]: Preparing spawn area: 54%
Jun 09 14:51:48 ubuntu java[10123]: [14:51:48] [Worker-Main-1/INFO]: Preparing spawn area: 58%
Jun 09 14:51:48 ubuntu java[10123]: [14:51:48] [Worker-Main-1/INFO]: Preparing spawn area: 66%
Jun 09 14:51:49 ubuntu java[10123]: [14:51:49] [Worker-Main-1/INFO]: Preparing spawn area: 73%
Jun 09 14:51:49 ubuntu java[10123]: [14:51:49] [Worker-Main-1/INFO]: Preparing spawn area: 80%
Jun 09 14:51:50 ubuntu java[10123]: [14:51:50] [Worker-Main-1/INFO]: Preparing spawn area: 84%
Jun 09 14:51:51 ubuntu java[10123]: [14:51:51] [Worker-Main-1/INFO]: Preparing spawn area: 93%
Jun 09 14:51:51 ubuntu java[10123]: [14:51:51] [Worker-Main-1/INFO]: Preparing spawn area: 99%
Jun 09 14:51:52 ubuntu java[10123]: [14:51:52] [Server thread/INFO]: Time elapsed: 58504 ms
Jun 09 14:51:52 ubuntu java[10123]: [14:51:52] [Server thread/INFO]: Done (77.123s)! For help, type "help"
mc@ubuntu:~$
but journalctl --user have no logs
mc@ubuntu:~$
mc@ubuntu:~$ journalctl --user -u minecraft@survival
No journal files were found.
-- No entries --
Steps to reproduce the problem
mc@ubuntu:~$ cat .config/systemd/user/minecraft@.service
[Unit]
Description=Minecraft Server %i
Wants=network.target
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/minecraft/instances/%i
ExecStart=/usr/bin/java -Xms2G -Xmx4G -jar /opt/minecraft/jars/server.jar nogui
RestartSec=30
Restart=on-failure
KillMode=process
KillSignal=SIGINT
SuccessExitStatus=130
StandardInput=null
[Install]
WantedBy=default.target
then
systemctl --user start minecraft@survival
journalctl --user -u minecraft@survival
Additional program output to the terminal or log subsystem illustrating the issue
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
journalneeds-reporter-feedback ❓There's an unanswered question, the reporter needs to answerThere's an unanswered question, the reporter needs to answer