JLD.jl
JLD.jl copied to clipboard
save file on a smb windows share failed
i am not sure it is the problem of my ubuntu system or the package, so i'll fire straight a issue here.
it used to work on another windows system to save file to our shared file server, but when i setup a ubuntu system today, save just failed. the network shared folder is mounted properly, since i could browse the content, create and delete files. i checked out teh/jld_split branch of HDF5, problem remains.
using JLD
save("/share folder mount path/test.jld", "a",[1,2,3,4])
HDF5-DIAG: Error detected in HDF5 (1.8.13) thread 139963186603840:
#000: ../../../src/H5F.c line 1516 in H5Fcreate(): unable to create file
major: File accessibilty
minor: Unable to open file
#001: ../../../src/H5F.c line 1305 in H5F_open(): unable to open file: time = Tue Jul 21 17:14:46 2015
, name = '/run/user/1000/gvfs/smb-share:server=rvdh05,share=d/exp/Remapping/analysis/alex/test.jld', tent_flags = 13
major: File accessibilty
minor: Unable to open file
#002: ../../../src/H5FD.c line 985 in H5FD_open(): open failed
major: Virtual File Layer
minor: Unable to initialize object
#003: ../../../src/H5FDsec2.c line 343 in H5FD_sec2_open(): unable to open file: name = '/run/user/1000/gvfs/smb-share:server=rvdh05,share=d/exp/Remapping/analysis/alex/test.jld', errno = 2, error message = 'No such file or directory', flags = 13, o_flags = 242
major: File accessibilty
minor: Unable to open file
Error creating file /run/user/1000/gvfs/smb-share:server=rvdh05,share=d/exp/Remapping/analysis/alex/test.jld
while loading In[3], in expression starting on line 2
in h5f_create at /home/alex/.julia/v0.3/HDF5/src/plain.jl:2021
in jldopen at /home/alex/.julia/v0.3/JLD/src/JLD.jl:167
in jldopen at /home/alex/.julia/v0.3/JLD/src/JLD.jl:219
in jldopen at /home/alex/.julia/v0.3/JLD/src/JLD.jl:229
in save at /home/alex/.julia/v0.3/JLD/src/JLD.jl:1049
instead, save("/home/alex/test.jld", "a",[1,2,3,4]) works well.
Does
open("/share folder mount path/test.txt", "w") do file
write(file, "testing\n")
end
also fail? If so, it has nothing to do with JLD.
writing text file works well, but writing *.jld or *.mat still show errors.
using HDF5
h5open("/share folder mount path/mydata.h5", "w") do file
write(file, "A", [1,2,3])
end
pure hdf5 write works fine also.
And you're sure there's nothing wonky about that particular file name? If you try a brand new name, you get the same problem?
The reason I ask is because (currently) this seems to make little sense. JLD uses HDF5 to write the file; a JLD file is just an HDF5 file with a few extra pieces of information. So if HDF5 has permission, I don't see why JLD wouldn't.
i tried different name with or without file extensions, the issue remains. right now, i am getting around the problem by syncing remote files to my local folder.
The files were actually created in mounted share folder, but error seems occur in the process of closing the created files.