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.

Permissions error on /tmp/ir_dataset directory due to multiple users on the same server

See original GitHub issue

Describe the bug When more than one users on the same server or device use the ir_datasets to fetch documents, then the permission denied error might be encountered if one of the users does not have write access to the already created directory

Affected dataset(s) This issue does not affect datasets

To Reproduce Steps to reproduce the behavior:

  1. User A runs a script that imports some documents using ir_datasets
  2. User B who is on the same system performs the same actions
  3. User B is part of the Others group in the system and hence does not have write permissions to the already existing /tmp/ir_datasets directory
  4. User B sees the following error: PermissionError: [Errno 13] Permission denied: '/tmp/ir_datasets/tmp3sn3tbic'

Expected behavior When multiple users are using the package on the same device, some additional checks would need to be in place to avoid permission errors. For example, the ir_directory directory that is created for tmp files could be prefaced by a username to avoid such conflicts.

Additional context This issue can be bypassed by utilizing the IR_DATASETS_TMP environment variable.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
seanmacavaneycommented, Sep 3, 2022

and when one hits an error, the process isn’t closed automatically

Gotcha – thanks! This is a bug, as it should close the file in this case so others can use it. I’ll look into fixing this.

Possibly due to incomplete download?

Yep, something went wrong with the download. It’s not safe to use this version because the contents could be different, or you may be missing some records.

0reactions
yuenhernycommented, Sep 2, 2022

Hi @seanmacavaney , thanks for the prompt response.

Nope, I guess the process is open because I tried to download multiple parts of the dataset - queries, scorreddocs, docs, qrels in sequence in my notebook - and when one hits an error, the process isn’t closed automatically.

Now that I managed to download (after restarting my laptop), I get another error:

[INFO] Please confirm you agree to the MSMARCO data usage agreement found at <http://www.msmarco.org/dataset.aspx>
[INFO] If you have a local copy of https://msmarco.blob.core.windows.net/msmarcoranking/collectionandqueries.tar.gz, you can symlink it here to avoid downloading it again: C:\Users\USER\.ir_datasets\downloads\31644046b18952c1386cd4564ba2ae69
[INFO] [starting] https://msmarco.blob.core.windows.net/msmarcoranking/collectionandqueries.tar.gz
[INFO] [finished] https://msmarco.blob.core.windows.net/msmarcoranking/collectionandqueries.tar.gz: [59:56] [954MB] [265kB/s]
[WARNING] Download failed: Expected md5 hash to be 31644046b18952c1386cd4564ba2ae69 but got 9a1336b80866927a64cd43a5d820f277

Possibly due to incomplete download?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access denied when you try to give user "send-as" or "receive ...
Works around an issue in which you receive the "Access is denied" error message ... or "receive as" permission for a Distribution Group...
Read more >
A permission problem of network user home folders
I have a problem in logging in of network users. I suspect it is due to incorrect permissions at the client. The trouble...
Read more >
Error: The ArcGIS Server is not able to connect to the specified ...
Solution or Workaround · Select the account name from the Group or user names list. · Under the Permissions for account_name list, check...
Read more >
How to fix directory permissions in Linux for Jira Server
Problem. On many occasions, JIRA is not able to run properly due to file or directory permission error. Errors in the logs will...
Read more >
Agentless User-ID 'access denied' Error in Server Monitor
If the the user group should be allowed to access the security logs of all domain servers, a corresponding permission can be set...
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