ERPNext 7- Admin-My Account Error

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.

Port 13000 might be a reserved port.

Hi @iadr3805
But i am using port 8002 on my localhost

i.e i use the command

bench serve --port 8002

From your error it’s saying localhost:13000 connection refused.

Are you accessing the site from within the server or via browser on a different PC?

@iadr3805
Within the server…Same PC…

seems like redis port problem, try to change port for redis, maybe it will solve your problem

@ganas

Yes. Reddis server not running…
Message is shown whenever i load the site…

But i used
sudo service reddis start

it shows no error…

whats your radis version
redis-server --version
you can check status
Sudo supervisorctl status
also you can try
sudo supervisorctl restart all

@ganas
redis-server --version
Redis server v=3.0.6 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=687a2a319020fa42

supervisorctl status
unix:///var/run/supervisor.sock no such file

take a look in the error logs in the frappe-bench/logs dir
also are you running production or development?

@ganas

I am running development mode

logd dir file shows:

/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

Thank you @ganas

Following is the reult of the above command.

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