-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.5.2 breaks with config file used in v0.5.1 #925
Comments
(as discussed in keybase, but documenting here) I thought plotman intended to create those directories if needed, but I need to look back at that. In this case, you want to add a This addressed their immediate issue. The next issue is being addressed in #926. |
can anyone spell the solution out to me like I'm a 5yo? Appreciated :) I make a new entry logging: in plotman.yaml? And same for disk_spaces? What values do they get? |
When dealing with the config file it is always best to share your full file so we can provide the most direct help. Also, your exact error. If you have specified other logging directories in your config then you would add a logging:
# One directory in which to store all plot job logs (the STDOUT/
# STDERR of all plot jobs). In order to monitor progress, plotman
# reads these logs on a regular basis, so using a fast drive is
# recommended.
plots: /home/jh/plotmanlogs/plots
transfers: /home/jh/plotmanlogs/transfers
application: /home/jh/plotmanlogs/plotman.log
disk_spaces: /home/jh/plotmanlogs/disk_spaces.log If you have not specified other logging paths then create the directory (not the file) that was listed in the error. If this doesn't help, please share your full config and the prompt, command, and output for the error. Then we can provide more explicit instructions for your case. |
I had the exact same error, also after updating. Otherwise plotman will throw an error that a folder was specified instead of a log file. |
Describe the bug
To Reproduce
Steps to reproduce the behavior, e.g.:
$ plotman archive
Traceback (most recent call last):
File "/home/jh/chia-blockchain/venv/bin/plotman", line 8, in
sys.exit(main())
File "/home/jh/chia-blockchain/venv/lib/python3.8/site-packages/plotman/plotman.py", line 259, in main
disk_space_handler = logging.handlers.RotatingFileHandler(
File "/usr/lib/python3.8/logging/handlers.py", line 148, in init
BaseRotatingHandler.init(self, filename, mode, encoding, delay)
File "/usr/lib/python3.8/logging/handlers.py", line 55, in init
logging.FileHandler.init(self, filename, mode, encoding, delay)
File "/usr/lib/python3.8/logging/init.py", line 1147, in init
StreamHandler.init(self, self._open())
File "/usr/lib/python3.8/logging/init.py", line 1176, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/home/jh/.cache/plotman/log/plotman-disk_spaces.log'
Expected behavior
System setup:
Config
full configuration
The text was updated successfully, but these errors were encountered: