Results 1 to 7 of 7

Thread: [X11] Invalid MIT-MAGIC-COOKIE-1 mess

  1. #1
    Join Date
    May 2009
    Location
    Liège Walifornia
    Posts
    396

    Question [X11] Invalid MIT-MAGIC-COOKIE-1 mess

    Greetings !!
    Recently, and this happens completly at random, I got some "Invalid MIT-MAGIC-COOKIE-1 key" messages.

    I can not trace from where this misfunctionnal message comes from and that is frustrating.
    I looked on this forum and find no satisfying workarounds, as this never happened before and I did not changed the system but did the updates.

    The command xauth list displays

    Code:
    xauth list
    sirius.dezordi.world/unix:0  MIT-MAGIC-COOKIE-1  de868872a19160bdxxx95cf11b4aeaa
    sirius/unix:0  MIT-MAGIC-COOKIE-1  3db5f468e43b5c51205d63f6xxx9b03d
    sirius is the hostname and dezordi.world the domain.
    I put some xxx to make it cool on the hash key ^^

    I saw that xhost + should resolve the messages to be displayed but this workaround is not persistent.
    I saw some scripts to add to the bashrc but this is not a normal behaviour and don't want to add it.

    Question: how could I set back the system to a "normal" behaviour ?

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    13,837
    Blog Entries
    3

    Default Re: [X11] Invalid MIT-MAGIC-COOKIE-1 mess

    No guarantees. But this has worked for me:

    (1) Logout from the desktop.
    (2) At the login screen, use CTRL-ALT-F1 to get to a virtual console.
    (3) Login as yourself at that command line.
    (4) Remove ".Xauthority" with
    Code:
    rm -f .Xauthority
    (5) Logout at the command line
    (6) Use CTRL-ALT-F7 to get back to the graphic login screen
    (7) Login.
    openSUSE Leap 15.2; KDE Plasma 5.18.5;

  3. #3
    Join Date
    May 2009
    Location
    Liège Walifornia
    Posts
    396

    Default Re: [X11] Invalid MIT-MAGIC-COOKIE-1 mess

    I did not yet overstood why it happened suddenly.
    The workaround provided didn't worked... I still have those messages displayed and some applications can not launch at all.

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    21,584
    Blog Entries
    1

    Default Re: [X11] Invalid MIT-MAGIC-COOKIE-1 mess

    Quote Originally Posted by soundlord View Post
    I did not yet overstood why it happened suddenly.
    The workaround provided didn't worked... I still have those messages displayed and some applications can not launch at all.
    The openSUSE network configuration may be be relevant here. I assume the Xorg is sometimes started before network connectivity is complete perhaps? Are you using NetworkManager or wicked? Is 'hostname' consistent with 'xauth list' when you have the 'magic'cookie' errors?
    openSUSE Leap 15.2; KDE Plasma 5

  5. #5
    Join Date
    Sep 2012
    Posts
    5,646

    Default Re: [X11] Invalid MIT-MAGIC-COOKIE-1 mess

    What is output of
    Code:
    env | grep XAUTHORITY
    ?

  6. #6

    Default Re: [X11] Invalid MIT-MAGIC-COOKIE-1 mess

    Quote Originally Posted by nrickert View Post
    No guarantees. But this has worked for me:

    (1) Logout from the desktop.
    (2) At the login screen, use CTRL-ALT-F1 to get to a virtual console.
    (3) Login as yourself at that command line.
    (4) Remove ".Xauthority" with
    Code:
    rm -f .Xauthority
    (5) Logout at the command line
    (6) Use CTRL-ALT-F7 to get back to the graphic login screen
    (7) Login.
    This worked for me on my laptop. Thanks! I've been getting this on my desktop, too, will try on that next.
    Desktop : Leap 15.1 | KDE Plasma | AMD Phenom II x6 1035T | 8 GB Memory | Integrated Radeon HD4250 | Ext4
    Laptop: Leap 15.1 | KDE Plasma | Intel Core i5 3rd Gen 3320M 2.6GHz | Intel HD Graphics 4000 | 8 GB Memory | Ext4

  7. #7
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,905

    Default Re: [X11] Invalid MIT-MAGIC-COOKIE-1 mess

    Note that if you ever log into a GUI as root you can change ownership of ~/.Xauthority to root totally by accident. So never log into a GUI as root

Posting Permissions

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