I can not up the application

when i try to start bench (ERPNext application development mode), it automatic it shutdown
Here i give output of when i run bench start command.

Output:

di-5@di5:~$ bench start
12:16:08 system | redis_socketio.1 started (pid=4371)
12:16:08 system | socketio.1 started (pid=4389)
12:16:08 system | worker.1 started (pid=4375)
12:16:08 redis_socketio.1 | [4381] 18 Apr 12:16:08.975 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
12:16:08 redis_socketio.1 | .
12:16:08 redis_socketio.1 | .-__ ''-._ 12:16:08 redis_socketio.1 | _.- . . ‘’-._ Redis 2.8.4 (00000000/0) 64 bit
12:16:08 redis_socketio.1 | .- .-```. ```\/ _.,_ ''-._ 12:16:08 redis_socketio.1 | ( ' , .-` | `, ) Running in stand alone mode 12:16:08 redis_socketio.1 | |`-._`-...-` __...-.-.|'_.-'| Port: 12000 12:16:08 redis_socketio.1 | | -. ._ / _.-' | PID: 4381 12:16:08 redis_socketio.1 | -._ -._ -./ .-’ .-’
12:16:08 redis_socketio.1 | |-._-.
-.__.-' _.-'_.-'| 12:16:08 redis_socketio.1 | | -.
-._ _.-'_.-' | http://redis.io 12:16:08 redis_socketio.1 | -._ -._-..-'.-’ .-’
12:16:08 redis_socketio.1 | |-._-.
-.__.-' _.-'_.-'| 12:16:08 redis_socketio.1 | | -.
-._ _.-'_.-' | 12:16:08 redis_socketio.1 | -._ -._-.
.-‘.-’ .-’
12:16:08 redis_socketio.1 | -._ -..-’ _.-’
12:16:08 redis_socketio.1 | -._ _.-' 12:16:08 redis_socketio.1 | -.
.-’
12:16:08 redis_socketio.1 |
12:16:08 redis_socketio.1 | [4381] 18 Apr 12:16:08.976 # Server started, Redis version 2.8.4
12:16:08 redis_socketio.1 | [4381] 18 Apr 12:16:08.976 * The server is now ready to accept connections on port 12000
12:16:08 system | web.1 started (pid=4379)
12:16:08 system | longjob_worker.1 started (pid=4390)
12:16:08 system | workerbeat.1 started (pid=4373)
12:16:08 system | async_worker.1 started (pid=4386)
12:16:09 system | redis_cache.1 started (pid=4401)
12:16:09 redis_cache.1 | [4402] 18 Apr 12:16:08.988 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
12:16:09 redis_cache.1 | .
12:16:09 redis_cache.1 | .-__ ''-._ 12:16:09 redis_cache.1 | _.- . . ‘’-.
Redis 2.8.4 (00000000/0) 64 bit
12:16:09 redis_cache.1 | .- .-```. ```\/ _.,_ ''-._ 12:16:09 redis_cache.1 | ( ' , .-` | `, ) Running in stand alone mode 12:16:09 redis_cache.1 | |`-._`-...-` __...-.-.
|’_.-'| Port: 13000 12:16:09 redis_cache.1 | | -._ ._ / _.-' | PID: 4402 12:16:09 redis_cache.1 | -._ -._ -./ .-’ .-’
12:16:09 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 12:16:09 redis_cache.1 | | -.
-._ _.-'_.-' | http://redis.io 12:16:09 redis_cache.1 | -._ -._-..-'.-’ .-’
12:16:09 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 12:16:09 redis_cache.1 | | -.
-._ _.-'_.-' | 12:16:09 redis_cache.1 | -._ -._-.
.-‘.-’ .-’
12:16:09 redis_cache.1 | -._ -..-’ _.-’
12:16:09 redis_cache.1 | -._ _.-' 12:16:09 redis_cache.1 | -.
.-’
12:16:09 redis_cache.1 |
12:16:09 redis_cache.1 | [4402] 18 Apr 12:16:08.989 # Server started, Redis version 2.8.4
12:16:09 redis_cache.1 | [4402] 18 Apr 12:16:08.989 * The server is now ready to accept connections on port 13000
12:16:09 system | redis_queue.1 started (pid=4398)
12:16:09 redis_queue.1 | [4407] 18 Apr 12:16:08.997 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
12:16:09 redis_queue.1 | .
12:16:09 redis_queue.1 | .-__ ''-._ 12:16:09 redis_queue.1 | _.- . . ‘’-.
Redis 2.8.4 (00000000/0) 64 bit
12:16:09 redis_queue.1 | .- .-```. ```\/ _.,_ ''-._ 12:16:09 redis_queue.1 | ( ' , .-` | `, ) Running in stand alone mode 12:16:09 redis_queue.1 | |`-._`-...-` __...-.-.
|’_.-'| Port: 11000 12:16:09 redis_queue.1 | | -._ ._ / _.-' | PID: 4407 12:16:09 redis_queue.1 | -._ -._ -./ .-’ .-’
12:16:09 redis_queue.1 | |-._-.
-.__.-' _.-'_.-'| 12:16:09 redis_queue.1 | | -.
-._ _.-'_.-' | http://redis.io 12:16:09 redis_queue.1 | -._ -._-..-'.-’ .-’
12:16:09 redis_queue.1 | |-._-.
-.__.-' _.-'_.-'| 12:16:09 redis_queue.1 | | -.
-._ _.-'_.-' | 12:16:09 redis_queue.1 | -._ -._-.
.-‘_.-’ _.-’
12:16:09 redis_queue.1 | -._ -..-’ _.-’
12:16:09 redis_queue.1 | -._ _.-' 12:16:09 redis_queue.1 | -.
.-’
12:16:09 redis_queue.1 |
12:16:09 redis_queue.1 | [4407] 18 Apr 12:16:08.997 # Server started, Redis version 2.8.4
12:16:09 redis_queue.1 | [4407] 18 Apr 12:16:08.997 * The server is now ready to accept connections on port 11000
12:16:09 system | watch.1 started (pid=4387)
12:16:09 workerbeat.1 | /home/di-5/frappe-bench/sites/…/env/bin/python: No module named frappe.celery_app
12:16:09 system | workerbeat.1 stopped (rc=1)
12:16:09 system | sending SIGTERM to redis_socketio.1 (pid 4371)
12:16:09 system | sending SIGTERM to worker.1 (pid 4375)
12:16:09 system | sending SIGTERM to redis_queue.1 (pid 4398)
12:16:09 system | sending SIGTERM to web.1 (pid 4379)
12:16:09 system | sending SIGTERM to async_worker.1 (pid 4386)
12:16:09 system | sending SIGTERM to socketio.1 (pid 4389)
12:16:09 system | sending SIGTERM to redis_cache.1 (pid 4401)
12:16:09 system | sending SIGTERM to watch.1 (pid 4387)
12:16:09 system | sending SIGTERM to longjob_worker.1 (pid 4390)
12:16:09 redis_queue.1 | [4407 | signal handler] (1460961969) Received SIGTERM, scheduling shutdown…
12:16:09 system | async_worker.1 stopped (rc=-15)
12:16:09 redis_socketio.1 | [4381 | signal handler] (1460961969) Received SIGTERM, scheduling shutdown…
12:16:09 system | socketio.1 stopped (rc=-15)
12:16:09 system | web.1 stopped (rc=-15)
12:16:09 system | longjob_worker.1 stopped (rc=-15)
12:16:09 redis_cache.1 | [4402 | signal handler] (1460961969) Received SIGTERM, scheduling shutdown…
12:16:09 system | worker.1 stopped (rc=-15)
12:16:09 system | watch.1 stopped (rc=-15)
12:16:09 redis_socketio.1 | [4381] 18 Apr 12:16:09.778 # User requested shutdown…
12:16:09 redis_socketio.1 | [4381] 18 Apr 12:16:09.778 # Redis is now ready to exit, bye bye…
12:16:09 system | redis_socketio.1 stopped (rc=-15)
12:16:09 redis_cache.1 | [4402] 18 Apr 12:16:09.791 # User requested shutdown…
12:16:09 redis_cache.1 | [4402] 18 Apr 12:16:09.791 # Redis is now ready to exit, bye bye…
12:16:09 system | redis_cache.1 stopped (rc=-15)
12:16:09 redis_queue.1 | [4407] 18 Apr 12:16:09.815 # User requested shutdown…
12:16:09 redis_queue.1 | [4407] 18 Apr 12:16:09.815 # Redis is now ready to exit, bye bye…
12:16:09 system | redis_queue.1 stopped (rc=-15)

Are both ERPNext and Frappe branches in develop?

We recently moved from Celery to RQ, and it seems that the system is trying to find the celery_app.py file.

Frappe from the
git clone GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps bench-repo
and
ERPNext from
bench get-app erpnext GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)

I can start application using bench serve
But getting error when try to start it using bench start

Added developer_mode = 1 under site configuration site_config.json file.

Can you run bench update from the frappe-bench directory and then try to run bench start again?

I tried it several times. Still there is same error for redis_cache.

even there is error during bench update. you can see bench update log as bellow.

  • branch develop → FETCH_HEAD
    Already up-to-date.
    /home/brillare/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
    SNIMissingWarning
    /home/brillare/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
    InsecurePlatformWarning
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    Migrating site1.local
    Updating frappe : [========================================]
    Updating erpnext : [========================================]
    Wrote ./assets/js/print_format_v3.min.js - 18k
    Wrote ./assets/js/frappe-web.min.js - 107k
    Wrote ./assets/js/form.min.js - 120k
    Wrote ./assets/js/report.min.js - 157k
    Wrote ./assets/js/erpnext.min.js - 38k
    Wrote ./assets/css/list.min.css - 6k
    Wrote ./assets/js/erpnext-web.min.js - 1k
    Wrote ./assets/css/report.min.css - 7k
    Wrote ./assets/css/frappe-web.css - 53k
    Wrote ./assets/js/list.min.js - 67k
    Wrote ./assets/js/dialog.min.js - 59k
    Wrote ./assets/js/desk.min.js - 1084k
    Wrote ./assets/css/form.min.css - 2k
    Wrote ./assets/js/editor.min.js - 26k
    Wrote ./assets/css/erpnext.css - 2k
    Wrote ./assets/css/desk.min.css - 258k
    Wrote ./assets/css/module.min.css - 2k
    error: <class ‘xmlrpclib.Fault’>, <Fault 10: ‘BAD_NAME: frappe-bench-processes’>: file: /usr/lib/python2.7/xmlrpclib.py line: 794
    error: <class ‘xmlrpclib.Fault’>, <Fault 10: ‘BAD_NAME: frappe’>: file: /usr/lib/python2.7/xmlrpclib.py line: 794
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==2.1.0’, ‘console_scripts’, ‘bench’)()
    File “/home/brillare/bench-repo/bench/cli.py”, line 40, in cli
    bench_command()
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
    return callback(*args, **kwargs)
    File “/home/brillare/bench-repo/bench/commands/update.py”, line 60, in update
    _update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
    File “/home/brillare/bench-repo/bench/commands/update.py”, line 96, in _update
    restart_supervisor_processes(bench=bench_path)
    File “/home/brillare/bench-repo/bench/utils.py”, line 277, in restart_supervisor_processes
    exec_cmd(‘sudo supervisorctl restart frappe:’, cwd=bench)
    File “/home/brillare/bench-repo/bench/utils.py”, line 99, in exec_cmd
    raise CommandFailedError(cmd)
    bench.utils.CommandFailedError: sudo supervisorctl restart frappe:
    brillare@brillare-desktop:~/frappe-bench$

Yes I setup supervisor as well.

After your reply about celery_app I have added celery_app.py file in frappe folder.

Now I can able to run bench start. Server is up and running.

But I am also getting
“GET /socket.io/?EIO=3&transport=polling&t=1460975777809-663 HTTP/1.1” 404 -
message on console continuously.

For development setup, you’re not meant to setup supervisor and nginx.

Try this :

Delete the celery_app.py file you just put in
Go to the bench-repo directory, run git checkout develop and then inside frappe-bench run bench setup procfile

This problem is also being discussed here No module named frappe.celery_app - #8 by hereabdulla

Thank you Dominik and vjFaLk for your help.