-
Notifications
You must be signed in to change notification settings - Fork 56
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
How to debug/troubleshoot #538
Conversation
Hi @adswa, this would be very useful! Here is a bit of text that you might consider adapting and adding somewhere to this section (not sure what the right place is): File doesn't get downloaded by
|
git-annex error |
A solution that worked once |
---|---|
Last exception was: Could not find a suitable TLS CA certificate bundle, invalid path: /etc/pki/tls/certs/ca-bundle.crt [adapters.py:cert_verify:227] |
unset environment variable CURL_CA_BUNDLE |
Permission denied when writing file | Download to a writeable file system |
That's fantastic @glatard, thank you! |
I've added your suggestion to this PR - thanks! I might integrate the "common error messages and what they mean" section into the table format. I like it a lot! |
ah, and before I forget: @all-contributors please add @glatard for content |
I've put up a pull request to add @glatard! 🎉 |
@mih, can you take a look at this if you get a chance? not urgent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thx! I made a few remarks, but feel free to ignore them.
docs/basics/101-135-help.rst
Outdated
- **info**: This log level will include reports by the program that indicate normal behavior and serve to keep you up to date about the current state of things, in additions to warning and error logging messages. | ||
- **debug**: This log level is the most useful to troubleshoot a problem, and results in DataLad telling you *absolutely everything* it possibly can. | ||
|
||
By default, the log level is set to ``warning``. Raising the log level (e.g, to ``error``) will decrease the amount of information and output you will receive, while lowering it (e.g., to ``info``) will increase it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this true? I though I still see INFO messages by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assumption is based on https://github.com/datalad/datalad/blob/dd09e4dfd7014438305daf398b833f9e03e03273/datalad/cmdline/common_args.py#L41, but I may be mistaken:
_log_level_names = ['critical', 'error', 'warning', 'info', 'debug']
log_level = (
'log-level', ('-l', '--log-level'),
dict(action=LogLevelAction,
choices=_log_level_names + [str(x) for x in range(1, 10)],
metavar="LEVEL",
default='warning',
help="""set logging verbosity level. Choose among %s. Also you can
specify an integer <10 to provide even more debugging information"""
% ', '.join(_log_level_names))
)
I'll merge this, I have removed any mention of default log levels. |
Fixes #536.
Feedback welcome. At the moment, this is an overview of logging and a hint on how to get into the debugger, and a collection of funny comics to make reading the section less dreadful 😉
Also, I found datalad/datalad#4661 while at it.