Erpnext v11 installation error


I’m using erpnext easy install method to install it on ubuntu 16.04.

After I run (python --production --user frappe) command I’m getting the below error.

Can anyone help me?

Thanks & Regards,

installation is successfull with erpnext & frappe framework with version 12.

Itried to switch to master branch and on using command bench update --patch I’m getting the below error.

You are running the commands as user root - this is not advised. Rather use user frappe, and add a sudo where necessary.

i have used bench update --patch command as non root user and i’m getting this error.

Similar problem here…
you are running commands as user ubuntu…but on files that are owned by user frappe.
login and run commands as user frappe, and the permissions problems will probably go away

Do I need to login as user frappe after login as ubuntu?

How did you overcome this ?

I’m still getting same errors.

didn’t find any solution

When you login as ubuntu or as root, Try

su - frappe
sudo su - frappe

use below command

sudo bench update --patch


Login as frappe/root user

It is saying you should not run as this command as root

Asking for a password, when I tried login as frappe user

It is saying you should not run as this command as root

then run below command

sudo bench update --patch

File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/”, line 97, in
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/”, line 18, in main
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/”, line 764, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/”, line 717, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/”, line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/”, line 227, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 38, in migrate
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/”, line 29, in run_all
if not run_single(patchmodule = patch):
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/”, line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/”, line 81, in execute_patch
File “”, line 1, in
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 210, in sql
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/pymysql/”, line 170, in execute
result = self._query(query)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/pymysql/”, line 328, in _query
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/pymysql/”, line 517, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/pymysql/”, line 732, in _read_query_result
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/pymysql/”, line 1075, in read
first_packet = self.connection._read_packet()
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/pymysql/”, line 684, in _read_packet
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/pymysql/”, line 220, in check_error
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/pymysql/”, line 109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.InternalError: (1054, “Unknown column ‘comment’ in ‘field list’”)
ubuntu@ubuntu:/home/frappe/frappe-bench$ ^C

I got this error after using that command


Please login as frappe user or by using su frappe from ubuntu user. Then cd to frappe-bench folder and run bench update again. Please post the output from the beginning i.e from bench update command.

1 Like

You can set the frappe password with:
sudo passwd frappe

Then you can switch to the frappe user with
su frappe
(It will ask for the password you created.)

Then you can run bench update (from the frappe-bench folder) using
bench update