Error Occurs When Using a Notebook Instance to Run Code, Indicating That No File Is Found in /tmp
Symptom
When the a notebook instance is used to run code, the following error occurs:
FileNotFoundError: [Error 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', 'home/ma-user/work/SR/RDN_train_base']
Possible Cause
Check whether a large amount of data is saved in /tmp.
Solution
- Go to the Terminal page. In the /tmp directory, run the du -sh * command to check the space usage of the directory.
sh-4.3$cd /tmp sh-4.3$du -sh * 4.0K core-js-banners 0 npm-19-41ed4c62 6.7M v8-compile-cache-1000
- Delete unnecessary large files.
- Delete the sample file test.txt: rm -f /home/ma-user/work/data/test.txt
- Delete the sample folder data: rm -rf /home/ma-user/work/data/
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.