question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Looking for log that doesn't exist

See original GitHub issue
Traceback (most recent call last):
  File "/home/moechenche/.local/lib/python3.8/site-packages/plotman/manager.py", line 135, in maybe_start_new_plot
    open_log_file = open(logfile, 'x')
FileNotFoundError: [Errno 2] No such file or directory: '/home/chia/chia/logs/2021-05-18T14_41_34.078026-05_00.log'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/moechenche/.local/bin/plotman", line 8, in <module>
    sys.exit(main())
  File "/home/moechenche/.local/lib/python3.8/site-packages/plotman/plotman.py", line 173, in main
    interactive.run_interactive()
  File "/home/moechenche/.local/lib/python3.8/site-packages/plotman/interactive.py", line 334, in run_interactive
    curses.wrapper(curses_main)
  File "/usr/lib/python3.8/curses/__init__.py", line 105, in wrapper
    return func(stdscr, *args, **kwds)
  File "/home/moechenche/.local/lib/python3.8/site-packages/plotman/interactive.py", line 117, in curses_main
    (started, msg) = manager.maybe_start_new_plot(
  File "/home/moechenche/.local/lib/python3.8/site-packages/plotman/manager.py", line 153, in maybe_start_new_plot
    raise Exception(message) from e
Exception: Unable to open log file.  Verify that the directory exists and has proper write permissions: '/home/chia/chia/logs/2021-05-18T14_41_34.078026-05_00.log'

That .log file doesn’t exist anywhere on my computer. Why is plotman looking for it? How do I stop it from looking for it? I’ve tried changing log folder locations and even reinstalled plotman. This Bug won’t go away

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
Elbers60commented, May 19, 2021

it’s the log file in the plotman.config file you can change it to another location, but you need make the log directory. It’s not very clear in the instructions. make the log file something like

/home/usr/plotmanlog 

then open another terminal and type

mkdir /home/usr/plotmanlog
chmod 777 /home/usr/plotmanlog

I am sure there’s a simpler way to make it work from your position, but this is how I made it work after struggling with the same error.

0reactions
moechenchecommented, May 27, 2021

Problem I had is that the directory was created and I gave it permission to write to it

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Log file doesn't exist"? · Issue #332 · major/MySQLTuner-perl
After pulling PR #346 my custom log_error path from my.cnf is not detected anymore and script is only looking in default path /var/lib/mysql/ ......
Read more >
Python logging: create log if not exists or open and continue ...
I'm writing some code that uses the python logging system. The idea is that if the LOG doesn't already exist create the log...
Read more >
Fix "Log group does not exist" for Lambda logs in CloudWatch
When I try to view logs for my AWS Lambda function in the Amazon CloudWatch console, I get a "Log group does not...
Read more >
SCCM 2012 ccm.log doesn't exist - TechNet - Microsoft
I am trying to push the client to some test machines and i'm trying to monitor the progress but there is nothing in...
Read more >
error log: database table does not exist - WordPress.org
Hello, I am seeing lots of the same entries in error log for wp_cleantalk_sfw_logs. And yes, the table actually does not exist. Any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found