Chia-Network / chia-blockchain

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

How to fix MadMAx Plotter not installed error #13326

Closed ghost closed 1 year ago

ghost commented 2 years ago

Recently I Entered the world of Chia (I was about to Farm Chia plots after 1 weeks of wallet sync);

I am using Ubuntu-22.04 (Running Natively on a SSD) Chia Blockchain version 1.5.1 (GUI Version).

Recently I had a notification on the Ubuntu showing up a system update notification (which included an update for chia on the preview) and I updated and restarted the system. After that the Chia Blockchain started showing the MadMAx plotter was not installed when plotting a new plot.

Screenshot 2022-09-03 122327

I tried uninstalling the Chia Blockchain app and reinstalling it, and tried various command shown on the internet to install the MadMAx plotter, but I was not able to resolve it. So at last I erased my system and reinstalled the Ubuntu-22.04 again (Sync started from first) and downloaded the Chia app from official page using terminal: https://github.com/Chia-Network/chia-blockchain/wiki/INSTALL#ubuntudebian, and its the GUI Version again but the error still continuous. All the images added here are taken after fresh installation of ubuntu-22.04. The system I am using is only for chia not for any other purpose!

Terminal-1 edit

Website Links I have visited:

1) How To Install MadMAx Plotter on Ubuntu 20.04 | Incredigeek 2) 1.2.11 missing Mad Max plotter in list

I am not sure what to do, please someone help me. Thank You very much,

Eagerly Waiting for your replay,

amandobond commented 2 years ago

Ive got the same issue. Chia 1.5.1 Ubuntu 22.04.1 LTS. Madmax is installed, but it cant be operated through gui.

ghost commented 2 years ago

Ive got the same issue. Chia 1.5.1 Ubuntu 22.04.1 LTS. Madmax is installed, but it cant be operated through gui.

Thanks for your replay,

what are the other solution you have tried to resolve it. I saw few complaints on chi forum saying that they had same problem with ubuntu 18-chia v.1.3.5 and when upgraded to ubuntu 20 the problem was resolved.

Chia Forum Link: https://chiaforum.com/t/madmax-plotter-not-installed-issue/16977/4

Screenshot 2022-09-05 071616

amandobond commented 2 years ago

Hi again. After reinstalling madmax, reinstalling chia and all the shit around nothing gets better. What did work for me was deleting /opt/chia/libstdc++.so.6 So if your madmax plotter is not listed in gui in plotter menu like above try this: close chia $ cd /opt/chia/ $ sudo rm libstdc++.so.6 run chia

Good luck!

ghost commented 2 years ago

Thanks, I will try and let you know

ChiaMineJP commented 2 years ago

Hi, thanks for reporting the issue. I've confirmed this is reproducible on my Ubuntu 22 environment.

The error comes from this line: https://github.com/Chia-Network/chia-blockchain/blob/1.5.1/chia/plotters/madmax.py#L50

When chia tries to check madmax version by /usr/lib/chia-blockchain/resources/app.asar.unpacked/daemon/madmax/chia_plot --version it seems it returns non-zero as return code. You can see error logs by grep 'madmax' ${CHIA_ROOT-"$HOME/.chia/mainnet/log/debug.log"}

I tried to run the above command in my bash terminal and it returns 0 as return code. I'm investigating the root cause as to what makes it return non-zero return code when it is invoked in a context of chia services.

ChiaMineJP commented 2 years ago

I manged to capture stderr from madmax. image

/opt/chia/resources/app.asar.unpacked/daemon/madmax/chia_plot: /opt/chia/resources/app.asar.unpacked/daemon/libstdc++.so.6: version 'GLIBCXX_3.4.26' not found (required by /opt/chia/resources/app.asar.unpacked/daemon/madmax/chia_plot)

ghost commented 2 years ago

Hi again. After reinstalling madmax, reinstalling chia and all the shit around nothing gets better. What did work for me was deleting /opt/chia/libstdc++.so.6 So if your madmax plotter is not listed in gui in plotter menu like above try this: close chia $ cd /opt/chia/ $ sudo rm chia/libstdc++.so.6 run chia

Good luck!

Hey thanks for your replay and your effort, But still after trying yours's, this also showed me the same error:

Screenshot from 2022-09-10 07-56-57

ghost commented 2 years ago

Hi, thanks for reporting the issue. I've confirmed this is reproducible on my Ubuntu 22 environment.

The error comes from this line: https://github.com/Chia-Network/chia-blockchain/blob/1.5.1/chia/plotters/madmax.py#L50

When chia tries to check madmax version by /usr/lib/chia-blockchain/resources/app.asar.unpacked/daemon/madmax/chia_plot --version it seems it returns non-zero as return code. You can see error logs by grep 'madmax' ${CHIA_ROOT-"$HOME/.chia/mainnet/log/debug.log"}

