# Problems with X-11 on MONSOON

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/problems-with-x-11-on-monsoon/303>\
**Category:** Rose/Cylc and FCM\
**Tags:** Monsoon2\
**Created:** [12 November 2021 12:31 UTC](https://cms-helpdesk.ncas.ac.uk/t/problems-with-x-11-on-monsoon/303 "2021-11-12T12:31:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottan](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/scottan/32/63_2.png) [@scottan](https://cms-helpdesk.ncas.ac.uk/u/scottan)\
**Post date:** [12 November 2021 12:31 UTC](https://cms-helpdesk.ncas.ac.uk/t/problems-with-x-11-on-monsoon/303/1 "2021-11-12T12:31:34Z")

</div>

Dear CMS support,

I’m having problems using X-11 (which I need to run Rose) on Monsoon. I haven’t used it for a while, and I have upgraded my operating system since the last time, which has caused issues with X-11 on other machines but I’ve usually been able to get it to work by changing the config files in .ssh. However, I don’t think I can use the same approach on Monsoon given I login using the RSA securID token. When I’ve looked online for help with these errors, most seem to require changing the `/etc/ssh/ssh_config` file on the host machine, which would require root privileges.

I’m using Mac OSX 11.6, XQuartz 2.8.1. I’ve tried logging in with both ssh -X and ssh -Y. When I login onto the monsoon servers I get the following errors:

Warning: No xauth data; using fake authentication data for X11 forwarding.

Invalid MIT-MAGIC-COOKIE-1 key

And when I try to run Rose, it fails because it cannot connect to my local display:

Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 key/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/ **init**.py:57: GtkWarning: could not open display

warnings.warn(str(e), \_gtk.Warning)

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:56: Warning: invalid (NULL) pointer instance

super(SplashScreen, self). **init** ()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:56: Warning: g\_signal\_connect\_data: assertion `G\_TYPE\_CHECK\_INSTANCE (instance)’ failed

super(SplashScreen, self). **init** ()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: Screen for GtkWindow not set; you must always set

a screen for a GtkWindow before using the window

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_display: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_display\_get\_pointer: assertion `GDK\_IS\_DISPLAY (display)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_n\_monitors: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_monitor\_geometry: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_default\_colormap: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_colormap\_get\_visual: assertion `GDK\_IS\_COLORMAP (colormap)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_root\_window: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_window\_new: assertion `GDK\_IS\_WINDOW (parent)’ failed

self.show()

Invalid MIT-MAGIC-COOKIE-1 key/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/ **init**.py:57: GtkWarning: could not open display

warnings.warn(str(e), \_gtk.Warning)

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:56: Warning: invalid (NULL) pointer instance

super(SplashScreen, self). **init** ()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:56: Warning: g\_signal\_connect\_data: assertion `G\_TYPE\_CHECK\_INSTANCE (instance)’ failed

super(SplashScreen, self). **init** ()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: Screen for GtkWindow not set; you must always set

a screen for a GtkWindow before using the window

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_display: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_display\_get\_pointer: assertion `GDK\_IS\_DISPLAY (display)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_n\_monitors: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_monitor\_geometry: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_default\_colormap: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_colormap\_get\_visual: assertion `GDK\_IS\_COLORMAP (colormap)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_root\_window: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_window\_new: assertion `GDK\_IS\_WINDOW (parent)’ failed

self.show()

Invalid MIT-MAGIC-COOKIE-1 key/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/ **init**.py:57: GtkWarning: could not open display

warnings.warn(str(e), \_gtk.Warning)

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:56: Warning: invalid (NULL) pointer instance

super(SplashScreen, self). **init** ()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:56: Warning: g\_signal\_connect\_data: assertion `G\_TYPE\_CHECK\_INSTANCE (instance)’ failed

super(SplashScreen, self). **init** ()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: Screen for GtkWindow not set; you must always set

a screen for a GtkWindow before using the window

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_display: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_display\_get\_pointer: assertion `GDK\_IS\_DISPLAY (display)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_n\_monitors: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_monitor\_geometry: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_default\_colormap: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_colormap\_get\_visual: assertion `GDK\_IS\_COLORMAP (colormap)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_screen\_get\_root\_window: assertion `GDK\_IS\_SCREEN (screen)’ failed

self.show()

/common/fcm/rose-2019.01.5/lib/python/rose/gtk/splash.py:91: GtkWarning: gdk\_window\_new: assertion `GDK\_IS\_WINDOW (parent)’ failed

self.show()

Segmentation fault

Any help welcome.

Kind regards,

Scott

---

<div class="post-metadata">

**Author:** ![scottan](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/scottan/32/63_2.png) [@scottan](https://cms-helpdesk.ncas.ac.uk/u/scottan)\
**Post date:** [18 November 2021 10:15 UTC](https://cms-helpdesk.ncas.ac.uk/t/problems-with-x-11-on-monsoon/303/2 "2021-11-18T10:15:20Z")

</div>

Hello, I’d appreciate some help on this is anyone is available.

Many thanks,  
Scott

---

<div class="post-metadata">

**Author:** ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)\
**Post date:** [18 November 2021 10:50 UTC](https://cms-helpdesk.ncas.ac.uk/t/problems-with-x-11-on-monsoon/303/3 "2021-11-18T10:50:12Z")

</div>

Hi Scott,

I’m not sure what to suggest. What changes did you make to the ssh config file for other machines? I would also suggest contacting the Met Office Monsoon team to see if they have any suggestions or if they know of anyone else who has encountered this problem.

Regards,  
Ros.

---

<div class="post-metadata">

**Author:** ![scottan](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/scottan/32/63_2.png) [@scottan](https://cms-helpdesk.ncas.ac.uk/u/scottan)\
**Post date:** [18 November 2021 10:59 UTC](https://cms-helpdesk.ncas.ac.uk/t/problems-with-x-11-on-monsoon/303/4 "2021-11-18T10:59:59Z")

</div>

Hi Ros,

On my local computer, I have Host sections like this in my .ssh/config file:

Host citadel  
Hostname [citadel.ch.cam.ac.uk](http://citadel.ch.cam.ac.uk)  
User sa847  
ServerAliveInterval 300  
IdentityFile %d/.ssh/foo  
XAuthLocation /opt/X11/bin/xauth

Adding the line  
XAuthLocation /opt/X11/bin/xauth  
Seems to help, and I also have this at the end of the file:

Host remote.Unix.system  
ForwardX11Trusted yes  
ForwardX11 yes

I use these for passwordless ssh on these other machines. I tried doing the equivalent with Monsoon but got stuck because I log in with a keycode instead. If you know of another way of passing the same information when logging into Monsoon that might help?

Thanks,  
Scott

---

<div class="post-metadata">

**Author:** ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)\
**Post date:** [18 November 2021 11:16 UTC](https://cms-helpdesk.ncas.ac.uk/t/problems-with-x-11-on-monsoon/303/5 "2021-11-18T11:16:34Z")

</div>

Hi Scott,

I may have misunderstood, but did you try just having the following:

```auto
Host lander.monsoon-metoffice.co.uk
User sanic
XAuthLocation /opt/X11/bin/xauth

```

You don’t need to have the `IdentityFile` line.

Cheers,  
Ros.

---

<div class="post-metadata">

**Author:** ![scottan](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/scottan/32/63_2.png) [@scottan](https://cms-helpdesk.ncas.ac.uk/u/scottan)\
**Post date:** [18 November 2021 11:32 UTC](https://cms-helpdesk.ncas.ac.uk/t/problems-with-x-11-on-monsoon/303/6 "2021-11-18T11:32:43Z")

</div>

Hi Ros,

Thank you, that seems to have worked!

Thanks for the help, setting up these config files always confuses me.

All the best,  
Scott

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/1fd2411499ffcbc299fe756cd5cdf26e44956558.png) [@system](https://cms-helpdesk.ncas.ac.uk/u/system)\
**Post date:** [20 November 2021 11:33 UTC](https://cms-helpdesk.ncas.ac.uk/t/problems-with-x-11-on-monsoon/303/7 "2021-11-20T11:33:04Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
