When attempting to go to Looker, a 502 Bad Gateway nginx/1.24.0 error is thrown.
Issue Description: When going to the Looker portal, a 502 Bad Gateway Error is thrown.
Root Cause: The 502 error usually means that the Container with the Looker process is failing which means Looker is not starting.
Diagnosing:
- A 503 error is thrown in the development tool that pointed to 3 items:
- The first thing Insights attempts to do is access Looker. The 502 error usually means that the Looker container process could not start with gninx
- Following under the Insights installation directory - docker exec -it looker-container
- Perform cd workdir
- Run ls to list all the files in workdir
- Run the supervisorctl status all command to see that the Looker container was showing as FATAL
- Because of this error, go to lookeriniterror file and observe permission-denied error:
- If found the user that Insights is installed under, check the permission level
- Verify if the user has incorrect permissions
- Update the permissions by running (first command changes the owner of the file if its not 'looker' "chown -R looker insights" "chmod -R 0755 insights"
- Restart the container - "docker restart looker-container"
- Run "docker exec -it looker-container" and "supervisorctl status all" nd can see the looker container running