summaryrefslogtreecommitdiff
path: root/manual/en/140-troubleshooting.mdwn
blob: 85a297ccaeb588041537af78f83de7323259c786 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Troubleshooting
===============

This chapter discusses how to debug problems with Obnam. It covers
things such as log files, various levels of logging and tracing, and
common problems with Obnam use. It also explains what things go where
in an Obnam backup repository.


Reporting problems ("bugs")
---------------------------

If you have a problem with Obnam, and you want to report it (please
do!), including the following information is helpful and makes it
easier to figure out what the problem is.

* You should report problems to the `obnam-support@obnam.org` mailing
  list. This is a publically archived mailing list where various
  people help others use Obnam.

* What is the problem? What did you try to achieve? What actually
  happened?

* The version of Obnam and Larch you're using, and how you installed
  it.
    - On Debian, run `dpkg -l obnam python-larch` on the command line
      and include the output.

* The exact command line you used. Copy-paste it instead of
  typing it again into the mail. Sometimes the problem can be hidden
  if you don't copy the command line exactly. Also, copying by typing
  is boring, and we should avoid boring things in life.

* If there's an error message, copy-paste that into the mail.

* The output of `obnam --dump-config`, which includes the full
  configuration. Include it as an attachment to your mail to
  `obnam-support`. If you have some secret information, such as
  filenames or hostnames, you can replace those with XXXX.

* If you can reproduce the problem while running with
  `--log-level=debug`, `--log=obnam.log` and `--trace=obnamlib`
  options, include a suitable amount from the end of the log file. The
  suitable amount may depend on the situation, but if you give the
  last two hundred lines, and it's not enough, we'll ask for more.
  Again, feel free to replace any sensitive filenames, etc, with XXXX.

* The output of the `env` command, in the same terminal window in
  which you ran Obnam. (Again, as an attachment.)

* If your bug is about performance, please run Obnam under profiling,
  and attach the profiling file. To run Obnam under profiling, install
  the Python profile (`python-profiler` package in Debian/Ubuntu), and
  set the `OBNAM_PROFILE` environment variable to the name of the file
  with the profiling output (that's the file you should send by mail).
  For example: `OBNAM_PROFILE=obnam.prof obnam backup` would run the
  backup under the profiler, and write the result to `obnam.prof`.

Thank you for your help in making Obnam better.