Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ: How do I share debug information and logs? #705

Closed
dhaavi opened this issue Jun 22, 2022 · 1 comment
Closed

FAQ: How do I share debug information and logs? #705

dhaavi opened this issue Jun 22, 2022 · 1 comment
Assignees

Comments

@dhaavi
Copy link
Member

dhaavi commented Jun 22, 2022

First of all, thanks a lot for contributing! You're probably reading this because you've been directed here and were asked to provide one of the following:

  • Debug Info
  • Logs
  • (Debug Logs)

Debug Info

The debug information is a collection of helpful snippets of information that Portmaster produces itself.
Often, you will be asked to collect this information while the reported issue is occurring. This is important, as the data is gathered live from the current state of Portmaster and will help us to see what the problem is.

If you're experiencing a problem with a certain application, it can be very helpful to copy the application-specific version of the Debug Info. This is only (easily) possible using the "Application Page" method explained later.

We've taken care to include as little personal information as possible in the Debug Info. You can further reduce this information by restarting the Portmaster before copying the data - if you can reproduce the issue that way too.
You are of course also free to delete parts of the data before submitting - in that case please mark the areas you have deleted with [DELETED], so we know that information is missing.

There are multiple ways to acquire and share the Debug Info:

Tools Menu

Just click on the "Copy Debug Info" button in the tools menu in the bottom left.
This copies the Debug Info to your clipboard. You can paste this directly into a Github Issue - it is automatically formatted using sections. It looks ugly in text format, but if you click on the "Preview" tab of your comment, you will see it nicely rendered.

image

It renders to something like this on GitHub:

image

Application Page

Find the affected application in the Portmaster App, then go to the "Details" tab and click on "Copy Debug Information" at the end of the page.
This copies the Debug Info to your clipboard. You can paste this directly into a Github Issue - it is automatically formatted using section. It looks ugly in text format, but if you click on the "Preview" tab of your comment, you will see it nicely rendered.

image

Privately Via Ticket

Alternatively, you can submit the Debug Info privately via a support ticket. To do this:

  • Open the Portmaster App
  • Go to the Get Help page using the question mark button on the navigation bar on the left
  • Then, click on "Report Bug", and enter the following information:
    • Title: "Debug Info for Issue"
    • What Happend: Enter the Ticket ID or Github Issue URL.
  • Then click on "Send Private Ticket" on the bottom of the page.
    • You don't need to provide an email.
  • Notify the thread where you were asked to send the Debug Info that you've sent it.

Using cURL

If you're a Linux user, you might want to get this data directly to your terminal. You can do this with the following command - and maybe pipe it to your clipboard to a file.

curl http://127.0.0.1:817/api/v1/debug/core

You can find the documentation of the API endpoints here:

Logs

Portmaster writes logs for all components. Logs are written in different levels to reduce sensitive information in logs and keep them in a manageable size. They are also automatically deleted after some time.
You may have been asked to change the Log Level before submitting the logs.

Please always provide the newest .log and .error.log files during which the reported issues occurred.
You can find the log files here:

Default Log File Locations:

  • Windows
    • Core Logs: C:\ProgramData\Safing\Portmaster\logs\core
    • App Logs: C:\ProgramData\Safing\Portmaster\logs\app
    • Notifier Logs: C:\ProgramData\Safing\Portmaster\logs\notifier
    • Start Logs: C:\ProgramData\Safing\Portmaster\logs\start
  • Linux
    • Core Logs: /opt/safing/portmaster/logs/core
    • App Logs: /opt/safing/portmaster/logs/app
    • Notifier Logs: /opt/safing/portmaster/logs/notifier
    • Start Logs: /opt/safing/portmaster/logs/start

We recommend that you upload these files to your favorite pastebin/privatebin or use our instance and add a 1-3 months expiration.

(Debug Logs)

In the past, "Debug Logs" has sometimes been used in conversations, but it does not clearly specify what is meant. If you are asked for this, please ask what exactly you should provide.


Keywords: collect, get, copy, extract, debugging, debug-info, debug-data, investigating, logging, logs, log-lines, record

Categories: Guides

@safing safing locked and limited conversation to collaborators Jun 22, 2022
@dhaavi
Copy link
Member Author

dhaavi commented Jun 22, 2022

Reserved.

@dhaavi dhaavi added the faq label Jun 22, 2022
@dhaavi dhaavi pinned this issue Jun 23, 2022
@Raphty Raphty closed this as completed Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants