POS giving a "Server Error"

Im Getting this error on a fresh and newly setup system
Localmachine runnnig 18.04 on production
followed the installation here : Parag_Kapoor’s insallation guide on 17.xx or 18.xx
16gb RAM
intel xeon
1tb hdd

EDIT: learned that this only happens when I try to turn one “use pos in offline mode”

probably an installation problem?

Traceback (most recent call last):
  File "/opt/bench/erpnext/apps/frappe/frappe/app.py", line 62, in application
    response = frappe.handler.handle()
  File "/opt/bench/erpnext/apps/frappe/frappe/handler.py", line 22, in handle
    data = execute_cmd(cmd)
  File "/opt/bench/erpnext/apps/frappe/frappe/handler.py", line 53, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/opt/bench/erpnext/apps/frappe/frappe/__init__.py", line 942, in call
    return fn(*args, **newargs)
  File "/opt/bench/erpnext/apps/erpnext/erpnext/accounts/doctype/sales_invoice/pos.py", line 42, in get_pos_data
    items_list = get_items_list(pos_profile, doc.company)
  File "/opt/bench/erpnext/apps/erpnext/erpnext/accounts/doctype/sales_invoice/pos.py", line 175, in get_items_list
    """.format(cond=cond), tuple(args_list), as_dict=1)
  File "/opt/bench/erpnext/apps/frappe/frappe/database.py", line 209, in sql
    self._cursor.execute(query)
  File "/opt/bench/erpnext/env/local/lib/python2.7/site-packages/pymysql/cursors.py", line 170, in execute
    result = self._query(query)
  File "/opt/bench/erpnext/env/local/lib/python2.7/site-packages/pymysql/cursors.py", line 328, in _query
    conn.query(q)
  File "/opt/bench/erpnext/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 893, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  File "/opt/bench/erpnext/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 1103, in _read_query_result
    result.read()
  File "/opt/bench/erpnext/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 1396, in read
    first_packet = self.connection._read_packet()
  File "/opt/bench/erpnext/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 1059, in _read_packet
    packet.check_error()
  File "/opt/bench/erpnext/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 384, in check_error
    err.raise_mysql_exception(self._data)
  File "/opt/bench/erpnext/env/local/lib/python2.7/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
    raise errorclass(errno, errval)
ProgrammingError: (1064, u"You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '%s\n\t\twhere\n\t\t\ti.disabled = 0 and i.has_variants = 0 and i.is_sales_item = 1' at line 6")

also this:

Request Data
{
	"type": "POST",
	"args": {
		"cmd": "erpnext.accounts.doctype.sales_invoice.pos.get_pos_data"
	},
	"freeze": true,
	"freeze_message": "Master data syncing, it might take some time",
	"url": "/"
}

fixing via https://github.com/frappe/erpnext/pull/14294

1 Like