From 55145bbc1c4c572647dea30eb3c0500fa76dbc3e Mon Sep 17 00:00:00 2001 From: ikaika1 Date: Mon, 26 Jun 2023 22:04:00 +0900 Subject: [PATCH] feat(website): Update node troubleshooting for Windows users. (#14032) Co-authored-by: David Co-authored-by: dave | d1onys1us <13951458+d1onys1us@users.noreply.github.com> --- .../website/pages/docs/guides/run-a-node.mdx | 61 +++++++++++++++++-- 1 file changed, 56 insertions(+), 5 deletions(-) diff --git a/packages/website/pages/docs/guides/run-a-node.mdx b/packages/website/pages/docs/guides/run-a-node.mdx index 62192dbfafa..4ce0430ffc8 100644 --- a/packages/website/pages/docs/guides/run-a-node.mdx +++ b/packages/website/pages/docs/guides/run-a-node.mdx @@ -19,10 +19,25 @@ This guide will walk you through the process of operating a Taiko node via [simp ### Clone simple-taiko-node -```sh -git clone https://github.com/taikoxyz/simple-taiko-node.git -cd simple-taiko-node -``` + +{" "} + + + + ```sh + git clone https://github.com/taikoxyz/simple-taiko-node.git + cd simple-taiko-node + ``` + + + ```sh + git config --global core.autocrlf false + git clone https://github.com/taikoxyz/simple-taiko-node.git + cd simple-taiko-node + ``` + + + ### Configure your node (required) @@ -240,4 +255,40 @@ There could be several reasons, you can check the logs `docker compose logs -f` `ENABLE_PROVER=True/TRUE` when setting this to true `true` has to be in all lowercase or the script to start relayer won't run. #### `simple-taiko-node-taiko_client_prover_relayer-1 | /bin/sh: /script/start-prover-relayer.sh: not found` -This issue occurs on windows because of the Control Characters in this case the Line Endings, a quick fix would be to delete the node folder, run this `git config --global core.autocrlf false` in the shell, then clone the repo again. \ No newline at end of file +This issue occurs on windows because of the Control Characters in this case the Line Endings, a quick fix would be to delete the node folder, run this `git config --global core.autocrlf false` in the shell, then clone the repo again. + +If you do not want to delete the node folder, please follow one of these steps below. + +{" "} + + + + ```sh + docker compose down -v + cd scripts + dos2unix start-zkevm-chain-rpcd.sh + dos2unix start-prover-relayer.sh + cd .. + docker compose up + ``` + + + ```sh + 1) + Open Notepad++ + Go to: File -> Open -> Locate start-prover-relayer.sh file and open it + Go to: Edit -> EOL Conversion -> Unix + Go to: File -> Save + Close the file + + 2) + Do the same for start-zkevm-chain-rpcd.sh + + 3) + Then go back to command line and do + docker compose down -v + docker compose up + ``` + + +