How do I configure multiple users to use the shared spooler without causing conflicts?

Greetings,
I am having a problem with the spooler space for MDCS. Lets assume user1 launches a job after opening X workers with "matlabpool open X". The job finishes, and the user2 then opens X' workers with "matlabpool openX' ". User2s job will fail because they don't have permission to access the temp files left behind by User1! As soon as I delete the files left by User1, then User2 can run his jobs. This is obviously problematic. :-/
I didn't see anything in the documentation except that I should setup a shared spooler space for all the nodes to access. Other programs we use configure and setup $SomeShare/spooler/$user automatically, but Matlab seems to just dump everything by everyone into $SomeShare/spooler.
So the question is, did I miss something in the documentation? Is there a better way of configuring the Matlab spooler? Or is it acceptable to just squash the rights and let every do anything in the spooler directory?
Thanks!

1 commentaire

For further clarification (because it happened again) here is the error:
Error using matlabpool (line 144) Failed to open matlabpool. (For information in addition to the causing error, validate the profile 'Torque' in the Cluster Profile Manager.)
Caused by: Error using parallel.internal.pool.InteractiveClient/start (line 281) Failed to start matlabpool. Error using parallel.Cluster/createCommunicatingJob (line 82) Unable to write file /share/matlab/spooler/matlab_metadata.mat: permission denied.
$ cd /share/matlab/spooler/
drwxr-xr-x. 2 User1 clusterusers 28K Jul 11 11:25 Job1
-rw-r--r--. 1 User1 clusterusers 28 Jul 11 11:08 Job1.common.mat
-rw-r--r--. 1 User1 clusterusers 0 Jul 11 11:07 Job1.diary.txt
-rw-r--r--. 1 User1 clusterusers 2.7K Jul 11 11:07 Job1.in.mat
-rw-r--r--. 1 User1 clusterusers 28 Jul 11 11:25 Job1.jobout.mat
-rw-r--r--. 1 User1 clusterusers 0 Jul 11 11:07 Job1.out.mat
-rw-r--r--. 1 User1 clusterusers 9 Jul 11 11:25 Job1.state.mat
-rw-r--r--. 1 User2 clusterusers 0 Jul 11 16:20 Job2.common.mat
-rw-r--r--. 1 User2 clusterusers 0 Jul 11 16:20 Job2.diary.txt
-rw-r--r--. 1 User2 clusterusers 0 Jul 11 16:20 Job2.in.mat
-rw-r--r--. 1 User2 clusterusers 0 Jul 11 16:20 Job2.jobout.mat
-rw-r--r--. 1 User2 clusterusers 0 Jul 11 16:20 Job2.out.mat
-rw-r--r--. 1 User2 clusterusers 0 Jul 11 16:20 Job2.state.mat
-rw-r--r--. 1 User1 clusterusers 838 Jul 11 11:07 matlab_metadata.mat
User1 finshed his job 4 hours ago! If I, as the admin, either delete all the files or change the owner to User2, the 'matlabpool open X' will work.
I looked around a bit more, but I didn't see anything relevant. It could be that I am just not searching for the right key words or not properly interpriting what I see. But I can't see this as normal operating for others using this product.
As a short term solution I just made the matlab_metadata.mat file rwx by anyone and everyone. This seems to work, but, again, I don't see that as normal operation for many. I think I must be doing something wrong.
Thanks!

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Question posée :

le 11 Juil 2013

Community Treasure Hunt

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

Start Hunting!

Translated by