Traceback (most recent call last):
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs
doc.save()
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 256, in save
return self._save(*args, **kwargs)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 307, in _save
self.run_post_save_methods()
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 887, in run_post_save_methods
self.run_method("on_update")
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 755, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 1024, in composer
return composed(self, method, *args, **kwargs)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 1007, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 749, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 215, in on_update
self.export_doc()
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 329, in export_doc
export_to_files(record_list=[['DocType', self.name]], create_init=True)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/modules/export_file.py", line 22, in export_to_files
write_document_file(frappe.get_doc(record[0], record[1]), record_module, create_init=create_init)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/modules/export_file.py", line 37, in write_document_file
folder = create_folder(module, doc.doctype, doc.name, create_init)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/modules/export_file.py", line 64, in create_folder
frappe.create_folder(folder)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/__init__.py", line 338, in create_folder
os.makedirs(path)
File "/opt/bitnami/python/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/erpnext/erpnext/selling/doctype/new'
Traceback (most recent call last):
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/app.py", line 62, in application
response = frappe.handler.handle()
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/handler.py", line 22, in handle
data = execute_cmd(cmd)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/handler.py", line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/__init__.py", line 939, in call
return fn(*args, **newargs)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs
doc.save()
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 256, in save
return self._save(*args, **kwargs)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 307, in _save
self.run_post_save_methods()
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 887, in run_post_save_methods
self.run_method("on_update")
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 755, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 1024, in composer
return composed(self, method, *args, **kwargs)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 1007, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 749, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 215, in on_update
self.export_doc()
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 329, in export_doc
export_to_files(record_list=[['DocType', self.name]], create_init=True)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/modules/export_file.py", line 22, in export_to_files
write_document_file(frappe.get_doc(record[0], record[1]), record_module, create_init=create_init)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/modules/export_file.py", line 37, in write_document_file
folder = create_folder(module, doc.doctype, doc.name, create_init)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/modules/export_file.py", line 64, in create_folder
frappe.create_folder(folder)
File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/__init__.py", line 338, in create_folder
os.makedirs(path)
File "/opt/bitnami/python/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/erpnext/erpnext/selling/doctype/new'
Here is the traceback i am getting while creating a new doctype,
but when i check group and public’s WRITE permissions, it will create doctype as well as files and folders of the doctype in the back end.