Update - I could solve the issue maria db issue with changes in the config file and could proceed further. But after making all the changes and configuring the erp next, when i start the bench it exits with the following error.
bench-start
bench-start: command not found
~/test-frappe-bench$ bench start
17:19:39 system | redis_socketio.1 started (pid=5735)
17:19:39 redis_socketio.1 | _._
17:19:39 redis_socketio.1 | _.-``__ ''-._
17:19:39 redis_socketio.1 | _.-`` `. `_. ''-._ Redis 3.0.6 (00000000/0) 64 bit
17:19:39 redis_socketio.1 | .-`` .-```. ```\/ _.,_ ''-._
17:19:39 redis_socketio.1 | ( ' , .-` | `, ) Running in standalone mode
17:19:39 redis_socketio.1 | |`-._`-...-` __...-.``-._|'` _.-'| Port: 12000
17:19:39 redis_socketio.1 | | `-._ `._ / _.-' | PID: 5748
17:19:39 redis_socketio.1 | `-._ `-._ `-./ _.-' _.-'
17:19:39 redis_socketio.1 | |`-._`-._ `-.__.-' _.-'_.-'|
17:19:39 redis_socketio.1 | | `-._`-._ _.-'_.-' | http://redis.io
17:19:39 redis_socketio.1 | `-._ `-._`-.__.-'_.-' _.-'
17:19:39 redis_socketio.1 | |`-._`-._ `-.__.-' _.-'_.-'|
17:19:39 redis_socketio.1 | | `-._`-._ _.-'_.-' |
17:19:39 redis_socketio.1 | `-._ `-._`-.__.-'_.-' _.-'
17:19:39 redis_socketio.1 | `-._ `-.__.-' _.-'
17:19:39 redis_socketio.1 | `-._ _.-'
17:19:39 redis_socketio.1 | `-.__.-'
17:19:39 redis_socketio.1 |
17:19:39 redis_socketio.1 | 5748:M 28 Jul 17:19:39.965 # Server started, Redis version 3.0.6
17:19:39 redis_socketio.1 | 5748:M 28 Jul 17:19:39.965 # 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.
17:19:39 redis_socketio.1 | 5748:M 28 Jul 17:19:39.965 * The server is now ready to accept connections on port 12000
17:19:39 system | worker_long.1 started (pid=5741)
17:19:39 system | worker_short.1 started (pid=5756)
17:19:39 system | worker_default.1 started (pid=5745)
17:19:39 system | watch.1 started (pid=5743)
17:19:39 system | redis_queue.1 started (pid=5744)
17:19:39 redis_queue.1 | _._
17:19:39 redis_queue.1 | _.-``__ ''-._
17:19:39 redis_queue.1 | _.-`` `. `_. ''-._ Redis 3.0.6 (00000000/0) 64 bit
17:19:39 redis_queue.1 | .-`` .-```. ```\/ _.,_ ''-._
17:19:39 redis_queue.1 | ( ' , .-` | `, ) Running in standalone mode
17:19:39 redis_queue.1 | |`-._`-...-` __...-.``-._|'` _.-'| Port: 11000
17:19:39 redis_queue.1 | | `-._ `._ / _.-' | PID: 5757
17:19:39 redis_queue.1 | `-._ `-._ `-./ _.-' _.-'
17:19:39 redis_queue.1 | |`-._`-._ `-.__.-' _.-'_.-'|
17:19:39 redis_queue.1 | | `-._`-._ _.-'_.-' | http://redis.io
17:19:39 redis_queue.1 | `-._ `-._`-.__.-'_.-' _.-'
17:19:39 redis_queue.1 | |`-._`-._ `-.__.-' _.-'_.-'|
17:19:39 redis_queue.1 | | `-._`-._ _.-'_.-' |
17:19:39 redis_queue.1 | `-._ `-._`-.__.-'_.-' _.-'
17:19:39 redis_queue.1 | `-._ `-.__.-' _.-'
17:19:39 redis_queue.1 | `-._ _.-'
17:19:39 redis_queue.1 | `-.__.-'
17:19:39 redis_queue.1 |
17:19:39 redis_queue.1 | 5757:M 28 Jul 17:19:39.983 # Server started, Redis version 3.0.6
17:19:39 redis_queue.1 | 5757:M 28 Jul 17:19:39.983 # 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.
17:19:39 redis_queue.1 | 5757:M 28 Jul 17:19:39.983 * The server is now ready to accept connections on port 11000
17:19:40 system | redis_cache.1 started (pid=5747)
17:19:40 redis_cache.1 | _._
17:19:40 redis_cache.1 | _.-``__ ''-._
17:19:40 redis_cache.1 | _.-`` `. `_. ''-._ Redis 3.0.6 (00000000/0) 64 bit
17:19:40 redis_cache.1 | .-`` .-```. ```\/ _.,_ ''-._
17:19:40 redis_cache.1 | ( ' , .-` | `, ) Running in standalone mode
17:19:40 redis_cache.1 | |`-._`-...-` __...-.``-._|'` _.-'| Port: 13000
17:19:40 redis_cache.1 | | `-._ `._ / _.-' | PID: 5765
17:19:40 redis_cache.1 | `-._ `-._ `-./ _.-' _.-'
17:19:40 redis_cache.1 | |`-._`-._ `-.__.-' _.-'_.-'|
17:19:40 redis_cache.1 | | `-._`-._ _.-'_.-' | http://redis.io
17:19:40 redis_cache.1 | `-._ `-._`-.__.-'_.-' _.-'
17:19:40 redis_cache.1 | |`-._`-._ `-.__.-' _.-'_.-'|
17:19:40 redis_cache.1 | | `-._`-._ _.-'_.-' |
17:19:40 redis_cache.1 | `-._ `-._`-.__.-'_.-' _.-'
17:19:40 redis_cache.1 | `-._ `-.__.-' _.-'
17:19:40 redis_cache.1 | `-._ _.-'
17:19:40 redis_cache.1 | `-.__.-'
17:19:40 redis_cache.1 |
17:19:40 redis_cache.1 | 5765:M 28 Jul 17:19:39.999 # Server started, Redis version 3.0.6
17:19:40 redis_cache.1 | 5765:M 28 Jul 17:19:39.999 # 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.
17:19:40 redis_cache.1 | 5765:M 28 Jul 17:19:39.999 * The server is now ready to accept connections on port 13000
17:19:40 system | schedule.1 started (pid=5740)
17:19:40 system | socketio.1 started (pid=5746)
17:19:40 system | web.1 started (pid=5742)
17:19:40 socketio.1 | listening on *: 9000
17:19:41 worker_default.1 | Traceback (most recent call last):
17:19:41 worker_default.1 | File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
17:19:41 worker_default.1 | "__main__", fname, loader, pkg_name)
17:19:41 worker_default.1 | File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
17:19:41 worker_default.1 | exec code in run_globals
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 97, in <module>
17:19:41 worker_default.1 | main()
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
17:19:41 worker_default.1 | click.Group(commands=commands)(prog_name='bench')
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
17:19:41 worker_default.1 | return self.main(*args, **kwargs)
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 697, in main
17:19:41 worker_default.1 | rv = self.invoke(ctx)
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
17:19:41 worker_default.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
17:19:41 worker_default.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
17:19:41 worker_default.1 | return ctx.invoke(self.callback, **ctx.params)
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
17:19:41 worker_default.1 | return callback(*args, **kwargs)
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/apps/frappe/frappe/commands/scheduler.py", line 158, in start_worker
17:19:41 worker_default.1 | start_worker(queue, quiet = quiet)
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 145, in start_worker
17:19:41 worker_default.1 | Worker(queues, name=get_worker_name(queue)).work(logging_level = logging_level)
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/env/local/lib/python2.7/site-packages/rq/worker.py", line 466, in work
17:19:41 worker_default.1 | self.register_birth()
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/env/local/lib/python2.7/site-packages/rq/worker.py", line 273, in register_birth
17:19:41 worker_default.1 | if self.connection.exists(self.key) and \
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py", line 951, in exists
17:19:41 worker_default.1 | return self.execute_command('EXISTS', name)
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py", line 673, in execute_command
17:19:41 worker_default.1 | connection.send_command(*args)
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/env/local/lib/python2.7/site-packages/redis/connection.py", line 610, in send_command
17:19:41 worker_default.1 | self.send_packed_command(self.pack_command(*args))
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/env/local/lib/python2.7/site-packages/redis/connection.py", line 585, in send_packed_command
17:19:41 worker_default.1 | self.connect()
17:19:41 worker_default.1 | File "/home/oslabs/test-frappe-bench/env/local/lib/python2.7/site-packages/redis/connection.py", line 489, in connect
17:19:41 worker_default.1 | raise ConnectionError(self._error_message(e))
17:19:41 worker_default.1 | redis.exceptions.ConnectionError: Error 111 connecting to localhost:11000. Connection refused.
17:19:41 system | worker_default.1 stopped (rc=1)
17:19:41 system | sending SIGTERM to redis_socketio.1 (pid 5735)
17:19:41 system | sending SIGTERM to worker_long.1 (pid 5741)
17:19:41 system | sending SIGTERM to watch.1 (pid 5743)
17:19:41 system | sending SIGTERM to redis_queue.1 (pid 5744)
17:19:41 system | sending SIGTERM to web.1 (pid 5742)
17:19:41 system | sending SIGTERM to schedule.1 (pid 5740)
17:19:41 system | sending SIGTERM to socketio.1 (pid 5746)
17:19:41 system | sending SIGTERM to redis_cache.1 (pid 5747)
17:19:41 system | sending SIGTERM to worker_short.1 (pid 5756)
17:19:41 redis_queue.1 | 5757:signal-handler (1532778581) Received SIGTERM scheduling shutdown...
17:19:41 system | socketio.1 stopped (rc=-15)
17:19:41 redis_cache.1 | 5765:signal-handler (1532778581) Received SIGTERM scheduling shutdown...
17:19:41 redis_socketio.1 | 5748:signal-handler (1532778581) Received SIGTERM scheduling shutdown...
17:19:41 system | schedule.1 stopped (rc=-15)
17:19:41 system | worker_short.1 stopped (rc=-15)
17:19:41 system | watch.1 stopped (rc=-15)
17:19:41 system | web.1 stopped (rc=-15)
17:19:41 system | worker_long.1 stopped (rc=-15)
17:19:41 redis_socketio.1 | 5748:M 28 Jul 17:19:41.767 # User requested shutdown...
17:19:41 redis_socketio.1 | 5748:M 28 Jul 17:19:41.767 # Redis is now ready to exit, bye bye...
17:19:41 system | redis_socketio.1 stopped (rc=-15)
17:19:41 redis_queue.1 | 5757:M 28 Jul 17:19:41.798 # User requested shutdown...
17:19:41 redis_queue.1 | 5757:M 28 Jul 17:19:41.798 # Redis is now ready to exit, bye bye...
17:19:41 system | redis_queue.1 stopped (rc=-15)
17:19:41 redis_cache.1 | 5765:M 28 Jul 17:19:41.812 # User requested shutdown...
17:19:41 redis_cache.1 | 5765:M 28 Jul 17:19:41.812 # Redis is now ready to exit, bye bye...
17:19:41 system | redis_cache.1 stopped (rc=-15)
~/test-frappe-bench$
I changed the limits.conf and sysctl.conf to accommodate maximum open files. Though I could get rid of the warnings its landing a connection refused issue. I checked the port bindings to ensure that no duplicate process are running.
>> 17:19:41 worker_default.1 | redis.exceptions.ConnectionError: Error 111 connecting to localhost:11000. Connection refused.
Any help on this issue will be highly appreciated…
Thanks,
-Surya