Hello Greenlight team,
We faced 504 issues with Greenlight while users tried to login using O365 Azure authentication.
This is intermittent and resolved when we restart greenlight (docker-compose down & docker-compose up -d) for about 4 times: then the issue seems resolved for the moment.
Debug steps:
Checked below logs for errors or any lead that caused 504:
1. greenlight docker logs
HTTP parse error, malformed request ("GET /scripts/surgeweb" - (-)): #<Puma::HttpParserError: Invalid HTTP format, parsing fails. Are you trying to open an SSL connection to a non-SSL Puma?>
2. /var/log/nginx/error.log
[crit] 1013894#1013894: *10547684 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
3. /var/log/nginx/greenlight.access.log
162.158.142.104 - - [09/Oct/2025:17:53:53 +0000] "GET /b/api/v1/env.json HTTP/2.0" 304 0 "https://XXXXXX.com/b/?error=SignupError" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) QCOMAvalonEnterprise/1.0.5 Chrome/132.0.6834.196 Electron/34.2.0 Safari/537.36 XXXXXX-Desktop-App"
162.158.142.103 - - [09/Oct/2025:17:53:53 +0000] "GET /b/api/v1/site_settings.json?names[]=Maintenance HTTP/2.0" 304 0 "https://XXXXXX.com/b/?error=SignupError" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) QCOMAvalonEnterprise/1.0.5 Chrome/132.0.6834.196 Electron/34.2.0 Safari/537.36 XXXXXX-Desktop-App"
4. /var/log/nginx/access.log
None were found
As a preventive measure, scheduled thrice-a-week restart script for greenlight.
It would be of great help with any information in regards to the above issue which helps to narrow down the cause of this issue.
-- Best Regards,
Vishnu. G