Hockmiester
Posts: 3
Joined: Fri Jul 27, 2012 9:04 am

New Pi Invalid MIT-COOKIE-1

Fri Jul 27, 2012 9:09 am

Hi

I purchased a Pi for my daughter with a pre purchased OS on a SD. We hooked it all up and started the power. After entering the PW and startx the screen when blank for a few minutes.

Then I got a page of Invalid MIT-MAGIC-COOKIE-1 Key.. then 'giving up' followed by

server error and error in locking autherity file /home/pi/.Xauthority

This is a new Pi being booted for the first time.

Cheers

Mike

jayer89
Posts: 22
Joined: Wed Jul 25, 2012 3:16 am

Re: New Pi Invalid MIT-COOKIE-1

Fri Jul 27, 2012 7:24 pm

try reflashing your SD card and install the OS again then try again.

User avatar
hibol
Posts: 33
Joined: Thu Jul 26, 2012 9:44 am
Location: Switzerland

Re: New Pi Invalid MIT-COOKIE-1

Fri Jul 27, 2012 7:30 pm

This is exactly the problem I have too.
Sorry for opening meanwhile another topic about this issue... :oops:
Just let me now if reflashing your SD card solved the problem ! ;)

User avatar
PeterO
Posts: 5958
Joined: Sun Jul 22, 2012 4:14 pm

Re: New Pi Invalid MIT-COOKIE-1

Fri Jul 27, 2012 7:44 pm

MIT-COOKIEs are stored in a file called .Xauthority in your home directory.

Try deleting it with rm ~/.Xauthority then try startx again.

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

ramsey
Posts: 9
Joined: Sun Mar 08, 2015 12:30 am

Re: New Pi Invalid MIT-COOKIE-1

Fri Mar 20, 2015 8:11 pm

Well pi golly that's good.
I observed that got this error message ... sometimes. Turns out 'sudo leafpad ...' worked fine when I had all the keyboard/mouse/monitor connected and used the native session, but FAILED using VNC.
So I did as recommended and deleted .Xauthority from VNC ... and BEHOLD! I could do 'sudo leafpad' just fine. Back to the native session. All to once it was failing. Restarted X and I could do it again.
I note that deleting .Xauthority from the VNC session also made it go away in the native session (same user, pi). Running "sudo leafpad" in VNC recreated .Xauthority, but it was not visible in the native session until I restarted X.

User avatar
PeterO
Posts: 5958
Joined: Sun Jul 22, 2012 4:14 pm

Re: New Pi Invalid MIT-COOKIE-1

Fri Mar 20, 2015 8:14 pm

WOW !!!! Incomprehensible reply to three year old dead thread.
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

Return to “Troubleshooting”