PennyDreadfulMTG / perf-reports

2 stars 7 forks source link

500 error at /signup/ #42693

Closed vorpal-buildbot closed 5 years ago

vorpal-buildbot commented 5 years ago

Failed to execute INSERT INTO deck ( created_date, updated_date, person_id, source_id, url, identifier, name, competition_id, archetype_id, resource_uri, featured_card, score, thumbnail_url, small_thumbnail_url, finish, reviewed ) VALUES ( IFNULL(%s, UNIX_TIMESTAMP()), UNIX_TIMESTAMP(), %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, FALSE ) with [1550014925.945496, 143, 3, 'https://pennydreadfulmagic.com/competitions/848/', '["bakert99", 848, "1550014926"]', 'UB Mid', 848, None, None, None, None, None, None, None] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction')

Reported on decksite by bakert99

            --------------------------------------------------------------------------------
            Request Method: POST
            Path: /signup/?
            Cookies: {'__cfduid': 'dbbaeaf004b46114da480ca1ea67b1fe41519487476', 'hide_intro': 'True', '_ga': 'GA1.2.336853490.1519750417', 'session': '.eJx1kNtuwjAQRP9ln6PKTpxAeGvpDQqiVxCtqsiNN8bCuch2Wiji3-sgUaRKfZyd2R377CBr0JS8wsrBwJkWA-CiVNVRCGXz2ohMCRgATeOEsZT2SJ8yRsIkhgD-d3Sdc43exeqgpETR1dm6OtyjLAqgdLLOWoum4mWX_eBrNC5N_UbNW7cKM-u465wmvp7fr75H00cqeKhuinEyuzyPWjXXxbw85V299oWDHfA8R2uPGoSdbtjLWGrFGjV5kKPnoS0mS_IaueXC-H3cNMqgzbhHQeMwpmGapNEZSdJe1Kcnv6OTENYnJACDhR-tfkvC5OnudjIbkofPq5EsvsajHInuLejMyM3Ql3icjf_Nm-fmmati62eyVVpYeA_gcCZz2y4CF8gNGtgH8Bea40aif2XVar3_Abpoj4o.D0TrRw.1Lf6KTtwY5PpMkL_wu5vhG6nadk', '_gid': 'GA1.2.1940173015.1548094837', 'deck_id': '38546', '_gat_gtag_UA_109131120_1': '1'}
            Endpoint: add_signup
            View Args: {}
            Person: 195644917081440265
            Referrer: https://pennydreadfulmagic.com/signup/
            Request Data: {'mtgo_username': 'bakert99', 'name': 'UB Mid', 'decklist': "4 Thought Erasure\r\n2 Dimir Guildmage\r\n4 Sunken Hollow\r\n4 Choked Estuary\r\n10 Swamp\r\n6 Island\r\n4 Rune Snag\r\n4 Hypnotic Specter\r\n4 Nightveil Specter\r\n2 Bloodgift Demon\r\n4 Desecration Demon\r\n1 Agony Warp\r\n1 Ultimate Price\r\n2 Ulcerate\r\n2 Guul Draz Assassin\r\n1 Murder\r\n1 Smother\r\n1 Consuming Vapors\r\n1 Terror\r\n1 Cremate\r\n1 Bloodsoaked Champion\r\n\r\n3 Negate\r\n4 Lay Bare the Heart\r\n3 Nature's Ruin\r\n2 Wydwen, the Biting Gale\r\n2 Withered Wretch\r\n1 Steal Artifact\r\n"}
