Chia-Network / chia-blockchain

Chia blockchain python implementation (full node, farmer, harvester, timelord, and wallet)
Apache License 2.0
10.83k stars 2.03k forks source link

Pi4 not connecting and sync #9497

Closed Stepyon closed 2 years ago

Stepyon commented 2 years ago

What happened? Pi 4 8gb running latest GUI ubuntu mate 20.04.3 LTS (Focal Fossa).

After reboot can't connect and sync anymore. Tried to re-install, reboot, didn't help.

Chia version 1.2.11 GUI

See log screenshots attached. chia_log chia_gui

jordanbray commented 2 years ago

To my eyes, this looks like a bug here: https://github.com/Chia-Network/chia-blockchain/blob/main/chia/plotters/madmax.py#L59

version must be set to None before the try.

From a support perspective, it seems like your chia instance can find madmax, but it cannot run it, which is causing problems. You could frankly delete it by my read of the code, more sensibly check to make sure you can run the executable. You should be able to find it with a find ./ | grep madmax-plotter/build/chia_plot, and try to run the command the_folder/madmax-plotter/build/chia-plot --version and see what it puts out.

Once you have confirmed you cannot run it (we have correctly identified the problem, yay!), I would try to rebuild it following the instructions in the madmax-plotter folder.

Stepyon commented 2 years ago

To my eyes, this looks like a bug here: https://github.com/Chia-Network/chia-blockchain/blob/main/chia/plotters/madmax.py#L59

version must be set to None before the try.

From a support perspective, it seems like your chia instance can find madmax, but it cannot run it, which is causing problems. You could frankly delete it by my read of the code, more sensibly check to make sure you can run the executable. You should be able to find it with a find ./ | grep madmax-plotter/build/chia_plot, and try to run the command the_folder/madmax-plotter/build/chia-plot --version and see what it puts out.

Once you have confirmed you cannot run it (we have correctly identified the problem, yay!), I would try to rebuild it following the instructions in the madmax-plotter folder.

I didn't compile it from the sources, I used GUI installer. The only madmax folder I found is /lib/chia-blockchain/resources/app.asar.unpacked/daemon/madmaxthere are 2 files: chia_plot and chia_plot_k34 I tried to update them with 777 permission but it didn't help and I still see the same error. Also on Add Plot -> Choose plotter tab I don't see madmax available like I have it on widows machine chia_plots .

jordanbray commented 2 years ago

Can you try running that chia_plot with chia_plot --version and see what it spits out?

Stepyon commented 2 years ago

Can you try running that chia_plot with chia_plot --version and see what it spits out? chia_plot

loppefaaret commented 2 years ago

try doing ./chia_plot --version while in that folder

Stepyon commented 2 years ago

chia_plot

jordanbray commented 2 years ago

Are you certain there is no other chia_plot executable on the system? By my read of the code, the software must have found one in a build folder

Stepyon commented 2 years ago

Are you certain there is no other chia_plot executable on the system? By my read of the code, the software must have found one in a build folder

Which build folder? Screenshot_20211208-033926__01

Stepyon commented 2 years ago

The madmax issue was not related to sync and connection problem. I installed previous version which has no madmax and it also could not connect, just stuck with progress bars, there was nothing in the log file. So what I did is removed the blockchain database (.chia/mainnet/db folder) and it connected to the peers and started to sync. Then I installed the latest version again, copied the database from another machine and now it works. It still throwing the same madmax error and doesn't show madmax in the dropbox but I don't need it to farm on Pi4 anyway.

loppefaaret commented 2 years ago

so on that note, closing issue