It works, I followed the first thread:
$ sudo chown -R frappe:frappe /usr/lib/node_modules
I just changed the folder to update owner and user to be the whole frappe user folder. And now I run bench update --reset, it works!!
Buuut, unluckily, after I try on the browser, the system is not working properly. The main page is not showing the styles properly, and when I tried to login, it also hang at verifying…
I opened the console, I saw a lot of errors:
Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR:
1 Failed to load resource: the server responded with a status of 500 ()
website.js:161 Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 52, in application
def application(request):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 116, in init_request
raise frappe.SessionStopped
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 51, in init
frappe.local.login_manager = LoginManager()
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 105, in init
if self.login()==False: return
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 131, in login
self.post_login()
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 138, in post_login
self.make_session()
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 182, in make_session
full_name=self.full_name, user_type=self.user_type)
File “/home/frappe/frappe-bench/apps/frappe/frappe/sessions.py”, line 205, in init
if self.user==‘Guest’:
File “/home/frappe/frappe-bench/apps/frappe/frappe/sessions.py”, line 238, in start
def insert_session_record(self):
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 260, in save
return self._save(args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 296, in _save
self.run_before_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 886, in run_before_save_methods
self.set_title_field()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 781, in run_method
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1061, in composer
else throw Exception.“”"
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1044, in runner
+ doc_events.get("", {}).get(method, []):
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 775, in
run_webhooks(self, method)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py”, line 69, in validate
ask_pass_update()
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py”, line 731, in ask_pass_update
# verify old password
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/init.py”, line 211, in set_default
return frappe.db.set_default(key, val)
File “/home/frappe/frappe-bench/apps/frappe/frappe/database/database.py”, line 694, in set_default
File “/home/frappe/frappe-bench/apps/frappe/frappe/defaults.py”, line 134, in set_default
add_default(key, value, parent)
File “/home/frappe/frappe-bench/apps/frappe/frappe/defaults.py”, line 147, in add_default
d.insert(ignore_permissions=True)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 223, in insert
self._validate()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 457, in _validate
d._validate_length()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 806, in _extract_images_from_text_editor
if filters:
ImportError: cannot import name extract_images_from_doc
process_response @ website.js:161
:1 Failed to load resource: the server responded with a status of 500 ()
website.js:161 Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 52, in application
def application(request):
File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 116, in init_request
raise frappe.SessionStopped
File "/home/frappe/frappe-bench/apps/frappe/frappe/auth.py", line 51, in __init__
frappe.local.login_manager = LoginManager()
File "/home/frappe/frappe-bench/apps/frappe/frappe/auth.py", line 105, in __init__
if self.login()==False: return
File "/home/frappe/frappe-bench/apps/frappe/frappe/auth.py", line 131, in login
self.post_login()
File "/home/frappe/frappe-bench/apps/frappe/frappe/auth.py", line 138, in post_login
self.make_session()
File "/home/frappe/frappe-bench/apps/frappe/frappe/auth.py", line 182, in make_session
full_name=self.full_name, user_type=self.user_type)
File "/home/frappe/frappe-bench/apps/frappe/frappe/sessions.py", line 205, in __init__
if self.user=='Guest':
File "/home/frappe/frappe-bench/apps/frappe/frappe/sessions.py", line 238, in start
def insert_session_record(self):
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 260, in save
return self._save(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 296, in _save
self.run_before_save_methods()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 886, in run_before_save_methods
self.set_title_field()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 781, in run_method
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1061, in composer
else throw Exception."""
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1044, in runner
+ doc_events.get("*", {}).get(method, []):
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 775, in <lambda>
run_webhooks(self, method)
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py", line 69, in validate
ask_pass_update()
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py", line 731, in ask_pass_update
# verify old password
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/__init__.py", line 211, in set_default
return frappe.db.set_default(key, val)
File "/home/frappe/frappe-bench/apps/frappe/frappe/database/database.py", line 694, in set_default
File "/home/frappe/frappe-bench/apps/frappe/frappe/defaults.py", line 134, in set_default
add_default(key, value, parent)
File "/home/frappe/frappe-bench/apps/frappe/frappe/defaults.py", line 147, in add_default
d.insert(ignore_permissions=True)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 223, in insert
self._validate()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 457, in _validate
d._validate_length()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 806, in _extract_images_from_text_editor
if filters:
ImportError: cannot import name extract_images_from_doc
process_response @ website.js:161