Host: pennydreadfulmagic.com
Accept-Encoding: gzip
Cf-Ipcountry: US
X-Forwarded-For: 136.25.151.171, 172.68.141.246
Cf-Ray: 4a82e8e14c056d8a-SJC
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
Cache-Control: max-age=0
Origin: https://pennydreadfulmagic.com
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.96 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Referer: https://pennydreadfulmagic.com/signup/
Accept-Language: en-US,en;q=0.9,es;q=0.8
Cookie: __cfduid=dbbaeaf004b46114da480ca1ea67b1fe41519487476; hide_intro=True; _ga=GA1.2.336853490.1519750417; session=.eJx1UMtuwjAQ_Jc9R5WdOIFwa-krFETpA0SrKnLjjbEwSWQ7LRTx73WQWqRKPc7OzM7u7IGLjapg4EyLAQhli9qIXAkYAE3jhLGU9kifMkbCJIYA_md0XXCNnsXqiKREkTdobF0d91EWBbBxss5bi6bim077ztdoXJp6R81btwpz67jrmCa-nt-vvrLJAxU8VDflKJlenketmutyvjnpXb32gYM98KJAa38wCDvZsueR1Io1ajyT2dPQluMleYnccmG8H7eNMmhz7vxtcRjTME3S6IwkaS_q0xPftZMQ1ickAIOlH61-Q8Lk8e52PB2S2cdVJsvPUVYg0b0FnRq5HfoQX2fjv3n1vWHlVLnzM9kqLSy8BXBck7tdJ4EL5AYNHAL4W5rjRqK_smq1PnwDU6SI9w.Dfj1kQ.6zIYF2Bw9YqqBtAVtkhDIFSf-AA; _gid=GA1.2.1940173015.1548094837; deck_id=38546; _gat_gtag_UA_109131120_1=1; session=.eJx1kNtuwjAQRP9ln6PKTpxAeGvpDQqiVxCtqsiNN8bCuch2Wiji3-sgUaRKfZyd2R377CBr0JS8wsrBwJkWA-CiVNVRCGXz2ohMCRgATeOEsZT2SJ8yRsIkhgD-d3Sdc43exeqgpETR1dm6OtyjLAqgdLLOWoum4mWX_eBrNC5N_UbNW7cKM-u465wmvp7fr75H00cqeKhuinEyuzyPWjXXxbw85V299oWDHfA8R2uPGoSdbtjLWGrFGjV5kKPnoS0mS_IaueXC-H3cNMqgzbhHQeMwpmGapNEZSdJe1Kcnv6OTENYnJACDhR-tfkvC5OnudjIbkofPq5EsvsajHInuLejMyM3Ql3icjf_Nm-fmmati62eyVVpYeA_gcCZz2y4CF8gNGtgH8Bea40aif2XVar3_Abpoj4o.D0TrRw.1Lf6KTtwY5PpMkL_wu5vhG6nadk
Cf-Connecting-Ip: 136.25.151.171
Cdn-Loop: cloudflare
X-Forwarded-Host: pennydreadfulmagic.com
X-Forwarded-Server: pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 614

DatabaseException Failed to execute INSERT INTO deck ( created_date, updated_date, person_id, source_id, url, identifier, name, competition_id, archetype_id, resource_uri, featured_card, score, thumbnail_url, small_thumbnail_url, finish, reviewed ) VALUES ( IFNULL(%s, UNIX_TIMESTAMP()), UNIX_TIMESTAMP(), %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, FALSE ) with [1550014925.945496, 143, 3, 'https://pennydreadfulmagic.com/competitions/848/', '["bakert99", 848, "1550014926"]', 'UB Mid', 848, None, None, None, None, None, None, None] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction') Stack Trace:

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
    response = self.handle_exception(e)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
    raise value
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "./decksite/cache.py", line 79, in decorated_function
    response = make_response(f(*args, **kwargs))
  File "./decksite/main.py", line 351, in add_signup
    d = lg.signup(form)
  File "./decksite/league.py", line 180, in signup
    return deck.add_deck(form)
  File "./decksite/data/deck.py", line 356, in add_deck
    deck_id = db().insert(sql, values)
  File "./shared/database.py", line 89, in insert
    self.execute(sql, args)
  File "./shared/database.py", line 45, in execute
    [n, _] = self.execute_anything(sql, args, False)
  File "./shared/database.py", line 60, in execute_anything
    raise DatabaseException('Failed to execute `{sql}` with `{args}` because of `{e}`'.format(sql=sql, args=args, e=e))

