• Stuck in a login loop


    Hi!

    I’ve been using the antergos for a couple of months and everything was working fine. Today however it just decided to die. When I try to log in the screen goes black and it returns to the login screen again.
    I get a few errors during boot:

    kfd kfd: error getting iommu info. is the iommu enabled?
    kfd kfd: Error initializing iommuv2 for device (1002:1318)
    kfd kfd: device (1002:1318) NOT added due to errors
    usb 5-5: device descriptor read/65, error -110
    radeon 000:01:00.0: failed VCE resume (-110).
    

    If I press Ctrl+Alt+F2 and login there I get

    -- [username]: /home/[username]: change directory failed: Permission denied
    Logging in with home = "/".
    -bash: /home/[username]/.bash_profile: Permission denied
    

    I’ve been trying all day to get it to work but I’m out of luck right now so I hope mabye anyone here has any tips to what to do. I rather not reinstall since I have alot of school projects on there but I guess if that’s the only option then so be it.

    Thanks in advance,
    Paul

  • @PaulPie
    Hi friend!
    Did you change your username? The name of your /home folder?
    instead of loggin in with your user using Ctrl+Alt+F2 type root as user and your password.
    then ls /home to check if your home folder has a different name just in case…

    Portergos site
    https://github.com/Portergos/portergos-iso

    Still in love with Antergos (default OS)
    I3wm

    Linux newbie since 06/2016

  • Hi!

    My home folder is still there I can access it and everything as long I use sudo for it.

  • @PaulPie said in Stuck in a login loop:

    – [username]: /home/[username]: change directory failed: Permission denied
    Logging in with home = “/”.
    -bash: /home/[username]/.bash_profile: Permission denied

    looks like permission failure … you can give your user the rights back:

    $ sudo chown -R [username] /home/[username]

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • Hi!

    Yes that’s was my first guess aswell. I did try that before with no luck and I tried it once again as root just now but still stuck in a loop on the login screen.

    However this time I got some other messages during boot

    [FAILED] Failed to start Load/Save Screen Backlight Brightness of backlight:acpi_video1.
    See 'systemctl status [email protected]:acpi_video1.service' for details.
    [  OK  ] Started Load/Save Screen Backlight Brightness of backlight:radeon_bl0.
    [FAILED] Failed to start Load/Save Screen Backlight Brightness of backlight:acpi_video0.
    See 'systemctl status [email protected]:acpi_video0.service' for details.
    Starting Hostname Service..
    [  OK  ] Reached target User and Groud Name Lookups
             Starting Accounts Service...
    [  OK  ] Started Hostname Service.
    [  OK  ] Started Accounts Service.
    

    The ‘Load/Save’ messages has appeared before, but they are random if they show up or not. I’ve also googled these but none solution works. Unless I did them wrong.

    Edit: The ‘Permission denied’ messages are still there when I log in on Ctrl+Alt+F2

    Thanks for the reply,
    Paul

  • @PaulPie said in Stuck in a login loop:

    Edit: The ‘Permission denied’ messages are still there when I log in on Ctrl+Alt+F2

    Couldn’t you login as root?

    i can think about creating a new user (at least to see if is able to login) and later transfer config files…

    https://wiki.archlinux.org/index.php/Users_and_groups#Example_adding_a_user
    or
    https://wiki.archlinux.org/index.php/Users_and_groups#Change_a_user.27s_login_name_or_home_directory

    Portergos site
    https://github.com/Portergos/portergos-iso

    Still in love with Antergos (default OS)
    I3wm

    Linux newbie since 06/2016

  • @fernandomaroto said in Stuck in a login loop:

    @PaulPie said in Stuck in a login loop:

    Edit: The ‘Permission denied’ messages are still there when I log in on Ctrl+Alt+F2

    Couldn’t you login as root?

    i can think about creating a new user (at least to see if is able to login) and later transfer config files…

    https://wiki.archlinux.org/index.php/Users_and_groups#Example_adding_a_user
    or
    https://wiki.archlinux.org/index.php/Users_and_groups#Change_a_user.27s_login_name_or_home_directory

    I can login as root.
    I created a new user and I managed to login with it so I can see the desktop now atleast. Not sure why I can’t with the other user though.
    Progress! 👐

    Edit: I tried to change the new users home directory to mine. When trying to login now I get the same login loop so it seems to be something wrong with that particular users folders mabye? Well I removed the test user and made a new one incase I need to use it. 🙂

    Edit2: I followed this guy ‘Copy xfce4 configuration files from one user to another’ since I wanted to have my settings and stuff. But from what I can tell all the programs that I installed on my real user is still for that one right? I’m not sure how safe it would be to transfer files since I don’t know what caused it in the first place. Any suggestions on what to do?

  • ls -ld /home/[username]
    should look like this:
    drwx------ 24 [username] users 4096 18. Sep 19:16 /home/[username]

    @PaulPie said in Stuck in a login loop:

    I tried to change the new users home directory to mine.

    Because it do not work before for your original user it can not work for the new one …

    You will need to copy the files to the new home directory…

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @joekamprad said in Stuck in a login loop:

    ls -ld /home/[username]
    should look like this:
    drwx------ 24 [username] users 4096 18. Sep 19:16 /home/[username]

    @PaulPie said in Stuck in a login loop:

    I tried to change the new users home directory to mine.

    Because it do not work before for your original user it can not work for the new one …

    You will need to copy the files to the new home directory…

    Yeah, I didn’t think it would work either but I was hoping it would. 😄.

    Edit2: I followed this guy ‘Copy xfce4 configuration files from one user to another’ since I wanted to have my settings and stuff. But from what I can tell all the programs that I installed on my real user is still for that one right? I’m not sure how safe it would be to transfer files since I don’t know what caused it in the first place. Any suggestions on what to do?

  • @PaulPie said in Stuck in a login loop:

    ls -ld /home/[username]

    will show what is wrong with permissions…

    And you have to know what you have done before this happen, installing something removing something e.t.c.
    You can take a look to the journal:

    journalctl --since "48 hours ago" (or what else 😉
    if you want i can have a look:

    journalctl --since "48 hours ago" | curl -F [email protected] https://ptpb.pw/?u=1 this will give a url you can share … and the log will not include any safety relevant data, but username, machine name, and may also wireless access node names …

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • Oh it’s totally fine I don’t really have anything personal info on this laptop anyways so I’m not worried. ^^

    Here’s the link

    Edit:
    @PaulPie said in Stuck in a login loop:

    ls -ld /home/[username]

    That gives me:

    d------r-x 49 kjek users 4096 18 sep 18.24 /home/kjek
    
  • @PaulPie said in Stuck in a login loop:

    d------r-x 49

    sudo chown -R kjek:kjek /home/kjek
    

    you are try a lot of stuff in the last 48 hours 😉

    sep 18 09:03:46 Kjek sudo[28281]: kjek : TTY=pts/0 ; PWD=/home/kjek/Hämtnignar ; USER=root ; COMMAND=./xampp-linux-x64-7.1.8-0-installer.run

    https://wiki.archlinux.org/index.php/XAMPP not a good idea to use the run file to install…

    here it starts failing:

    sep 18 12:30:55 Kjek systemd[560]: Failed to open directory /home/kjek/.config/systemd/user, ignoring: Permission denied

    may you try to start a server and have /home/kjek/htdocs for it … ?

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • Haha yeah. I figured it had to do with XAMPP or something I installed today. Trying to get it to work for school you know but it didn’t want to cooperate. 😅 I guess I should use the AUR more huh. 😜

    @joekamprad said in Stuck in a login loop:

    may you try to start a server and have /home/kjek/htdocs for it … ?

    I couldn’t put my files in /opt/lampp/htdocs, or whatever folder it was, so I thought it would be easier to have a folder I can access faster so it would simplify it for me.

  • https://wiki.archlinux.org/index.php/XAMPP is providing a good howto on it… but i would use something more easy like darkhttpd if you want to have a tempoary server, you can start it without any complicated configuration…

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @joekamprad said in Stuck in a login loop:

    sudo chown -R kjek:kjek /home/kjek

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @joekamprad said in Stuck in a login loop:

    sudo chown -R kjek:kjek /home/kjek

    Oh yea sorry, yes I tried that and it says:

    chown: invalid group 'kjek:kjek'
    

    I assume it was ‘kjek:users’ instead? But that has no effect, still can’t login on that user.

  • chmod -R 700 /home/[username]
    chown -R [username] /home/[username]
    

    is better as the group should be o.k. it is already users…

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @joekamprad said in Stuck in a login loop:

    chmod -R 700 /home/[username]
    chown -R [username] /home/[username]
    

    is better as the group should be o.k. it is already users…

    The second command gives me:

    chmod: invalid mode: 'kjek'
    

    But the first one worked and I can login again! Woohoo!

    Thank you two guys so much you are heroes man! 🤜

    Anything else I should be doing? Looks like everything is working. 😄

  • yea removing lamb server and the kde stuff you installed before if you do not need it…
    If you want to use a simple server install darkhttpd it is simple started by a command and you only have to specify the http/root http://dmr.ath.cx/net/darkhttpd/ :

    darkhttpd/1.12, copyright © 2003-2016 Emil Mikulic.
    usage: darkhttpd /path/to/wwwroot

    help? darkhttpd --help

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @joekamprad said in Stuck in a login loop:

    yea removing lamb server and the kde stuff you installed before if you do not need it…
    If you want to use a simple server install darkhttpd it is simple started by a command and you only have to specify the http/root http://dmr.ath.cx/net/darkhttpd/ :

    darkhttpd/1.12, copyright © 2003-2016 Emil Mikulic.
    usage: darkhttpd /path/to/wwwroot

    help? darkhttpd --help

    Oh man that was really simple. I’m actually impressed. 😄
    Works like a charm!

    I removed the lamp and the kde stuff.

    Thanks for all your help joekamprad and fernandomaroto you guys really saved me right here. 😜

login111 stuck39 loop7 Posts 21Views 3173
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.