SOLVED : Graphical interface Matlab not working

Hello everyone.

This may be related to the migration Centos6–>Centos7 but i cannot access the Matlab graphical interface on login1 (login 2 does not work for me, issue pending in another topic).
I got allocated a node

salloc -n1 -c 12 --partition=mono-shared --time=10:00:00 srun -n1 -N1 --pty $SHELL
salloc: Pending job allocation 16714523
salloc: job 16714523 queued and waiting for resources
salloc: job 16714523 has been allocated resources
salloc: Granted job allocation 16714523

However, when I try to start Matlab on another terminal (as it used to work before)

[benis@login1 ~]$ ssh -Y node192
Last login: Fri May 17 12:47:36 2019 from login1.cluster
Installed: Fri May 3 16:37:50 CEST 2019
[benis@node192 ~]$ module load matlab
[benis@node192 ~]$ matlab &

I get an error:

X11 connection rejected because of wrong authentication.
MATLAB is selecting SOFTWARE OPENGL rendering.
X11 connection rejected because of wrong authentication.

It is then stuck and matlab never starts.
Is there a way to solve this problem ?

Thank you for your replies

Update:
I succeeded to login at login2
Now i get

[benis@node184 ~]$ module load matlab
[benis@node184 ~]$ matlab &
[1] 87813
[benis@node184 ~]$ MATLAB is selecting SOFTWARE OPENGL rendering.
Fatal Internal Error: Unexpected exception: ‘N5boost16exception_detail10clone_implINS0_39current_exception_std_exception_wrapperISt13runtime_errorEEEE: Bundle#5 start failed: libXt.so.6: cannot open shared object file: No such file or directory’ in createMVMAndCallParser phase ‘Creating local MVM’
^C
Any suggestions?

Best
Damien

Dear Damien,

for the issue with login2 and Matlab, there is a workaround:

module load foss/2016a libXt/1.1.5 matlab/2018b

Dear Damien,

we will check that issue. It’s not related to CentOS7 as login1 and node192 are in CentOS6.

Best

Hi there,

This has now been fixed globably, so no more workaround needed on CentOS 7.

Sorry for the inconvenience.

Thx, bye,
Luca

Hi there,

The original issue (thus MATLAB in graphical interface not working on CentOS 6 nodes) has now been fixed as well.

Sorry for the inconvenience.

Thx, bye,
Luca

Thank you very much

Best

Damien