Уведомление об ошибках в Ubuntu Server Edition Сравнение версий

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Следующая версия
Предыдущая версия
wiki:руководство_по_ubuntu_server:дополнения:reporting-bugs [2012/11/08 22:13]
создано
wiki:руководство_по_ubuntu_server:дополнения:reporting-bugs [2012/11/11 23:43] (текущий)
[Ссылки]
Строка 3: Строка 3:
 [[wiki:​руководство_по_ubuntu_server:​дополнения|Дополнения]]</​style>​ [[wiki:​руководство_по_ubuntu_server:​дополнения|Дополнения]]</​style>​
 <style float-right>​ <style float-right>​
-[[wiki:​руководство_по_ubuntu_server:​дополнения|<​-назад]] ​+[[wiki:​руководство_по_ubuntu_server:​дополнения|<​-назад]]</​style>​
  
 =====Уведомление об ошибках в Ubuntu Server Edition===== =====Уведомление об ошибках в Ubuntu Server Edition=====
  
-While the Ubuntu ​Project attempts to release software with as few bugs as possiblethey do occurYou can help fix these bugs by reporting ones that you find to the projectThe Ubuntu ​Project uses Launchpad ​to track its bug reportsIn order to file a bug about Ubuntu Server ​on Launchpad, you will need to create an account. +Когда проект ​Ubuntu ​собирается выпустить редакцию программного обеспечения с настолько минимальным количеством ошибокнасколько это возможно,​ ошибки сразу проявляютсяВы можете помочь их исправить,​ отправляя отчеты об обнаруженных сбоях проектуПроект ​Ubuntu ​использует [[https://​launchpad.net/​|Launchpad]] для отслеживания отчетов о своих ошибкахЧтобы зарегистрировать сбой в Ubuntu Server ​на Launchpad ​вам потребуется [[https://​help.launchpad.net/​YourAccount/​NewAccount|создать учетную запись]].
- +
-    Reporting Bugs With ubuntu-bug +
-    Reporting Application Crashes +
-    Resources+
  
 ====Уведомление об ошибках с помощью ubuntu-bug==== ====Уведомление об ошибках с помощью ubuntu-bug====
  
-The preferred way to report a bug is with the ubuntu-bug ​commandThe 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 packagethus 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 +
- +
-For example, to file a bug against the openssh-server package, you would do: +
- +
-ubuntu-bug openssh-server +
- +
-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+Например,​ для регистрации ошибки в пакете **openssh-server**,​ вам потребуется выполнить:​ 
 +<​code>​ubuntu-bug openssh-server</​code>​
  
-See Package Management for more information about packages in Ubuntu.+Вы можете указать для **ubuntu-bug** как двоичный пакет, так и пакет исходного кодаОпять же, используя **openssh-server** в качестве примера,​ вы можете создать отчет по пакету источника для openssh-server,​ **openssh**:​ 
 +<​code>​ubuntu-bug openssh</​code>​
  
-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:+<​note>​Смотрите раздел [[wiki:руководство_по_ubuntu_server:​управление_пакетами|Управление пакетами]] для дополнительной информации о пакетах в Ubuntu.</​note>​
  
 +Команда **ubuntu-bug** собирает информацию об упомянутой системе,​ возможно включая специфическую информацию для указанного пакета,​ и затем спрашивает что вы собираетесь делать с собранной информацией:​
 +<​code>​
 ubuntu-bug postgresql ubuntu-bug postgresql
  
Строка 50: Строка 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 reportYou 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 continueyou must visit the following ​URL:+You can launch a browser nowor 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 doYour 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 crashThis is disabled by defaultas 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 stepsFirst, ​gdb needs to be installedit is not installed by default in Ubuntu Server Edition.+Настройка **apport** на захват информации о падении приложений требует выполнения пары шаговСначала требуется установить **gdb**он не устанавливается по умолчанию при установке ​Ubuntu Server Edition. 
 +<​code>​sudo apt-get install gdb</​code>​
  
-sudo apt-get install gdb +Смотрите раздел [[wiki:​руководство_по_ubuntu_server:​управление_пакетами|Управление пакетами]] для дополнительной информации об управлении пакетами в Ubuntu.
- +
-See Package Management for more information about managing packages in Ubuntu. +
- +
-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:+
  
 +Как только вы убедитесь,​ что **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
Строка 130: Строка 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
  
Строка 151: Строка 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 triagersThese 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 informationThough some of it pertains to using a GUI. +
  
 ---- ----
  
 <style float-right>​ <style float-right>​
-[[wiki:​руководство_по_ubuntu_server:​дополнения|<​-назад]] ​+[[wiki:​руководство_по_ubuntu_server:​дополнения|<​-назад]]</​style>​