Whether you use the Windows or the Linux client chia does log locally by default. It can be handy if you want to check what’s going on under the hood or especially when something is broken. When you are troubleshooting, you need as much information as possible so setting INFO level logging is probably a good advice for anyone even if things are working smoothly at the moment.
Open the following file in notepad (I like notepad++):
C:\Users\.chia\mainnet\config\config.yaml
Be careful modifying other things in the file, at a later time I write a post about it. For now goto the following line:
log_level = WARNING
Change “WARNING” to “INFO”. To pick up the changes you need to restart your client. As I tend to minimize the unplanned downtime of my system I usually due other things like, install upgrades (Windows and chia) and always reboot the system to get back to a clean state.
Once your system is back, you will see that chia starts writing logs to the below file:
C:\Users\.chia\mainnet\log\debug.log
Logs are rotated so you will see multiple files under \log\ directory, don’t worry it’s normal.
Where is the log located in Linux? Thank you!
It should be in the user’s directory who runs chia, e.g. /home/$user/.chia/mainnet/log
Just a note, if you have this file .__debug.lock do not have logs, remove it and you will get your logs back!
Seems like you had some stuck processes keep writing to the log file. Check your task manager / processes to make sure there is nothing running from the “previous” execution.
Yes, true, remove the file .__debug.lock and logs will be visible from GUI, near each plot. BUT, where are they stored ?
1) C:\Users\your_username\.chia\mainnet\log\ and the plotter logs are under C:\Users\your_username\.chia\mainnet\plotter but these are just the logs for the given plot.
Thank-you. But under the first dir there is only the file debug.log and under the second there are only .txt files, My problem is that with the command “plotman plot” it ask me the position of .log files…
….seen now.. :-))
But now, another issue when starting with command “plotman plot”:
Traceback (most recent call last):
File “/usr/local/bin/plotman”, line 8, in
sys.exit(main())
File “/usr/local/lib/python3.8/dist-packages/plotman/plotman.py”, line 145, in main
wait_reason = manager.maybe_start_new_plot(cfg.directories, cfg.scheduling, cfg.plotting)
File “/usr/local/lib/python3.8/dist-packages/plotman/manager.py”, line 163, in maybe_start_new_plot
p = subprocess.Popen(plot_args,
File “/usr/lib/python3.8/subprocess.py”, line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/lib/python3.8/subprocess.py”, line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘chia’
I am sorry I have never used plotman but based on the error message: “FileNotFoundError: [Errno 2] No such file or directory: ‘chia’” It seems like some files, probably the config is not at the right location. So worth double checking.
Spot on with this write-up, I really believe this site needs
a lot more attention. I’ll probably be returning to
read more, thanks for the information!
Thanks, been quite for a while but soon will be back with some fresh new topics.
constantly i used to read smaller posts that as well clear their motive, and that is
also happening with this post which I am reading here.
Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically
tweet my newest twitter updates. I’ve been looking for a
plug-in like this for quite some time and was hoping maybe you would
have some experience with something like this. Please let me know if you
run into anything. I truly enjoy reading your blog and I look forward to your new updates.
I’ll immediately seize your rss feed as I can not to find your email subscription hyperlink or newsletter service.
Do you’ve any? Kindly let me understand so that I may subscribe.
Thanks.
I do, it’s at the bottom of the page.