Problems with X-11 on MONSOON

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

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

Many thanks,
Scott

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.

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
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

Hi Scott,

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

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

You don’t need to have the IdentityFile line.

Cheers,
Ros.

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

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