ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Error In installing bench new sites

installation_problem

#1

andrewdavewt@ubuntuWT:~/frappe-bench$ bench new-site site1.local
MySQL root password:

Installing frappe…
Updating DocTypes for frappe : [== ]Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
main()
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/andrewdavewt/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/andrewdavewt/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/andrewdavewt/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/andrewdavewt/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/andrewdavewt/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/andrewdavewt/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/commands/site.py”, line 33, in new_site
db_type = db_type)
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/commands/site.py”, line 70, in _new_site
_install_app(app, verbose=verbose, set_as_patched=not source_sql)
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/installer.py”, line 84, in install_app
sync_for(name, force=True, sync_everything=True, verbose=verbose, reset_permissions=True)
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/model/sync.py”, line 56, in sync_for
reset_permissions=reset_permissions, for_sync=True)
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 66, in import_file_by_path
ignore_version=ignore_version, reset_permissions=reset_permissions)
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 141, in import_doc
doc.insert()
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/model/document.py”, line 258, in insert
self.run_post_save_methods()
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/model/document.py”, line 917, in run_post_save_methods
self.run_method(“on_update”)
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/model/document.py”, line 786, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/model/document.py”, line 1055, in composer
return composed(self, method, *args, **kwargs)
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/model/document.py”, line 1038, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/model/document.py”, line 780, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 279, in on_update
self.run_module_method(“on_doctype_update”)
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 348, in run_module_method
getattr(module, method)()
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py”, line 289, in on_doctype_update
frappe.db.add_index(“Communication Link”, [“link_doctype”, “link_name”])
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/database/mariadb/database.py”, line 253, in add_index
if not self.has_index(table_name, index_name):
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/database/mariadb/database.py”, line 245, in has_index
index_name=index_name
File “/home/andrewdavewt/frappe-bench/apps/frappe/frappe/database/database.py”, line 171, in sql
self._cursor.execute(query)
File “/home/andrewdavewt/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py”, line 170, in execute
result = self._query(query)
File “/home/andrewdavewt/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py”, line 328, in _query
conn.query(q)
File “/home/andrewdavewt/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 517, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File “/home/andrewdavewt/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 732, in _read_query_result
result.read()
File “/home/andrewdavewt/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 1075, in read
first_packet = self.connection._read_packet()
File “/home/andrewdavewt/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 684, in _read_packet
packet.check_error()
File “/home/andrewdavewt/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/protocol.py”, line 220, in check_error
err.raise_mysql_exception(self._data)
File “/home/andrewdavewt/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/err.py”, line 109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1146, u"Table ‘_1bd3e0294da19198.tabCommunication Link’ doesn’t exist")

I have tried to fixed this error, but it won’t work. Please correct me if i’m wrong.
Sorry for my bad english and grammar

#linux #erpnext #bench #frappe #frappe-bench #bench_new-sites


#2

See this link


#3

okey, thank you very much


#4

this is a dev branch problem, use master bench