title: i am gettin an error "[Errno 5] Input/output error" while running an api on django
body: <p>Django API Code:</p>
  <pre><code>def post(self,request)-&gt; JsonResponse:
          try:
              self.email = request.data['email']
              self.mobile = request.data['mobile']
              self.password = request.data['password']
          except Exception as e:
              return JsonResponse(create_failure('400',f&quot;invalid payload {e}&quot;,&quot;fail&quot;))
          try:
              res = {}
              jwt_token = ''
              if self.email:
                  password = Customer.objects.get(email=self.email).password
                  username  = Customer.objects.get(email=self.email).username
                  print(password)
                  if check_password(self.password,password) :
                      jwt_token = make_jwt_token({'username':username})
                  else:
                      return JsonResponse(create_failure('500',f&quot;Invalid password&quot;,&quot;fail&quot;))
              elif self.mobile:
                  password = Customer.objects.get(mobile=self.mobile).password
                  username  = Customer.objects.get(mobile=self.mobile).username
                  if check_password( password,self.password) :
                      jwt_token = make_jwt_token({'username':username})
                  else:
                      return JsonResponse(create_failure('500',f&quot;Invalid password&quot;,&quot;fail&quot;))
              res['token'] = jwt_token
          except Exception as e:
              return JsonResponse(create_failure('400',f&quot;error in verifying the password {e}&quot;,&quot;fail&quot;))
          return JsonResponse(create_success('User Verified',res))
  </code></pre>
  <p>Error while running it on the postman</p>
  <pre><code>{
      &quot;StatusCode&quot;: &quot;400&quot;,
      &quot;Message&quot;: &quot;error in verifying the password [Errno 5] Input/output error&quot;,
      &quot;ReplyCode&quot;: &quot;fail&quot;,
      &quot;Data&quot;: []
  }
  </code></pre>
  <p>Above code is working fine on the local machine, but it creates this error when I deploy it to the server. I am using cpanel for the hosting which uses CentOS</p>