I tried to submit a Poll as a test user and got this back. I have run into this several times. Have any idea what can cause this?

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'Lost connection to MySQL server during query\nquery: DELETE FROM blogstamp WHERE nid = 9 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT c.*, n.title FROM category c INNER JOIN node n ON c.cid = n.nid WHERE c.cid = 9 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT c.*, n.title FROM category c INNER JOIN node n ON c.cid = n.nid LIMIT 0, 20 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT n.nid FROM node n INNER JOIN category c ON n.nid = c.cid WHERE n.nid = 9 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT n.nid FROM node n INNER JOIN category c ON n.nid = c.cid LIMIT 0, 20 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT n.nid FROM node n INNER JOIN category c ON n.nid = c.cid WHERE n.nid = 9 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT n.nid FROM node n INNER JOIN category c ON n.nid = c.cid LIMIT 0, 20 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT COUNT(*) FROM node_access WHERE nid = 0 AND ((gid = 0 AND realm = 'all')) AND grant_view >= 1 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT DISTINCT(n.nid), r.nid AS node_id, c.*, n.title FROM category c INNER JOIN category_node r ON c.cid = r.cid INNER JOIN category cn ON c.cnid = cn.cid INNER JOIN node n ON c.cid = n.nid INNER JOIN node cnn ON cn.cid = cnn.nid INNER JOIN node_access na ON na.nid = n.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all'))) AND ( n.status = 1 AND r.nid = 9 ) ORDER BY cn.weight, cnn.title, c.weight, n.title in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT n.nid FROM node n INNER JOIN category c ON n.nid = c.cid WHERE n.nid = 9 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT n.nid FROM node n INNER JOIN category c ON n.nid = c.cid LIMIT 0, 20 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: INSERT INTO node_comment_statistics (nid, last_comment_timestamp, last_comment_name, last_comment_uid, comment_count) VALUES (9, 1180248821, NULL, 4, 0) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT name FROM users WHERE uid='4' in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT n.nid FROM node n INNER JOIN category c ON n.nid = c.cid WHERE n.nid = 9 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT n.nid FROM node n INNER JOIN category c ON n.nid = c.cid WHERE n.nid = 9 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT dst FROM url_alias WHERE src = 'node/9' in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT n.nid FROM node n INNER JOIN category c ON n.nid = c.cid WHERE n.nid = 9 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT COUNT(dst) FROM url_alias WHERE dst = 'what-would-you-site-most' AND src != 'node/9' in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT COUNT(src) FROM url_alias WHERE src = 'node/9' in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT COUNT(dst) FROM url_alias WHERE dst = 'what-would-you-site-most' in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: INSERT INTO url_alias (src, dst) VALUES ('node/9', 'what-would-you-site-most') in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT n.nid FROM node n INNER JOIN category c ON n.nid = c.cid WHERE n.nid = 9 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: DELETE FROM category_node WHERE nid = 9 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: DELETE FROM term_node WHERE nid = 9 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: DELETE FROM category_node WHERE nid = 9 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT DISTINCT(n.nid), r.nid AS node_id, c.*, n.title FROM category c INNER JOIN category_node r ON c.cid = r.cid INNER JOIN category cn ON c.cnid = cn.cid INNER JOIN node n ON c.cid = n.nid INNER JOIN node cnn ON cn.cid = cnn.nid INNER JOIN node_access na ON na.nid = n.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all'))) AND ( n.status = 1 AND r.nid = 9 ) ORDER BY cn.weight, cnn.title, c.weight, n.title in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: DELETE FROM node_access WHERE nid = 9 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: DELETE FROM cache_page WHERE expire != 0 AND expire < 1180248841 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT dst FROM url_alias WHERE src = 'node/9' in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'content', 'poll: added <em>What would you like on this site the most.</em>.', 0, '<a href=\\"/?q=node/9\\">view</a>', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/ad in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT COUNT(*) FROM node_access WHERE (nid = 0 OR nid = 9) AND ((gid = 0 AND realm = 'all')) AND grant_view >= 1 in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'Cannot modify header information - headers already sent by (output started at /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc:172) in /home/content/k/s/w/kswansonru/html/includes/common.inc on line 311.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: SELECT sid FROM sessions WHERE sid = 'a733577305b5135195585430f757e3cd' in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172.', 2, '', 'http://moyastranitsa.com/?q=node/add/poll', 'http://moyastranitsa.com/?q=node/add/poll', '76.20.61.33', 1180248841) in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (4, 'php', 'MySQL server has gone away\nquery: INSERT INTO sessions (sid, uid, cache, hostname, session, timestamp) VALUES ('a733577305b5135195585430f757e3cd', 4, 0, '76.20.61.33', 'form|a:1:{s:32:\\"2ec6eb25167e5d0162fa6e37be7f64ce\\";a:2:{s:9:\\"timestamp\\";i:1180248810;s:4:\\"args\\";a:3:{i:0;s:14:\\"poll_node_form\\";i:1;a:3:{s:3:\\"uid\\";s:1:\\"4\\";s:4:\\"name\\";s:8:\\"SonofDad\\";s:4:\\"type\\";s:4:\\"poll\\";}i:2;a:11:{s:5:\\"title\\";s:42:\\"What would you like on this site the m in /home/content/k/s/w/kswansonru/html/includes/database.mysql.inc on line 172

Comments

Sutharsan’s picture

Perhaps this MySQL page can help you: http://dev.mysql.com/doc/refman/5.0/en/gone-away.html
Otherwise I suggest you contact your web host.

Kat_Sweden’s picture

I encountered a similar problem adding content types. Increasing the maximum allowed packet size for MySQL should fix this:

- Go to .../mysql/bin
- Open "my" or "my.cnf"
- Set max_allowed_packet=64M (or something larger than your current setting depending on your server hardware)
- Restart MySQL

What happens is if the MySQL server receives a packet bigger than the size in the config file, it throws an error and closes the connection. PHP then displays the "MySQL server has gone away..".

You can read more about this config setting here:
http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html

cosmicdreams’s picture

Project: » Drupal core
Version: » 5.3
Component: usability » poll.module

Not a user experience issue, though I understand the frustration this issue can cause. I'm going to help you by triaging it to the drupal core.

ricabrantes’s picture

Status: Active » Closed (fixed)

No activity, Close..

trunksye’s picture

I suggest anyone with this problem should first check with your webhost about wait_timeout setting for mysql. My webhost set it to 3 seconds at first! Now they have changed it to 8 seconds and my little drupal is ok!even with update status on!

g76’s picture

this worked for me. I am on a shared hosting account, no access to mysql settings, but this seemed to fix it:

http://drupal.org/node/227445#comment-770663

also, disable syslog and database logging.

abramo’s picture

andrewblack’s picture

i have this error too. but why this error just for watchdog but not with other table? even i empty watchdog table.