How Rollback init bench to init?

When executive the following instructions
bench init --frappe-branch version-15 frappe-bench
Fail network
How Rollback it to try init again ?

@yemen

Rollback Steps:

  1. Remove the Partially Created Directory:
  • The bench init command creates a new directory (in your case, frappe-bench). If the process fails, you should delete this directory to remove the partially created setup.
  • Run the following command to delete it:

bash

Copy code

rm -rf frappe-bench
  1. Check for Residual Processes:
  • Sometimes, processes started during the initialization may still be running. Ensure there are no lingering processes by checking with:

bash

Copy code

ps aux | grep bench
  • If you find any, you can kill them using:

bash

Copy code

kill <PID>

Replace <PID> with the actual process ID.
3. Clear DNS Cache (Optional):

  • Network failures could be related to DNS issues. You might want to clear your DNS cache before retrying:

bash

Copy code

sudo systemd-resolve --flush-caches
  1. Retry bench init:
  • After cleaning up, you can retry the initialization:

bash

Copy code

bench init --frappe-branch version-15 frappe-bench
2 Likes