Chia-Plot-Status icon indicating copy to clipboard operation
Chia-Plot-Status copied to clipboard

Getting Log Files from madMAx43v3r/chia-plotter

Open cyperbg opened this issue 3 years ago • 18 comments

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"

cyperbg avatar Jun 11 '21 06:06 cyperbg

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

grayfallstown avatar Jun 11 '21 06:06 grayfallstown

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?

cyperbg avatar Jun 11 '21 07:06 cyperbg

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/.

grayfallstown avatar Jun 11 '21 07:06 grayfallstown

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

cyperbg avatar Jun 11 '21 07:06 cyperbg

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?

cyperbg avatar Jun 11 '21 07:06 cyperbg

They changed the log format a bit. Update Chia Plot Status.

grayfallstown avatar Jun 11 '21 07:06 grayfallstown

Thanks so much. It works now. I will monitor it and report back if anything breaks.

cyperbg avatar Jun 11 '21 08:06 cyperbg

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.

cyperbg avatar Jun 11 '21 08:06 cyperbg

There was a bug. Please update and try again.

grayfallstown avatar Jun 11 '21 09:06 grayfallstown

Hello, could you help to get a log from 0.0.2 alpha for Windows?

Isking007 avatar Jun 11 '21 17:06 Isking007

@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 avatar Jun 11 '21 17:06 grayfallstown

@grayfallstown thanks, guid of which disk i need?

Isking007 avatar Jun 11 '21 18:06 Isking007

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.

grayfallstown avatar Jun 11 '21 18:06 grayfallstown

@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 avatar Jun 12 '21 23:06 Hatt3rPi

@Hatt3rPi make sure you use powershell and not cmd.

grayfallstown avatar Jun 13 '21 06:06 grayfallstown

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?

NotoXD avatar Aug 07 '21 17:08 NotoXD

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.

grayfallstown avatar Aug 07 '21 17:08 grayfallstown

Thanks a lot!

NotoXD avatar Aug 07 '21 18:08 NotoXD