Error using Brainstorm on Linux box

Hi,

I'm running Brainstorm version 12-May-2022 on Matlab 2022a, via X2Go on another Linux box, the database directory is just empty. Both computers use Debian 10 last update.
Now, if I unzip a brand new version of Brainstorm, get rid of the old .brainstorm, clean the Matlab path, and run brainstorm for the first time, everything looks fine. However if I close brainstorm (or change something on the preferences) and try to run it a second time, the GUI pops up normally but I get this error on the stdout:

An error occurred while initializing child process: While attempting to execute "mv -f "/home/datalab/.brainstorm/is_started.txt"
"/tmp/MATLAB_Files_13-May-2022_08_31_15/is_started.txt"" in context { environment : { ARCH : glnxa64, AUTOMOUNT_MAP : ,
BASEMATLABPATH : , COLORTERM : truecolor, DBUS_SESSION_BUS_ADDRESS :
unix:abstract=/tmp/dbus-hCzmFbYCIz,guid=cc040e8051d375bad206bfe9627d232a, DESKTOP_SESSION : LXDE, DISPLAY : :50,
GFORTRAN_STDERR_UNIT : -1, GFORTRAN_STDIN_UNIT : -1, GFORTRAN_STDOUT_UNIT : -1, GNOME_TERMINAL_SCREEN :
/org/gnome/Terminal/screen/620492ec_f24f_48f4_a510_fa8fd003a1b6, GNOME_TERMINAL_SERVICE : :1.21, GPG_AGENT_INFO :
/run/user/1001/gnupg/S.gpg-agent:0:1, GTK_MODULES : , HOME : /home/datalab, ICU_TIMEZONE_FILES_DIR :
/home/datalab/MATLAB/R2022a/bin/icutzdata, KMP_BLOCKTIME : 1, KMP_HANDLE_SIGNALS : 0, KMP_INIT_AT_FORK : false, KMP_STACKSIZE :
512k, LANG : it_IT.UTF-8, LC_NUMERIC : C, LD_LIBRARY_PATH :
/home/datalab/MATLAB/R2022a/sys/opengl/lib/glnxa64:/home/datalab/MATLAB/R2022a/sys/os/glnxa64:/home/datalab/MATLAB/R2022a/bin/glnxa64:/home/datalab/MATLAB/R2022a/extern/lib/glnxa64:/home/datalab/MATLAB/R2022a/cefclient/sys/os/glnxa64:/home/datalab/MATLAB/R2022a/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/home/datalab/MATLAB/R2022a/sys/java/jre/glnxa64/jre/lib/amd64/server,
LD_PRELOAD : , LOGNAME : datalab, LS_COLORS :
rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:,
MAIL : /var/mail/datalab, MATLAB : /home/datalab/MATLAB/R2022a, MATLABPATH : , MEMKIND_HEAP_MANAGER : TBB, MKL_DOMAIN_NUM_THREADS :
, MKL_NUM_THREADS : , MW_LD_SHIM : /home/datalab/MATLAB/R2022a/bin/glnxa64/ld_shim.so.2.28, MW_PATCH_OFFSETS : 00000EA000000040,
OLDPWD : /home/datalab/MATLAB/R2022a, OSG_LD_LIBRARY_PATH : /home/datalab/MATLAB/R2022a/sys/openscenegraph/lib/glnxa64, PATH :
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games, PRE_LD_PRELOAD : , PULSE_CLIENTCONFIG :
/home/datalab/.x2go/C-datalab-50-1652368162_stDLXDE_dp24/.pulse-client.conf, PWD : /home/datalab, QT_ACCESSIBILITY : 1,
QT_GRAPHICSSYSTEM : native, SAL_USE_VCLPLUGIN : gtk, SHELL : /bin/bash, SHLVL : 2, SSH_AUTH_SOCK :
/home/datalab/.x2go/C-datalab-50-1652368162_stDLXDE_dp24/ssh-agent.PID, SSH_CLIENT : 192.168.1.8 52936 22, SSH_CONNECTION :
192.168.1.8 52936 192.168.1.9 22, STARTUP : /usr/bin/env LD_LIBRARY_PATH= startlxde, TERM : xterm-256color, TOOLBOX :
/home/datalab/MATLAB/R2022a/toolbox, USER : datalab, VTE_VERSION : 5402, X2GO_AGENT_PID : 20013, X2GO_SESSION :
datalab-50-1652368162_stDLXDE_dp24, XAUTHORITY : /home/datalab/.Xauthority, XDG_CONFIG_DIRS : /etc/xdg, XDG_CONFIG_HOME :
/home/datalab/.config, XDG_CURRENT_DESKTOP : LXDE, XDG_DATA_DIRS :
/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/local/share/:/usr/share/:/usr/share/gdm/:/var/lib/menu-xdg/,
XDG_DATA_HOME : /home/datalab/.local/share, XDG_MENU_PREFIX : lxde-, XDG_RUNTIME_DIR : /run/user/1001, XDG_SESSION_CLASS : user,
XDG_SESSION_ID : 58, XDG_SESSION_TYPE : tty, XFILESEARCHPATH :
/home/datalab/MATLAB/R2022a/sys/java/jre/glnxa64/jre/lib/locale/%L/%T/%N%S:, XSESSION_EXEC : startlxde, _ :
MATLAB/R2022a/bin/matlab, _LXSESSION_PID : 20241, __KMP_REGISTERED_LIB_867 : 0x7fbc0418a708-cafe4346-libiomp5.so }, std_in :
inherit_from_parent, std_out : pipe_to pipe { source : 762, sink : 765 }, std_err : merge_with_stdout, directory : unspecified,
user : unspecified, inherited_handles : {  }, detached_process : --, explicitly inherit handles : --, create_no_window : -- }: File
o directory non esistente (trace: execve
<fork>
)

Further, when this error in present, the automatic update does not work anymore; the new version gets downloaded but non installed.

If you need more details, just let me now.

Regards,
Paolo

I don't know what is going on here, but I can try to help you interpret the output you get:
The error message, when removing all the context, is:

While attempting to execute "mv -f "/home/datalab/.brainstorm/is_started.txt" "/tmp/MATLAB_Files_13-May-2022_08_31_15/is_started.txt"
...
File o directory non esistente

This error is not coming from Brainstorm.
This file $HOME/.brainstorm/is_started.txt is created when Brainstorm is started, and deleted when it is exited correctly. It is used only to track whether Brainstorm is already started or not, to display an error message. It is never moved by Brainstorm, neither in the compiled version nor in the Matlab version.

This problem might come from your environment.
Do you have any type of folder sharing set up through X2GO?

I'd recommend you start by trying to run Brainstorm both on the client computer (using a direct installation, possibly the compiled version if you don't have Matlab locally) and on the remote computer, without this remote X2GO.
If it works, try with different types of X2GO configurations, or if you can with a direct SSH+X11 connection.

Hi Francois,

First of all, thank you for your reply. Indeed, it looks like the error is not coming from Brainstorm. After several different attempt trying to isolate the problem, I found out that if manually delete ~/.brainstorm/is_started.txt after closing brainstorm, the problem disappears. Mah...

Regards,
paolo