bench start

176 views
Skip to first unread message

Seraaj Muneer

unread,
Aug 19, 2014, 2:52:58 PM8/19/14
to erpnext-dev...@googlegroups.com
Hello everyone, running bench start gives me this error

18:45:57 web.1        | started with pid 3019
18:45:57 worker.1     | started with pid 3020
18:45:57 workerbeat.1 | started with pid 3022
18:45:59 workerbeat.1 | ERROR: Pidfile (celerybeat.pid) already exists.
18:45:59 workerbeat.1 | Seems we're already running? (pid: 2279)
18:45:59 workerbeat.1 | celery beat v3.1.13 (Cipater) is starting.
18:45:59 web.1        |  * Running on http://0.0.0.0:8000/
18:45:59 web.1        | Traceback (most recent call last):
18:45:59 web.1        |   File "./env/bin/frappe", line 9, in <module>
18:45:59 web.1        |     load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
18:45:59 web.1        |   File "/home/nexia/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
18:45:59 web.1        |     return run(fn, parsed_args)
18:45:59 workerbeat.1 | process terminated
18:45:59 system       | sending SIGTERM to all processes
18:45:59 system       | sending SIGTERM to pid 3019
18:45:59 system       | sending SIGTERM to pid 3020
18:45:59 web.1        |   File "/home/nexia/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run
18:45:59 web.1        | process terminated
18:45:59 worker.1     | process terminated
18:45:59 web.1        |     out = globals().get(fn)(**args)
18:45:59 web.1        |   File "/home/nexia/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
18:45:59 web.1        |     return fn(*args, **new_kwargs)
18:45:59 web.1        |   File "/home/nexia/frappe-bench/apps/frappe/frappe/cli.py", line 811, in serve
18:45:59 web.1        |     frappe.app.serve(port=port, profile=profile, site=frappe.local.site, sites_path=sites_path)
18:45:59 web.1        |   File "/home/nexia/frappe-bench/apps/frappe/frappe/app.py", line 144, in serve
18:45:59 web.1        |     use_debugger=True, use_evalex=True, threaded=True)
18:45:59 web.1        |   File "/home/nexia/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 706, in run_simple
18:45:59 web.1        |     test_socket.bind((hostname, port))
18:45:59 web.1        |   File "/usr/lib/python2.7/socket.py", line 224, in meth
18:45:59 web.1        |     return getattr(self._sock,name)(*args)
18:45:59 web.1        | socket.error: [Errno 98] Address already in use

Not sure what the issue is. I've also followed the instructions here https://github.com/frappe/bench#setting-up-erpnext and done the production deployment. That one too going to localhost or localhost:8000 all give me no result.

Pratik Vyas

unread,
Aug 19, 2014, 4:30:00 PM8/19/14
to erpnext-dev...@googlegroups.com
Somebody (including old `bench start`) is running on your system.

What is the output of
```
ps aux | grep gunicorn
ps aux | grep serve
```

