跳至內容

ec2 instance error

0

In the shell if i type a command i see the error

Temporary failure in name resolution

If I run a python script i get this error

FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/home/ubuntu']

I have 37 servers running and I only see this error in half of them, all ubuntu ec2 instances.

Any ideas on what is wrong?

已提問 3 年前檢視次數 750 次

1 個回答
1

Hi,

This error is most likely coming for one of the following reason:

  1. These file systems are in read only mode

  2. User doesn't have write access to these file system(did you try running as sudo user)

  3. Very less likely, it would be a space issue as you are getting message for four locations but still to make sure, check file system available space for all of these file system:

    ls -la /tmp
    df -h /tmp
    df -i
    

Comment here, if you have additional questions.

AWS
專家

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。