HI,
I am using ERPNext 7. When I log in as Administrator and go to ‘My Account’ it shows, following error.
127.0.0.1 - - [30/Aug/2016 09:20:47] "GET /socket.io/?EIO=3&transport=polling&t=1472529047136-6
HTTP/1.1" 404 -
Traceback (most
recent call last):
File
"/home/amalendu/frappe-bench/apps/frappe/frappe/website/render.py",
line 32, in render
data =
render_page_by_language(path)
File
"/home/amalendu/frappe-bench/apps/frappe/frappe/website/render.py",
line 101, in render_page_by_language
return
render_page(path)
File
"/home/amalendu/frappe-bench/apps/frappe/frappe/website/render.py",
line 117, in render_page
return
build(path)
File
"/home/amalendu/frappe-bench/apps/frappe/frappe/website/render.py",
line 124, in build
return
build_page(path)
File
"/home/amalendu/frappe-bench/apps/frappe/frappe/website/render.py",
line 137, in build_page
context =
get_context(path)
File
"/home/amalendu/frappe-bench/apps/frappe/frappe/website/context.py",
line 19, in get_context
context =
build_context(context)
File
"/home/amalendu/frappe-bench/apps/frappe/frappe/website/context.py",
line 85, in build_context
add_sidebar_data(context)
File
"/home/amalendu/frappe-bench/apps/frappe/frappe/website/context.py",
line 98, in add_sidebar_data
sidebar_items =
json.loads(frappe.cache().get('sidebar_items') or '[]')
File
"/home/amalendu/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py",
line 880, in get
return
self.execute_command('GET', name)
File
"/home/amalendu/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py",
line 578, in execute_command
connection.send_command(*args)
File
"/home/amalendu/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/amalendu/frappe-bench/env/local/lib/python2.7/site-packages/redis/connection.py",
line 538, in send_packed_command
self.connect()
File
"/home/amalendu/frappe-bench/env/local/lib/python2.7/site-packages/redis/connection.py",
line 442, in connect
raise
ConnectionError(self._error_message(e))
ConnectionError:
Error 111 connecting to localhost:13000. Connection refused.
How can I resolve it? Could Anybody help me please.
/bin/sh: 1: /home/amalendu/frappe-bench/env/bin/bench: not found
/bin/sh: 1: /home/amalendu/frappe-bench/env/bin/bench: not found
/bin/sh: 1: /home/amalendu/frappe-bench/env/bin/bench: not found
not much familiar with this problem maybe someone else can help better, so for now lets try to approach it analytically, what do you get when cat /var/log/redis/redis-server.log
2847:signal-handler (1472376271) Received SIGTERM scheduling shutdown...
2847:M 28 Aug 14:54:31.372 # User requested shutdown...
2847:M 28 Aug 14:54:31.372 * Saving the final RDB snapshot before exiting.
2847:signal-handler (1472376271) Received SIGTERM scheduling shutdown...
2847:M 28 Aug 14:54:31.697 * DB saved on disk
2847:M 28 Aug 14:54:31.697 * Removing the pid file.
2847:M 28 Aug 14:54:31.697 # Redis is now ready to exit, bye bye...
2891:M 28 Aug 14:55:12.351 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
2891:M 28 Aug 14:55:12.355 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.
2891:M 28 Aug 14:55:12.355 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 3.0.6 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 2891
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
2891:M 28 Aug 14:55:12.357 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
2891:M 28 Aug 14:55:12.357 # Server started, Redis version 3.0.6
2891:M 28 Aug 14:55:12.357 # 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.
2891:M 28 Aug 14:55:12.357 # 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.
2891:M 28 Aug 14:55:12.489 * DB loaded from disk: 0.132 seconds
2891:M 28 Aug 14:55:12.489 * The server is now ready to accept connections on port 6379
2891:signal-handler (1472398845) Received SIGTERM scheduling shutdown...
2891:signal-handler (1472398845) Received SIGTERM scheduling shutdown...
2891:M 28 Aug 21:10:45.761 # User requested shutdown...
2891:M 28 Aug 21:10:45.761 * Saving the final RDB snapshot before exiting.
2891:M 28 Aug 21:10:45.810 * DB saved on disk
2891:M 28 Aug 21:10:45.810 * Removing the pid file.
2891:M 28 Aug 21:10:45.810 # Redis is now ready to exit, bye bye...
2847:M 29 Aug 09:22:00.945 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
2847:M 29 Aug 09:22:00.960 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.
2847:M 29 Aug 09:22:00.960 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 3.0.6 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 2847
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
2847:M 29 Aug 09:22:00.963 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
2847:M 29 Aug 09:22:00.963 # Server started, Redis version 3.0.6
2847:M 29 Aug 09:22:00.963 # 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.
2847:M 29 Aug 09:22:00.963 # 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.
2847:M 29 Aug 09:22:01.540 * DB loaded from disk: 0.577 seconds
2847:M 29 Aug 09:22:01.540 * The server is now ready to accept connections on port 6379
2847:signal-handler (1472528826) Received SIGTERM scheduling shutdown...
2847:signal-handler (1472528826) Received SIGTERM scheduling shutdown...
2847:M 30 Aug 09:17:06.992 # User requested shutdown...
2847:M 30 Aug 09:17:06.992 * Saving the final RDB snapshot before exiting.
2847:M 30 Aug 09:17:07.637 * DB saved on disk
2847:M 30 Aug 09:17:07.637 * Removing the pid file.
2847:M 30 Aug 09:17:07.637 # Redis is now ready to exit, bye bye...
2880:M 30 Aug 09:17:53.176 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
2880:M 30 Aug 09:17:53.190 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.
2880:M 30 Aug 09:17:53.190 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 3.0.6 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 2880
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
2880:M 30 Aug 09:17:53.199 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
2880:M 30 Aug 09:17:53.199 # Server started, Redis version 3.0.6
2880:M 30 Aug 09:17:53.199 # 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.
2880:M 30 Aug 09:17:53.199 # 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.
2880:M 30 Aug 09:17:53.207 * DB loaded from disk: 0.008 seconds
2880:M 30 Aug 09:17:53.207 * The server is now ready to accept connections on port 6379