Exception_hash: 1c84d9886ebe0b811fde3c14436118b5c0bfba14

vorpal-buildbot commented 5 years ago

500 error at /signup/

Failed to execute INSERT INTO deck ( created_date, updated_date, person_id, source_id, url, identifier, name, competition_id, archetype_id, resource_uri, featured_card, score, thumbnail_url, small_thumbnail_url, finish, reviewed ) VALUES ( IFNULL(%s, UNIX_TIMESTAMP()), UNIX_TIMESTAMP(), %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, FALSE ) with [1550120500.8838058, 3137, 3, 'https://pennydreadfulmagic.com/competitions/848/', '["pika001", 848, "1550120501"]', 'PD-GB-5', 848, None, None, None, None, None, None, None] because of (1062, 'Duplicate entry \'3-["pika001", 848, "1550120501"]\' for key \'deck_source_id_identifier\'')

Reported on decksite by pika001

            --------------------------------------------------------------------------------
            Request Method: POST
            Path: /signup/?
            Cookies: {'__cfduid': 'd89a72c132379bd5d006b30d452630d0e1546743544', '_ga': 'GA1.2.2076156038.1546743545', 'deck_id': '38609', '_gid': 'GA1.2.1475066708.1550120464', '_gat_gtag_UA_109131120_1': '1', 'session': '.eJx9UctuwjAQ_Jc9R5XzwoEbIKhQS0PhUKVVFZlkEwyJHWwH8RD_XgeJcqjU48ysZ3fGF0gbVDUTKAwMjGrRAZbXXMCgYJW2KMea1zJ_YK4zqfKUWwp8t0eI3_epG3iUeCTywYF_FJGWLa_y-6ZKliXm3QVaipuj7_rUgdqUMm01KsFqtGYN3zFCXOsgWWs2XqoNM51wOGxfkzgZZgXRjdbT8pPjqkrM4iWM6fQxb-QObaQLsCxDre8YYk--LWfnBR-Kdn3AkyHzs1zNw33sNscP-x6PDVeoU2bbccOgH0QkosGTS2kY9MKH3hXWI1YlDigsLLX5XbJ3BRXjEd3SSTJks8l6XC-bXf-5jd5V1IWyhTY2zZdtzn4DL06Wu_Wk4duBm01qTt0IjJApVHB14E9phqkS7ZmirarrD4i1l4Y.D0aHmw.en0ucmednH9fQUB8K3saGe59kWI'}
            Endpoint: add_signup
            View Args: {}
            Person: 316003937142702083
            Referrer: https://pennydreadfulmagic.com/signup/
            Request Data: {'mtgo_username': 'pika001', 'name': 'PD-GB-5', 'decklist': '<?xml version="1.0" encoding="utf-8"?>\r\n<Deck xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r\n  <NetDeckID>0</NetDeckID>\r\n  <PreconstructedDeckID>0</PreconstructedDeckID>\r\n  <Cards CatID="53846" Quantity="4" Sideboard="false" Name="Temple of Mystery" />\r\n  <Cards CatID="22551" Quantity="3" Sideboard="false" Name="Early Harvest" />\r\n  <Cards CatID="65418" Quantity="3" Sideboard="false" Name="Old-Growth Dryads" />\r\n  <Cards CatID="50360" Quantity="3" Sideboard="false" Name="Dissolve" />\r\n  <Cards CatID="31251" Quantity="4" Sideboard="false" Name="Jhessian Infiltrator" />\r\n  <Cards CatID="57662" Quantity="1" Sideboard="false" Name="Gaea\'s Revenge" />\r\n  <Cards CatID="28335" Quantity="2" Sideboard="false" Name="Wanderer\'s Twig" />\r\n  <Cards CatID="69879" Quantity="2" Sideboard="false" Name="Chromatic Lantern" />\r\n  <Cards CatID="69355" Quantity="6" Sideboard="false" Name="Forest" />\r\n  <Cards CatID="69349" Quantity="8" Sideboard="false" Name="Island" />\r\n  <Cards CatID="69907" Quantity="2" Sideboard="false" Name="Gateway Plaza" />\r\n  <Cards CatID="39497" Quantity="4" Sideboard="false" Name="Cryptoplasm" />\r\n  <Cards CatID="66839" Quantity="1" Sideboard="false" Name="Evolving Wilds" />\r\n  <Cards CatID="45366" Quantity="1" Sideboard="false" Name="Evolving Wilds" />\r\n  <Cards CatID="69475" Quantity="3" Sideboard="false" Name="Quasiduplicate" />\r\n  <Cards CatID="58048" Quantity="4" Sideboard="false" Name="Honored Hierarch" />\r\n  <Cards CatID="47759" Quantity="4" Sideboard="false" Name="Biovisionary" />\r\n  <Cards CatID="58667" Quantity="3" Sideboard="false" Name="Undergrowth Champion" />\r\n  <Cards CatID="50618" Quantity="3" Sideboard="false" Name="Prophet of Kruphix" />\r\n  <Cards CatID="54482" Quantity="1" Sideboard="false" Name="Pearl Lake Ancient" />\r\n  <Cards CatID="17614" Quantity="4" Sideboard="true" Name="Seedtime" />\r\n  <Cards CatID="39806" Quantity="3" Sideboard="true" Name="Psychic Barrier" />\r\n  <Cards CatID="66541" Quantity="2" Sideboard="true" Name="Negate" />\r\n  <Cards CatID="62628" Quantity="1" Sideboard="true" Name="Negate" />\r\n  <Cards CatID="20377" Quantity="2" Sideboard="true" Name="Oxidize" />\r\n  <Cards CatID="32611" Quantity="3" Sideboard="true" Name="Giant Growth" />\r\n</Deck>'}
