Open cyperbg opened 3 years ago
Open the terminal
Type chia show keys
Copy the farmerkey and the poolkey
create a file called run-chia-plotter.sh
Paste this in there:
export THREADS="$(expr $(nproc) / 2)"; \
export POOLKEY="replace-me"; \
export FARMERKEY="replace-me"; \
/home/mk/chia-plotter/build2/chia_plot \
--poolkey=$POOLKEY \
--farmerkey=$FARMERKEY \
--tmpdir2=replace-me \
--tmpdir=replace-me \
--finaldir=replace-me/ \
--count=-1 \
--threads=$THREADS \
--buckets=7 \
2>&1 | tee /home/$(whoami)/.chia/mainnet/plotter/chia-plotter-$(uuid).log;
Replace everyting that says replace-me with whatever you need.
Save that file.
Execute chmod +x run-chia-plotter.sh
Execute ./run-chia-plotter.sh
I get this:
cyper@Plotter:~/chia-plotter$ ./run-chia-plotter.sh
./run-chia-plotter.sh: line 13: uuid: command not found
tee: /home/cyper/.chia/mainnet/plotter/chia-plotter-.log: No such file or directory
Multi-threaded pipelined Chia k32 plotter - 468cc5e
Final Directory: /media/cyper/Farm18/
Number of Plots: infinite
Process ID: 4934
Number of Threads: 30
Number of Buckets: 2^7 (128)
Pool Public Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Farmer Public Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Working Directory: /media/cyper/raid/
Working Directory 2: /media/cyper/ramdisk/
Plot Name: plot-k32-2021-06-11-10-38-7f1e4e39438fae4e93651f41e44a5a5948e9f0a67056bbf8c99ff1f98a30b9dd
Do I need to create the log file manually?
Execute sudo apt install uuid -y
on the console to install the uuid command.
Make sure the folder /home/cyper/.chia/mainnet/plotter/
exists by executing mkdir -p /home/cyper/.chia/mainnet/plotter/
.
I get:
cyper@Plotter:~/chia-plotter$ ./run-chia-plotter.sh tee: /home/cyper/.chia/mainnet/plotter/chia-plotter-7572353e-ca88-11eb-8382-1f6bb2786d9f.log: No such file or directory
It works now. The folder has 1 log file, but when I add the directory to Chia Plot Status it doesn't recognize any plots. Do I have to wait for the plot to finish to show in Chia Plot Status?
They changed the log format a bit. Update Chia Plot Status.
Thanks so much. It works now. I will monitor it and report back if anything breaks.
So 1 plot finished and the next one started, but it uses the same log file to append and no new entry appears in Chia Plot Status.
There was a bug. Please update and try again.
Hello, could you help to get a log from 0.0.2 alpha for Windows?
@Isking007 take the same command you are currently using and just add 2>&1 | % ToString | Tee-Object -FilePath "C:\Users\$env:UserName\.chia\mainnet\plotter\$([GUID]::NewGUID().ToString('D')).log"
at the end.
Note: it starts with a whitespace.
@grayfallstown thanks, guid of which disk i need?
The $([GUID]::NewGUID().ToString('D'))
part is a command that creates a random ID for the log file. Leave it unchanged. Nothing needs to be replaced.
@Isking007 take the same command you are currently using and just add
2>&1 | % ToString | Tee-Object -FilePath "C:\Users\$env:UserName\.chia\mainnet\plotter\$([GUID]::NewGUID().ToString('D')).log"
at the end. Note: it starts with a whitespace.
i have this error:
"%" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable.
what i need to do or install?
@Hatt3rPi make sure you use powershell and not cmd.
Hi! I am getting this error when ~$ ./run-chia-plotter.sh
./run-chia-plotter.sh: line 5: /home/mk/chia-plotter/build2/chia_plot: No such file or directory
Can you help me please?
Hi! I am getting this error when ~$ ./run-chia-plotter.sh
./run-chia-plotter.sh: line 5: /home/mk/chia-plotter/build2/chia_plot: No such file or directory
Can you help me please?
You need to change the path /home/mk/chia-plotter/build2/chia_plot
to where your compiled chia_plot
is.
Thanks a lot!
Are these commands that needs executing in terminal? Can I please have some guidance on how to enable the logs.
# use 'chia keys show' to get this keys: export POOL_KEY="ac8e049..." export FARMER_KEY="85b956c22..." export TMP_DIR="/mnt/d/PlotTemp" export THREADS="$(expr $(nproc) / 2)" # this detects nr of threads automatically. You can simply use 'export THREADS="4"' instead ./chia_plot $POOL_KEY $FARMER_KEY $TMP_DIR $TMP_DIR $THREADS 7 2>&1 | tee "/home/$(whoami)/.chia/mainnet/plotter/chia-plotter-$(uuid).log"