question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PermissionError for readGlobalFile()

See original GitHub issue

We are having this issue as of toil 5.2.0:

Traceback (most recent call last):
  File "/home/shahr2/tools/system/miniconda/versions/4.6.14/envs/nucleo_test/lib/python3.6/site-packages/toil/cwl/cwltoil.py", line 615, in visit
    deref = self.get_file(path) if self.get_file else ab
  File "/home/shahr2/tools/system/miniconda/versions/4.6.14/envs/nucleo_test/lib/python3.6/site-packages/toil/cwl/cwltoil.py", line 756, in toil_get_file
    src_path = file_store.readGlobalFile(FileID.unpack(file_store_id[7:]))
  File "/home/shahr2/tools/system/miniconda/versions/4.6.14/envs/nucleo_test/lib/python3.6/site-packages/toil/fileStores/nonCachingFileStore.py", line 99, in readGlobalFile
    os.chmod(localFilePath, os.stat(localFilePath).st_mode | stat.S_IXUSR)
PermissionError: [Errno 1] Operation not permitted: '/home/shahr2/bergerlab/test/nucleo_test/test_29Jan2020/toil_1/node-5bbdc7f7-e26f-4958-aff8-2986c4b0b199-2919ee05-ad3b-4b1c-a90e-1d35c9ebd4ab/tmpt5zanbkb/4f6b5fd2-537c-4aed-ac07-87cbb60d665a/tmpwwfjv6k7.tmp'

I believe it’s related to this change:

https://github.com/DataBiosphere/toil/pull/3322/files#diff-7141faf78b8bb77178d22d78d6af5f62ae090690f86a87f53ee2ca02f2b2fca3R98

Would it be possible to get some info regarding whether this is an intended error, and perhaps we’re trying to import a file (using toil-cwl-runner) incorrectly? Or whether there is an issue with how execute permissions are set on imported files?

Let us know if I can provide any additional information, thank you kindly!

┆Issue is synchronized with this Jira Task ┆Issue Number: TOIL-786

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ionox0commented, Feb 3, 2021

Thanks so much for the quick response, I’m away at the moment but can take a look when I get back.

1reaction
DailyDreamingcommented, Feb 2, 2021

@ionox0 This looks like a straight forward fix, I’ll go ahead and make the changes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PermissionError: [Errno 13] Permission denied - Stack Overflow
This happens if you are trying to open a file, but your path is a folder. This can happen easily by mistake. To...
Read more >
Python PermissionError: [errno 13] permission denied Solution
If you try to open, read from, or write to a file over which Python has no permissions, you'll encounter the PermissionError: [errno...
Read more >
PermissionError: [Errno 13] Permission denied error solved
The "PermissionError: [Errno 13] Permission denied error" occurs for multiple reasons: Trying to open a file, but the specified path is a folder....
Read more >
PermissionError: [Errno 13] Permission denied: 'C:\\my\\path ...
Hello! I'd like some help resolving an error I get when running pyinstaller to package my project. I'm running pyinstaller in a miniconda3...
Read more >
PermissionError: [Errno 13] Permission denied. How to make
Hi, so Im having an issue with some extension for a software I have in my Program files directory (Windows is keeping it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found