You are not logged in.
Pages: 1
Hello everyone,
I noticed yesterday that login now takes around 5 seconds on my 2-weeks old arch distro when it went in the blink of an eye before. By login I refer to the act of typing my username and password and hit enter, not counting using startx to start my wm.
I tried looking at the auth log at /var/log/auth.log but it doesn't exist. Is there a config file which I could modify to start logging authentication processes? What could be the cause of a slow login action?
Obviously 5 seconds is not a big deal, but I would like to know what to do in case it became even slower
Thanks in advance for your help, I would be happy to provide any log file and command output required.
EDIT : I've looked at journalctl but it seems only warnings and errors end up there, so I cannot figure out what goes on whenever I login.
Last edited by Rejem (2019-07-21 14:56:07)
Offline
What is your WM and if, your DE?
I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.
Offline
dockland, how would those be relevant? The OP is logging in to a tty.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
pacman -Qkk pam
Is the behavior the same for a fresh user?
Also post the output of "sudo journalctl -b"… warnings and error might be what we're looking for here.
Online
@dockland I'm using i3-wm if that can help at all, but as @Trilby said I'm logging in to a tty.
@seth Here is the output of pacman -Qkk pam :
~> sudo pacman -Qkk pam
[sudo] password for root:
pam: 585 total files, 0 altered files
You can find the output of sudo journalctl -b at this address (first time I'm using a pastebin, sorry if I messed up) : https://gist.github.com/JeremyLauret/91 … 40f25ebf06
I'll try creating a new user to see if the same happens to him.
EDIT : The new user can log in very fast, I guess logging in with my user simply takes time because my config files such as .zshrc take time to be sourced.
Last edited by Rejem (2019-07-21 14:40:44)
Offline
... my config files such as .zshrc take time to be sourced.
Ah ... are you using OMZ? If you are, stop now.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
This is supported by the log suggesting that the login takes less than 2 seconds (probably only few ms, limited timestamp precision) and while Trilby took the words right out of my mouth, any random call in zshrc can block for an arbitrarily long time …
You could insert some "date" calls into zshrc to narrow down the offender.
Online
I'm using OMZ indeed. I tried changing back my default shell to bash and that solved the issue, thanks for pointing it out! I'm marking the thread as solved
EDIT : The true culprit was the initialization of nvm in my .zshrc :
# Slow line
source /usr/share/nvm/init-nvm.sh
Last edited by Rejem (2019-07-21 15:08:07)
Offline
There is no need to give up on zsh - it's a fine shell. Just Oh My Zsh is a load of ... trouble. (edit: ah, that's node. I feel about the same about most node(js) stuff, but there's much less concensus on that, perhaps. OMZ is more unambiguously a bad idea).
Last edited by Trilby (2019-07-21 15:19:48)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Pages: 1