Kill the existing server and `bench start` will work for you again.
> --
> Note:
>
> If you are posting an issue,
>
> 1. ERPNext is a free and open source software and support is given on this
> forum by a team (https://frappe.io/webnotes). So please consider donating if
> you find this forum useful (https://frappe.io/buy). Even a small amount
> would be helpful.
> 2. We should be able to replicate it at our end. So please give us as much
> information as you can. Please see it from the point of view of the person
> receiving the communication.
> 3. Paste your code at http://pastebin.com or http://gist.github.com and send
> only the URL via email
> 4. For sending images, use http://imgur.com or other similar services. Do
> not send images as attachments. Links are good. Same goes for any file you
> are going to send.
>
> End of Note
> ---
> You received this message because you are subscribed to the Google Groups
> "ERPNext Developer Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to erpnext-developer...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/30569327-51ee-4b47-ad3b-76ef392da46a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Pratik
erpnext

Saeed

unread,
Aug 20, 2014, 6:34:50 PM8/20/14
to erpnext-dev...@googlegroups.com
ps aux | grep gunicorn
nexia     3456  0.6  0.8  13384  8824 ?        S    21:36   0:00 /home/nexia/frappe-bench/env/bin/python /home/nexia/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 -t 120 frappe.app:application
nexia     3461  0.4  1.1  19972 11512 ?        S    21:36   0:00 /home/nexia/frappe-bench/env/bin/python /home/nexia/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 -t 120 frappe.app:application
nexia     3462  0.4  1.1  19980 11520 ?        S    21:36   0:00 /home/nexia/frappe-bench/env/bin/python /home/nexia/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 -t 120 frappe.app:application
nexia     3495  0.0  0.0   5904   828 pts/0    S+   21:37   0:00 grep --color=auto gunicorn

ps aux | grep serve
redis     2133  0.1  0.6  27868  6528 ?        Ssl  21:14   0:02 /usr/bin/redis-server 127.0.0.1:6379       
nexia     3497  0.0  0.0   5908   832 pts/0    S+   21:38   0:00 grep --color=auto serve



Luqman
+233-244-493985




You received this message because you are subscribed to a topic in the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/erpnext-developer-forum/MVYEvVPX-OE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAG8U0Env3aYrSnnts228uE0pnMViqDhvfDBAwmLQ%2BVUWKX8c%3Dg%40mail.gmail.com.

Pratik Vyas

unread,
Aug 21, 2014, 4:05:42 AM8/21/14
to erpnext-dev...@googlegroups.com
On Thu, Aug 21, 2014 at 4:04 AM, Saeed <sina...@gmail.com> wrote:
> ps aux | grep gunicorn
> nexia 3456 0.6 0.8 13384 8824 ? S 21:36 0:00
> /home/nexia/frappe-bench/env/bin/python
> /home/nexia/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 -t 120
> frappe.app:application
> nexia 3461 0.4 1.1 19972 11512 ? S 21:36 0:00
> /home/nexia/frappe-bench/env/bin/python
> /home/nexia/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 -t 120
> frappe.app:application
> nexia 3462 0.4 1.1 19980 11520 ? S 21:36 0:00
> /home/nexia/frappe-bench/env/bin/python
> /home/nexia/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 -t 120
> frappe.app:application
> nexia 3495 0.0 0.0 5904 828 pts/0 S+ 21:37 0:00 grep
> --color=auto gunicorn
>
> ps aux | grep serve
> redis 2133 0.1 0.6 27868 6528 ? Ssl 21:14 0:02
> /usr/bin/redis-server 127.0.0.1:6379
> nexia 3497 0.0 0.0 5908 832 pts/0 S+ 21:38 0:00 grep
> --color=auto serve
>
>
>
> Luqman
> +233-244-493985
>
>

Hi Seraaj,

It seems that you've setup production environment (with supervisor).
In production setup, you don't need to use bench start, supervisor
takes care of running all the processes. After you setup nginx, the
site should be available at port 80.

Thanks,
--
Pratik

Saeed

unread,
Aug 21, 2014, 6:50:24 AM8/21/14
to erpnext-dev...@googlegroups.com

Yes your right I've production deployed it. But localhost doesn't work. I get "unable to connect" message

--
Note:

If you are posting an issue,

1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

End of Note
---
You received this message because you are subscribed to a topic in the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/erpnext-developer-forum/MVYEvVPX-OE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to erpnext-developer...@googlegroups.com.

Venkata Hari Prasadu Akkinapalli

unread,
Sep 24, 2014, 4:07:48 AM9/24/14
to erpnext-dev...@googlegroups.com
Hello Pratik,

I am facing the same issue.

When ever I have installed ERPNEXT on my local machine. Whenever I restart, I am facing this issue.

Please help.

Regards,
Venkat
To unsubscribe from this group and all its topics, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages