bench new-site fair_site
MySQL root password:
Warning: MariaDB version [‘9.1’, ‘0’] is less than 10.6 which is not supported by Frappe
Installing frappe…
Updating DocTypes for frappe : [= ] 8%
There was an issue while migrating the DocType: Workspace
Traceback (most recent call last):
File “”, line 198, in _run_module_as_main
File “”, line 88, in _run_code
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/Users/sidharthsasi/testing-bench/env/lib/python3.11/site-packages/click/core.py”, line 1161, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/sidharthsasi/testing-bench/env/lib/python3.11/site-packages/click/core.py”, line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File “/Users/sidharthsasi/testing-bench/env/lib/python3.11/site-packages/click/core.py”, line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/sidharthsasi/testing-bench/env/lib/python3.11/site-packages/click/core.py”, line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/sidharthsasi/testing-bench/env/lib/python3.11/site-packages/click/core.py”, line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/sidharthsasi/testing-bench/env/lib/python3.11/site-packages/click/core.py”, line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/commands/site.py”, line 99, in new_site
_new_site(
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/installer.py”, line 117, in _new_site
install_app(app, verbose=verbose, set_as_patched=not source_sql, force=False)
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/installer.py”, line 316, in install_app
sync_for(name, force=force, reset_permissions=True)
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/model/sync.py”, line 111, in sync_for
import_file_by_path(
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/modules/import_file.py”, line 146, in import_file_by_path
import_doc(
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/modules/import_file.py”, line 239, in import_doc
doc.insert()
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/model/document.py”, line 320, in insert
self.run_post_save_methods()
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/model/document.py”, line 1140, in run_post_save_methods
self.run_method(“on_update”)
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/model/document.py”, line 974, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/model/document.py”, line 1334, in composer
return composed(self, method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/model/document.py”, line 1316, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/model/document.py”, line 971, in fn
return method_object(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 511, in on_update
raise e
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 508, in on_update
frappe.db.updatedb(self.name, Meta(self))
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/database/mariadb/database.py”, line 448, in updatedb
db_table.sync()
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/database/schema.py”, line 41, in sync
self.create()
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/database/mariadb/schema.py”, line 63, in create
frappe.db.sql_ddl(query)
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/database/database.py”, line 413, in sql_ddl
self.sql(query, debug=debug)
File “/Users/sidharthsasi/testing-bench/apps/frappe/frappe/database/database.py”, line 230, in sql
self._cursor.execute(query, values)
File “/Users/sidharthsasi/testing-bench/env/lib/python3.11/site-packages/pymysql/cursors.py”, line 153, in execute
result = self._query(query)
^^^^^^^^^^^^^^^^^^
File “/Users/sidharthsasi/testing-bench/env/lib/python3.11/site-packages/pymysql/cursors.py”, line 322, in _query
conn.query(q)
File “/Users/sidharthsasi/testing-bench/env/lib/python3.11/site-packages/pymysql/connections.py”, line 563, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/sidharthsasi/testing-bench/env/lib/python3.11/site-packages/pymysql/connections.py”, line 825, in _read_query_result
result.read()
File “/Users/sidharthsasi/testing-bench/env/lib/python3.11/site-packages/pymysql/connections.py”, line 1199, in read
first_packet = self.connection._read_packet()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/sidharthsasi/testing-bench/env/lib/python3.11/site-packages/pymysql/connections.py”, line 775, in _read_packet
packet.raise_for_error()
File “/Users/sidharthsasi/testing-bench/env/lib/python3.11/site-packages/pymysql/protocol.py”, line 219, in raise_for_error
err.raise_mysql_exception(self._data)
File “/Users/sidharthsasi/testing-bench/env/lib/python3.11/site-packages/pymysql/err.py”, line 150, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1101, “BLOB, TEXT, GEOMETRY or JSON column ‘content’ can’t have a default value”)