Skip to content

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

@jayhohoho2019

Description

@jayhohoho2019

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.  

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions