Disable MATLABConnector on Linux Cluster

조회 수: 16 (최근 30일)
Andrew Lewis
Andrew Lewis 2024년 5월 21일
답변: UDAYA PEDDIRAJU 2024년 6월 14일
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.

답변 (1개)

UDAYA PEDDIRAJU
UDAYA PEDDIRAJU 2024년 6월 14일
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.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by