Host: pennydreadfulmagic.com
Accept-Encoding: gzip
Cf-Ipcountry: US
X-Forwarded-For: 2001:558:600d:43:eda6:6170:26c2:5812, 162.158.75.48
Cf-Ray: 4a8cfa4b8b1dc56a-ORD
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
Cache-Control: max-age=0
Origin: https://pennydreadfulmagic.com
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Referer: https://pennydreadfulmagic.com/signup/
Accept-Language: en-US,en;q=0.9
Cookie: __cfduid=d89a72c132379bd5d006b30d452630d0e1546743544; _ga=GA1.2.2076156038.1546743545; deck_id=38609; _gid=GA1.2.1475066708.1550120464; _gat_gtag_UA_109131120_1=1; session=.eJx9UctuwjAQ_Jc9R5XzwoEbIKhQS0PhUKVVFZlkEwyJHWwH8RD_XgeJcqjU48ysZ3fGF0gbVDUTKAwMjGrRAZbXXMCgYJW2KMea1zJ_YK4zqfKUWwp8t0eI3_epG3iUeCTywYF_FJGWLa_y-6ZKliXm3QVaipuj7_rUgdqUMm01KsFqtGYN3zFCXOsgWWs2XqoNM51wOGxfkzgZZgXRjdbT8pPjqkrM4iWM6fQxb-QObaQLsCxDre8YYk--LWfnBR-Kdn3AkyHzs1zNw33sNscP-x6PDVeoU2bbccOgH0QkosGTS2kY9MKH3hXWI1YlDigsLLX5XbJ3BRXjEd3SSTJks8l6XC-bXf-5jd5V1IWyhTY2zZdtzn4DL06Wu_Wk4duBm01qTt0IjJApVHB14E9phqkS7ZmirarrD4i1l4Y.D0aHmw.en0ucmednH9fQUB8K3saGe59kWI
Cf-Connecting-Ip: 2001:558:600d:43:eda6:6170:26c2:5812
Cdn-Loop: cloudflare
X-Forwarded-Host: pennydreadfulmagic.com
X-Forwarded-Server: pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 3313

