Unable to read file: Invalid argument

6 views (last 30 days)
Daniel Rubio
Daniel Rubio on 25 Jan 2021
Edited: Daniel Rubio on 26 Jan 2021
I am working with Matlab 2017b and MDCS 2017b. I have a bigger a script but the relevant part goes down to the following:
clear restoredefaultpath;
addpath(genpath('\\irampdevstorage.file.core.windows.net\fileshare\workflow47515'));
folder = '\\irampdevstorage.file.core.windows.net\fileshare\workflow47515';
configurationFile = [folder, '\DATA_CONTAINER1_0000047382.mat'];
spmd
data = load(configurationFile);
end
I am trying to load the file in a remote worker to use it there. If I create a local pool the workers can load the file with no problem. When I work with a remote pool I get the following error:
Error detected on workers 1 2 3 4 5 6 7 8 9 10 11 12.
Caused by:
Unable to read file '\\irampdevstorage.file.core.windows.net\fileshare\workflow47515\DATA_CONTAINER1_0000047382.mat': Invalid argument.
The path is fine and the network shared drive is mapped to the workers VM, so the file is accesible. Any ideas?
  2 Comments
Raymond Norris
Raymond Norris on 25 Jan 2021
I'm gathering the cluster is running Windows?
Try running the following
spmd
dir \\irampdevstorage.file.core.windows.net
dir \\irampdevstorage.file.core.windows.net\fileshare
dir \\irampdevstorage.file.core.windows.net\fileshare\workflow47515
dir \\irampdevstorage.file.core.windows.net\fileshare\workflow47515\DATA_CONTAINER1_0000047382.mat
end
Let's see how far you can get through each one.
Daniel Rubio
Daniel Rubio on 26 Jan 2021
Edited: Daniel Rubio on 26 Jan 2021
Yes, the cluster is running on Windows Server 2016. Tried to run the code above. When I do it using the local pool it works fine, when I do it using the remote pool I get:
Lab 1:
'\\irampdevstorage.file.core.windows.net\fileshare' not found.
'\\irampdevstorage.file.core.windows.net\fileshare\workflow47515' not found.
'\\irampdevstorage.file.core.windows.net\fileshare\workflow47515\DATA_CONTAINER1_0000047382.mat' not found.
But the shared drive is indeed mapped and accessible in the VM where the remote workers reside, see screenshot.

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!