PaaS deployment fails with HTTP Error 408 Request Timeout

Issue

  • Today a build on DEV environment fails repeatedly (3 times) with the same error each time:

     

    Failed to deploy the services in /var/jenkins_home/workspace/xxx_dev/build on liferay.cloud. 
    HttpError: HTTP Error: 408 Request Timeout

Environment

  • PaaS

Resolution

  • The problem was that the webserver service was not deploying any more. This was corrected after fixing some errors in the nginx config files. We now understand that the problem was caused by these changes: https://learn.liferay.com/w/liferay-cloud/reference/breaking-changes#changes-to-the-web-server-service

    Also, after fixing this and the webserver service was deployed successfully, the site did not work, we noticed an error "error connecting to upstream server". The upstream server was at port 81 until now, but now it is on port 8081 (as on UAT env), we checked this on the shell:

    nginx@webserver-594864798d-kfgww:/$ curl 127.0.0.1:81 curl: (7) Failed to connect to 127.0.0.1 port 81: Connection refused
    nginx@webserver-594864798d-kfgww:/$ curl 127.0.0.1:8081
    nginx@webserver-594864798d-kfgww:/$

    So after changing the port to 8081, the site answers again.

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0