jambonz / jambonz-infrastructure

packer and cloudformation templates for creating EC2-based jambonz deployments
23 stars 29 forks source link

jambonz-mini 0.8.5-2 - 504 Gateway Timeout #87

Open mhertogs opened 9 months ago

mhertogs commented 9 months ago

The jambonz-mini version 0.8.5-2 through AWS marketplace is failing to start up successfully.

Reproduction Steps Follow steps in guide: https://blog.jambonz.org/installing-jambonz-using-aws-marketplace

Note: I ran through the exact same procedure for version 0.8.4-3 and was successfully able to get it running.

Screenshot 2023-12-13 at 3 51 45 PM Screenshot 2023-12-13 at 3 52 20 PM

Screenshot 2023-12-13 at 3 53 22 PM

Cloudwatch Logs

I checked the Cloudwatch logs to compare between deployments. Both the successful 0.8.5-2 and 0.8.4-3 had these error logs but since both had them, it seems likely to simply be initial timeouts that were eventually retried (i.e. red herring)

From jambonz-api-server cloudwatch logs:

    at PoolConnection._handleTimeoutError (/home/admin/apps/jambonz-api-server/node_modules/mysql2/lib/connection.js:189:17)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7) {
  errorno: 'ETIMEDOUT',
  code: 'ETIMEDOUT',
  syscall: 'connect',
  fatal: true

From jambonz-feature_server cloudwatch logs:

Error: connect ETIMEDOUT
    at PoolConnection._handleTimeoutError (/home/admin/apps/jambonz-feature-server/node_modules/mysql2/lib/connection.js:189:17)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7) {
  errorno: 'ETIMEDOUT',
  code: 'ETIMEDOUT',
  syscall: 'connect',
  fatal: true