Why does Polyspace analysis upload to the Polyspace Server results in "Error: Unable to unpack client archive in ..." when using Polyspace R2020a on Ubuntu?

3 visualizzazioni (ultimi 30 giorni)
Sending a job from Polyspace Desktop R2020a to Polyspace Code Prover Server R2020a via MATLAB Parallel Server/MJS fails with the following error message:
 
Contacting scheduler...--- Start Diary --- Remark: Executing Polyspace Bug Finder as a batch job on a MATLAB worker (in /var/lib/mjs/xyz.de_worker01_mlworker_log/matlab/work/tp5a00f284_6557_44f9_b1c1_142fde33d3a5) Extracting Polyspace data in /var/lib/mjs/xyz.de_worker01_mlworker_log/matlab/work/tp5a00f284_6557_44f9_b1c1_142fde33d3a5 Remark: Generating temporary remote archive file: /tmp/tpe6a4336e_37de_4385_9615_f7ad76e49a2e.zip Extraction of Polyspace data completed Error: Unable to unpack client archive in /var/lib/mjs/xyz.de_worker01_mlworker_log/matlab/work/tp5a00f284_6557_44f9_b1c1_142fde33d3a5 --- End Diary ---

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 25 Gen 2025
Modificato: MathWorks Support Team il 7 Feb 2025
Symptoms:
On certain Linux distributions (among others on Ubuntu 18 LTS) Polyspace does not work after a reboot. Because since MPS (MATLAB Parallel Server) is set up as a service (/etc/init), a different environment is used and there the necessary SHELL variable is missing - even if it was set explicitly on the command line via export SHELL=/bin/bash before.
The reason for this is the usage of systemd, which does not set a SHELL variable in the default configuration.
Solution:
The environment must be extended manually as follows:
 
        1. sudo systemctl edit mjs.service
2. write the following content (for Ubuntu):
[Service]Environment="SHELL=/bin/sh"
3.
 sudo service mjs restart
This step must be done for Ubuntu and all systemd distributions after setting up the service, see also:
Please run the following command in the command window of installed MATLAB R2020a to get release specific documentation:
>> web(fullfile(docroot, 'matlab-parallel-server/configure-advanced-options-for-matlab-job-scheduler-integration.html'))
Please follow the below link to search for the required information regarding the current release:

Più risposte (0)

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by