Forum archive
Keeps getting IOError: [Errno 32] Broken pipe when try to restore from backup in TKHUB
hi, there
for some reasons, I keep getting error below when I try to restore a backup to a new vm instance. Tried restore a full and incremental copy but still the same. The only special part about this restore is I was trying to restore a backup from a S3 vm to a EBS vm (so I can use reverse instance). will this create problem?
Thanks,
-Edward
ERROR 1153 (08S01) at line 911: Got a packet bigger than 'max_allowed_packet' bytes
Traceback (most recent call last):
File "/usr/bin/tklbam-restore", line 313, in
main()
File "/usr/bin/tklbam-restore", line 301, in main
restore.database()
File "/usr/lib/tklbam/restore.py", line 106, in database
limits=self.limits.db, callback=mysql.cb_print())
File "/usr/lib/tklbam/mysql.py", line 402, in restore
fs2mysql(mysql(), myfs, **kws)
File "/usr/lib/tklbam/mysql.py", line 365, in fs2mysql
MyFS_Reader(myfs, limits, skip_extended_insert, add_drop_database).tofile(fh, callback)
File "/usr/lib/tklbam/mysql.py", line 359, in tofile
database.tofile(fh, callback)
File "/usr/lib/tklbam/mysql.py", line 252, in tofile
table.tofile(fh)
File "/usr/lib/tklbam/mysql.py", line 308, in tofile
fh.write("(%s)" % row)
IOError: [Errno 32] Broken pipe

just realized the error message is actually tell me exactly what's wrong. Got a packet bigger than 'max_allowed_packet' bytes Traceback. increasing the 'max_allowed_packet' variable in mysql to 100MB and the problem fixed.