0

I have old rails application where is Sucker Punch used for logging user actions. In logs I see plenty of these errors

 ERROR -- : Sucker Punch job error for class: 'LoggerJob' args: []...Mysql2::Error MySQL client is not connected

As I dont see specific Sucker Punch DB connection setup, I assume it uses rails app db connection setup but that works fine.

How to identify why this is failing?

My rails db connection looks like this

production:
  adapter: mysql2
  database: my_production
  hostname: 127.0.0.1
  username: root
  password: xxxx
  pool: 80
  timeout: 5000

Sucker Punch is also used for some other jobs, not just loggers and there it fails randomly too. Some works fine, some not.

Mi Ro
  • 740
  • 1
  • 6
  • 31

0 Answers0