When running “sp.testSi​ngleModel(​'mflaser', 'value', 20230428);”, I got error:

1 view (last 30 days)
I hope this email finds you well and I need some help to run MATLAB on Linux.
When running “sp.testSingleModel('mflaser', 'value', 20230428);”, I got error:
compareSignature warning: mismatch in cache dates in field hostName (WV-SKONG-PC vs asvrd3).
compareSignature warning: mismatch in cache dates in field isUnix (0 vs 1).
compareSignature warning: mismatch in cache dates in field pwd (R:\skong\MATLAB Codebase\stockPortfolio vs /nfs/research/skong/MATLAB Codebase/stockPortfolio).
compareSignature warning: mismatch in cache dates in field userName (SKong vs skong).
Error using save
Unable to write file cache/cfg_mflaser_simulation: permission denied.
Error in sp.cfg.set (line 158)
save(sprintf('cache/cfg_%s_%s',cfg.fundName,cfg.runType),'cfg');
Error in sp.testSingleModel (line 79)
sp.cfg.set(fundName,simStartDate,modelDate,startDateData,endDateData,'simulation',runDate,runTime);
When I tried, “touch myfile.txt”, I got error:
touch: cannot touch ‘myfile.txt’: Permission denied
Could you please kindly help me with this? Thank you so much for your time and help!
Best regards,
SarahI hope this email finds you well and I need some help to run MATLAB on Linux.
When running “sp.testSingleModel('mflaser', 'value', 20230428);”, I got error:
compareSignature warning: mismatch in cache dates in field hostName (WV-SKONG-PC vs asvrd3).
compareSignature warning: mismatch in cache dates in field isUnix (0 vs 1).
compareSignature warning: mismatch in cache dates in field pwd (R:\skong\MATLAB Codebase\stockPortfolio vs /nfs/research/skong/MATLAB Codebase/stockPortfolio).
compareSignature warning: mismatch in cache dates in field userName (SKong vs skong).
Error using save
Unable to write file cache/cfg_mflaser_simulation: permission denied.
Error in sp.cfg.set (line 158)
save(sprintf('cache/cfg_%s_%s',cfg.fundName,cfg.runType),'cfg');
Error in sp.testSingleModel (line 79)
sp.cfg.set(fundName,simStartDate,modelDate,startDateData,endDateData,'simulation',runDate,runTime);
When I tried, “touch myfile.txt”, I got error:
touch: cannot touch ‘myfile.txt’: Permission denied
Could you please kindly help me with this? Thank you so much for your time and help!
Best regards,
Sarah

Answers (1)

Manoj Mirge
Manoj Mirge on 17 Aug 2023
Edited: Manoj Mirge on 17 Aug 2023
The error indicates that the MATLAB user who is running the MATLAB does not have permission to access and write to the files from specific folder.
To work around this issue kindly open MATLAB as the user who has access to the files which the “sp.testSingleModel” function is trying to access.
You can check the names of users who have access to the specific files by inspecting the permission properties of specific folder.
Hope this helps.

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!