1**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**
2
3[v3-docs]: ../docs.md#documentation
4
5
6# Reporting Bugs
7
8If you find bugs or documentation mistakes in the etcd project, please let us know by [opening an issue][etcd-issue]. We treat bugs and mistakes very seriously and believe no issue is too small. Before creating a bug report, please check that an issue reporting the same problem does not already exist.
9
10To make your bug report accurate and easy to understand, please try to create bug reports that are:
11
12- Specific. Include as much details as possible: which version, what environment, what configuration, etc. You can also attach etcd log (the starting log with etcd configuration is especially important).
13
14- Reproducible. Include the steps to reproduce the problem. We understand some issues might be hard to reproduce, please includes the steps that might lead to the problem. You can also attach the affected etcd data dir and stack strace to the bug report.
15
16- Isolated. Please try to isolate and reproduce the bug with minimum dependencies. It would significantly slow down the speed to fix a bug if too many dependencies are involved in a bug report. Debugging external systems that rely on etcd is out of scope, but we are happy to point you in the right direction or help you interact with etcd in the correct manner.
17
18- Unique. Do not duplicate existing bug report.
19
20- Scoped. One bug per report. Do not follow up with another bug inside one report.
21
22You might also want to read [Elika Etemad’s article on filing good bug reports][filing-good-bugs] before creating a bug report.
23
24We might ask you for further information to locate a bug. A duplicated bug report will be closed.
25
26## Frequently Asked Questions
27
28### How to get a stack trace
29
30``` bash
31$ kill -QUIT $PID
32```
33
34### How to get etcd version
35
36``` bash
37$ etcd --version
38```
39
40### How to get etcd configuration and log when it runs as systemd service ‘etcd2.service41
42``` bash
43$ sudo systemctl cat etcd2
44$ sudo journalctl -u etcd2
45```
46
47Due to an upstream systemd bug, journald may miss the last few log lines when its process exit. If journalctl tells you that etcd stops without fatal or panic message, you could try `sudo journalctl -f -t etcd2` to get full log.
48
49[etcd-issue]: https://github.com/coreos/etcd/issues/new
50[filing-good-bugs]: http://fantasai.inkedblade.net/style/talks/filing-good-bugs/
51