[HowTo] Find error logs

Difficulty: ★☆☆☆☆

The first step for troubleshooting an issue is to find an error log: a trace produced by an application when failing/crashing, and providing the first trail a user/developer can follow to fix it.

1. Reach a usable system

Obviously, it will be impossible to acquire those logs if you can’t have access to a usable system.
See: [HowTo] Reach a minimal system

2. Find the faulty application

If you don’t know which application failed – this is usually the case on a system or graphical failure – a good place to search the culprit is in the system journal.
Supposing the failure occurred in the previous boot:

journalctl --boot=-1 --priority=3 --catalog --no-pager

3. Find error traces

Depending on the faulty application, there are several means to obtain an error log:

- Launch the application from a terminal
Most applications will write messages and errors in the terminal or TTY they are launched from.

- Open user log files
Some applications, when launched by a user, trace logs in a dedicated file within ~/.local/share/.

- Open system log files
Some applications, when launched by the system or as a service, trace logs in a dedicate file within /var/log/.

- Search the system journal
Service traces are usually logged into the system journal.
Supposing the failure occurred in the previous boot:

journalctl --boot=-1 --unit=<service_name> --no-pager

- Search the kernel ring buffer
Low level failures can prevent journals from logging the associated errors. In that case, those logs may nonetheless be present in the ring buffer used by the kernel.

sudo dmesg

4. Share the logs with us

Now that you found the error message, you can use it to diagnose and fix your issue.
But if you can’t make heads and tails of it, you can ask for support in the forum.

:star: For tips on extracting and sharing results from the terminal, see: [HowTo] Use the terminal / TTY

:star2: You can retrieve and upload graphically some of those logs through the manjaro-log-helper utility.

:warning: When posting those logs in the forum, it is recommended to format them to make them more readable.

:warning: It is recommended, in order to allow as many people as possible to help you, to provide logs in English. If your system uses another language, and the application thus produces non-English messages, you can run it in English with:

LANG=C <command>

More details available in the following guides:

[HowTo] Troubleshoot anything
Manjaro KDE Stuck At Login Screen
Continual Issues with PC Freezing during usage
I have this freeze with every KDE distros
[HowTo] Find system information
Joystick and touchpad are randomly stop working
[Stable Update] 2022-03-14 - Kernels, KDE, LibreOffice, Kodi, Qt5, Mozilla, NetworkManager, Pipewire
No GUI after update
Fan runs on high as soon as boot up?
Cant start Manjaro
Black screen when playing Garry's Mod
Cant install NVIDIA drivers
How to troubleshoot why nftables.service doesn't work?
Black screen when playing Garry's Mod
Debug_shell not working
"Oh no" Error screen and no access to TTY
"If playback doesn't begin shortly, try restarting your device."
Keyboard Causes GUI Crash & Coredump
After kernel update 5.13 -> 5.15 system wont boot
Screen turn black and only mouse cursor
Start panel doesn't open
I can't launch any Feral games since the Feb 27th Manjaro update
One of cores at around 90% load
Corrupt package or non valid
Firefox frequently freezes, requiring browser restart
Usb ports , maybe drivers
High memory usage
After installation I can only see one partition and its a read only
Issues after replacing a Nvidia GTX 960 gpu with an AMD radeon 6600 gpu
Discord seems to freeze when in background
System does not work after latest update
Problemas con aplicaciones de PDF
Crash & reset - windows 10 & linux
System error after update
Gry nie uruchamiają się
No graphical display with an Nvidia card
Pulse Audio right pane missing in System Settings
Stuck in Emergency Mode after update
Steam + Left 4 Dead 2 - KDE Session Closes
Pamac freezes system while installing or removing packages
Pamac eats up my disk space while updating packages from the AUR
Disappearing Close (x) Button in Title Bar
Blank screen after reboot
Lightdm failed to start again
Booting into Emergency Modus
I tried to boot from an old usb stick, now cannot boot Manjaro from my main HD
Experiencing Random Shutdowns
Crashing to Black-Screen-Of-Indifference - Ryzen 3 System - Logs no help so far
Vlc fails playing mpeg2 ts
Manjaro stopped working after some time
[HowTo] Request support
Unable to boot to desktop after latest update
Virt-Manager / Gnome-Boxes: No screen found
Libre office no abre
Manjaro freezing at boot, even after reinstall
Issue with monitor flashing wildly -- is there a log that might indicate the cause?
Black screen Post Update
Lightdm fails to start after Dec. 6 updates
I can't lower my brightness on gnome
Repeated keys in activity overview
Locking up not sure why
Locking up not sure why
PC crash when using controller
Manjaro will not reboot after latest (1st of Feb 2022) update
PC crash when using controller
Stuck at clean, files, block at boot
Complete system crash when playing games
Manjaro KDE Stuck At Login Screen
Why does my system automatically reboots itself. How can I fix it?
Migrating Manjaro to new drive (old drive is sata, new is nvme)
Total system hang while playing via proton
Welcome and introduce yourself - 2022
System freezes randomly while browsing
Total system hang while playing via proton
Pamac shows there is an update, but does not update it
After last update X wont start
Sometimes i cant login after boot

Hello, nice tutorial.

Just wanted to say that in my case only if I press the left side Ctrl + Alt + … F2 trough F6 work for TTY. Why ??.. it beats me :man_shrugging:
Its a regular QWERTY 105 key, us layout keyboard.

So if someone presses the right side and it doesn’t work, the left will surely work :smiley:


1 Like

Two things come to mind:

  • The right Alt key is replaced by AltGr on many keyboards. The layout for generic 105-key layout may have that replacement too.
  • One may need a compose key in order to input a character absent from the keyboard (usually diacritics).
    That key can be configured to use the right Alt or Ctrl key, in which case it cannot be used for key combinations.

2 posts were split to a new topic: How to access logs without booting the system?

@maycne.sonahoz @Stefano has a handy GUI in the repos you might want to mention here somewhere:

1 Like