Automation Hub UI is not loading and "PermissionError: [Errno 13] Permission denied: '/var/lib/pulp/tmp'" errors can be seen in the logs.

Solution Verified - Updated -

Issue

  • Automation Hub UI is not loading and "PermissionError: [Errno 13] Permission denied: '/var/lib/pulp/tmp'" errors can be seen in the logs.

    [2023-07-17 21:33:06 +0000] [24419] [ERROR] Exception in gunicorn worker
    Jul 17 17:33:06 hub1 gunicorn[24419]: Traceback (most recent call last):
    Jul 17 17:33:06 hub1 gunicorn[24419]:  File "/usr/lib64/python3.9/site-packages/aiohttp/worker.py", line     57, in run
    Jul 17 17:33:06 hub1 gunicorn[24419]:    self.loop.run_until_complete(self._task)
    Jul 17 17:33:06 hub1 gunicorn[24419]:  File "/usr/lib64/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    Jul 17 17:33:06 hub1 gunicorn[24419]:    return future.result()
    Jul 17 17:33:06 hub1 gunicorn[24419]:  File "/usr/lib64/python3.9/site-packages/aiohttp/worker.py", line 70, in _run
    Jul 17 17:33:06 hub1 gunicorn[24419]:    wsgi = await self.wsgi()
    Jul 17 17:33:06 hub1 gunicorn[24419]:  File "/usr/lib/python3.9/site-packages/pulpcore/content/__init__.py", line 65, in server
    Jul 17 17:33:06 hub1 gunicorn[24419]:    os.chdir(settings.WORKING_DIRECTORY)
    Jul 17 17:33:06 hub1 gunicorn[24419]: PermissionError: [Errno 13] Permission denied: '/var/lib/pulp/tmp'
    
  • Automation Hub UI is not loading and showing the following message.

    curl -i http://hub1.example.com/ui/
    HTTP/1.1 404 Not Found
    Server: nginx
    Date: Mon, 17 Jul 2023 21:18:21 GMT
    Content-Type: text/html
    Content-Length: 179
    Connection: keep-alive
    Vary: Accept-Language
    Content-Language: en-us
    X-Frame-Options: DENY
    X-Content-Type-Options: nosniff
    Referrer-Policy: same-origin
    
    
    <!doctype HTML>
    <html lang="en">
    <head>
      <title>Not Found</title>
    </head>
    <body>
      <h1>Not Found</h1><p>The requested resource was not found on this server.</p>
    </body>
    </html>
    

Environment

  • Red Hat Ansible Automation Platform 2.x
  • Private Automation Hub.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content