I installed this on our server with multi tenancy to handle two different stores. I have both as store1 and 2 subdomains but The main website is currently beeing overwritten by this. Does anyone have an idea as to how to fix this. thank you
- question. Where does the actual website exist on the server. I cant seem to find them in var html. This is for the erpnext websites
You may have to delete currentsite.txt in the sites folder
Ok, now there is a new problem and the old one. I deleted the currentsite.txt file. I have not been able to use the two subdomain erpnext sites because the scheduler was not on. I also cant use the main domain still
Here is what I got in ssh. Is there a enable scheduler for all sites? Also can it be done automattically when a site spins up?
frappe@vps180902:~/frappe-bench$ bench enable-scheduler
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
“main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/scheduler.py”, line 39, in enable_scheduler
for site in context.sites:
TypeError: ‘NoneType’ object is not iterable
frappe@vps180902:~/frappe-bench$ ^C
frappe@vps180902:~/frappe-bench$ bench doctor
-----Checking scheduler status-----
Scheduler disabled for test
Scheduler disabled for testing
Workers online: 3
-----None Jobs-----
I did bench start to see what that would do. Here is it all
frappe@vps180902:~/frappe-bench$ bench start
02:58:16 system | redis_socketio.1 started (pid=31961)
02:58:16 redis_socketio.1 | 31968:M 25 Apr 02:58:16.453 * Increased maximum number of open files to 10032 (it was originally set to 1024).
02:58:16 system | watch.1 started (pid=31962)
02:58:16 redis_socketio.1 | 31968:M 25 Apr 02:58:16.485 # Creating Server TCP listening socket 127.0.0.1:12000: bind: Address already in use
02:58:16 system | web.1 started (pid=31966)
02:58:16 system | redis_socketio.1 stopped (rc=1)
02:58:16 system | schedule.1 started (pid=31965)
02:58:16 system | redis_queue.1 started (pid=31971)
02:58:16 system | worker_long.1 started (pid=31969)
02:58:16 system | worker_default.1 started (pid=31979)
02:58:16 redis_queue.1 | 31988:M 25 Apr 02:58:16.526 * Increased maximum number of open files to 10032 (it was originally set to 1024).
02:58:16 system | redis_cache.1 started (pid=31982)
02:58:16 redis_cache.1 | 31989:M 25 Apr 02:58:16.536 * Increased maximum number of open files to 10032 (it was originally set to 1024).
02:58:16 system | socketio.1 started (pid=31987)
02:58:16 redis_queue.1 | 31988:M 25 Apr 02:58:16.554 # Creating Server TCP listening socket 127.0.0.1:11000: bind: Address already in use
02:58:16 system | redis_queue.1 stopped (rc=1)
02:58:16 system | worker_short.1 started (pid=31991)
02:58:16 system | sending SIGTERM to worker_long.1 (pid 31969)
02:58:16 system | sending SIGTERM to watch.1 (pid 31962)
02:58:16 system | sending SIGTERM to web.1 (pid 31966)
02:58:16 system | sending SIGTERM to schedule.1 (pid 31965)
02:58:16 system | sending SIGTERM to worker_default.1 (pid 31979)
02:58:16 system | sending SIGTERM to socketio.1 (pid 31987)
02:58:16 system | sending SIGTERM to redis_cache.1 (pid 31982)
02:58:16 system | sending SIGTERM to worker_short.1 (pid 31991)
02:58:16 redis_cache.1 | 31989:signal-handler (1524639496) Received SIGTERM scheduling shutdown…
02:58:16 redis_cache.1 | 31989:M 25 Apr 02:58:16.558 # Creating Server TCP listening socket 127.0.0.1:13000: bind: Address already in use
02:58:16 system | redis_cache.1 stopped (rc=-15)
02:58:16 system | worker_short.1 stopped (rc=-15)
02:58:16 system | watch.1 stopped (rc=-15)
02:58:16 system | worker_long.1 stopped (rc=-15)
02:58:16 system | web.1 stopped (rc=-15)
02:58:16 system | worker_default.1 stopped (rc=-15)
02:58:16 system | socketio.1 stopped (rc=-15)
02:58:16 system | schedule.1 stopped (rc=-15)
frappe@vps180902:~/frappe-bench$