maded2 / plotng

PlotNG - plotting utility for Chia.Net
Apache License 2.0
128 stars 24 forks source link

Failed to start chia command: fork/exec /madmax: permission denied #85

Closed RowboTony closed 3 years ago

RowboTony commented 3 years ago

Hi, I've been using plotng successfully for a few weeks (it's awesome, thanks!). MadMax (MMP) also works properly via CLI when I execute it alone with ./chia_plot etc... but the two aren't working together. The Chia venv is loaded properly, I've tried changing the config to point to the Chia binaries, but either way the same error results.

With the latest plotng version 0.23 - the following error is happening no matter what permissions I set on the MadMax files and directories, I've also set /madmax in /usr/local/bin and my own home ~/ directory to eliminate the possibility that it's a user permissions issue, it's all 0777, so it should be executable for any user.

Failed to start chia command: fork/exec /madmax: permission denied

To summarize - MMP works on it's own, plotng works on it's own with the Chia venv loaded, but they're not working together. Any ideas?

Don't laugh too much at my old hardware, it still works! :)

Thanks! --Tony

(venv) chiauser@chiaplotter:~/plotng$ ./plotng-server -config config.json
2021/06/11 14:32:06 New configuration loaded
2021-06-11 14:32:06, 1 Active Plots
Plot [] - Running, Phase: NA , Start Time: 0001-01-01 00:00:00, Duration: 2562047:47:16, Tmp Dir: /chiafarm/temp, Dst Dir: /chiafarm/chiaplots

2021/06/11 14:32:06 Failed to start chia command: fork/exec /madmax: permission denied

(venv) chiauser@chiaplotter:~/plotng$ ls -al /madmax/
total 98636
drwxrwxrwx  9 chiauser chiauser     4096 Jun 11 14:31 ./
drwxr-xr-x 22 root   root       4096 Jun 11 14:31 ../
-rwxrwxrwx  1 chiauser chiauser  1603992 Jun 11 14:31 check_phase_1*
-rwxrwxrwx  1 chiauser chiauser 46012648 Jun 11 14:31 chia_plot*
-rwxrwxrwx  1 chiauser chiauser    25039 Jun 11 14:31 CMakeCache.txt*
drwxrwxrwx 16 chiauser chiauser     4096 Jun 11 14:31 CMakeFiles/
-rwxrwxrwx  1 chiauser chiauser     1683 Jun 11 14:31 cmake_install.cmake*
drwxrwxrwx  5 chiauser chiauser     4096 Jun 11 14:31 _deps/
drwxrwxrwx  3 chiauser chiauser     4096 Jun 11 14:31 lib/
-rwxrwxrwx  1 chiauser chiauser   221818 Jun 11 14:31 libblake3.a*
-rwxrwxrwx  1 chiauser chiauser  7103232 Jun 11 14:31 libbls.a*
-rwxrwxrwx  1 chiauser chiauser    10468 Jun 11 14:31 libchia_plotter.a*
-rwxrwxrwx  1 chiauser chiauser    45162 Jun 11 14:31 libfse.a*
-rwxrwxrwx  1 chiauser chiauser    30328 Jun 11 14:31 Makefile*
drwxrwxrwx  2 chiauser chiauser     4096 Jun 11 14:31 object_blstmp/
drwxrwxrwx  2 chiauser chiauser    20480 Jun 11 14:31 object_gmp/
drwxrwxrwx  2 chiauser chiauser    12288 Jun 11 14:31 object_relic_s/
drwxrwxrwx  2 chiauser chiauser    12288 Jun 11 14:31 object_sodium/
-rwxrwxrwx  1 chiauser chiauser   211328 Jun 11 14:31 test_copy*
-rwxrwxrwx  1 chiauser chiauser  2824512 Jun 11 14:31 test_disk_sort*
-rwxrwxrwx  1 chiauser chiauser 21735480 Jun 11 14:31 test_phase_1*
-rwxrwxrwx  1 chiauser chiauser  4797608 Jun 11 14:31 test_phase_2*
-rwxrwxrwx  1 chiauser chiauser 12352824 Jun 11 14:31 test_phase_3*
-rwxrwxrwx  1 chiauser chiauser  3923448 Jun 11 14:31 test_phase_4*

My plotng config:

{
  "Fingerprint": "_my_finger_print_",
  "FarmerPublicKey": "_my_farmer_key_",
  "PoolPublicKey": "_my_pool_key_",
  "Threads": 0,
  "Buffers": 5085,
  "DisableBitField": false,
  "NumberOfParallelPlots": 1,
  "TempDirectory": ["/chiafarm/temp"],
  "TargetDirectory": ["/chiafarm/chiaplots"],
  "StaggeringDelay": 5,
  "ShowPlotLog": true,
  "DiskSpaceCheck": false,
  "DelaysBetweenPlot": 0,
  "MaxActivePlotPerTarget": 1,
  "MaxActivePlotPerTemp": 1,
  "MaxActivePlotPerPhase1": 1,
  "UseTargetForTmp2": false,
  "BucketSize": 0,
  "SavePlotLogDir": "/chiafarm/plotlogs",
  "PlotSize": 32,
  "ChiaRoot": "",
  "MadMaxPlotter": "/madmax"
}
RowboTony commented 3 years ago

Fixed my own issue, apparently I need the path directly to the MadMax executable (I thought it was just to the directory), so changing this in my config seems to have fixed the issue!

--Tony

"MadMaxPlotter": "/madmax/chia_plot"