LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-04-2021, 10:52 AM   #1
tom95
LQ Newbie
 
Registered: May 2021
Posts: 1

Rep: Reputation: Disabled
Invalid MIT-MAGIC-COOKIE-1 key when running MPI programs on Ubuntu 20.04


So i am trying to run a program using sst (SST-Simulator) which also uses MPI internally. The programs run fine but everytime i use "sst" i get this unwanted terminal output:
Code:
Invalid MIT-MAGIC-COOKIE-1 keyERROR: no sdl-file specified
 Usage: sst sdl-file [options]
I have tried changing graphical driver from the Nvidia one to x.org as other answers here suggested but it didn't work.
 
Old 03-22-2023, 06:23 AM   #2
alexey.v.medvedev
LQ Newbie
 
Registered: Mar 2023
Posts: 1

Rep: Reputation: 0
The issue is caused by the `libhwloc` library, which is used by `OpenRTE` (the OpenMPI component) to explore the hardware topology of the node during the launch of parallel processes. When `hwloc_topology_load()` is called, `libhwloc` iterates over all of its available components, which are implemented as plug-ins. One of these components, `gl`, is responsible for gathering information about the system's graphics devices and uses X11 calls like `XOpenDisplay()`, which can generate the error message "Invalid MIT-MAGIC-COOKIE-1 key" if it fails to connect to the X11 server.

In many cases, this gl component is not needed on HPC clusters and can be safely disabled by setting the `HWLOC_COMPONENTS` environment variable to exclude it:

`export HWLOC_COMPONENTS="-gl"`
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling and running my java programs, I get: Invalid MIT-MAGIC-COOKIE-1 key before it runs Birdman48 Programming 1 12-25-2020 09:32 AM
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 when trying x11 forwarding Sean1988 Linux - Newbie 2 05-12-2014 05:35 AM
firefox 3.0.5 on 64 bit: MIT-MAGIC-COOKIE-1 keyError business_kid Linux - Software 2 06-09-2009 03:50 AM
Xlib: Invalid MIT-MAGIC-COOKIE-1 key bobbens Debian 2 01-17-2005 09:11 AM
Mit-magic-cookie ??? overlord73 Fedora 1 12-17-2004 04:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration