Различия
Здесь показаны различия между двумя версиями данной страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
wiki:руководство_по_ubuntu_server:дополнения:reporting-bugs [2012/11/08 22:25] [Уведомление об ошибках в Ubuntu Server Edition] |
wiki:руководство_по_ubuntu_server:дополнения:reporting-bugs [2012/11/11 23:43] (текущий) [Ссылки] |
||
---|---|---|---|
Строка 7: | Строка 7: | ||
=====Уведомление об ошибках в Ubuntu Server Edition===== | =====Уведомление об ошибках в Ubuntu Server Edition===== | ||
- | Когда проект Ubuntu собирается выпустить редакцию программного обеспечения с настолько минимальным количеством ошибок, насколько это возможно, они сразу проявляются. Вы можете помочь их исправить, отправляя отчеты об обнаруженных сбоях проекту. Проект Ubuntu использует [[https://launchpad.net/|Launchpad]] для отслеживания отчетов о своих ошибках. Чтобы зарегистрировать сбой в Ubuntu Server на Launchpad вам потребуется [[https://help.launchpad.net/YourAccount/NewAccount|создать учетную запись]]. | + | Когда проект Ubuntu собирается выпустить редакцию программного обеспечения с настолько минимальным количеством ошибок, насколько это возможно, ошибки сразу проявляются. Вы можете помочь их исправить, отправляя отчеты об обнаруженных сбоях проекту. Проект Ubuntu использует [[https://launchpad.net/|Launchpad]] для отслеживания отчетов о своих ошибках. Чтобы зарегистрировать сбой в Ubuntu Server на Launchpad вам потребуется [[https://help.launchpad.net/YourAccount/NewAccount|создать учетную запись]]. |
====Уведомление об ошибках с помощью ubuntu-bug==== | ====Уведомление об ошибках с помощью ubuntu-bug==== | ||
- | The preferred way to report a bug is with the ubuntu-bug command. The ubuntu-bug tool gathers information about the system useful to developers in diagnosing the reported problem that will then be included in the bug report filed on Launchpad. Bug reports in Ubuntu need to be filed against a specific software package, thus the name of the package that the bug occurs in needs to be given to ubuntu-bug: | + | Предпочтительным способом отправить отчет об ошибке является использование команды **ubuntu-bug**. Утилита **ubuntu-bug** собирает информацию о системе, полезную разработчикам при диагностике описываемой проблемы, которая затем будет включена в отчет об ошибке, зарегистрированный на **Launchpad**. Отчеты об ошибках в Ubuntu требуют определения программного пакета, поэтому имя пакета, в котором произошла ошибка, должно быть передано **ubuntu-bug**: |
+ | <code>ubuntu-bug PACKAGENAME</code> | ||
- | ubuntu-bug PACKAGENAME | + | Например, для регистрации ошибки в пакете **openssh-server**, вам потребуется выполнить: |
+ | <code>ubuntu-bug openssh-server</code> | ||
- | For example, to file a bug against the openssh-server package, you would do: | + | Вы можете указать для **ubuntu-bug** как двоичный пакет, так и пакет исходного кода. Опять же, используя **openssh-server** в качестве примера, вы можете создать отчет по пакету источника для openssh-server, **openssh**: |
+ | <code>ubuntu-bug openssh</code> | ||
- | ubuntu-bug openssh-server | + | <note>Смотрите раздел [[wiki:руководство_по_ubuntu_server:управление_пакетами|Управление пакетами]] для дополнительной информации о пакетах в Ubuntu.</note> |
- | + | ||
- | You can specify either a binary package or the source package for ubuntu-bug. Again using openssh-server as an example, you could also generate the report against the source package for openssh-server, openssh: | + | |
- | + | ||
- | ubuntu-bug openssh | + | |
- | + | ||
- | See Package Management for more information about packages in Ubuntu. | + | |
- | + | ||
- | The ubuntu-bug command will gather information about the system in question, possibly including information specific to the specified package, and then ask you what you would like to do with collected information: | + | |
+ | Команда **ubuntu-bug** собирает информацию об упомянутой системе, возможно включая специфическую информацию для указанного пакета, и затем спрашивает что вы собираетесь делать с собранной информацией: | ||
+ | <code> | ||
ubuntu-bug postgresql | ubuntu-bug postgresql | ||
Строка 46: | Строка 43: | ||
C: Cancel | C: Cancel | ||
Please choose (S/V/K/C): | Please choose (S/V/K/C): | ||
+ | </code> | ||
- | The options available are: | + | Доступными вариантами являются: |
+ | -- **Send Report** Выбор отправки отчета отправит собранную информацию в Launchpad как часть процесса регистрации отчета об ошибке. Вы получаете возможность описать ситуацию, которая привела к появлению ошибки. | ||
+ | .. <code> | ||
+ | *** Uploading problem information | ||
- | Send Report Selecting Send Report submits the collected information to Launchpad as part of the the process of filing a bug report. You will be given the opportunity to describe the situation that led up to the occurrence of the bug. | + | The collected information is being sent to the bug tracking system. |
+ | This might take a few minutes. | ||
+ | 91% | ||
- | *** Uploading problem information | + | *** To continue, you must visit the following URL: |
- | The collected information is being sent to the bug tracking system. | + | https://bugs.launchpad.net/ubuntu/+source/postgresql-8.4/+filebug/kc6eSnTLnLxF8u0t3e56EukFeqJ? |
- | This might take a few minutes. | + | |
- | 91% | + | |
- | *** To continue, you must visit the following URL: | + | You can launch a browser now, or copy this URL into a browser on another |
+ | computer. | ||
- | https://bugs.launchpad.net/ubuntu/+source/postgresql-8.4/+filebug/kc6eSnTLnLxF8u0t3e56EukFeqJ? | + | Choices: |
+ | 1: Launch a browser now | ||
+ | C: Cancel | ||
+ | Please choose (1/C):</code> | ||
+ | .. Если вы выберете запуск обозревателя, по умолчанию будет запущен текстовый интернет обозреватель **w3m** для завершения регистрации отчета об ошибке. В качестве альтернативы вы можете скопировать указанный URL в уже запущенный интернет обозреватель. | ||
+ | -- **View Report** Выбор просмотра отчета приведет к показу собранной информации в терминал для повторного просмотра. | ||
+ | .. <code> | ||
+ | Package: postgresql 8.4.2-2 | ||
+ | PackageArchitecture: all | ||
+ | Tags: lucid | ||
+ | ProblemType: Bug | ||
+ | ProcEnviron: | ||
+ | LANG=en_US.UTF-8 | ||
+ | SHELL=/bin/bash | ||
+ | Uname: Linux 2.6.32-16-server x86_64 | ||
+ | Dependencies: | ||
+ | adduser 3.112ubuntu1 | ||
+ | base-files 5.0.0ubuntu10 | ||
+ | base-passwd 3.5.22 | ||
+ | coreutils 7.4-2ubuntu2 | ||
+ | ... | ||
+ | </code> | ||
+ | .. После просмотра отчета вы будете снова перенаправлены в меню с вопросом что вы собираетесь делать с отчетом. | ||
+ | -- **Keep Report File** Выбор сохранения файла отчета приведет к записи в файл собранной информации. Этот файл может быть использован для дальнейшей регистрации отчета об ошибке или передан для отчета иной Ubuntu системе. Чтобы передать файл отчета, просто укажите его в качестве аргумента команды **ubuntu-bug**: | ||
+ | .. <code> | ||
+ | What would you like to do? Your options are: | ||
+ | S: Send report (1.7 KiB) | ||
+ | V: View report | ||
+ | K: Keep report file for sending later or copying to somewhere else | ||
+ | C: Cancel | ||
+ | Please choose (S/V/K/C): k | ||
+ | Problem report file: /tmp/apport.postgresql.v4MQas.apport | ||
- | You can launch a browser now, or copy this URL into a browser on another | + | ubuntu-bug /tmp/apport.postgresql.v4MQas.apport |
- | computer. | + | |
- | Choices: | + | *** Send problem report to the developers? |
- | 1: Launch a browser now | + | ... |
- | C: Cancel | + | </code> |
- | Please choose (1/C): | + | -- **Cancel** Выбор отмены приведет к тому, что собранная информация будет сброшена. |
- | + | ||
- | If you choose to start a browser, by default the text based web browser w3m will be used to finish filing the bug report. Alternately, you can copy the given URL to a currently running web browser. | + | |
- | + | ||
- | View Report Selecting View Report causes the collected information to be displayed to the terminal for review. | + | |
- | + | ||
- | Package: postgresql 8.4.2-2 | + | |
- | PackageArchitecture: all | + | |
- | Tags: lucid | + | |
- | ProblemType: Bug | + | |
- | ProcEnviron: | + | |
- | LANG=en_US.UTF-8 | + | |
- | SHELL=/bin/bash | + | |
- | Uname: Linux 2.6.32-16-server x86_64 | + | |
- | Dependencies: | + | |
- | adduser 3.112ubuntu1 | + | |
- | base-files 5.0.0ubuntu10 | + | |
- | base-passwd 3.5.22 | + | |
- | coreutils 7.4-2ubuntu2 | + | |
- | ... | + | |
- | + | ||
- | After viewing the report, you will be brought back to the same menu asking what you would like to do with the report. | + | |
- | + | ||
- | Keep Report File Selecting Keep Report File causes the gathered information to be written to a file. This file can then be used to later file a bug report or transferred to a different Ubuntu system for reporting. To submit the report file, simply give it as an argument to the ubuntu-bug command: | + | |
- | + | ||
- | What would you like to do? Your options are: | + | |
- | S: Send report (1.7 KiB) | + | |
- | V: View report | + | |
- | K: Keep report file for sending later or copying to somewhere else | + | |
- | C: Cancel | + | |
- | Please choose (S/V/K/C): k | + | |
- | Problem report file: /tmp/apport.postgresql.v4MQas.apport | + | |
- | + | ||
- | ubuntu-bug /tmp/apport.postgresql.v4MQas.apport | + | |
- | + | ||
- | *** Send problem report to the developers? | + | |
- | ... | + | |
- | + | ||
- | Cancel Selecting Cancel causes the collected information to be discarded. | + | |
====Уведомление о крушениях приложений==== | ====Уведомление о крушениях приложений==== | ||
- | The software package that provides the ubuntu-bug utility, apport, can be configured to trigger when applications crash. This is disabled by default, as capturing a crash can be resource intensive depending on how much memory the application that crashed was using as apport captures and processes the core dump. | + | Пакет программ, который предоставляет утилиту ubuntu-bug, **apport** может быть настроен на срабатывание при падении приложений. По умолчанию это отключено, поскольку захват падений может быть достаточно ресурсоёмким в зависимости от памяти, которую использовало упавшее приложение, а **apport** захватывает и обрабатывает память ядра. |
- | + | ||
- | Configuring apport to capture information about crashing applications requires a couple of steps. First, gdb needs to be installed; it is not installed by default in Ubuntu Server Edition. | + | |
- | + | ||
- | sudo apt-get install gdb | + | |
- | See Package Management for more information about managing packages in Ubuntu. | + | Настройка **apport** на захват информации о падении приложений требует выполнения пары шагов. Сначала требуется установить **gdb**; он не устанавливается по умолчанию при установке Ubuntu Server Edition. |
+ | <code>sudo apt-get install gdb</code> | ||
- | Once you have ensured that gdb is installed, open the file /etc/default/apport in your text editor, and change the enabled setting to be 1 like so: | + | Смотрите раздел [[wiki:руководство_по_ubuntu_server:управление_пакетами|Управление пакетами]] для дополнительной информации об управлении пакетами в Ubuntu. |
+ | Как только вы убедитесь, что **gdb** установлен, откройте файл /etc/default/apport в вашем текстовом редакторе и измените настройку **enabled** в 1, как показано ниже: | ||
+ | <code> | ||
# set this to 0 to disable apport, or to 1 to enable it | # set this to 0 to disable apport, or to 1 to enable it | ||
# you can temporarily override this with | # you can temporarily override this with | ||
Строка 126: | Строка 119: | ||
# set maximum core dump file size (default: 209715200 bytes == 200 MB) | # set maximum core dump file size (default: 209715200 bytes == 200 MB) | ||
maxsize=209715200 | maxsize=209715200 | ||
+ | </code> | ||
- | Once you have completed editing /etc/default/apport, start the apport service: | + | Как только вы завершите редактирование /etc/default/apport, запустите сервис: |
- | + | <code>sudo start apport</code> | |
- | sudo start apport | + | |
- | + | ||
- | After an application crashes, use the apport-cli command to search for the existing saved crash report information: | + | |
+ | После падения приложения используйте команду **apport-cli** для поиска информации о сохраненном отчете падения: | ||
+ | <code> | ||
apport-cli | apport-cli | ||
Строка 147: | Строка 140: | ||
C: Cancel | C: Cancel | ||
Please choose (R/I/C): | Please choose (R/I/C): | ||
+ | </code> | ||
- | Selecting Report Problem will walk you through similar steps as when using ubuntu-bug. One important difference is that a crash report will be marked as private when filed on Launchpad, meaning that it will be visible to only a limited set of bug triagers. These triagers will review the gathered data for private information before making the bug report publicly visible. | + | Выбор **Report Problem** (сообщить о проблеме) проведет вас по шагам, аналогичным при использовании **ubuntu-bug**. Одним важным отличием будет то, что отчет о падении будет помечен как частный (private) при регистрации на Launchpad, что означает что он будет виден только ограниченному количеству сортировщиков. Эти сортировщики будут просматривать собранные данные на наличие частной информации перед тем как отчет об ошибке станет публично доступным. |
====Ссылки==== | ====Ссылки==== | ||
- | See the Reporting Bugs Ubuntu wiki page. | + | -- Посетите страницу [[https://help.ubuntu.com/community/ReportingBugs|Reporting Bugs Ubuntu wiki]]. |
- | + | -- Также смотрите страницу [[https://wiki.ubuntu.com/Apport|Apport]] для дополнительной полезной информации. Часть информации касается использования графического интерфейса. | |
- | Also, the Apport page has some useful information. Though some of it pertains to using a GUI. | + | |
---- | ---- |