Direkt zum Inhalt

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?

gefragt vor 3 Jahren750 Aufrufe

1 Antwort
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
EXPERTE

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.