Skip to content

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?

asked 3 years ago558 views
1 Answer
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
EXPERT
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.