There were errors when trying to setup a site in ERPNext 9.2.12


I’m trying to setup an installation of a site with latest ERPNext version 9.2.12. When I filled out the info in the steps of wizard, in the final one is thrown the message “There were errors”.

This is the content of frappe.log

[ERROR] 2017-11-13 18:42:57,517 | /home/frappe/frappe-bench/apps/frappe/frappe/
Request Error
Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 76, in application
    response =
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 72, in render
    data = render_page(path)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 149, in render_page
    return build(path)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 156, in build
    return build_page(path)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 169, in build_page
    context = get_context(path)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 28, in get_context
    context = build_context(context)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 77, in build_context
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/doctype/website_settings/", line 74, in get_website_settings
    'top_bar_items': get_items('top_bar_items'),
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/doctype/website_settings/", line 131, in get_items
    order by idx asc""", parentfield, as_dict=1)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 166, in sql
    self._cursor.execute(query, values)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/", line 166, in execute
    result = self._query(query)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/", line 322, in _query
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/", line 856, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/", line 1057, in _read_query_result
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/", line 1340, in read
    first_packet = self.connection._read_packet()
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/", line 1001, in _read_packet
    % (packet_number, self._next_seq_id))
InternalError: Packet sequence number wrong - got 66 expected 1

Possibly some ‘network’ loss or interruption?

Say restart mysql and flush caches and hope this is not chronic…

I found the bug.

In setup wizard I selected an image for brand. Seems like that’s the error.

I setup again from 1st step, but this time I didn’t select a brand image and the setup worked well in final step.


I am facing a similar issue on bench new-site erp