I tried to run the above command in my bash terminal and it returns 0 as return code. I'm investigating the root cause as to what makes it return non-zero return code when it is invoked in a context of chia services.

Thankyou very much, I now got some hope that I can still Use Chia-GUI for farming, Eagerly waiting for you replay and solution to this problem.

ghost commented 2 years ago

I manged to capture stderr from madmax. image

/opt/chia/resources/app.asar.unpacked/daemon/madmax/chia_plot: /opt/chia/resources/app.asar.unpacked/daemon/libstdc++.so.6: version 'GLIBCXX_3.4.26' not found (required by /opt/chia/resources/app.asar.unpacked/daemon/madmax/chia_plot)

With this How am I supposed to proceed further, I think this is the same error showed up in the terminal pic.

ghost commented 2 years ago

Today morning I visited the debug.log and here are the top most error showed;

The debug.log:

1) 2022-09-04 farmer chia.farmer.farmer : WARNING No keys exist. Please run 'chia keys generate' or open the UI.

2) 2022-09-04 daemon chia.plotters.madmax : ERROR Failed to determine madmax version: Failed to call madmax with -- version option Command '['/usr/lib/chia-blockchain/resources/app.asar.unpacked/daemon/madmax/chia_plot', '--version']' returned non-zero exit status 1. Traceback (most recent call last):

This is same has you said, it is returning to " 0 " at the end, Hope this is helpful to you.

ChiaMineJP commented 2 years ago

This can make you forward but I cannot assure you that this is the final solution.

cd /usr/lib/chia-blockchain/resources/app.asar.unpacked/daemon/
sudo mv libstdc++.so.6 libstdc++.so.6.backup

The real issue might reside in chia's installer or something. Please keep this issue open.

ghost commented 2 years ago

This can make you forward but I cannot assure you that this is the final solution.

cd /usr/lib/chia-blockchain/resources/app.asar.unpacked/daemon/
sudo mv libstdc++.so.6 libstdc++.so.6.backup

The real issue might reside in chia's installer or something. Please keep this issue open.

Sure I will keep this issue opened, Can you make sure the command in the image below is not the same as you suggested

Screenshot from 2022-09-10 07-56-57

I also made a copy of this issue in the reddit, please do visit the page; https://www.reddit.com/r/chia/comments/x88p7y/how_to_fix_madmax_plotter_not_installed_error/

ChiaMineJP commented 2 years ago

Can you make sure the command in the image below is not the same as you suggested

This is almost the same. /opt/chia is just the symbolic link to /usr/lib/chia-blockchain/resources/app.asar.unpacked/daemon. Maybe he mistyped sudo rm chia/libstdc++.so.6 instead of sudo rm libstdc++.so.6.

Also my version doesn't delete libstdc++.so.6 and just renamed it because it is more useful to be able to restore libstdc++.so.6.

ghost commented 2 years ago

Can you make sure the command in the image below is not the same as you suggested

This is almost the same. /opt/chia is just the symbolic link to /usr/lib/chia-blockchain/resources/app.asar.unpacked/daemon. Maybe he mistyped sudo rm chia/libstdc++.so.6 instead of sudo rm libstdc++.so.6.

Also my version doesn't delete libstdc++.so.6 and just renamed it because it is more useful to be able to restore libstdc++.so.6.

Thanks, Ok then I will try yours's and let you know the result in a while

ChiaMineJP commented 2 years ago

Relevant issue: https://github.com/Chia-Network/chia-blockchain/issues/13242

ghost commented 2 years ago

Relevant issue: #13242

Noted

amandobond commented 2 years ago

Thanks. My bad. I`ve already updated wrong comment.

ghost commented 2 years ago

@ChiaMineJP, and @amandobond, etc.

Thankyou very much my problem has resolved. Now I am to see the madmax plotter. Hope it is the same version as yours.

I used the flowing command: cd /usr/lib/chia-blockchain/resources/app.asar.unpacked/daemon/ sudo mv libstdc++.so.6 libstdc++.so.6.backup

Screenshot from 2022-09-10 18-57-35

I still have one more request, will I be able to take backup of my wallet sync (db) ??; Because I would like to farm on a separate device which has ubuntu-22.04 loaded and reinstall (flash) ubuntu-22.04 on my current device, and if I had the backup of the current sync I no need to wait for another 3 days for db sync and then to plot or farm. If it is possible please let me know how to.

Once again thank you so much.

ChiaMineJP commented 2 years ago

If you haven't set CHIA_ROOT, all your user data is stored under $HOME/.chia/mainnet (on Ubuntu). Typically just copying the folder into new machine to the same location works, but please be sure to take a backup when all of chia services stop. Since chatting another topic here would make it difficult for future readers to follow, I'll leave from this topic for now.

amandobond commented 2 years ago

After updating Chia to 1.6.0 same thing happened (Mad Max not listed in gui). Removing libstdc++.so.6 still do the job.

emlowe commented 1 year ago

Closing issue as this is a duplicate of #13242