Error while installing Civil_Contracting app on my site

Hi,
I am new to frappe.I followed the installation instructions in “https://github.com/frappe/bench” and installed bench on Redhat 7.I am getting the below error while trying to install the “civil_contracting” app on my site.I am on a time line and quick help is much appreciated.

Follwed “civil_contarcting” app installation instructions as in “https://revant.github.io/civil_contracting/install.html

Command used:
“bench --site crv_test_1 install-app civil_contracting”

error:

Installing civil_contracting…
Updating civil_contracting : [========================================]
Traceback (most recent call last):
File “/usr/lib64/python2.7/runpy.py”, line 162, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib64/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/commands/site.py”, line 152, in install_app
_install_app(app, verbose=context.verbose)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/installer.py”, line 136, in install_app
add_to_installed_apps(name)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/installer.py”, line 157, in add_to_installed_apps
post_install(rebuild_website)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/installer.py”, line 221, in post_install
init_singles()
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/installer.py”, line 242, in init_singles
doc.save()
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 223, in save
return self._save(*args, **kwargs)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 242, in _save
self.insert()
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 179, in insert
self.set_defaults()
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 483, in set_defaults
new_doc = frappe.new_doc(df.options, as_dict=True)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 563, in new_doc
return get_new_doc(doctype, parent_doc, parentfield, as_dict=as_dict)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/model/create_new.py”, line 19, in get_new_doc
frappe.local.new_doc_templates[doctype] = make_new_doc(doctype)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/model/create_new.py”, line 40, in make_new_doc
set_user_and_static_default_values(doc)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/model/create_new.py”, line 55, in set_user_and_static_default_values
user_default_value = get_user_default_value(df, defaults, user_permissions)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/model/create_new.py”, line 70, in get_user_default_value
if (frappe.get_meta(df.options).document_type==“Setup”
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 604, in get_meta
return frappe.model.meta.get_meta(doctype, cached=cached)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/model/meta.py”, line 30, in get_meta
return frappe.cache().hget(“meta”, doctype, lambda: Meta(doctype))
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py”, line 171, in hget
value = generator()
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/model/meta.py”, line 30, in
return frappe.cache().hget(“meta”, doctype, lambda: Meta(doctype))
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/model/meta.py”, line 65, in init
super(Meta, self).init(“DocType”, doctype)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 83, in init
self.load_from_db()
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/model/meta.py”, line 70, in load_from_db
super(Meta, self).load_from_db()
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 114, in load_from_db
frappe.throw(
("{0} {1} not found").format(
(self.doctype), self.name), frappe.DoesNotExistError)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 300, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 293, in msgprint
_raise_exception()
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 266, in _raise_exception
raise raise_exception, encode(msg)
frappe.exceptions.DoesNotExistError: DocType Company not found

I guess you need to install erpnext first.

1 Like

Thank you for the info.Indeed it was due to non-installation of erpnext.I could install civil_contracting on my site.
But now i am not able to login to my site with user “Administrator” and the password i set for it while creating the site.I am using “bench --site crv_test_3 serve --port 8090” to bring it up as port 8000 is already taken on my server and i cant use “bench start” as it doesn’t let me change the port. Is it because of not installing “nginix” .Do we need nginix for dev env too?.

Below is the error.

97.94.177.185 - - [20/Dec/2016 01:47:07] “GET /website_theme.css HTTP/1.1” 200 -
97.94.177.185 - - [20/Dec/2016 01:47:07] “GET /website_script.js HTTP/1.1” 200 -
97.94.177.185 - - [20/Dec/2016 01:47:07] “GET /assets/erpnext/images/favicon.png HTTP/1.1” 200 -
97.94.177.185 - - [20/Dec/2016 01:47:25] “POST / HTTP/1.1” 404 -
97.94.177.185 - - [20/Dec/2016 01:47:28] “POST / HTTP/1.1” 404 -
97.94.177.185 - - [20/Dec/2016 01:47:29] “POST / HTTP/1.1” 404 -
97.94.177.185 - - [20/Dec/2016 01:47:43] “POST / HTTP/1.1” 404 -
97.94.177.185 - - [20/Dec/2016 01:47:44] “POST / HTTP/1.1” 404 -
97.94.177.185 - - [20/Dec/2016 01:47:53] “POST / HTTP/1.1” 404 -
97.94.177.185 - - [20/Dec/2016 01:47:55] “POST / HTTP/1.1” 404 -
97.94.177.185 - - [20/Dec/2016 01:47:58] “POST / HTTP/1.1” 404 -
97.94.177.185 - - [20/Dec/2016 01:47:59] “POST / HTTP/1.1” 404 -

Hello @vasista,

No
Try The following command
Go to Frappe-bench folder
“bench serve --port 9008”

Thanks

It is not bringing up anything.
error:
52.53.193.134 does not exist

Exception happened during processing of request from (‘97.94.177.185’, 59187)
Traceback (most recent call last):
File “/usr/lib64/python2.7/SocketServer.py”, line 593, in process_request_thread
self.finish_request(request, client_address)
File “/usr/lib64/python2.7/SocketServer.py”, line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File “/usr/lib64/python2.7/SocketServer.py”, line 649, in init
self.handle()
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py”, line 216, in handle
rv = BaseHTTPRequestHandler.handle(self)
File “/usr/lib64/python2.7/BaseHTTPServer.py”, line 340, in handle
self.handle_one_request()
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py”, line 251, in handle_one_request
return self.run_wsgi()
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py”, line 193, in run_wsgi
execute(self.server.app)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py”, line 183, in execute
for data in application_iter:
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/debug/init.py”, line 284, in debug_application
app_iter = self.app(environ, start_response)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/middlewares.py”, line 15, in call
return super(StaticDataMiddleware, self).call(environ, start_response)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 599, in call
return self.app(environ, start_response)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 599, in call
return self.app(environ, start_response)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 228, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py”, line 291, in application
return f(*args[:-2] + (request,))(*args[-2:])
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 52, in application
init_request(request)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 103, in init_request
frappe.init(site=site, sites_path=_sites_path)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 120, in init
local.conf = _dict(get_site_config())
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 175, in get_site_config
sys.exit(1)
SystemExit: 1

52.53.193.134 does not exist

Exception happened during processing of request from (‘97.94.177.185’, 59186)
Traceback (most recent call last):
File “/usr/lib64/python2.7/SocketServer.py”, line 593, in process_request_thread
self.finish_request(request, client_address)
File “/usr/lib64/python2.7/SocketServer.py”, line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File “/usr/lib64/python2.7/SocketServer.py”, line 649, in init
self.handle()
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py”, line 216, in handle
rv = BaseHTTPRequestHandler.handle(self)
File “/usr/lib64/python2.7/BaseHTTPServer.py”, line 340, in handle
self.handle_one_request()
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py”, line 251, in handle_one_request
return self.run_wsgi()
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py”, line 193, in run_wsgi
execute(self.server.app)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py”, line 183, in execute
for data in application_iter:
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/debug/init.py”, line 284, in debug_application
app_iter = self.app(environ, start_response)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/middlewares.py”, line 15, in call
return super(StaticDataMiddleware, self).call(environ, start_response)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 599, in call
return self.app(environ, start_response)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 599, in call
return self.app(environ, start_response)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 228, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File “/home/ec2-user/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py”, line 291, in application
return f(*args[:-2] + (request,))(*args[-2:])
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 52, in application
init_request(request)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 103, in init_request
frappe.init(site=site, sites_path=_sites_path)
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 120, in init
local.conf = _dict(get_site_config())
File “/home/ec2-user/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 175, in get_site_config
sys.exit(1)
SystemExit: 1

Hi Sagar,
I “made crv_test_3” as my default site and tried “bench serve --port 9008”.It’s the same behavior. It’s showing the login screen but when i enter “Administrator” and the password i set while creating the site,it doesn’t login and throws the below error on the server.I have also enabled the desktop mode in the site config file.

97.94.177.185 - - [20/Dec/2016 16:50:00] “GET / HTTP/1.1” 200 -
97.94.177.185 - - [20/Dec/2016 16:50:00] “GET /assets/frappe/css/bootstrap.css HTTP/1.1” 200 -
97.94.177.185 - - [20/Dec/2016 16:50:00] “GET /assets/css/frappe-web.css HTTP/1.1” 200 -
97.94.177.185 - - [20/Dec/2016 16:50:00] “GET /assets/erpnext/css/website.css HTTP/1.1” 200 -
97.94.177.185 - - [20/Dec/2016 16:50:00] “GET /assets/frappe/js/lib/jquery/jquery.min.js HTTP/1.1” 200 -
97.94.177.185 - - [20/Dec/2016 16:50:01] “GET /assets/js/frappe-web.min.js HTTP/1.1” 200 -
2 None
97.94.177.185 - - [20/Dec/2016 16:50:01] “GET /website_theme.css HTTP/1.1” 200 -
2 None
97.94.177.185 - - [20/Dec/2016 16:50:01] “GET /website_script.js HTTP/1.1” 200 -
97.94.177.185 - - [20/Dec/2016 16:50:01] “GET /assets/js/erpnext-web.min.js HTTP/1.1” 200 -
97.94.177.185 - - [20/Dec/2016 16:50:02] “GET /assets/erpnext/images/favicon.png HTTP/1.1” 200 -
97.94.177.185 - - [20/Dec/2016 16:50:15] “POST / HTTP/1.1” 404 -
97.94.177.185 - - [20/Dec/2016 16:50:16] “POST / HTTP/1.1” 404 -
97.94.177.185 - - [20/Dec/2016 16:50:33] “POST / HTTP/1.1” 404 -