DatabaseException Failed to execute INSERT INTO deck ( created_date, updated_date, person_id, source_id, url, identifier, name, competition_id, archetype_id, resource_uri, featured_card, score, thumbnail_url, small_thumbnail_url, finish, reviewed ) VALUES ( IFNULL(%s, UNIX_TIMESTAMP()), UNIX_TIMESTAMP(), %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, FALSE ) with [1550120500.8838058, 3137, 3, 'https://pennydreadfulmagic.com/competitions/848/', '["pika001", 848, "1550120501"]', 'PD-GB-5', 848, None, None, None, None, None, None, None] because of (1062, 'Duplicate entry \'3-["pika001", 848, "1550120501"]\' for key \'deck_source_id_identifier\'') Stack Trace:

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
    response = self.handle_exception(e)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
    raise value
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "./decksite/cache.py", line 79, in decorated_function
    response = make_response(f(*args, **kwargs))
  File "./decksite/main.py", line 351, in add_signup
    d = lg.signup(form)
  File "./decksite/league.py", line 180, in signup
    return deck.add_deck(form)
  File "./decksite/data/deck.py", line 356, in add_deck
    deck_id = db().insert(sql, values)
  File "./shared/database.py", line 89, in insert
    self.execute(sql, args)
  File "./shared/database.py", line 45, in execute
    [n, _] = self.execute_anything(sql, args, False)
  File "./shared/database.py", line 60, in execute_anything
    raise DatabaseException('Failed to execute `{sql}` with `{args}` because of `{e}`'.format(sql=sql, args=args, e=e))

Exception_hash: 1c84d9886ebe0b811fde3c14436118b5c0bfba14

Labels: decksite; DatabaseException

vorpal-buildbot commented 5 years ago

500 error at /signup/

Failed to execute INSERT INTO deck ( created_date, updated_date, person_id, source_id, url, identifier, name, competition_id, archetype_id, resource_uri, featured_card, score, thumbnail_url, small_thumbnail_url, finish, reviewed ) VALUES ( IFNULL(%s, UNIX_TIMESTAMP()), UNIX_TIMESTAMP(), %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, FALSE ) with [1551909671.003485, 2791, 3, 'https://pennydreadfulmagic.com/competitions/1528/', '["taylors", 1528, "1551909671"]', 'Mono R Elementals', 1528, None, None, None, None, None, None, None] because of (1205, 'Lock wait timeout exceeded; try restarting transaction')

Reported on decksite by taylors


