ActiveRecord::StatementInvalid in FrontendController#category

Mysql2::Error: MySQL server has gone away: SELECT COUNT(*) FROM `kms_booking_items` WHERE `kms_booking_items`.`center_id` = '_gup9a30c9abo7880o4b79oab35od3eefbc99c55' AND `kms_booking_items`.`usetype` = 'Standorte'

Extracted source (around line #1384):
1382
1383
1384
1385
1386
1387
              
def init_location
@has_booking_item_locations = !@current_center.get_booking_items(based_on_centerdomain=false).where(usetype: 'Standorte').empty?
if @has_booking_item_locations
## SELECTION COUNTRIES
locations = current_site.locations.actives

Rails.root: /var/www/clients/client1/web1/web/www

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"format"=>"html",
 "slug"=>"gelenke"}

Response

Headers:

None