Open NicodemPL opened 3 years ago
Try the installation instructions again with @development
instead of @main
. There are fixes that are likely related to your issue. Let us know if that solves it for you.
Done reinstall - goes into stagger so looks promising now, thanks!
Nope, still same issue. I had to restart this PC and even when I try to reinstall now into development - got same 20s issue.
having the same issue
What do you get for plotman status
output? Please share that along with the output of whatever you use to plot, interactive
or plot
, as well as ps aux | grep 'plots create'
. Also explain what version you are using by way of how you installed it.
Have either of you installed chia using the .deb
experimental GUI installer? If so then https://github.com/ericaltendorf/plotman/pull/418 may be relevant. You could try it out by following the regular readme installation but use git+https://github.com/altendky/plotman@skip_matching_plot_process_parents
as the url.
Sorry for the trouble.
Plotman status has the words categories written, but no plot being recorder under. Same as in the interactive menu, It tries to plot, but then disappears. I am a newby at plotting so i followed the interactive guide https://www.youtube.com/watch?v=cahPECwVN78, I did everything this guy did in his video, just I wasn't sure if my keys where correct or if I need them at all. I can plot using the gui, but every single time I try to use plotman it doesnt work
Mine installation was done via .deb GUI experimental installer. All upgrades goes via this since then. I do not want to mess with another installation. Will try to poke with yours suggestions during weekend, currently plottin fully manual.
On Fri, May 14, 2021 at 5:48 AM Kyle Altendorf @.***> wrote:
What do you get for plotman status output? Please share that along with the output of whatever you use to plot, interactive or plot, as well as ps aux | grep 'plots create'. Also explain what version you are using by way of how you installed it.
Have either of you installed chia using the .deb experimental GUI installer? If so then #418 https://github.com/ericaltendorf/plotman/pull/418 may be relevant. You could try it out by following the regular readme installation but use git+ @.***_matching_plot_process_parents as the url.
Sorry for the trouble.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ericaltendorf/plotman/issues/316#issuecomment-840985592, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKYUMGMV543GD3STPCE5PO3TNSMRNANCNFSM44RTA7NA .
Hey there,
I'm also seeing this issue. I installed chia from the instructions on their github. I am running FreeBSD 12.2p4, running chia in a jail; I am also using the development build as was suggested.
I did a small amount of digging around, but I wasn't able to find much. Here is my config:
When starting via plotman plot
or plotman interactive
, it continually creates plots every 20 seconds (when I had it set to a different dir):
(venv) [plotter@chia-plotter ~/chia-blockchain]$ plotman plot
...starting plot loop
...sleeping 20 s: (True, 'Starting plot job: chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots ; logging to /home/plotter/.chia/logs/2021-05-20T22_38_18.205115-07_00.log')
...sleeping 20 s: (True, 'Starting plot job: chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots ; logging to /home/plotter/.chia/logs/2021-05-20T22_38_38.213755-07_00.log')
...sleeping 20 s: (True, 'Starting plot job: chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots ; logging to /home/plotter/.chia/logs/2021-05-20T22_38_58.508263-07_00.log')
...sleeping 20 s: (True, 'Starting plot job: chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots ; logging to /home/plotter/.chia/logs/2021-05-20T22_39_18.546730-07_00.log')
...sleeping 20 s: (True, 'Starting plot job: chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots ; logging to /home/plotter/.chia/logs/2021-05-20T22_39_38.558798-07_00.log')
...sleeping 20 s: (True, 'Starting plot job: chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots ; logging to /home/plotter/.chia/logs/2021-05-20T22_39_58.570581-07_00.log')
^[[6~^[[B^[[B...sleeping 20 s: (True, 'Starting plot job: chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots ; logging to /home/plotter/.chia/logs/2021-05-20T22_40_18.584677-07_00.log')
^CTraceback (most recent call last):
File "/usr/home/plotter/chia-blockchain/venv/bin/plotman", line 8, in <module>
sys.exit(main())
File "/usr/home/plotter/chia-blockchain/venv/lib/python3.7/site-packages/plotman/plotman.py", line 151, in main
time.sleep(cfg.scheduling.polling_time_s)
KeyboardInterrupt
Here's a ps
output:
(venv) [plotter@chia-plotter ~/chia-blockchain]$ ps aux | grep plots
plotter 9580 75.7 0.2 278244 254376 - INsJ 22:38 3:50.19 /usr/home/plotter/chia-blockchain/venv/bin/python /usr/home/plotter/chia-blockchain/venv/bin/chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots (python3.7)
plotter 10086 73.8 0.2 278212 254432 - INsJ 22:39 1:48.63 /usr/home/plotter/chia-blockchain/venv/bin/python /usr/home/plotter/chia-blockchain/venv/bin/chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots (python3.7)
plotter 9778 72.5 0.2 278212 254416 - INsJ 22:38 3:00.57 /usr/home/plotter/chia-blockchain/venv/bin/python /usr/home/plotter/chia-blockchain/venv/bin/chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots (python3.7)
plotter 9982 72.0 0.2 278212 254420 - INsJ 22:39 2:12.05 /usr/home/plotter/chia-blockchain/venv/bin/python /usr/home/plotter/chia-blockchain/venv/bin/chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots (python3.7)
plotter 9677 70.3 0.2 278212 254436 - INsJ 22:38 3:25.46 /usr/home/plotter/chia-blockchain/venv/bin/python /usr/home/plotter/chia-blockchain/venv/bin/chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots (python3.7)
plotter 9878 69.1 0.2 278244 254424 - INsJ 22:39 2:36.54 /usr/home/plotter/chia-blockchain/venv/bin/python /usr/home/plotter/chia-blockchain/venv/bin/chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots (python3.7)
plotter 10198 68.5 0.2 278024 254232 - INsJ 22:40 1:24.20 /usr/home/plotter/chia-blockchain/venv/bin/python /usr/home/plotter/chia-blockchain/venv/bin/chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots (python3.7)
plotter 10346 62.1 0.2 278200 254428 - INsJ 22:41 0:21.07 /usr/home/plotter/chia-blockchain/venv/bin/python /usr/home/plotter/chia-blockchain/venv/bin/chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots (python3.7)
plotter 10460 46.4 0.2 278244 254424 - SNsJ 22:41 0:06.14 /usr/home/plotter/chia-blockchain/venv/bin/python /usr/home/plotter/chia-blockchain/venv/bin/chia plots create -k 32 -r 4 -u 128 -b 4400 -t /chiatmp -d /plots (python3.7)
plotter 10544 0.0 0.0 11296 2608 1 S+J 22:41 0:00.00 grep plots
I see the logs being created, and the plot is being farmed just fine, but nothing shows up in plotman status
or in interactive, and plot creation keeps happening forever.
I poked around with psutil
in a python shell, and from what I saw, it should work just fine with parse_chia_plots_create_command_line
;
>>> for proc in psutil.process_iter(['pid', 'cmdline']):
... print( proc.cmdline() )
...
...skipped a bunch of unrelated things ...
['/usr/home/plotter/chia-blockchain/venv/bin/python', '/usr/home/plotter/chia-blockchain/venv/bin/chia', 'plots', 'create', '-k', '32', '-r', '4', '-u', '128', '-b', '4400', '-t', '/chiatmp', '-d', '/plots']
['/usr/home/plotter/chia-blockchain/venv/bin/python', '/usr/home/plotter/chia-blockchain/venv/bin/chia', 'plots', 'create', '-k', '32', '-r', '4', '-u', '128', '-b', '4400', '-t', '/chiatmp', '-d', '/plots']
['python3.7']
>>>
I'm not sure what else to check, though. Let me know if I can provide any more logs, debug output, etc!
Edit; I couldn't help myself and did some print() debugging, and found out self.proc.cwd()
is failing when creating a new Job object...
>>> p = psutil.Process(pid=14146)
>>> p
psutil.Process(pid=14146, name='python3.7', status='sleeping', started='23:22:30')
>>> p.cwd()
Traceback (most recent call last):
File "/usr/home/plotter/chia-blockchain/venv/lib/python3.7/site-packages/psutil/_psbsd.py", line 550, in wrapper
return fun(self, *args, **kwargs)
File "/usr/home/plotter/chia-blockchain/venv/lib/python3.7/site-packages/psutil/_psbsd.py", line 832, in cwd
return cext.proc_cwd(self.pid) or None
PermissionError: [Errno 1] Operation not permitted (originated from kinfo_getfile())
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/home/plotter/chia-blockchain/venv/lib/python3.7/site-packages/psutil/__init__.py", line 715, in cwd
return self._proc.cwd()
File "/usr/home/plotter/chia-blockchain/venv/lib/python3.7/site-packages/psutil/_psbsd.py", line 557, in wrapper
raise AccessDenied(self.pid, self._name)
psutil.AccessDenied: psutil.AccessDenied (pid=14146, name='python3.7')
However, if I do the same thing as root, it works... so there must be something stopping that..
Okay, I fixed it, for FreeBSD. It turns out that you need to twist a sysctl knob in order to have non-privileged users get a process' CWD (as well as some other info). As root, run sysctl security.bsd.unprivileged_proc_debug=1
and then also slap 'security.bsd.unprivileged_proc_debug=1' in your /etc/sysctl.conf - and it works now!!
plot id k tmp dst wall phase tmp pid stat mem user sys io
4518e539 32 /chiatmp /plots 0:40 1:3 114G 14503 SLP 5.8G 1:17 0:02 -
4144c410 32 /chiatmp /plots 0:44 1:3 124G 14146 SLP 5.8G 1:25 0:02 -
Total jobs: 2
Jobs in /chiatmp: 2
Hi, I got huge problem with launching properly my plotman. Once I use plotman plot got this strange behaviour:
And it goes to loop - starts new process every 20 seconds. I have to Ctrl-C this and got such info:
While ps ax | grep chia shows bunch of jobs started:
Any idea what is wrong?