CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Invalid MIT-MAGIC-COOKIE-1 key in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2021, 07:49
Default Invalid MIT-MAGIC-COOKIE-1 key in OpenFOAM
  #1
Member
 
Join Date: Mar 2021
Posts: 39
Rep Power: 5
trailer is on a distinguished road
Hello,


I am using OpenFOAM v2012 on Ubuntu 20.04.


When I run simulations in parallel, I get the following statement:


Code:
Invalid MIT-MAGIC-COOKIE-1 key
What is this? Is it influencing anything on the simulation? How can I correct this?


Best Regards!
trailer is offline   Reply With Quote

Old   August 4, 2021, 09:09
Default
  #2
Member
 
Join Date: Mar 2021
Posts: 39
Rep Power: 5
trailer is on a distinguished road
Changed the driver from NVIDIA to X.ORg and it disappeared...
trailer is offline   Reply With Quote

Old   November 23, 2021, 07:49
Default
  #3
Member
 
Join Date: Mar 2021
Posts: 39
Rep Power: 5
trailer is on a distinguished road
Has anyone else experienced this and was able to solve it with nvidia drivers?
trailer is offline   Reply With Quote

Old   November 26, 2021, 07:01
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Could try with
Code:
  export QT_X11_NO_MITSHM=1

and see if that help at all.
olesen is offline   Reply With Quote

Old   November 30, 2021, 04:21
Default
  #5
Member
 
Join Date: Mar 2021
Posts: 39
Rep Power: 5
trailer is on a distinguished road
Hello Mr. Olesen,


Thanks for the input, but that did not remove the "Invalid MIT-MAGIC-COOKIE-1 key" statement.

The results do not appear to be affected by that, but it is very annoying!
trailer is offline   Reply With Quote

Old   November 30, 2021, 06:21
Default
  #6
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 8
s1291 is on a distinguished road
Try:

Code:
# remove openmpi-bin
sudo apt remove openmpi-bin

# install mpich
sudo apt install mpich
__________________
"When in doubt, use brute force." -- Ken Thompson
s1291 is offline   Reply With Quote

Old   December 4, 2021, 05:00
Default
  #7
Member
 
Join Date: Mar 2021
Posts: 39
Rep Power: 5
trailer is on a distinguished road
Quote:
Originally Posted by s1291 View Post
Try:

Code:
# remove openmpi-bin
sudo apt remove openmpi-bin

# install mpich
sudo apt install mpich

Not good. Just by executing those commands I get whenever I load OpenFOAM

Code:
gcc: error: unrecognized command line option ‘--showme:link’
And when I run something in parallel:
Code:
[[INVALID],INVALID] ORTE_ERROR_LOG: A system-required executable either could not be found or was not executable by this user in file ess_singleton_module.c at line 572
It looks like orte_init failed for some reason; your parallel process is
likely to abort.  There are many reasons that a parallel process can
fail during orte_init; some of which are due to configuration or
environment problems.  This failure appears to be an internal failure;
here's some additional information (which may only be relevant to an
Open MPI developer):

  orte_ess_init failed
  --> Returned value A system-required executable either could not be found or was not executable by this user (-126) instead of ORTE_SUCCESS
trailer is offline   Reply With Quote

Old   December 4, 2021, 05:21
Default
  #8
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 8
s1291 is on a distinguished road
Please check these posts:


Otherwise, revert to the previous state:

Code:
# Remove mpich
sudo apt remove mpich

# Install openmpi-bin
sudo apt install openmpi-bin libopenmpi-dev
__________________
"When in doubt, use brute force." -- Ken Thompson
s1291 is offline   Reply With Quote

Old   March 22, 2023, 09:29
Default
  #9
New Member
 
Alexey V. Medvedev
Join Date: Mar 2023
Posts: 1
Rep Power: 0
alexey.v.medvedev is on a distinguished road
Quote:
Originally Posted by trailer View Post
Code:
Invalid MIT-MAGIC-COOKIE-1 key
What is this? Is it influencing anything on the simulation? How can I correct this?
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"`
alexey.v.medvedev is offline   Reply With Quote

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
Simple supported beam, incorrect solution optymista93 Structural Mechanics 0 November 15, 2017 10:36
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 03:19
[OpenFOAM.org] "Host key verification failed". upgrades to OpenMPI with OpenFoam 2.3.1 derekm OpenFOAM Installation 0 January 6, 2016 06:54
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36


All times are GMT -4. The time now is 22:58.