Request Data ``` Request Method: POST Path: /signup/? Cookies: {'__cfduid': 'd301b49ada8de78d8712f198dbd246aae1544751455', 'session': '.eJx9UdFOwjAU_Zf7vJhurIzxqA4xBpchKsGYpWyXrdi10HYKEv7djgR5MPHxnHN7zr2nB8g3qBsmUVoYWt2iB6xsuIThignjUIkNb1R5wdwUSpc5dxSEfb_X9wkJ_CgKY0ooAQ_-UWRetVyU5yShqgrLbgOj5MkxiGLfg8ZWKm8NaskadGaW7YXSxjko1to6yI1lthMG96a2iRkXZI23ZGl4Nnl9uWZ0_ZhZObrMW_WB7qQDsKJAY84Yptut_cyaRTqNdbseVcua00SYm91CjJ-X7j3uNlyjyZlrx6c0CMI4pNEV7QU0Iv5F7wrrk3BAiAcaV46qf0PE7GuRpUmyn_vp00Sk8V06G81UOWffD_OBC3GFbtw1b6459w18tXfcqScD7x6cbHK770bgGplGDUcP_pRmma7QrSlbIY4_kquY0Q.D2HUlQ.xHMnwDeQLuyjNB15s1RyB4x5fCE'} Endpoint: add_signup View Args: {} Person: 461361002177495050 Referrer: https://pennydreadfulmagic.com/signup/ Request Data: {'mtgo_username': 'taylors', 'name': 'Mono R Elementals', 'decklist': '\r\n\r\n 0\r\n 0\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'} Host: pennydreadfulmagic.com Accept-Encoding: gzip Cf-Ipcountry: US X-Forwarded-For: 98.253.148.221, 162.158.75.204 Cf-Ray: 4b379b34eee95558-ORD X-Forwarded-Proto: https Cf-Visitor: {"scheme":"https"} User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Referer: https://pennydreadfulmagic.com/signup/ Content-Type: application/x-www-form-urlencoded Upgrade-Insecure-Requests: 1 Cookie: __cfduid=d301b49ada8de78d8712f198dbd246aae1544751455; session=.eJx9UdFOwjAU_Zf7vJhurIzxqA4xBpchKsGYpWyXrdi10HYKEv7djgR5MPHxnHN7zr2nB8g3qBsmUVoYWt2iB6xsuIThignjUIkNb1R5wdwUSpc5dxSEfb_X9wkJ_CgKY0ooAQ_-UWRetVyU5yShqgrLbgOj5MkxiGLfg8ZWKm8NaskadGaW7YXSxjko1to6yI1lthMG96a2iRkXZI23ZGl4Nnl9uWZ0_ZhZObrMW_WB7qQDsKJAY84Yptut_cyaRTqNdbseVcua00SYm91CjJ-X7j3uNlyjyZlrx6c0CMI4pNEV7QU0Iv5F7wrrk3BAiAcaV46qf0PE7GuRpUmyn_vp00Sk8V06G81UOWffD_OBC3GFbtw1b6459w18tXfcqScD7x6cbHK770bgGplGDUcP_pRmma7QrSlbIY4_kquY0Q.D2HUlQ.xHMnwDeQLuyjNB15s1RyB4x5fCE Cf-Connecting-Ip: 98.253.148.221 Cdn-Loop: cloudflare X-Forwarded-Host: pennydreadfulmagic.com X-Forwarded-Server: pennydreadfulmagic.com Connection: Keep-Alive Content-Length: 3432 ```

DatabaseException Failed to execute `INSERT INTO deck ( created_date, updated_date, person_id, source_id, url, identifier, name, competition_id, archetype_id, resource_uri, featured_card, score, thumbnail_url, small_thumbnail_url, finish, reviewed ) VALUES ( IFNULL(%s, UNIX_TIMESTAMP()), UNIX_TIMESTAMP(), %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, FALSE )` with `[1551909671.003485, 2791, 3, 'https://pennydreadfulmagic.com/competitions/1528/', '["taylors", 1528, "1551909671"]', 'Mono R Elementals', 1528, None, None, None, None, None, None, None]` because of `(1205, 'Lock wait timeout exceeded; try restarting transaction')` Stack Trace: ```Python traceback File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__ return self.wsgi_app(environ, start_response) File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app response = self.handle_exception(e) File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise raise value File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "./decksite/cache.py", line 79, in decorated_function response = make_response(f(*args, **kwargs)) File "./decksite/main.py", line 351, in add_signup d = lg.signup(form) File "./decksite/league.py", line 180, in signup return deck.add_deck(form) File "./decksite/data/deck.py", line 356, in add_deck deck_id = db().insert(sql, values) File "./shared/database.py", line 89, in insert self.execute(sql, args) File "./shared/database.py", line 45, in execute [n, _] = self.execute_anything(sql, args, False) File "./shared/database.py", line 60, in execute_anything raise DatabaseException('Failed to execute `{sql}` with `{args}` because of `{e}`'.format(sql=sql, args=args, e=e)) ```

Exception_hash: 1c84d9886ebe0b811fde3c14436118b5c0bfba14

Labels: decksite; DatabaseException