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

Различия

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

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

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
wiki:руководство_по_ubuntu_server:дополнения:reporting-bugs [2012/11/11 11:04]
[Уведомление об ошибках с помощью ubuntu-bug]
wiki:руководство_по_ubuntu_server:дополнения:reporting-bugs [2012/11/11 23:43] (текущий)
[Ссылки]
Строка 46: Строка 46:
  
 Доступными вариантами являются:​ Доступными вариантами являются:​
 +  -- **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
Строка 124: Строка 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
  
Строка 145: Строка 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. +
  
 ---- ----