Got a packet bigger than 'max_allowed_packet' bytes
ref: http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html
this is due to the packet limit of mysql server (have more details
from MySQL documentation:
http://dev.mysql.com/doc/mysql/en/packet-too-large.html ), you can add
extra entry into /etc/my.cnf:
max_allowed_packet = 100M
and restart mysql server on that machine, this will reset the
limitation to 100Mb for file insertion into blob type (or longblob)
column.
If you're using replication, don't forget to update the
max_allowed_packet variable on your slaves, as well. Failure to do so
will cause the slaves to repeatedly request the same failed update over
and over again in the case of a packet that exceed's the slave's lower
maximum packet size.