code.gitea.io/gitea@v1.22.3/docs/content/help/support.zh-cn.md (about)

     1  ---
     2  date: "2017-01-20T15:00:00+08:00"
     3  title: "需要帮助"
     4  slug: "support"
     5  sidebar_position: 20
     6  toc: false
     7  draft: false
     8  aliases:
     9    - /zh-cn/seek-help
    10  menu:
    11    sidebar:
    12      parent: "help"
    13      name: "需要帮助"
    14      sidebar_position: 20
    15      identifier: "support"
    16  ---
    17  
    18  # 支持选项
    19  
    20  - [付费商业支持](https://about.gitea.com/)
    21  - [Discord](https://discord.gg/Gitea)
    22  - [论坛](https://forum.gitea.com/)
    23  - [Matrix](https://matrix.to/#/#gitea-space:matrix.org)
    24    - 注意:大多数 Matrix 频道都与 Discord 中的对应频道桥接,可能在桥接过程中会出现一定程度的不稳定性。
    25  - 中文支持
    26    - [Discourse 中文分类](https://forum.gitea.com/c/5-category/5)
    27    - QQ 群 328432459
    28  
    29  # Bug 报告
    30  
    31  如果您发现了 Bug,请在 GitHub 上 [创建一个问题](https://github.com/go-gitea/gitea/issues)。
    32  
    33  **注意:** 在请求支持时,可能需要准备以下信息,以便帮助者获得所需的所有信息:
    34  
    35  1. 您的 `app.ini`(将任何敏感数据进行必要的清除)。
    36  2. 您看到的任何错误消息。
    37  3. Gitea 日志以及与情况相关的所有其他日志。
    38     - 收集 `trace` / `debug` 级别的日志更有用(参见下一节)。
    39     - 在使用 systemd 时,使用 `journalctl --lines 1000 --unit gitea` 收集日志。
    40     - 在使用 Docker 时,使用 `docker logs --tail 1000 <gitea-container>` 收集日志。
    41  4. 可重现的步骤,以便他人能够更快速、更容易地重现和理解问题。
    42     - [demo.gitea.com](https://demo.gitea.com) 可用于重现问题。
    43  5. 如果遇到慢速/挂起/死锁等问题,请在出现问题时报告堆栈跟踪。
    44     转到 "Site Admin" -> "Monitoring" -> "Stacktrace" -> "Download diagnosis report"。
    45  
    46  # 高级 Bug 报告提示
    47  
    48  ## 更多日志的配置选项
    49  
    50  默认情况下,日志以 `info` 级别输出到控制台。
    51  如果您需要设置日志级别和/或从文件中收集日志,
    52  您只需将以下配置复制到您的 `app.ini` 中(删除所有其他 `[log]` 部分),
    53  然后您将在 Gitea 的日志目录中找到 `*.log` 文件(默认为 `%(GITEA_WORK_DIR)/log`)。
    54  
    55  ```ini
    56  ; 要显示所有 SQL 日志,您还可以在 [database] 部分中设置 LOG_SQL=true
    57  [log]
    58  LEVEL=debug
    59  MODE=console,file
    60  ```
    61  
    62  ## 使用命令行收集堆栈跟踪
    63  
    64  Gitea 可以使用 Golang 的 pprof 处理程序和工具链来收集堆栈跟踪和其他运行时信息。
    65  
    66  如果 Web UI 停止工作,您可以尝试通过命令行收集堆栈跟踪:
    67  
    68  1. 设置 app.ini:
    69  
    70      ```
    71      [server]
    72      ENABLE_PPROF = true
    73      ```
    74  
    75  2. 重新启动 Gitea
    76  
    77  3. 尝试触发bug,当请求卡住一段时间,使用或浏览器访问:获取堆栈跟踪。
    78  `curl http://127.0.0.1:6060/debug/pprof/goroutine?debug=1`