├── README.md ├── chiahealthcheck.bat ├── chiahealthcheckv1.1.6.bat ├── chiahealthcheck.sh └── chiahealthcheckallwindows.bat /README.md: -------------------------------------------------------------------------------- 1 | # Chia Health Checker 2 | Is a simple batch file of chia run commands walking you through all of the typical Chia Farm Checking with a guided yes or no prompt process 3 | 4 | ----THE CHIA CLIENT AND PROCESSES NEED TO BE ALLREADY RUNNING ON THE MACHINE FOR THE BAT TO RUN CORRECTLY---- 5 | I didn't initally realize this until after making and releasing this as I had the Chia Client GUI open the entire time doing it. 6 | 7 | Check out the peer reviews and comments on my reddit post for more in depth information etc. 8 | https://www.reddit.com/r/chia/comments/o2eute/release_chia_health_check_tool_for_chia_client_117/ 9 | 10 | ----What it does (includes most recent revision notes)---- 11 | 12 | - Lists your current plot directories so you can make sure they are all there and will be tested 13 | 14 | - Option to check & displays your current farm summary 15 | 16 | - Option to display your current keys and wallet. If you need them for anything i.e. mad max, hpool or what ever else. 17 | 18 | - Option to restart all running chia processes 19 | 20 | - Option to check for duplicate plots and any filename errors 21 | 22 | - Option to check plots using -10 quick method, -30 full method and skip 23 | 24 | - Option to check if port 8444 is open and reachable by your internal network/local computer 25 | 26 | - Option to check if port 8444 is open and reachable by your external network and verify connections are being made to you 27 | 28 | - Color coded text areas to easily distinguish between user input needed, working processes and program reported data. 29 | 30 | ---- New 2.0v does everything the old one did but also ---- 31 | - Displays your current chia version and an option to launch a browser directly from the tool to the official Chia git hub to easily update your chia client with new releases when needed. 32 | 33 | - Added a wildcard in the chia root directory so I don't need to update this everytime a release is pushed out and for any previous releases 34 | ex = cd %LocalAppData%\chia-blockchain\app-1.1.7\resources\app.asar.unpacked\daemon 35 | is now = cd %LocalAppData%\chia-blockchain\app-(starsymbol-lol)\resources\app.asar.unpacked\daemon 36 | (supposed to be a star here, won't show on this readme because it makes it italic instead of being a star... \app-(starsymbol-lol)) 37 | 38 | - Fixed the quick and full plot checker completing both tasks when selecting quick instead of just one or the other. They are now separate options but both still exist and work. 39 | 40 | - Added a user suggested edit to include a separate restart option for Chia ALL, which only restarts time lords additionally to the previous one, probably not needed but why not. If you run a time lord, you can now restart it with this! lol 41 | 42 | - Added a note that the chia GUI must be open and running for this tool to work as it is all the official Chia commands being used, just packaged up so you don't need to type them. Besides the windows port check, that's a window thing. 43 | 44 | - Added credit for the user that created the Linux, Mac and Rasp PI ports and donation addresses for him on the windows version. HUGE THANK YOU to him! 45 | 46 | - Added credit to two other users that provided the wild card * entry to make this not chia client version dependent and reported the issue of the tool running both plot checks instead of just one. 47 | 48 | - Added reddit link, cause I can?! 49 | 50 | - Added spacing and breaks to make the text more human readable and fixed some typos and spelling errors. (don't worry, I am sure something is still misspelled). 51 | 52 | ----CURRENT BETA USER SUBMISSION FOR MAC, LINUX AND PI - Release under beta releases seperate from above.---- 53 | 54 | PLEASE REVIEW AND USE AT YOUR OWN RISK - I quickly reviewed the code and saw nothing malicious. Please review and confirm as well. 55 | 56 | Also if modifications are needed for mac/linux please feel free to make them and submit to me by either a commit suggestion on git hub or message me on reddit. 57 | 58 | ----So far several users on reddit have reviewed the code and tested on Linux and Rasp Pi, still need a Mac confirmation it works--- 59 | I will probably move this to a release very soon even without Mac's testing, people have suggested that it should work on Mac. I'm sure i'll hear about it if it dosn't. 60 | 61 | All credit for this goes to reddit user SMC0881 - This is for testing purposes. SMC0881 submitted this to me to help out the M, Linux and PI clients. 62 | 63 | User's notes on needing a specific netstat package to run the port checks below. 64 | 65 | #!/bin/sh 66 | 67 | #Tested on Ubuntu running on Raspberry Pi4 68 | 69 | #My version of Ubuntu for Pi did not have netstat installed. Run sudo apt install net-tools. 70 | 71 | #This should work for Mac and regular Linux versions too. 72 | -------------------------------------------------------------------------------- /chiahealthcheck.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | cls 3 | echo This Chia Checker Tool Is Only For Chia Version 1.1.7 4 | echo The Chia Checker Tool For 1.1.6 Can Be Downloaded From Git Hub 5 | echo Created By Reddit User: Toaster Potato  6 | pause  7 | 8 | cd %LocalAppData%\chia-blockchain\app-1.1.7\resources\app.asar.unpacked\daemon\ 9 | echo Moving to working directory for chia version 1.1.7 10 | 11 | echo !!!!Check and Verify Your Plot Directory Locations!!!! 12 | 13 | chia plots show 14 | 15 | echo Directories listed above will be your working plot directories for any tests you are about to perform. If you are missing a directory make sure you have added the directory to your chia GUI or in a command line. Any directory specific tests are populated from chias config.yaml file.  16 | pause  17 | 18 | :choice 19 | set /P c=Do you want to check your Chia Farm summary[Y/N]? 20 | if /I "%c%" EQU "Y" goto :process1 21 | if /I "%c%" EQU "N" goto :next 22 | goto :choice 23 | 24 | :process1 25 | echo Showing chia farm summary 26 | chia farm summary 27 | echo Done! If you are seeing connection errors or unknown reports you should restart your farm processes in the next step. 28 | 29 | :next 30 | echo Moving to next process 31 | 32 | :choice 33 | set /P c=Do you want to display your Chia keys[Y/N]? 34 | if /I "%c%" EQU "Y" goto :process1 35 | if /I "%c%" EQU "N" goto :next 36 | goto :choice 37 | 38 | :process1 39 | chia keys show 40 | echo Done! You can copy and paste these keys for any reason needed. 41 | 42 | :next 43 | echo Moving to next process 44 | 45 | 46 | :choice 47 | set /P c=Do you want to restart chia processes[Y/N]? 48 | if /I "%c%" EQU "Y" goto :process1 49 | if /I "%c%" EQU "N" goto :next 50 | goto :choice 51 | 52 | :process1 53 | cd %LocalAppData%\chia-blockchain\app-1.1.7\resources\app.asar.unpacked\daemon\ 54 | echo Stopping Chia processes 55 | chia stop farmer 56 | rem Making sure processes are closed with 5 second delay. 57 | timeout /t 5 58 | 59 | echo Starting Chia processes 60 | chia start farmer 61 | rem Making sure processes are started with 7 second delay. 62 | timeout /t 7 63 | 64 | 65 | echo Showing Chia Farm status after restart 66 | chia farm summary 67 | 68 | :next 69 | echo Moving to next process 70 | 71 | :choice 72 | set /P c=Do you want to check for duplicate plots and plots with any file name errors[Y/N]? 73 | if /I "%c%" EQU "Y" goto :process1 74 | if /I "%c%" EQU "N" goto :next 75 | goto :choice 76 | 77 | :process1 78 | echo starting chia plot checker 79 | cd %LocalAppData%\chia-blockchain\app-1.1.7\resources\app.asar.unpacked\daemon\ 80 | chia plots check -l -n 0 81 | echo Done duplicate files will be listed at the end of the report with a WARNING message and plot file name. These should be deleted! If no specific plot files are listed, nothing needs to be deleted. 82 | 83 | :next 84 | echo Moving to next process 85 | 86 | echo Checking your plots can take awhile. I have included the options for a quick -10 test and the full recommened -30 test flags. I would recommend starting with a 10 test as this can still take quite a while with alot of plots. 87 | :choice 88 | set /P c=Do you want to run Chia check plots Quick - Full - Skip [Q/F/S]? 89 | if /I "%c%" EQU "Q" goto :process1 90 | if /I "%c%" EQU "F" goto :process2 91 | if /I "%c%" EQU "S" goto :next 92 | goto :choice 93 | 94 | :process1 95 | echo starting chia plot checker Quick 96 | cd %LocalAppData%\chia-blockchain\app-1.1.7\resources\app.asar.unpacked\daemon\ 97 | chia plots check -n 10 98 | echo Quick plot check finished. Check your results above. 99 | 100 | :process2 101 | echo starting chia plot checker Full 102 | cd %LocalAppData%\chia-blockchain\app-1.1.7\resources\app.asar.unpacked\daemon\ 103 | chia plots check -n 30 104 | echo Plot check finished. Check your results above. 105 | 106 | :next 107 | echo Moving to next process. 108 | 109 | :choice 110 | set /P c=Do you want to check if port 8444 is open[Y/N]? 111 | if /I "%c%" EQU "Y" goto :process1 112 | if /I "%c%" EQU "N" goto :next 113 | goto :choice 114 | 115 | :process1 116 | echo Checking if port 8444 is open on local pc 117 | netstat -anon | findstr 127.0.0.1:8444 118 | echo Check complete - You should see a few ESTABLISHED connections on your local machine 119 | 120 | :next 121 | echo Moving to next process 122 | 123 | :choice 124 | set /P c=Do you want to check if port 8444 is making connections outside your network[Y/N]? 125 | if /I "%c%" EQU "Y" goto :process1 126 | if /I "%c%" EQU "N" goto :next 127 | goto :choice 128 | 129 | :process1 130 | echo Checking all connections with port 8444 131 | netstat -anon | findstr 8444 132 | echo Check complete, you should see several connections ESTABLISHED 133 | 134 | :next 135 | echo Moving to next process 136 | 137 | echo If you found this tool useful or just hate your money and want me to have some of it. 138 | echo Please consider donating to help keep me motived to keep this updated in the future.  139 | echo Chia Wallet Address: xch1xwnsx8n5zzlhy8hy6h6l0xw49kwf69xw7lcwsqprk8j528cpnr9q9f0jxc  140 | echo ETH Wallet Address: 0xd84A4Ccd7F2Af328b47c93d23fc75542111651c7  141 | :choice 142 | set /P c=Are you ready to exit[Y/N]? 143 | if /I "%c%" EQU "Y" goto :process1 144 | if /I "%c%" EQU "N" goto :next 145 | goto :choice 146 | 147 | :process1 148 | exit 149 | 150 | :next 151 | echo Click the X on this window or push any button when ready to close!  152 | 153 | pause  154 | 155 | -------------------------------------------------------------------------------- /chiahealthcheckv1.1.6.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | cls 3 | echo This Chia Checker Tool Is Only For Chia Version 1.1.6 4 | echo The Chia Checker Tool For 1.1.7 Can Be Downloaded From Git Hub 5 | echo Created By Reddit User: Toaster Potato  6 | pause  7 | 8 | cd %LocalAppData%\chia-blockchain\app-1.1.6\resources\app.asar.unpacked\daemon\ 9 | echo Moving to working directory for chia version 1.1.6 10 | 11 | echo !!!!Check and Verify Your Plot Directory Locations!!!! 12 | 13 | chia plots show 14 | 15 | echo Directories listed above will be your working plot directories for any tests you are about to perform. If you are missing a directory make sure you have added the directory to your chia GUI or in a command line. Any directory specific tests are populated from chias config.yaml file.  16 | pause  17 | 18 | :choice 19 | set /P c=Do you want to check your Chia Farm summary[Y/N]? 20 | if /I "%c%" EQU "Y" goto :process1 21 | if /I "%c%" EQU "N" goto :next 22 | goto :choice 23 | 24 | :process1 25 | echo Showing chia farm summary 26 | chia farm summary 27 | echo Done! If you are seeing connection errors or unknown reports you should restart your farm processes in the next step. 28 | 29 | :next 30 | echo Moving to next process 31 | 32 | :choice 33 | set /P c=Do you want to display your Chia keys[Y/N]? 34 | if /I "%c%" EQU "Y" goto :process1 35 | if /I "%c%" EQU "N" goto :next 36 | goto :choice 37 | 38 | :process1 39 | chia keys show 40 | echo Done! You can copy and paste these keys for any reason needed. 41 | 42 | :next 43 | echo Moving to next process 44 | 45 | 46 | :choice 47 | set /P c=Do you want to restart chia processes[Y/N]? 48 | if /I "%c%" EQU "Y" goto :process1 49 | if /I "%c%" EQU "N" goto :next 50 | goto :choice 51 | 52 | :process1 53 | cd %LocalAppData%\chia-blockchain\app-1.1.6\resources\app.asar.unpacked\daemon\ 54 | echo Stopping Chia processes 55 | chia stop farmer 56 | rem Making sure processes are closed with 5 second delay. 57 | timeout /t 5 58 | 59 | echo Starting Chia processes 60 | chia start farmer 61 | rem Making sure processes are started with 7 second delay. 62 | timeout /t 7 63 | 64 | 65 | echo Showing Chia Farm status after restart 66 | chia farm summary 67 | 68 | :next 69 | echo Moving to next process 70 | 71 | :choice 72 | set /P c=Do you want to check for duplicate plots and plots with any file name errors[Y/N]? 73 | if /I "%c%" EQU "Y" goto :process1 74 | if /I "%c%" EQU "N" goto :next 75 | goto :choice 76 | 77 | :process1 78 | echo starting chia plot checker 79 | cd %LocalAppData%\chia-blockchain\app-1.1.6\resources\app.asar.unpacked\daemon\ 80 | chia plots check -l -n 0 81 | echo Done duplicate files will be listed at the end of the report with a WARNING message and plot file name. These should be deleted! If no specific plot files are listed, nothing needs to be deleted. 82 | 83 | :next 84 | echo Moving to next process 85 | 86 | echo Checking your plots can take awhile. I have included the options for a quick -10 test and the full recommened -30 test flags. I would recommend starting with a 10 test as this can still take quite a while with alot of plots. 87 | :choice 88 | set /P c=Do you want to run Chia check plots Quick - Full - Skip [Q/F/S]? 89 | if /I "%c%" EQU "Q" goto :process1 90 | if /I "%c%" EQU "F" goto :process2 91 | if /I "%c%" EQU "S" goto :next 92 | goto :choice 93 | 94 | :process1 95 | echo starting chia plot checker Quick 96 | cd %LocalAppData%\chia-blockchain\app-1.1.6\resources\app.asar.unpacked\daemon\ 97 | chia plots check -n 10 98 | echo Quick plot check finished. Check your results above. 99 | 100 | :process2 101 | echo starting chia plot checker Full 102 | cd %LocalAppData%\chia-blockchain\app-1.1.6\resources\app.asar.unpacked\daemon\ 103 | chia plots check -n 30 104 | echo Plot check finished. Check your results above. 105 | 106 | :next 107 | echo Moving to next process. 108 | 109 | :choice 110 | set /P c=Do you want to check if port 8444 is open[Y/N]? 111 | if /I "%c%" EQU "Y" goto :process1 112 | if /I "%c%" EQU "N" goto :next 113 | goto :choice 114 | 115 | :process1 116 | echo Checking if port 8444 is open on local pc 117 | netstat -anon | findstr 127.0.0.1:8444 118 | echo Check complete - You should see a few ESTABLISHED connections on your local machine 119 | 120 | :next 121 | echo Moving to next process 122 | 123 | :choice 124 | set /P c=Do you want to check if port 8444 is making connections outside your network[Y/N]? 125 | if /I "%c%" EQU "Y" goto :process1 126 | if /I "%c%" EQU "N" goto :next 127 | goto :choice 128 | 129 | :process1 130 | echo Checking all connections with port 8444 131 | netstat -anon | findstr 8444 132 | echo Check complete, you should see several connections ESTABLISHED 133 | 134 | :next 135 | echo Moving to next process 136 | 137 | echo If you found this tool useful or just hate your money and want me to have some of it. 138 | echo Please consider donating to help keep me motived to keep this updated in the future.  139 | echo Chia Wallet Address: xch1xwnsx8n5zzlhy8hy6h6l0xw49kwf69xw7lcwsqprk8j528cpnr9q9f0jxc  140 | echo ETH Wallet Address: 0xd84A4Ccd7F2Af328b47c93d23fc75542111651c7  141 | :choice 142 | set /P c=Are you ready to exit[Y/N]? 143 | if /I "%c%" EQU "Y" goto :process1 144 | if /I "%c%" EQU "N" goto :next 145 | goto :choice 146 | 147 | :process1 148 | exit 149 | 150 | :next 151 | echo Click the X on this window or push any button when ready to close!  152 | 153 | pause  154 | 155 | -------------------------------------------------------------------------------- /chiahealthcheck.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | #Tested on Ubuntu running on Raspberry Pi4 3 | #My version of Ubuntu for Pi did not have netstat installed. Run sudo apt install net-tools. 4 | #This should work for Mac and regular Linux versions too. 5 | # 6 | 7 | #Color Definitions 8 | GREEN='\033[0;32m' 9 | WHITE='\033[0;0m' 10 | BLUE='\033[0;94m' 11 | 12 | #Variables 13 | CHIABLOCKCHAIN=~/chia-blockchain/ 14 | CHIA_BIN=${CHIABLOCKCHAIN}/app-1.1.7/resources/app.asar.unpacked/daemon/chia 15 | CHIA_HOME=~/.chia/ 16 | PROCEED="" 17 | 18 | clear 19 | . ${CHIABLOCKCHAIN}/activate 20 | clear 21 | 22 | echo "${GREEN}This Chia Checker Tool Is Only For Chia Version 1.1.7${WHITE}" 23 | echo "${GREEN}The Chia Checker Tool For 1.1.6 Can Be Downloaded From Git Hub${WHITE}" 24 | echo "${GREEN}Created By Reddit User For Windows: Toaster Potato${WHITE}" 25 | echo "${GREEN}*nix Port By Reddit User: smc0881${WHITE}" 26 | #pause ${WHITE}" 27 | 28 | echo "" 29 | echo "${GREEN}Moving to working directory for chia version 1.1.7${WHITE}" 30 | echo "${GREEN}!!!!Check and Verify Your Plot Directory Locations!!!!${WHITE}" 31 | 32 | chia plots show 33 | 34 | echo "" 35 | echo "${GREEN}Directories listed above will be your working plot directories for any tests you are about to perform. If you are missing a directory make sure you have added the directory to your chia GUI or in a command line. Any directory specific tests are populated from chias config.yaml file.${BLUE}" 36 | #pause ${WHITE}" 37 | 38 | echo "${BLUE}Do you want to check your Chia Farm summary[Y/N]?${WHITE} \c" 39 | read PROCEED 40 | 41 | case "${PROCEED}" in 42 | [yY][eE][sS]|[yY]) 43 | echo "${GREEN}Showing chia farm summary${WHITE}" 44 | chia farm summary 45 | echo "${GREEN}Done! If you are seeing connection errors or unknown reports you should restart your farm processes in the next step.${WHITE}" 46 | 47 | ;; 48 | *) 49 | continue 50 | ;; 51 | esac 52 | 53 | echo "${GREEN}Moving to next process${WHITE}" 54 | 55 | echo "${BLUE}Do you want to display your Chia keys[Y/N]?${WHITE} \c" 56 | read PROCEED 57 | 58 | case "${PROCEED}" in 59 | [yY][eE][sS]|[yY]) 60 | chia keys show 61 | echo "${GREEN}Done! You can copy and paste these keys for any reason needed.${WHITE}" 62 | ;; 63 | *) 64 | continue 65 | ;; 66 | esac 67 | 68 | echo "${GREEN}Moving to next process${WHITE}" 69 | 70 | echo "${BLUE}Do you want to restart chia processes[Y/N]?${WHITE} \c" 71 | read PROCEED 72 | 73 | case "${PROCEED}" in 74 | [yY][eE][sS]|[yY]) 75 | echo "${GREEN}Stopping Chia processes${WHITE}" 76 | chia stop farmer 77 | sleep 5 78 | echo "${GREEN}Starting Chia processes${WHITE}" 79 | chia start farmer 80 | sleep 7 81 | echo "${GREEN}Showing Chia Farm status after restart${WHITE}" 82 | chia farm summary 83 | ;; 84 | *) 85 | continue 86 | ;; 87 | esac 88 | 89 | echo "${GREEN}Moving to next process${WHITE}" 90 | 91 | echo "${BLUE}Do you want to check for duplicate plots and plots with any file name errors[Y/N]?${WHITE} \c" 92 | read PROCEED 93 | 94 | case "${PROCEED}" in 95 | [yY][eE][sS]|[yY]) 96 | echo "${GREEN}starting chia plot checker${WHITE}" 97 | chia plots check -l -n 0 98 | echo "${GREEN}Done duplicate files will be listed at the end of the report with a WARNING message and plot file name. These should be deleted! If no specific plot files are listed, nothing needs to be deleted.${WHITE}" 99 | ;; 100 | *) 101 | continue 102 | ;; 103 | esac 104 | 105 | echo "${GREEN}Moving to next process${WHITE}" 106 | 107 | echo "${GREEN}Checking your plots can take awhile. I have included the options for a quick -10 test and the full recommened -30 test flags. I would recommend starting with a 10 test as this can still take quite a while with alot of plots.${WHITE}" 108 | echo "${BLUE}Do you want to run Chia check plots Quick - Full - Skip [Q/F/S]?${WHITE} \c" 109 | read PROCEED 110 | 111 | case "${PROCEED}" in 112 | [qQ]) 113 | echo "${GREEN}starting chia plot checker Quick${WHITE}" 114 | chia plots check -n 10 115 | echo "${GREEN}Quick plot check finished. Check your results above.${WHITE}" 116 | ;; 117 | [fF]) 118 | echo "${GREEN}starting chia plot checker Full${WHITE}" 119 | chia plots check -n 30 120 | echo "${GREEN}Plot check finished. Check your results above.${WHITE}" 121 | ;; 122 | *) 123 | continue 124 | ;; 125 | esac 126 | 127 | echo "${GREEN}Moving to next process.${WHITE}" 128 | 129 | echo "${BLUE}Do you want to check if port 8444 is open[Y/N]?${WHITE} \c" 130 | read PROCEED 131 | 132 | case "${PROCEED}" in 133 | [yY][eE][sS]|[yY]) 134 | echo "${GREEN}Checking if port 8444 is open on local pc${WHITE}" 135 | netstat -anon | grep 127.0.0.1:8444 136 | echo "${GREEN}Check complete - You should see a few ESTABLISHED connections on your local machine${WHITE}" 137 | ;; 138 | *) 139 | continue 140 | ;; 141 | esac 142 | 143 | echo "${GREEN}Moving to next process${WHITE}" 144 | 145 | echo "${BLUE}Do you want to check if port 8444 is making connections outside your network[Y/N]?${WHITE} \c" 146 | read PROCEED 147 | 148 | case "${PROCEED}" in 149 | [yY][eE][sS]|[yY]) 150 | echo "${GREEN}Checking all connections with port 8444${WHITE}" 151 | netstat -anon | grep 8444 152 | echo "${GREEN}Check complete, you should see several connections ESTABLISHED${WHITE}" 153 | ;; 154 | *) 155 | continue 156 | ;; 157 | esac 158 | 159 | echo "" 160 | echo "${BLUE}If you found this tool useful or just hate your money and want me to have some of it.${WHITE}" 161 | echo "${GREEN}Please consider donating to help keep me motived to keep this updated in the future. ${WHITE}" 162 | echo "------------------*Windows Author Version: Reddit User:Toaster Potato--------------" 163 | echo "${GREEN}Chia Wallet Address: xch1xwnsx8n5zzlhy8hy6h6l0xw49kwf69xw7lcwsqprk8j528cpnr9q9f0jxc ${WHITE}" 164 | echo "${GREEN}ETH Wallet Address: 0xd84A4Ccd7F2Af328b47c93d23fc75542111651c7 ${WHITE}" 165 | echo "------------------*Ported Author Version:nix Reddit User:smc0881--------------" 166 | echo "${GREEN}Chia Wallet Address: xch18uf4hnp0euevya30knr0a4zdrm7mmfl28hvu9sjzwgef8lgdk06qddlrag${WHITE}" 167 | echo "${GREEN}ETH Wallet Address: 0x261B0EF34Cd4dc8f1303769BeC93873ddE26670A${WHITE}" 168 | 169 | echo "${WHITE}" -------------------------------------------------------------------------------- /chiahealthcheckallwindows.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | cls 3 | echo This Chia Checker Tool Is For All Current and Hopefully Future Chia Client Versions. 4 | echo. 5 | echo This tool was Created During 1.1.7 Chia Client Release and last updated 6/19/2021. 6 | echo You are currently running Chia Client Version  7 | cd %LocalAppData%\chia-blockchain\app-*\resources\app.asar.unpacked\daemon\ 8 | chia version 9 | echo. 10 | echo You can update Chia by getting the latest offical version at 11 | echo https://github.com/Chia-Network/chia-blockchain/releases 12 | :choice 13 | set /P c=Would you like to me to launch that page for you?[Y/N]? 14 | if /I "%c%" EQU "Y" goto :process1 15 | if /I "%c%" EQU "N" goto :next 16 | goto :choice 17 | 18 | :process1 19 | explorer "https://github.com/Chia-Network/chia-blockchain/releases" 20 | echo Done! 21 | 22 | :next 23 | echo Moving to next process 24 | echo. 25 | echo Created By Reddit User: Toaster Potato 26 | echo Special Thanks to Reddit User: SMC0881 For Modifying the Linux, Mac and Pi Ports of this tool 27 | echo also availible as releases on github, probably wouldn't of got done without him. 28 | echo Special Thanks to Reddit Users: ChuckUF4rley and powershellnut for providing bug reports and code 29 | echo additions to make this tool even better. 30 | echo. 31 | echo You can find peer review, code checking and additional info comments about this on reddit. 32 | echo reddit.com/r/chia/comments/o2eute/release_chia_health_check_tool_for_chia_client_117/ 33 | echo. 34 | echo !~~~Make sure Chia GUI is currently open and running before continuing.~~~!  35 | echo ~~This tool uses the offical chia commands to run and needs the processes from Chia to do so.~~~~  36 | pause  37 | 38 | cd %LocalAppData%\chia-blockchain\app-*\resources\app.asar.unpacked\daemon\ 39 | echo Moving to working directory for chia 40 | echo. 41 | echo !!!!Check and Verify Your Plot Directory Locations!!!! 42 | 43 | chia plots show 44 | echo. 45 | echo Directories listed above will be your working plot directories for any tests you are about to perform. 46 | echo If you are missing a directory make sure you have added the directory to your chia GUI or in a command line. 47 | echo Any directory specific tests are populated from chias config.yaml file.  48 | pause  49 | 50 | echo. 51 | :choice 52 | set /P c=Do you want to check your Chia Farm summary[Y/N]? 53 | if /I "%c%" EQU "Y" goto :process1 54 | if /I "%c%" EQU "N" goto :next 55 | goto :choice 56 | 57 | :process1 58 | echo Showing chia farm summary 59 | chia farm summary 60 | echo Done! If you are seeing connection errors or unknown reports you should restart your farm processes in the next step. 61 | 62 | :next 63 | echo Moving to next process 64 | 65 | echo. 66 | :choice 67 | set /P c=Do you want to display your Chia keys[Y/N]? 68 | if /I "%c%" EQU "Y" goto :process1 69 | if /I "%c%" EQU "N" goto :next 70 | goto :choice 71 | 72 | :process1 73 | chia keys show 74 | echo Done! You can copy and paste these keys for any reason needed. 75 | 76 | :next 77 | echo Moving to next process 78 | 79 | echo. 80 | :choice 81 | set /P c=Do you want to restart default chia processes used with the GUI of windows[Y/N]? 82 | if /I "%c%" EQU "Y" goto :process1 83 | if /I "%c%" EQU "N" goto :next 84 | goto :choice 85 | 86 | :process1 87 | cd %LocalAppData%\chia-blockchain\app-*\resources\app.asar.unpacked\daemon\ 88 | echo Stopping Chia processes 89 | chia stop farmer 90 | rem Making sure processes are closed with 5 second delay. 91 | timeout /t 5 92 | 93 | echo Starting Chia processes 94 | chia start farmer 95 | rem Making sure processes are started with 7 second delay. 96 | timeout /t 7 97 | echo. 98 | echo Showing Chia Farm status after restart 99 | chia farm summary 100 | 101 | :next 102 | echo Moving to next process 103 | 104 | echo. 105 | :choice 106 | set /P c=Do you want to restart ALL chia processes including additional stuff that dosn't launch with the GUI !~~Unless you are running a timelord outside of the chia GUI you'll want to push NO here.~~![Y/N]? 107 | if /I "%c%" EQU "Y" goto :process1 108 | if /I "%c%" EQU "N" goto :next 109 | goto :choice 110 | 111 | :process1 112 | cd %LocalAppData%\chia-blockchain\app-*\resources\app.asar.unpacked\daemon\ 113 | echo Stopping Chia processes 114 | chia stop all 115 | rem Making sure processes are closed with 5 second delay. 116 | timeout /t 5 117 | 118 | echo Starting Chia processes 119 | chia start all 120 | rem Making sure processes are started with 7 second delay. 121 | timeout /t 7 122 | echo. 123 | echo Showing Chia Farm status after restart 124 | chia farm summary 125 | 126 | :next 127 | echo Moving to next process 128 | 129 | echo. 130 | :choice 131 | set /P c=Do you want to check for duplicate plots and plots with any file name errors[Y/N]? 132 | if /I "%c%" EQU "Y" goto :process1 133 | if /I "%c%" EQU "N" goto :next 134 | goto :choice 135 | 136 | :process1 137 | echo starting chia plot checker 138 | cd %LocalAppData%\chia-blockchain\app-*\resources\app.asar.unpacked\daemon\ 139 | chia plots check -l -n 0 140 | echo Done! Duplicate files will be listed at the end of the report with a WARNING message and plot file name. These should be deleted! If no specific plot files are listed, nothing needs to be deleted. 141 | 142 | :next 143 | echo. 144 | echo Moving to next process 145 | echo. 146 | echo Checking your plots can take awhile. I have included the options for a quick -10 test and the full recommened -30 test flags. I would recommend starting with a 10 test as this can still take quite a while with alot of plots. Thanks to reddit user ChuckUF4rley for pointing out both tests ran if not seperate options. 147 | echo. 148 | :choice 149 | set /P c=Do you want to run Chia Check Plots QUICK 10 (~Full 30 test is the next option~)[y/n]? 150 | if /I "%c%" EQU "Y" goto :process1 151 | if /I "%c%" EQU "N" goto :next 152 | goto :choice 153 | 154 | :process1 155 | echo starting chia plot checker Quick 156 | cd %LocalAppData%\chia-blockchain\app-*\resources\app.asar.unpacked\daemon\ 157 | chia plots check -n 10 158 | echo. 159 | echo Quick Plot check finished. Check your results above. 160 | 161 | :next 162 | echo Moving to next process. 163 | echo. 164 | :choice 165 | set /P c=Do you want to run Chia Check Plots FULL 30 [y/n]? 166 | if /I "%c%" EQU "Y" goto :process1 167 | if /I "%c%" EQU "N" goto :next 168 | goto :choice 169 | 170 | :process1 171 | echo starting chia plot checker Full 172 | cd %LocalAppData%\chia-blockchain\app-*\resources\app.asar.unpacked\daemon\ 173 | chia plots check -n 30 174 | echo. 175 | echo Full Plot check finished. Check your results above. 176 | 177 | :next 178 | echo Moving to next process. 179 | echo. 180 | :choice 181 | set /P c=Do you want to check if port 8444 is open[Y/N]? 182 | if /I "%c%" EQU "Y" goto :process1 183 | if /I "%c%" EQU "N" goto :next 184 | goto :choice 185 | 186 | :process1 187 | echo Checking if port 8444 is open on local pc 188 | netstat -anon | findstr 127.0.0.1:8444 189 | echo Check Complete - You should see a few ESTABLISHED connections on your local machine 190 | 191 | :next 192 | echo Moving to next process 193 | echo. 194 | :choice 195 | set /P c=Do you want to check if port 8444 is making connections outside your network[Y/N]? 196 | if /I "%c%" EQU "Y" goto :process1 197 | if /I "%c%" EQU "N" goto :next 198 | goto :choice 199 | 200 | :process1 201 | echo Checking all connections with port 8444 202 | netstat -anon | findstr 8444 203 | echo Check complete, you should see several connections ESTABLISHED 204 | 205 | :next 206 | echo Moving to next process 207 | echo. 208 | echo. 209 | echo If you found this tool useful or just hate your money and want us to have some of it, 210 | echo please consider donating to help keep us motived to keep this updated in the future.  211 | echo. 212 | echo ----------*Windows Author Version Reddit User:Toaster Potato----------- 213 | echo Chia Wallet Address: xch1xwnsx8n5zzlhy8hy6h6l0xw49kwf69xw7lcwsqprk8j528cpnr9q9f0jxc  214 | echo ETH Wallet Address: 0xd84A4Ccd7F2Af328b47c93d23fc75542111651c7  215 | echo. 216 | echo ----------*Ported Author PI:Linux:Mac Reddit User:smc0881----------- 217 | echo Chia Wallet Address: xch18uf4hnp0euevya30knr0a4zdrm7mmfl28hvu9sjzwgef8lgdk06qddlrag  218 | echo ETH Wallet Address: 0x261B0EF34Cd4dc8f1303769BeC93873ddE26670A  219 | echo. 220 | :choice 221 | set /P c=Are you ready to exit[Y/N]? 222 | if /I "%c%" EQU "Y" goto :process1 223 | if /I "%c%" EQU "N" goto :next 224 | goto :choice 225 | 226 | :process1 227 | exit 228 | 229 | :next 230 | echo Click the X on this window or push any button when ready to close! 231 | 232 | pause 233 | 234 | --------------------------------------------------------------------------------