Hi everyone,
We have merged bench v2
into master.
Things can break.
So, if you want to continue without disruption, you can change the bench branch to v1.x
.
Troubleshooting
-
If the update breaks at:
bench.utils.CommandFailedError: sudo supervisorctl restart frappe-bench-processes:
, update again. A fix has been pushed. -
If the system keeps asking for sudo password for a user, you will need to go to your frappe-bench folder and run
sudo bench setup sudoers USER
. Replace USER withfrappe
/ubuntu
or whichever user you used to install erpnext. -
If you see an error like below, but if you see that the processes stopped and restarted, you can ignore this line.
error: <class 'xmlrpclib.Fault'>, <Fault 10: 'BAD_NAME: frappe-bench-processes'>: file: /usr/lib/python2.7/xmlrpclib.py line: 794
-
If you still want to get rid of the above message, you will have to regenerate all your configuration files by going to the frappe-bench folder and running these commands:
mv config config-bak mkdir -p config/pids sudo supervisorctl stop all sudo service nginx stop bench setup config bench setup redis bench setup supervisor bench setup nginx bench setup procfile sudo bench setup sudoers frappe # or the user that you used to install erpnext sudo nginx -t # check if this command shows any error sudo service nginx reload sudo supervisorctl reread sudo supervisorctl update
If after doing this, you get the following error in
sudo supervisorctl status
:frappe-bench-redis:frappe-bench-redis-queue FATAL Exited too quickly (process log may have details)
then run:
sudo update-rc.d redis-server disable sudo service redis-server stop sudo supervisorctl start all
-
If you get the error
pkg_resources.DistributionNotFound: bench==0.92
, try:
# go back one level outsite frappe-bench folder
cd ..
sudo pip uninstall bench
sudo pip install -e bench-repo
Thank you @Kody_Baker, @revant_one, @Ben_Cornwell_Mott for your persistence
What’s new?
-
frappe-bench/config.json
deprecated and merged intofrappe-bench/sites/common_site_config.json
. This will be done automatically onbench update
-
Some keys in
site_config.json
/common_site_config.json
have changed, which will be changed automatically onbench update
.-
celery_broker
→redis_queue
with default asredis://localhost:6379
-
async_redis_server
→redis_socketio
with default asredis://localhost:12311
-
cache_redis_server
→redis_cache
with default asredis://localhost:11311
-
-
File names in
frappe-bench/config
have changed. If you get any error about config, run:bench setup redis bench setup procfile # if production setup bench setup supervisor bench setup nginx
-
Multi-bench setup
- Assumes all benches are installed in parallel, i.e.
some-folder/frappe-bench-1
,some-folder/frappe-bench-2
, etc. - On
bench init
, loops through all benches’ configuration and sets unique ports forwebserver
,socketio
and variousredis-server
-
bench setup production
creates symlinks of nginx and supervisor with the bench’s name
- Assumes all benches are installed in parallel, i.e.
-
Other improvements
- A new installer using ansible (WIP) - for now creates development setup
(production setup yet to be implemented) - Test cases for bench and refactored code
- Nginx
https
config auto-redirectshttp://
tohttps://
- A new installer using ansible (WIP) - for now creates development setup
What do you think? I am sure some of you must have questions.