Permissions error on /tmp/ir_dataset directory due to multiple users on the same server
See original GitHub issueDescribe 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:
- User A runs a script that imports some documents using ir_datasets
- User B who is on the same system performs the same actions
- 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
- 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:
- Created a year ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.
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:
Possibly due to incomplete download?