You are not logged in.

#1 2023-07-07 13:17:40

leouscin
Member
Registered: 2022-11-25
Posts: 15

MATLAB Invalid MIT-MAGIC-COOKIE-1 key

When I try to start up matlab from the console I get the error:

Invalid MIT-MAGIC-COOKIE-1 key

I couldn't find anything about it anywhere. Please help.

Offline

#2 2023-07-07 14:13:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,361
Website

Re: MATLAB Invalid MIT-MAGIC-COOKIE-1 key

leouscin wrote:

from the console...

Matlab is (per default at least) a gui application.  It needs to run in a X11 session unless it has an option / flag to run specifically in text-mode / REPL which it might (but I can't find any man page for it).

I'm not sure why the error didn't mention a missing DISPLAY variable (did you set one manually?) but this error is similar in that it is looking for an X11 display server.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-07-07 15:15:11

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,744
Website

Re: MATLAB Invalid MIT-MAGIC-COOKIE-1 key

Mod note: moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#4 2023-07-07 17:48:01

leouscin
Member
Registered: 2022-11-25
Posts: 15

Re: MATLAB Invalid MIT-MAGIC-COOKIE-1 key

Trilby wrote:
leouscin wrote:

from the console...

Matlab is (per default at least) a gui application.  It needs to run in a X11 session unless it has an option / flag to run specifically in text-mode / REPL which it might (but I can't find any man page for it).

I'm not sure why the error didn't mention a missing DISPLAY variable (did you set one manually?) but this error is similar in that it is looking for an X11 display server.

Yes, I set
export DISPLAY=:0

Offline

#5 2023-07-07 18:15:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,361
Website

Re: MATLAB Invalid MIT-MAGIC-COOKIE-1 key

And why would you do that?  That's (mostly) hypothetical ... don't do that.  If that export is in any config or shellrc file, get rid of it.

Then, if you want to run X11 applications, start an X11 session (Xorg [or really xinit or a DM or similar] will set DISPLAY for you - from the user point of view that should be seen as a read-only variable, much like TERM should be).

Last edited by Trilby (2023-07-07 18:17:39)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2023-07-08 04:38:36

leouscin
Member
Registered: 2022-11-25
Posts: 15

Re: MATLAB Invalid MIT-MAGIC-COOKIE-1 key

Trilby wrote:

And why would you do that?  That's (mostly) hypothetical ... don't do that.  If that export is in any config or shellrc file, get rid of it.

Then, if you want to run X11 applications, start an X11 session (Xorg [or really xinit or a DM or similar] will set DISPLAY for you - from the user point of view that should be seen as a read-only variable, much like TERM should be).

I didn't start the conversation to talk about the DISPLAY variable. I am having a problem firing up matlab becaus it constantly throws the error "Invalid MIT-MAGIC-COOKIE-1 key" and I don't have a clue how to fix it.

Offline

#7 2023-07-08 06:17:23

seth
Member
Registered: 2012-09-03
Posts: 63,433

Re: MATLAB Invalid MIT-MAGIC-COOKIE-1 key

I didn't start the conversation to talk about the DISPLAY variable.

No, but it is EXTREMELY relevant to

I am having a problem firing up matlab becaus it constantly throws the error "Invalid MIT-MAGIC-COOKIE-1 key"

xauth -v list
ls -l /tmp/.X11-unix
loginctl session-status
hostnamectl

If you want to debate whether you want to post the output of those commands while none of them will start matlab: talk to a wall.

Offline

#8 2023-07-09 23:06:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,361
Website

Re: MATLAB Invalid MIT-MAGIC-COOKIE-1 key

Whether you want to talk about it or not isn't relevant: you cant run an X11 client program except within a running X11 server.  Period.

Last edited by Trilby (2023-07-09 23:06:39)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB