Getting error on bench restart

Hello there,

I have installed frapee for development on new centos 6 server. installation has been done perfectly but next when i tried to restart the bench i got an error "
~]# bench restart
frappe: ERROR (no such group)
frappe: ERROR (no such group)

When i look at the browser it’s shows me default Nginx page.

Also i found some artiacles on the this community and i followed them but unfortunately i’m not lucky.

Let me know where i’m wrong.

Thanks

Best Regards
ArunK

I think you’ve not setup production.

run, bench setup production

2 Likes

Thanks Vyas,

Setup production works fine. but i’d like to install only frappe as development node.

Then don’t setup for production and use bench start

on bench start… i got this…

03:42:37 system | redis_cache.1 started (pid=9387)
03:42:37 system | workerbeat.1 started (pid=9384)
03:42:37 redis_cache.1 | [9387] 15 Jul 03:42:37 * Server started, Redis version 2.4.10
03:42:37 redis_cache.1 | [9387] 15 Jul 03:42:37 # 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.
03:42:37 redis_cache.1 | [9387] 15 Jul 03:42:37 * The server is now ready to accept connections on port 11311
03:42:37 redis_cache.1 | [9387] 15 Jul 03:42:37 - 0 clients connected (0 slaves), 717432 bytes in use
03:42:37 system | worker.1 started (pid=9388)
03:42:37 system | web.1 started (pid=9385)
03:42:38 workerbeat.1 | celery beat v3.1.18 (Cipater) is starting.
03:42:38 worker.1 |
03:42:38 worker.1 | -------------- celery@vps.server.com v3.1.18 (Cipater)
03:42:38 worker.1 | ---- **** -----
03:42:38 worker.1 | — * *** * – Linux-2.6.32-042stab084.26-x86_64-with-centos-6.5-Final
03:42:38 worker.1 | – * - **** —
03:42:38 worker.1 | - ** ---------- [config]
03:42:38 worker.1 | - ** ---------- .> app: frappe:0x7fc84ad1de50
03:42:38 worker.1 | - ** ---------- .> transport: redis://localhost:6379//
03:42:38 worker.1 | - ** ---------- .> results: disabled
03:42:38 worker.1 | - *** — * — .> concurrency: 2 (prefork)
03:42:38 worker.1 | – ******* ----
03:42:38 worker.1 | — ***** ----- [queues]
03:42:38 worker.1 | -------------- .> celery exchange=celery(direct) key=celery
03:42:38 worker.1 |
03:42:38 worker.1 |
03:42:38 workerbeat.1 | __ - … __ - _
03:42:38 workerbeat.1 | Configuration →
03:42:38 workerbeat.1 | . broker → redis://localhost:6379//
03:42:38 workerbeat.1 | . loader → celery.loaders.app.AppLoader
03:42:38 workerbeat.1 | . scheduler → celery.beat.PersistentScheduler
03:42:38 workerbeat.1 | . db → scheduler.schedule
03:42:38 workerbeat.1 | . logfile → [stderr]@%INFO
03:42:38 workerbeat.1 | . maxinterval → now (0s)
03:42:38 workerbeat.1 | [2015-07-15 03:42:38,456: INFO/MainProcess] beat: Starting…
03:42:38 workerbeat.1 | [2015-07-15 03:42:38,477: INFO/MainProcess] Scheduler: Sending due task scheduler (frappe.tasks.enqueue_scheduler_events)
03:42:38 web.1 | * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
03:42:38 web.1 | * Restarting with stat
03:42:39 worker.1 | [2015-07-15 03:42:39,468: WARNING/MainProcess] celery@vps.server.com ready.
03:42:40 redis_cache.1 | [9387] 15 Jul 03:42:40 - Accepted 127.0.0.1:47013
03:42:42 redis_cache.1 | [9387] 15 Jul 03:42:42 - DB 0: 2 keys (0 volatile) in 4 slots HT.
03:42:42 redis_cache.1 | [9387] 15 Jul 03:42:42 - 1 clients connected (0 slaves), 728024 bytes in use
03:42:47 redis_cache.1 | [9387] 15 Jul 03:42:47 - DB 0: 2 keys (0 volatile) in 4 slots HT.
03:42:47 redis_cache.1 | [9387] 15 Jul 03:42:47 - 1 clients connected (0 slaves), 728024 bytes in use
03:42:52 redis_cache.1 | [9387] 15 Jul 03:42:52 - DB 0: 2 keys (0 volatile) in 4 slots HT.
03:42:52 redis_cache.1 | [9387] 15 Jul 03:42:52 - 1 clients connected (0 slaves), 728024 bytes in use
03:42:57 redis_cache.1 | [9387] 15 Jul 03:42:57 - DB 0: 2 keys (0 volatile) in 4 slots HT.
03:42:57 redis_cache.1 | [9387] 15 Jul 03:42:57 - 1 clients connected (0 slaves), 728024 bytes in use
03:43:02 redis_cache.1 | [9387] 15 Jul 03:43:02 - DB 0: 2 keys (0 volatile) in 4 slots HT.
03:43:02 redis_cache.1 | [9387] 15 Jul 03:43:02 - 1 clients connected (0 slaves), 728024 bytes in use
03:43:07 redis_cache.1 | [9387] 15 Jul 03:43:07 - DB 0: 2 keys (0 volatile) in 4 slots HT.
03:43:07 redis_cache.1 | [9387] 15 Jul 03:43:07 - 1 clients connected (0 slaves), 728024 bytes in use
03:43:12 redis_cache.1 | [9387] 15 Jul 03:43:12 - DB 0: 2 keys (0 volatile) in 4 slots HT.
03:43:12 redis_cache.1 | [9387] 15 Jul 03:43:12 - 1 clients connected (0 slaves), 728024 bytes in use
03:43:17 redis_cache.1 | [9387] 15 Jul 03:43:17 - DB 0: 2 keys (0 volatile) in 4 slots HT.
03:43:17 redis_cache.1 | [9387] 15 Jul 03:43:17 - 1 clients connected (0 slaves), 728024 bytes in use
03:43:22 redis_cache.1 | [9387] 15 Jul 03:43:22 - DB 0: 2 keys (0 volatile) in 4 slots HT.
03:43:22 redis_cache.1 | [9387] 15 Jul 03:43:22 - 1 clients connected (0 slaves), 728024 bytes in use
03:43:27 redis_cache.1 | [9387] 15 Jul 03:43:27 - DB 0: 2 keys (0 volatile) in 4 slots HT.
03:43:27 redis_cache.1 | [9387] 15 Jul 03:43:27 - 1 clients connected (0 slaves), 728024 bytes in use

on the browser… i am getting default server test page
wht’s next??

It’s running on port 8000

thanks vyas

but now on the home page i m getting this…

Server Error

	Traceback (innermost last):

File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 60, in application
response = frappe.website.render.render(request.path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 54, in render
data = render_page(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 124, in render_page
return build(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 133, in build
return build_method(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 149, in build_page
context = get_context(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py”, line 29, in get_context
context = build_context(context)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py”, line 75, in build_context
ret = module.get_context(context)
File “/home/frappe/frappe-bench/apps/frappe/frappe/templates/pages/error.py”, line 11, in get_context
print frappe.get_traceback()
IOError: [Errno 32] Broken pipe

i tried to restart bench but it gives me error like this…
frappe: ERROR (no such group)
frappe: ERROR (no such group)

Let me know where i m wrong.
Thanks

  • bench restart is for production setup, don’t use it
  • Broken Pipe means the connection got lost while processing the request. It’s a network issue.

Run bench start and check http://localhost:8000 in the browser

thanks… i did it… but its not working…
on bench start i got this…
01:40:09 system | redis_cache.1 started (pid=23640)
01:40:09 redis_cache.1 | [23640] 16 Jul 01:40:09 # Opening port 11311: bind: Address already in use
01:40:09 system | redis_cache.1 stopped (rc=1)
01:40:09 system | worker.1 started (pid=23641)
01:40:09 system | web.1 started (pid=23642)
01:40:09 system | workerbeat.1 started (pid=23644)
01:40:09 system | sending SIGTERM to worker.1 (pid 23641)
01:40:09 system | sending SIGTERM to web.1 (pid 23642)
01:40:09 system | sending SIGTERM to workerbeat.1 (pid 23644)
01:40:09 system | worker.1 stopped (rc=-15)
01:40:09 system | web.1 stopped (rc=-15)
01:40:09 system | workerbeat.1 stopped (rc=-15)

it works… :smile:
i restarted server.
thanks vyas