Library does not exist

i am new to Frappe.I deleted my site from the sitse folder using “sudo rm xyz” command, as i wanted to start a new fresh site. But now whenever i run command "bench start " following error appears;;

File “/home/india/frappe-bench/apps/frappe/frappe/init.py”, line 192, in get_site_config sys.exit(1)
| ----------------------------------------
library does not exist

Moreover cant able to start mysql.error coming::
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2 “No such file or directory”)

Seems your mysql is down.

sudo service mysql restart

1 Like

thanks @saurabh6790… mysql started.
but previous error…“library does not exist” still exists when i run command …“bench start”

Please share full error log.

india@india-To-be-filled-by-O-E-M:~/frappe-bench$ bench start
12:09:12 system | worker_long.1 started (pid=7800)
12:09:12 system | redis_socketio.1 started (pid=7795)
12:09:12 redis_socketio.1 | 7802:M 17 Jul 12:09:12.106 * Increased maximum number of open files to 10032 (it was originally set to 1024).
12:09:12 redis_socketio.1 | .
12:09:12 redis_socketio.1 | .-__ ''-._ 12:09:12 redis_socketio.1 | _.- . . ‘’-._ Redis 3.0.6 (00000000/0) 64 bit
12:09:12 redis_socketio.1 | .- .-```. ```\/ _.,_ ''-._ 12:09:12 redis_socketio.1 | ( ' , .-` | `, ) Running in standalone mode 12:09:12 redis_socketio.1 | |`-._`-...-` __...-.-.|'_.-'| Port: 12000 12:09:12 redis_socketio.1 | | -. ._ / _.-' | PID: 7802 12:09:12 redis_socketio.1 | -._ -._ -./ .-’ .-’
12:09:12 redis_socketio.1 | |-._-.
-.__.-' _.-'_.-'| 12:09:12 redis_socketio.1 | | -.
-._ _.-'_.-' | http://redis.io 12:09:12 redis_socketio.1 | -._ -._-..-'.-’ .-’
12:09:12 redis_socketio.1 | |-._-.
-.__.-' _.-'_.-'| 12:09:12 redis_socketio.1 | | -.
-._ _.-'_.-' | 12:09:12 redis_socketio.1 | -._ -._-.
.-‘.-’ .-’
12:09:12 redis_socketio.1 | -._ -..-’ _.-’
12:09:12 redis_socketio.1 | -._ _.-' 12:09:12 redis_socketio.1 | -.
.-’
12:09:12 redis_socketio.1 |
12:09:12 redis_socketio.1 | 7802:M 17 Jul 12:09:12.107 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
12:09:12 redis_socketio.1 | 7802:M 17 Jul 12:09:12.107 # Server started, Redis version 3.0.6
12:09:12 redis_socketio.1 | 7802:M 17 Jul 12:09:12.107 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
12:09:12 redis_socketio.1 | 7802:M 17 Jul 12:09:12.107 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
12:09:12 redis_socketio.1 | 7802:M 17 Jul 12:09:12.107 * The server is now ready to accept connections on port 12000
12:09:12 system | socketio.1 started (pid=7807)
12:09:12 system | worker_default.1 started (pid=7806)
12:09:12 system | worker_short.1 started (pid=7810)
12:09:12 system | redis_cache.1 started (pid=7811)
12:09:12 redis_cache.1 | 7824:M 17 Jul 12:09:12.147 * Increased maximum number of open files to 10032 (it was originally set to 1024).
12:09:12 redis_cache.1 | .
12:09:12 redis_cache.1 | .-__ ''-._ 12:09:12 redis_cache.1 | _.- . . ‘’-.
Redis 3.0.6 (00000000/0) 64 bit
12:09:12 redis_cache.1 | .- .-```. ```\/ _.,_ ''-._ 12:09:12 redis_cache.1 | ( ' , .-` | `, ) Running in standalone mode 12:09:12 redis_cache.1 | |`-._`-...-` __...-.-.
|’_.-'| Port: 13000 12:09:12 redis_cache.1 | | -._ ._ / _.-' | PID: 7824 12:09:12 redis_cache.1 | -._ -._ -./ .-’ .-’
12:09:12 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 12:09:12 redis_cache.1 | | -.
-._ _.-'_.-' | http://redis.io 12:09:12 redis_cache.1 | -._ -._-..-'.-’ .-’
12:09:12 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 12:09:12 redis_cache.1 | | -.
-._ _.-'_.-' | 12:09:12 redis_cache.1 | -._ -._-.
.-‘.-’ .-’
12:09:12 redis_cache.1 | -._ -..-’ _.-’
12:09:12 redis_cache.1 | -._ _.-' 12:09:12 redis_cache.1 | -.
.-’
12:09:12 redis_cache.1 |
12:09:12 redis_cache.1 | 7824:M 17 Jul 12:09:12.147 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
12:09:12 redis_cache.1 | 7824:M 17 Jul 12:09:12.147 # Server started, Redis version 3.0.6
12:09:12 redis_cache.1 | 7824:M 17 Jul 12:09:12.147 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
12:09:12 redis_cache.1 | 7824:M 17 Jul 12:09:12.147 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
12:09:12 redis_cache.1 | 7824:M 17 Jul 12:09:12.147 * The server is now ready to accept connections on port 13000
12:09:12 system | schedule.1 started (pid=7830)
12:09:12 system | web.1 started (pid=7823)
12:09:12 system | watch.1 started (pid=7835)
12:09:12 system | redis_queue.1 started (pid=7829)
12:09:12 redis_queue.1 | 7832:M 17 Jul 12:09:12.183 * Increased maximum number of open files to 10032 (it was originally set to 1024).
12:09:12 redis_queue.1 | .
12:09:12 redis_queue.1 | .-__ ''-._ 12:09:12 redis_queue.1 | _.- . . ‘’-.
Redis 3.0.6 (00000000/0) 64 bit
12:09:12 redis_queue.1 | .- .-```. ```\/ _.,_ ''-._ 12:09:12 redis_queue.1 | ( ' , .-` | `, ) Running in standalone mode 12:09:12 redis_queue.1 | |`-._`-...-` __...-.-.
|’_.-'| Port: 11000 12:09:12 redis_queue.1 | | -._ ._ / _.-' | PID: 7832 12:09:12 redis_queue.1 | -._ -._ -./ .-’ .-’
12:09:12 redis_queue.1 | |-._-.
-.__.-' _.-'_.-'| 12:09:12 redis_queue.1 | | -.
-._ _.-'_.-' | http://redis.io 12:09:12 redis_queue.1 | -._ -._-..-'.-’ .-’
12:09:12 redis_queue.1 | |-._-.
-.__.-' _.-'_.-'| 12:09:12 redis_queue.1 | | -.
-._ _.-'_.-' | 12:09:12 redis_queue.1 | -._ -._-.
.-‘_.-’ _.-’
12:09:12 redis_queue.1 | -._ -..-’ _.-’
12:09:12 redis_queue.1 | -._ _.-' 12:09:12 redis_queue.1 | -.
.-’
12:09:12 redis_queue.1 |
12:09:12 redis_queue.1 | 7832:M 17 Jul 12:09:12.184 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
12:09:12 redis_queue.1 | 7832:M 17 Jul 12:09:12.184 # Server started, Redis version 3.0.6
12:09:12 redis_queue.1 | 7832:M 17 Jul 12:09:12.184 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
12:09:12 redis_queue.1 | 7832:M 17 Jul 12:09:12.184 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
12:09:12 redis_queue.1 | 7832:M 17 Jul 12:09:12.184 * The server is now ready to accept connections on port 11000
12:09:13 socketio.1 | listening on *: 9000
12:09:15 worker_long.1 | 12:09:15 RQ worker u’rq:worker:india-To-be-filled-by-O-E-M.7803.long’ started, version 0.8.0
12:09:15 worker_long.1 | 12:09:15 Cleaning registries for queue: long
12:09:15 worker_long.1 | 12:09:15
12:09:15 worker_long.1 | 12:09:15 *** Listening on long…
12:09:15 web.1 | * Running on http://0.0.0.0:8090/ (Press CTRL+C to quit)
12:09:15 web.1 | * Restarting with inotify reloader
12:09:15 worker_short.1 | 12:09:15 RQ worker u’rq:worker:india-To-be-filled-by-O-E-M.7814.short’ started, version 0.8.0
12:09:15 worker_short.1 | 12:09:15 Cleaning registries for queue: short
12:09:15 worker_short.1 | 12:09:15
12:09:15 worker_short.1 | 12:09:15 *** Listening on short…
12:09:15 worker_default.1 | 12:09:15 RQ worker u’rq:worker:india-To-be-filled-by-O-E-M.7812.default’ started, version 0.8.0
12:09:15 worker_default.1 | 12:09:15 Cleaning registries for queue: default
12:09:15 worker_default.1 | 12:09:15
12:09:15 worker_default.1 | 12:09:15 *** Listening on default…
12:09:15 web.1 | * Debugger is active!
12:09:15 web.1 | * Debugger PIN: 121-654-020
12:09:16 watch.1 | compiling avatar.less
12:09:16 watch.1 | compiling calendar.less
12:09:16 watch.1 | compiling common.less
12:09:16 watch.1 | compiling desk.less
12:09:16 watch.1 | compiling desktop.less
12:09:16 watch.1 | compiling docs.less
12:09:16 watch.1 | compiling form.less
12:09:16 watch.1 | compiling form_grid.less
12:09:16 watch.1 | compiling gantt.less
12:09:16 watch.1 | compiling indicator.less
12:09:16 watch.1 | compiling kanban.less
12:09:16 watch.1 | compiling list.less
12:09:16 watch.1 | compiling mixins.less
12:09:16 watch.1 | compiling mobile.less
12:09:16 watch.1 | compiling module.less
12:09:16 watch.1 | compiling navbar.less
12:09:16 watch.1 | compiling page.less
12:09:16 watch.1 | compiling report.less
12:09:16 watch.1 | compiling role_editor.less
12:09:16 watch.1 | compiling sidebar.less
12:09:16 watch.1 | compiling slickgrid.less
12:09:16 watch.1 | compiling tree.less
12:09:16 watch.1 | compiling website.less
12:09:16 watch.1 | compiling erpnext.less
12:09:16 watch.1 | compiling website.less
12:09:16 watch.1 | file watching on *: 6787
12:09:17 watch.1 | Less files compiled
12:09:17 watch.1 | Wrote css/frappe-web.css - 65.58 KB
12:09:17 watch.1 | Wrote js/frappe-web.min.js - 139.24 KB
12:09:18 watch.1 | Wrote js/dialog.min.js - 100.92 KB
12:09:18 watch.1 | Wrote css/desk.min.css - 283.02 KB
12:09:18 watch.1 | Wrote css/frappe-rtl.css - 32.6 KB
12:09:18 watch.1 | Wrote js/libs.min.js - 816.48 KB
12:09:22 watch.1 | Wrote js/desk.min.js - 399.28 KB
12:09:22 watch.1 | Wrote js/d3.min.js - 380.4 KB
12:09:22 watch.1 | Wrote css/module.min.css - 2.16 KB
12:09:22 watch.1 | Wrote css/form.min.css - 4.55 KB
12:09:24 watch.1 | Wrote js/form.min.js - 193.81 KB
12:09:24 watch.1 | Wrote css/list.min.css - 14.4 KB
12:09:25 watch.1 | Wrote js/list.min.js - 142.09 KB
12:09:25 watch.1 | Wrote css/report.min.css - 8.19 KB
12:09:25 watch.1 | Wrote js/report.min.js - 257.13 KB
12:09:25 watch.1 | Wrote js/web_form.min.js - 247.58 KB
12:09:25 watch.1 | Wrote css/web_form.css - 24.69 KB
12:09:25 watch.1 | Wrote js/print_format_v3.min.js - 23.64 KB
12:09:25 watch.1 | Wrote css/erpnext.css - 7.95 KB
12:09:25 watch.1 | Wrote js/erpnext-web.min.js - 3.89 KB
12:09:26 watch.1 | Wrote js/erpnext.min.js - 137.93 KB
12:09:26 watch.1 | Wrote js/item-dashboard.min.js - 7.93 KB
12:09:31 web.1 | library does not exist
12:09:31 web.1 | ----------------------------------------
12:09:31 web.1 | Exception happened during processing of request from (‘127.0.0.1’, 43560)
12:09:31 web.1 | Traceback (most recent call last):
12:09:31 web.1 | File “/usr/lib/python2.7/SocketServer.py”, line 596, in process_request_thread
12:09:31 web.1 | self.finish_request(request, client_address)
12:09:31 web.1 | File “/usr/lib/python2.7/SocketServer.py”, line 331, in finish_request
12:09:31 web.1 | self.RequestHandlerClass(request, client_address, self)
12:09:31 web.1 | File “/usr/lib/python2.7/SocketServer.py”, line 652, in init
12:09:31 web.1 | self.handle()
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py”, line 232, in handle
12:09:31 web.1 | rv = BaseHTTPRequestHandler.handle(self)
12:09:31 web.1 | File “/usr/lib/python2.7/BaseHTTPServer.py”, line 340, in handle
12:09:31 web.1 | self.handle_one_request()
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py”, line 267, in handle_one_request
12:09:31 web.1 | return self.run_wsgi()
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py”, line 209, in run_wsgi
12:09:31 web.1 | execute(self.server.app)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py”, line 199, in execute
12:09:31 web.1 | for data in application_iter:
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/debug/init.py”, line 284, in debug_application
12:09:31 web.1 | app_iter = self.app(environ, start_response)
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/middlewares.py”, line 15, in call
12:09:31 web.1 | return super(StaticDataMiddleware, self).call(environ, start_response)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 600, in call
12:09:31 web.1 | return self.app(environ, start_response)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 600, in call
12:09:31 web.1 | return self.app(environ, start_response)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/local.py”, line 228, in application
12:09:31 web.1 | return ClosingIterator(app(environ, start_response), self.cleanup)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wrappers.py”, line 301, in application
12:09:31 web.1 | return f(*args[:-2] + (request,))(*args[-2:])
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/app.py”, line 53, in application
12:09:31 web.1 | init_request(request)
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/app.py”, line 104, in init_request
12:09:31 web.1 | frappe.init(site=site, sites_path=_sites_path)
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/init.py”, line 135, in init
12:09:31 web.1 | local.conf = _dict(get_site_config())
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/init.py”, line 192, in get_site_config
12:09:31 web.1 | sys.exit(1)
12:09:31 web.1 | SystemExit: 1
12:09:31 web.1 | ----------------------------------------
12:09:31 web.1 | library does not exist
12:09:31 web.1 | ----------------------------------------
12:09:31 web.1 | Exception happened during processing of request from (‘127.0.0.1’, 43562)
12:09:31 web.1 | Traceback (most recent call last):
12:09:31 web.1 | File “/usr/lib/python2.7/SocketServer.py”, line 596, in process_request_thread
12:09:31 web.1 | self.finish_request(request, client_address)
12:09:31 web.1 | File “/usr/lib/python2.7/SocketServer.py”, line 331, in finish_request
12:09:31 web.1 | self.RequestHandlerClass(request, client_address, self)
12:09:31 web.1 | File “/usr/lib/python2.7/SocketServer.py”, line 652, in init
12:09:31 web.1 | self.handle()
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py”, line 232, in handle
12:09:31 web.1 | rv = BaseHTTPRequestHandler.handle(self)
12:09:31 web.1 | File “/usr/lib/python2.7/BaseHTTPServer.py”, line 340, in handle
12:09:31 web.1 | self.handle_one_request()
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py”, line 267, in handle_one_request
12:09:31 web.1 | return self.run_wsgi()
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py”, line 209, in run_wsgi
12:09:31 web.1 | execute(self.server.app)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py”, line 199, in execute
12:09:31 web.1 | for data in application_iter:
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/debug/init.py”, line 284, in debug_application
12:09:31 web.1 | app_iter = self.app(environ, start_response)
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/middlewares.py”, line 15, in call
12:09:31 web.1 | return super(StaticDataMiddleware, self).call(environ, start_response)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 600, in call
12:09:31 web.1 | return self.app(environ, start_response)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 600, in call
12:09:31 web.1 | return self.app(environ, start_response)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/local.py”, line 228, in application
12:09:31 web.1 | return ClosingIterator(app(environ, start_response), self.cleanup)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wrappers.py”, line 301, in application
12:09:31 web.1 | return f(*args[:-2] + (request,))(*args[-2:])
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/app.py”, line 53, in application
12:09:31 web.1 | init_request(request)
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/app.py”, line 104, in init_request
12:09:31 web.1 | frappe.init(site=site, sites_path=_sites_path)
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/init.py”, line 135, in init
12:09:31 web.1 | local.conf = _dict(get_site_config())
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/init.py”, line 192, in get_site_config
12:09:31 web.1 | sys.exit(1)
12:09:31 web.1 | SystemExit: 1
12:09:31 web.1 | ----------------------------------------
12:09:31 web.1 | library does not exist
12:09:31 web.1 | ----------------------------------------
12:09:31 web.1 | Exception happened during processing of request from (‘127.0.0.1’, 43564)
12:09:31 web.1 | Traceback (most recent call last):
12:09:31 web.1 | File “/usr/lib/python2.7/SocketServer.py”, line 596, in process_request_thread
12:09:31 web.1 | self.finish_request(request, client_address)
12:09:31 web.1 | File “/usr/lib/python2.7/SocketServer.py”, line 331, in finish_request
12:09:31 web.1 | self.RequestHandlerClass(request, client_address, self)
12:09:31 web.1 | File “/usr/lib/python2.7/SocketServer.py”, line 652, in init
12:09:31 web.1 | self.handle()
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py”, line 232, in handle
12:09:31 web.1 | rv = BaseHTTPRequestHandler.handle(self)
12:09:31 web.1 | File “/usr/lib/python2.7/BaseHTTPServer.py”, line 340, in handle
12:09:31 web.1 | self.handle_one_request()
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py”, line 267, in handle_one_request
12:09:31 web.1 | return self.run_wsgi()
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py”, line 209, in run_wsgi
12:09:31 web.1 | execute(self.server.app)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py”, line 199, in execute
12:09:31 web.1 | for data in application_iter:
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/debug/init.py”, line 284, in debug_application
12:09:31 web.1 | app_iter = self.app(environ, start_response)
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/middlewares.py”, line 15, in call
12:09:31 web.1 | return super(StaticDataMiddleware, self).call(environ, start_response)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 600, in call
12:09:31 web.1 | return self.app(environ, start_response)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 600, in call
12:09:31 web.1 | return self.app(environ, start_response)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/local.py”, line 228, in application
12:09:31 web.1 | return ClosingIterator(app(environ, start_response), self.cleanup)
12:09:31 web.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/wrappers.py”, line 301, in application
12:09:31 web.1 | return f(*args[:-2] + (request,))(*args[-2:])
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/app.py”, line 53, in application
12:09:31 web.1 | init_request(request)
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/app.py”, line 104, in init_request
12:09:31 web.1 | frappe.init(site=site, sites_path=_sites_path)
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/init.py”, line 135, in init
12:09:31 web.1 | local.conf = _dict(get_site_config())
12:09:31 web.1 | File “/home/india/frappe-bench/apps/frappe/frappe/init.py”, line 192, in get_site_config
12:09:31 web.1 | sys.exit(1)
12:09:31 web.1 | SystemExit: 1
12:09:31 web.1 | ----------------------------------------
Traceback (most recent call last):
12:13:16 schedule.1 | File “/home/india/frappe-bench/apps/frappe/frappe/utils/scheduler.py”, line 48, in enqueue_events_for_all_sites
12:13:16 schedule.1 | enqueue_events_for_site(site=site, queued_jobs=jobs_per_site[site])
12:13:16 schedule.1 | File “/home/india/frappe-bench/apps/frappe/frappe/utils/scheduler.py”, line 63, in enqueue_events_for_site
12:13:16 schedule.1 | if is_scheduler_disabled():
12:13:16 schedule.1 | File “/home/india/frappe-bench/apps/frappe/frappe/utils/scheduler.py”, line 207, in is_scheduler_disabled
12:13:16 schedule.1 | return not frappe.utils.cint(frappe.db.get_single_value(“System Settings”, “enable_scheduler”))
12:13:16 schedule.1 | File “/home/india/frappe-bench/apps/frappe/frappe/database.py”, line 558, in get_single_value
12:13:16 schedule.1 | tabSingles where doctype=%s and field=%s"“”, (doctype, fieldname))
12:13:16 schedule.1 | File “/home/india/frappe-bench/apps/frappe/frappe/database.py”, line 111, in sql
12:13:16 schedule.1 | self.connect()
12:13:16 schedule.1 | File “/home/india/frappe-bench/apps/frappe/frappe/database.py”, line 57, in connect
12:13:16 schedule.1 | use_unicode=True, charset=‘utf8mb4’)
12:13:16 schedule.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/init.py”, line 86, in Connect
12:13:16 schedule.1 | return Connection(*args, **kwargs)
12:13:16 schedule.1 | File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 204, in init
12:13:16 schedule.1 | super(Connection, self).init(*args, **kwargs2)
12:13:16 schedule.1 | OperationalError: (1045, “Access denied for user ‘ac250e4a00ff3144’@‘localhost’ (using password: YES)”)

Hello @vikram_chauhan,

Go in frappe-bench/sites/ directory. there one file apps.txt. open the file and remove library line.
then go back to the frappe-bench directory and follow below steps.
bench clear-cache
bench start
I hope this will be helpful to you.

Seems memory issue! Whats the configuration? RAM, Swap Area?

thanks @yogendrasinh … sorry It didn’t worked. there was no library line in apps.txt ,but from currentsite.txt i removed ‘library’. but while clearing cache through … bench clear-cache… error occured:

india@india-To-be-filled-by-O-E-M:~/frappe-bench$ bench clear-cache
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/india/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 91, in
main()
File “/home/india/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 17, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/india/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/india/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 34, in clear_cache
frappe.connect(site)
File “/home/india/frappe-bench/apps/frappe/frappe/init.py”, line 170, in connect
local.db = Database(user=db_name or local.conf.db_name)
File “/home/india/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/local.py”, line 72, in getattr
raise AttributeError(name)
AttributeError: conf

and when …i did bench start… error changes from “libraray does not exist” to "0.0.0.0 does not exist
" as i am runing site on 0.0.0.0:8090

@saurabh6790 RAM 3.8 GiB

Okay! :slight_smile:

Please share screenshot for frappe-bench/sites

@saurabh6790

Is testing1 is your site name?

yes testing1 is site name.

Try with this,

bench setup procfile
bench use testing1
bench build
bench start

@saurabh6790 .it worked . thanks.
But on localhost error coming is :: OperationalError: (1045, “Access denied for user ‘ac250e4a00ff3144’@‘localhost’ (using password: YES)”)

i tried:: mysql -u root -p , it is opening correctly.

Seems something went wrong while site creation.

1. delete site
bench drop-site testing1

2. create new site and install erpnext-app

bench new-site new-site-name
bench install-app erpnext

3. Add site to currentsite.txt

bench use new-site-name
bench build

4.
bench start

@saurabh6790 bench drop-site testing1

using above command… but error occured “mysql_exceptions.OperationalError: (1045, “Access denied for user ‘ac250e4a00ff3144’@‘localhost’ (using password: YES)”)”.

Hmm, okay!

Continue from step2 and remove testing1 folder rm -rf testing1

@saurabh6790… extremely sorry again for the trouble. I did

india@india-To-be-filled-by-O-E-M:~/frappe-bench/sites$ sudo rm -rf testing1

india@india-To-be-filled-by-O-E-M:~/frappe-bench$ bench new-site viki
MySQL root password:

Creation of your site - viki failed because MariaDB is not properly
configured to use the Barracuda storage engine.
Please add the settings below to MariaDB’s my.cnf, restart MariaDB then
run bench new-site viki again.

[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4

================================================================================
india@india-To-be-filled-by-O-E-M:~/frappe-bench$ sudo nano /etc/my.cnf

india@india-To-be-filled-by-O-E-M:~/frappe-bench$ sudo systemctl start mysql.service

india@india-To-be-filled-by-O-E-M:~/frappe-bench$ bench new-site viki
MySQL root password:

Creation of your site - viki failed because MariaDB is not properly
configured to use the Barracuda storage engine.
Please add the settings below to MariaDB’s my.cnf, restart MariaDB then
run bench new-site viki again.

[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4

================================================================================

Add above snippet in my.cnf file. Restart mysql and then proceed with new site creation.

my.cnf may be at the location

/etc/my.cnf or /etc/mysql/my.cnf
2 Likes