Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Login, X trouble - flailing.

  1. #1
    Join Date
    Sep 2011
    Beans
    36

    Login, X trouble - flailing.

    I thought I posted this earlier, but it seems it disappeared? Sorry about this:

    The clearest statement of my symptom : login to the desktop works as expected, however, in about 2-3 seconds, the user (not root) seems to be kicked out to the login screen again.

    some more info:

    Ctrl-F1 or Ctrl-F3 can get the command line login up for the user. I can login, then `sudo startx`. Sometimes that works to get a desktop up, but leads to trouble, for example when starting Firefox. Also, seems the user is “root”, and this is just a mess.

    There are no “EE” in the Xorg.0.log.
    I tried moving the .Xauthority out.
    I’m not sure what to look for in grub or elsewhere.

    I expect my dabbling with installing wine and some other python-related items is the cause of this. Apt-get update has been done enough that there are zero new or updated packages.

    I’d like to avoid reinstalling the OS. Maybe updating to 19 would make this go away.

    Ubuntu version 18.0.4

    Apologies for the poor clarity of the description. Thanks for any guidance.

  2. #2
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Login, X trouble - flailing.

    I can only intuitively suggest an approach I would try in these circumstances (not from any direct experience).

    If you can get into a stable desktop position can you create a new user account to see if these symptoms carry into the new user profile after reboot.

  3. #3
    Join Date
    Sep 2011
    Beans
    36

    Re: Login, X trouble - flailing.

    Made a new user account. Went OK until I starting Firefox. GUI never appeared. System seemed to freeze or slow way down.... and now it is frozen, can’t Ctrl-Alt-Del or use ctrl-alt-F[1-3].

  4. #4
    Join Date
    Sep 2011
    Beans
    36

    Re: Login, X trouble - flailing.

    ... (ongoing work updated as I try to solve this)...

    Ctrl-Alt-F1 (or was it F3? Pretty sure F3, not F1) login ok, ‘startx’ as the test user ok, Firefox ok... use plain old login screen, also OK... looking like my own account contains the problem....

    Doing ‘Switch user’ produces the same problem - the Desktop shows up (but with a black background, and only the Trash icon), and rapidly kicks the session out (logout, i guess), to the plain old login screen.

    My own account: try C-A-F3 login, works. However, ‘startx’ fails, producing error (updated post-facto):

    “xauth: timeout in locking authority file /home/myownuser/.Xauthority.”

    oh no - the screen went black, pointer is frozen. Ctrl-Alt-F1 gets back to the plain old login screen...(I will try to put the error output above if I see it again)....

    Eventually I get a Desktop session using the test user. I can see different .Xauthority files, with “-l” or “-c” appended to them. Also, .x-session-errors and .Xauthority were owned by root - my fault. Moved them out, but still getting kicked out. It appears that no new .x-session-errors or .Xauthority files are being written after doing this. Finally get to ‘startx’ as my own user, and I get a stable Desktop. But cannot get there from login screen where the mouse pointer can click on the users.

    And now a new clue :

    “Enter password to unlock your login ... The login keyring did not get unlocked when you logged into your computer”

    It keeps coming up every time the Desktop (or ‘startx’) comes up.... or.... no, it’s only with Google Chrome!... ok, leaving that aside... [Googles this problem]... you know, this might be the reason..

    Ok, so I have a lead of some sort. Apologies for the dramatic moment-to-moment post.
    Last edited by crackers_altitude; 1 Week Ago at 07:22 PM. Reason: Add details as I go

  5. #5
    Join Date
    Sep 2011
    Beans
    36

    Re: Login, X trouble - flailing.

    should anything in a users's .cache be owned by root?

    because during some backups, I noticed .cache/gnome-shell and .cache/dconf were owned by root.

  6. #6
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    4,879
    Distro
    Xubuntu 19.10 Eoan Ermine

    Re: Login, X trouble - flailing.

    Quote Originally Posted by crackers_altitude View Post
    I’d like to avoid reinstalling the OS. Maybe updating to 19 would make this go away.
    It won't. Release upgrades don't fix problems; they make them worse.

    The only exception is when a problem is caused by incompatible hardware and a more recent kernel fixes it, but that's not the case here.
    Quote Originally Posted by crackers_altitude View Post
    should anything in a users's .cache be owned by root?

    because during some backups, I noticed .cache/gnome-shell and .cache/dconf were owned by root.
    Nothing in your home directory should be owned by root. Everything should be owned by you.

    It's a common mistake amongst new Ubuntu users. Misusing sudo can lead to root-owned files in your home directory in places you don't expect, like configuration files and cache files written whilst you were editing something else. These root-owned files cause problems, which can be circumvented by using more sudo. People get "Permission denied" and think "Maybe sudo helps." Indeed it does, but it makes the problem worse. That's why people should only use sudo when they know why they need it.

    Anyway, one thing you can try to solve this is a recursive chown:
    Code:
    sudo  chown  -R  username:username  /home/username
    Substitute your username. Be careful. Make sure you get all the spaces right. Single spaces are enough, but I used double spaces so you can see them more easely. A recursive chown on the wrong directory will destroy your system.

    But you shouldn't be scared of a fresh install.

  7. #7
    Join Date
    Sep 2011
    Beans
    36

    Re: Login, X trouble - flailing.

    thank you Impavidus. as I work to solve this, I will put notes here.

    first, the two directories in this discussion so far :

    Code:
    sudo ls -ltraF dconf/ ; sudo ls -ltraF gnome-shell/
    total 12
    drwx------  2 root   root   4096 Jan 10 12:03 ./
    -rw-------  1 root   root      2 Jan 10 12:04 user
    drwx------ 30 myusername myusername 4096 Jan 11 11:24 ../
    total 20
    drwx------  2 root   root   4096 Jan  8 10:37 runtime-state-LE.:0/
    drwx------  2 root   root   4096 Jan  8 10:54 runtime-state-LE.:1/
    drwx------  5 root   root   4096 Jan 10 11:41 ./
    drwx------  2 root   root   4096 Jan 10 12:04 runtime-state-LE.:2/
    drwx------ 30 myusername myusername 4096 Jan 11 11:24 ../
    can any of these things be simply removed and then get re-written by myusername at next login?

    I looked around for more root-owned things with
    Code:
    ls -ltraFR | grep " root "
    , and sure enough, there are files and hidden directories in particular that have "Permission denied" on them. including .dbus - that doesn't sound good to me.

    I have to think about how to do this, but in the meantime, I'm posting this as a sort of problem-solving log...
    Last edited by crackers_altitude; 1 Week Ago at 05:07 PM. Reason: added note about .dbus

  8. #8
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    4,879
    Distro
    Xubuntu 19.10 Eoan Ermine

    Re: Login, X trouble - flailing.

    It seems to be quite a mess, like a lot of things have been done with sudo that shouldn't. A recursive chown on your home directory as described in my previous post won't harm and may fix some things. I don't know a lot about the internals of dconf, dbus and gnome-shell.

  9. #9
    Join Date
    Sep 2011
    Beans
    36

    Re: Login, X trouble - flailing.

    OK - well, I did chown and chgrp on a few things, and the user still gets kicked out of the Desktop after about 1-3 seconds, then has to use Ctrl-Alt-F3 to get in. I'll see what else turns up...

  10. #10
    Join Date
    Sep 2011
    Beans
    36

    Re: Login, X trouble - flailing.

    tried some more things :

    moved .Xauthority, .xsession-errors, .ICEauthority, .bashrc, .sudo_as_admin_successful out of the home directory and renamed them. got fresh .bashrc from a test user account. logout/login : same result (have to use Ctrl-Alt-F3 to get in, then as myusername (NOT SUDO) run startx. Desktop comes up ok.

    some more internet searching with "ubuntu user login desktop kicked off" turned up useful pages (but no solution I can see), for instance :

    https://askubuntu.com/questions/2235...n-a-login-loop

    and I note that I am using plain Nvidia drivers with an Nvidia card - that is, not the proprietary driver. glxgears works fine. There are no errors ("EE") in the Xorg.0.log.
    Last edited by crackers_altitude; 1 Week Ago at 04:31 PM. Reason: add .sudo_as_admin_successful comment

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •