Simbiology "Project Save Error"
Show older comments
For some reason I cannot save simbiology projects. When I try (for new files, and files I've loaded) I'm now getting:
"Project Save Error
Error occurred while saving the project
Could not move project"
This is in Ubuntu 22.04. ver gives me
MATLAB Version: 9.12.0.2009381 (R2022a) Update 4
MATLAB License Number: 4xxxxxxxxxxx
Operating System: Linux 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Pretty sure that this is a permissions error. BTW,
tempdir
returns
'/tmp/'
Accepted Answer
More Answers (1)
Walter Roberson
on 15 Nov 2022
Edited: Walter Roberson
on 15 Nov 2022
0 votes
you are potentially seeing the relatively recent issues due to Linux kernel changes in how files are copied, changes that mostly affect tempfs.
The workaround is to create a temporary directory on an ordinary file system and create an environment variable TMPDIR or TEMP (if I recall correctly) pointing there, and start matlab with that in effect. If you are starting from an icon you might need additional steps to have the environment variable in effect at the time of program launch as icons do not go through the full login sequence that interactive shells go through.
4 Comments
Jim Bosley
on 16 Nov 2022
Walter Roberson
on 16 Nov 2022
Edited: Walter Roberson
on 5 Dec 2022
https://www.mathworks.com/matlabcentral/answers/97720-how-do-i-change-the-temporary-directory-that-matlab-uses#comment_2449208 where I point out the "after a restart". So the environment variable needs to exist when you start matlab. Which is why I talked about icons, since .bashrc and similar are not processed when you use icons so you may need to take additional steps. If the icon permits executing a script that sets the variable first that is probably the best approach.
Jim Bosley
on 18 Nov 2022
Jim Bosley
on 18 Nov 2022
Communities
More Answers in the SimBiology Community
Categories
Find more on Import Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!