I am installing erpnext on live hosting. On localhost it works. I have installed all the requirements. After that i am confused what to do next even i am trying it since a week. I am running site with Ip(don’t have domain for now).
I tried 2 cases.
- Bench start :- Bench not starting.
05:28:15 redis_queue.1 | 29715:M 09 Aug 05:28:15.779 * Removing the pid file.
05:28:15 redis_queue.1 | 29715:M 09 Aug 05:28:15.780 # Redis is now ready to exit, bye bye... 05:28:15 system | redis_queue.1 stopped (rc=-15) 05:28:15 redis_socketio.1 | 29711:M 09 Aug 05:28:15.781 # Redis is now ready to exit, bye bye... 05:28:15 system | redis_socketio.1 stopped (rc=-15) 05:28:15 redis_cache.1 | 29731:M 09 Aug 05:28:15.783 # Redis is now ready to exit, bye bye... 05:28:15 system | redis_cache.1 stopped (rc=-15) 05:28:15 web.1 | Exception in thread Thread-2 (most likely raised during interpreter shutdown): 05:28:15 web.1 | Traceback (most recent call last): 05:28:15 web.1 | File "/usr/local/lib/python2.7/threading.py", line 801, in __bootstrap_inner 05:28:15 web.1 | File "/home/ErpDsync/frappe-bench/env/lib/python2.7/site-packages/watchdog/observers/api.py", line 237, in run 05:28:15 web.1 | <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty' 05:28:15 system | worker_long.1 stopped (rc=-15) 05:28:15 system | worker_default.1 stopped (rc=-15) 05:28:15 system | worker_short.1 stopped (rc=-15) 05:28:16 system | web.1 stopped (rc=-15)
i notice that “http://0.0.0.0:8000/” will not work on live hosting so tried with setup producton also this also failed.
root@devchd:/home/Erp/frappe-bench# bench setup production dev supervisor.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y Port configuration list:
Site site2name assigned port: 82
Site site1.local assigned port: 80 nginx.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y Traceback (most recent call last): File "/usr/local/bin/bench", line 11, in <module> load_entry_point('bench', 'console_scripts', 'bench')() File "/home/Erp/bench-repo/bench/cli.py", line 40, in cli bench_command() File "/usr/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/home/Erp/bench-repo/bench/commands/setup.py", line 56, in setup_production setup_production(user=user) File "/home/Erp/bench-repo/bench/config/production_setup.py", line 17, in setup_production bench_name=bench_name, extn=supervisor_conf_extn)) File "/usr/local/lib/python2.7/posixpath.py", line 70, in join elif path == '' or path.endswith('/'): AttributeError: 'NoneType' object has no attribute 'endswith'
I am confused what is the error. Basically i want to build some API endpoints so i installing in on Live hosting. On localhost it works. I want to access site using this kind of URL “ip:port” or “ip/erpnext” For example “138.122.12.12:8000” or “138.122.12.12/erpnext” etc so i can API calls from another platform.
Any help will be appreciated.