Hi,
I followed the instruction in
https://www.synapse.org/#!Synapse:syn21048999/wiki/607070
all statements were set until this for loop, that I got the permission denied.
for syn_id in query_IDs:
ent = syn.get(syn_id, downloadFile=False)
client.download_file(ent._file_handle['bucketName'],
ent._file_handle['key'],
ent.name)
====================== ERROR I captured from screen ======================
self.fileobj = self.open_function(self.filename, self.mode)
File "/home/ubuntu/.local/lib/python3.6/site-packages/s3transfer/utils.py", line 261, in open
return open(filename, mode)
PermissionError: [Errno 13] Permission denied: 'TESLA_90_1.fastq.gz.fBB22467'
(1) Please kindly suggest what could be the causes of the above error.
(2) If I didn't use rememberMe = True as the parameter of the login(), when I got the error and the python session terminated, do I need to wait for the new credential to be usable in the next 12 hours?
(3) I could run the code above last nigh downloading some files to the storage on the EC2, but then got error due to the too small disk on EC2. So, the process was terminated before completed. Since then, I always got the permission denied error when I tried the python codes in https://www.synapse.org/#!Synapse:syn21048999/wiki/607070.
Many thanks!!.
Created by Trairak Pisitkun Pisitkun @Pisitkun Great! happy its working! Hi,
I solved the problem.
Actually, the "permission denied" did not come from synapse side but my newly added volume.
The python code cannot put the downloaded file into the volume.
So, I changed the permission and it worked.
Thanks!! only the login that I used this one
syn = synapseclient.login("x1", "x2", "x3",rememberMe=True)
Where x1 = my account, x2 = my password and x3 = my API key, I generated after getting the permission denied. Hi, I used the script the exactly the one shown in the https://www.synapse.org/#!Synapse:syn21048999/wiki/607070. @Pisitkun can you share the full script you were running so I can try to recreate the error?
for:
2) You have to login each time if you don't save your credentials somewhere, that has to do with your Synapse identity and not the STS token. You can keep requesting a new STS token, each one is just usable for 12 hours.
for 3) How much space is on your EC2 now? I usually try to provision more than enough space so I hadn't come across that before.