Disable MATLABConnector on Linux Cluster

19 visualizzazioni (ultimi 30 giorni)
Andrew Lewis
Andrew Lewis il 21 Mag 2024
Risposto: UDAYA PEDDIRAJU il 14 Giu 2024
I run a Linux Cluster and my users run hundereds of jobs, and for each job Matlab R2024a creates ~/.MathWorks/ServiceHost/<hostname>/v2024.2.0.3 as well as ~/.MathWorks/ServiceHost/<hostname>/logs
This is wasting space and also causing about 20% of jobs to hang indefintely with the follwing in the logs:
00015945 2024-05-21 16:23:20 0x00007fb526ab3640 ddux D logging JSON: MSH_INSTALL_ERROR
{"logDDUXData":{"keyValues":{"error_message":"Extract task invalid argument error: Package cannot be read or empty.","install_timestamp":"2024-05-21 14:17:13.666","post_background_update_code":"","post_install_code":"","pre_uninstall_code":"","start_msh_code":"","stop_msh_code":"","triggered_by":"TRIPWIRE_DESKTOP_SERVICES","update_version":"2024.2.0.3"},"product":""}}
00015946 2024-05-21 16:23:20 0x00007fb526ab3640 ddux D Added to event stats, eventkey [ MSH_INSTALL_ERROR ], bytes [ 370 ], count [ 1 ]
00015947 2024-05-21 16:23:20 0x00007fb526ab3640 ddux D logging JSON: MSH_INSTALL_ERROR
{"logDDUXData":{"keyValues":{"error_message":"Extract task invalid argument error: Package cannot be read or empty.","install_timestamp":"2024-05-21 14:17:13.668","post_background_update_code":"","post_install_code":"","pre_uninstall_code":"","start_msh_code":"","stop_msh_code":"","triggered_by":"TRIPWIRE_DESKTOP_SERVICES","update_version":"2024.2.0.3"},"product":""}}
Matlab as a package is available from a central folder, I don't want or need the above to happen. How do I disable this? On our older cluster this did not happen with R2022 etc.

Risposte (1)

UDAYA PEDDIRAJU
UDAYA PEDDIRAJU il 14 Giu 2024
Hi Andrew,
To prevent directory creation and job stalls caused by MATLABConnector (R2024a Linux cluster), disable it using one of these methods:
  • Before starting MATLAB, set "MATLAB_DISABLE_SERVICEHOST=true" (e.g., export MATLAB_DISABLE_SERVICEHOST=true; matlab).
  • Edit your shell startup script (e.g., .bashrc) and add export "MATLAB_DISABLE_SERVICEHOST=true".
Apart from this I found following related query in the community: https://www.mathworks.com/matlabcentral/answers/2050132-how-can-i-permanently-disable-matlab-drive-in-linux and https://www.mathworks.com/matlabcentral/answers/452867-how-can-i-log-out-of-matlab-drive-connector
Caution: Disabling ServiceHost might affect features like cloud connectivity. The solutions should give an idea on how to proceed.

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Prodotti


Release

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by