Redis cache server not running - debug help needed

Well, thank you VERY MUCH for all the help so far! That node issue would’ve bitten me harder than a cache problem in the near future, I’m sure.

One thing I am noticing is the worker.error.log is getting flooded with the following :

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, 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/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
    main()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/scheduler.py", line 166, in start_worker
    start_worker(queue)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 102, in start_worker
    Worker(queues, name=get_worker_name(queue)).work()
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/rq/worker.py", line 423, in work
    self.register_birth()
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/rq/worker.py", line 242, in register_birth
    if self.connection.exists(self.key) and \
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py", line 855, in exists
    return self.execute_command('EXISTS', name)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py", line 578, in execute_command
    connection.send_command(*args)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/redis/connection.py", line 563, in send_command
    self.send_packed_command(self.pack_command(*args))
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/redis/connection.py", line 538, in send_packed_command
    self.connect()
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/redis/connection.py", line 442, in connect
    raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:11000. Connection refused.

/var/log/redis/redis-server.log shows no errors…

Of course! Glad to help.

What does config/redis_queue.conf look like? Mine is:

dbfilename redis_queue.rdb
dir /home/frappe/frappe-bench/config/pids
pidfile /home/frappe/frappe-bench/config/pids/redis_queue.pid
bind 127.0.0.1
port 11000

Same as yours :

> cat redis_queue.conf
dbfilename redis_queue.rdb
dir /home/frappe/frappe-bench/config/pids
pidfile /home/frappe/frappe-bench/config/pids/redis_queue.pid
bind 127.0.0.1
port 11000

Can you get into the redis client via:

frappe@erp-production:~/frappe-bench$ redis-cli -p 11000
127.0.0.1:11000> ping
PONG
127.0.0.1:11000> 

Yep, that works fine

Hm. I’m at a loss. :frowning: maybe @rmehta can help?

Well, magically, today I logged in and the errors are all gone. Hate when that happens… I’ll come back if it starts up again.

Thanks for the help getting me cleaned up!