Production monitor silently fail on mysql gone away error

Created on 11 March 2016, almost 9 years ago
Updated 2 May 2023, over 1 year ago

MHi.

For some reason, production monitor seems to crash while trying to save the recent version of the module.
Error is General error: 2006 MySQL server has gone away.

One of the reason would be IMHO the incredibly huge size of the data:
if I setup a try catch on _prod_monitor_update_refresh like

  try{  $result = drupal_write_record('prod_monitor_site_modules', $modules, array('id')); }catch(Exception $e) {print_r($e);}

I get a 4.9 mb payload!

if I alter the function to

 
         $data["releases"] = array(reset($data["releases"]));  

then update now works.

Do we need other info than the most recent release?

🐛 Bug report
Status

Active

Version

1.9

Component

Code

Created by

🇫🇷France JulienThomas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024