Skip to content
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

Open
jayhohoho2019 opened this issue Sep 13, 2021 · 4 comments
Open

v0.5.2 breaks with config file used in v0.5.1 #925

jayhohoho2019 opened this issue Sep 13, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@jayhohoho2019
Copy link

Describe the bug

To Reproduce

Steps to reproduce the behavior, e.g.:

  1. Set up config with '...'
  2. Run other programs '....'
  3. Run Plotman with '....'
  4. See error
    $ 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:

  • OS: Ubuntu Server 20.04.3
  • Method of archiving: rsync/rsyncd

Config

full configuration
# paste your complete configuration file contents here.
# Default/example plotman.yaml configuration file

# https://github.com/ericaltendorf/plotman/wiki/Configuration#versions
version: [2]

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


</details>

**Additional context & screenshots**
Note I'm only running "plotman archive" with screen.  Not using interactive, or for plotting.  
@jayhohoho2019 jayhohoho2019 added the bug Something isn't working label Sep 13, 2021
@altendky
Copy link
Collaborator

(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 logging: disk_spaces: config entry for the new disk space check logs.

This addressed their immediate issue. The next issue is being addressed in #926.

@realdevnullius
Copy link

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?

@altendky
Copy link
Collaborator

altendky commented Sep 14, 2021

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 disk_spaces: entry as below and make sure the directory you configure exists.

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.

@realdevnullius
Copy link

realdevnullius commented Sep 16, 2021

I had the exact same error, also after updating.
Solution for me was adding the following line, including a file:
disk_spaces: /home/jh/plotmanlogs/disk_spaces/diskspaces.log

Otherwise plotman will throw an error that a folder was specified instead of a log file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants