Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid MIT-MAGIC-COOKIE-1 key caused by user nobody #3442

Open
rasmus91 opened this issue Mar 4, 2020 · 3 comments
Open

Invalid MIT-MAGIC-COOKIE-1 key caused by user nobody #3442

rasmus91 opened this issue Mar 4, 2020 · 3 comments

Comments

@rasmus91
Copy link

rasmus91 commented Mar 4, 2020

OS and Version

elementary OS 5.1 (Hera)

Flatpak version

Flatpak 1.6.2

Description of the problem

Whenever i try to run a flatpak, e.g. flatpak run <app-name> I simply get a message that i have an invalid magic cookie, here's the example with slack

Gtk-Message: 21:30:41.689: Failed to load module "pantheon-filechooser-module"
Invalid MIT-MAGIC-COOKIE-1 key
(slack:2): Gtk-WARNING **: 21:30:41.690: cannot open display: :99.0
[fake-sandbox: zypak-sandbox] No data could be read (host died?)
[fake-sandbox: zypak-sandbox] Quitting Zygote... 

Steps to reproduce

I've no idea why or how it does this. This time, It happened when I had booted my laptop at home.
I clicked the icon, but i just got the spinning cursor. So then i tried running from terminal and I got the above message.

@rasmus91
Copy link
Author

rasmus91 commented Mar 4, 2020

Right! So I tried a few things in the terminal, then went to do reboot bot it told me that user nobody was logged into the system...

So i went to good ol' FF and searched for that. Turns out nobody is sometimes used by systemd (or its units?) to run certain services, then i recalled i installed ofono-phonsim-autostart today, and while starring at the terminal i noticed it creating a systemd file. So I tried apt removing that package, rebooting and behold; flatpaks work on my system again.

I don't know if its the specific service that mucks it up, or the nobody user in general, can someone else try with the ofono-phonesim-autostart package, and then maybe tell if there's another package that uses user nobody, that i can test with, so we can ascertain where exactly the problem lies? Because this seems to somehow have messed with the X session

@rasmus91 rasmus91 changed the title Invalid MIT-MAGIC-COOKIE-1 key Invalid MIT-MAGIC-COOKIE-1 key caused by user nobody Mar 4, 2020
@TingPing
Copy link
Member

TingPing commented Mar 4, 2020

Maybe the service is overwriting the XAUTHORITY env var or file.

@rexkerr
Copy link

rexkerr commented Feb 17, 2021

Had the same problem with being unable to launch flatpak apps that used X, with a similar MIT-MAGIC-COOKIE-1 error. Searching brought me here, and sure enough I'd installed the ofono-phonesim-autorestart package today, and removing it fixed the problem. (For me, it was on Ubuntu 18.04 -- some packages would start [e.g. Audacity], and others would not [e.g. Evolution, Pinta])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants