-
Notifications
You must be signed in to change notification settings - Fork 305
feat: add more troubleshooting examples #2243
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| --- | ||
| nav: | ||
| title: Troubleshooting Common Issues | ||
| position: 90 | ||
| --- | ||
|
|
||
| # Troubleshooting common issues | ||
|
|
||
| This guide collects practical troubleshooting workflows for Shopware PaaS Native. It focuses on checks you can perform with the CLI, Grafana, and an application shell session. | ||
|
|
||
| ## Prepare your CLI context | ||
|
|
||
| If you regularly work with the same organization, project, or environment, set a default context first: | ||
|
|
||
| ```sh | ||
| sw-paas account context set | ||
| ``` | ||
|
|
||
| You can also preselect the default environment for the current shell session: | ||
|
|
||
| ```sh | ||
| export SW_PAAS_ENVIRONMENT=staging | ||
| ``` | ||
|
|
||
| This avoids repeated prompts while you troubleshoot. For more details, see the [account guide](../fundamentals/account.md). | ||
|
|
||
| ## Check timing and trace headers | ||
|
|
||
| If a page is slow, intermittently returns an error, or seems to be cached, inspect the current response timings first: | ||
|
|
||
| ```sh | ||
| sw-paas app timing --query "foo=bar" | ||
| ``` | ||
|
|
||
| Adding a query parameter helps bypass cached responses so you can inspect a fresh request. | ||
|
|
||
| The following response headers are especially useful: | ||
|
|
||
| | Header | Meaning | | ||
| | ------ | ------- | | ||
| | `x-envoy-upstream-service-time` | Time spent inside the Shopware PaaS Native infrastructure for the upstream request | | ||
| | `x-trace-id` | Trace identifier that you can search for in Grafana Tempo | | ||
| | `x-timer` | Fastly timing information. The `VE` value helps estimate the time between Fastly and the origin infrastructure | | ||
|
|
||
| You can also inspect the same headers in your browser's network tab. | ||
|
|
||
| ## Check logs and traces in Grafana | ||
|
|
||
| Once you have confirmed the failing request, continue with logs and traces: | ||
|
|
||
| ```sh | ||
| sw-paas open grafana | ||
| ``` | ||
|
|
||
| Use [logs](../monitoring/logs.md) to inspect application output and [traces](../monitoring/traces.md) to follow the request path through the system. | ||
|
|
||
| If you already captured an `x-trace-id`, search for that value directly in Tempo to jump to the affected request. | ||
|
|
||
| ## My deployment finished, but the changes are not live | ||
|
|
||
| If an update appears to have completed but the application still serves the old state, inspect the application first: | ||
|
Check warning on line 61 in products/paas/shopware/guides/troubleshooting.md
|
||
|
|
||
| ```sh | ||
| sw-paas application get --application-id <application-id> | ||
| ``` | ||
|
Comment on lines
+63
to
+65
|
||
|
|
||
| The `updated` timestamp is a useful indicator. If it does not change after you triggered the update, inspect the build logs: | ||
|
|
||
| ```sh | ||
| sw-paas application build logs --application-id <application-id> | ||
| ``` | ||
|
|
||
| For the general deployment workflow, see the [applications guide](../fundamentals/applications.md). | ||
|
|
||
| ## Scheduled tasks or queue workers are stuck | ||
|
|
||
| If scheduled tasks remain in `queued` state for too long, start with the worker logs in Grafana. If the logs do not explain the issue, open an application shell: | ||
|
|
||
| ```sh | ||
| sw-paas exec --new | ||
| ``` | ||
|
|
||
| From there, run the consumers manually to surface runtime errors: | ||
|
|
||
| ```sh | ||
| bin/console messenger:consume async low_priority failed scheduler_shopware | ||
| ``` | ||
|
|
||
| If scheduled tasks are missing after a deployment or update, register them again: | ||
|
|
||
| ```sh | ||
| bin/console scheduled-task:register | ||
| ``` | ||
|
|
||
| If you need to inspect the database state directly, open a database tunnel as described in the [database guide](../resources/databases.md). | ||
|
|
||
| ## What to collect before opening support | ||
|
|
||
| If the issue is still unresolved, collect the following information before opening a support request: | ||
|
|
||
| - The affected application ID | ||
| - The failing URL | ||
| - The approximate timestamp of the failing request | ||
| - The `x-trace-id`, if available | ||
| - Relevant build or deployment log excerpts | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -18,6 +18,8 @@ To connect to your database via CLI: | |||||
| sw-paas open service --service database --port 3306 | ||||||
| ``` | ||||||
|
|
||||||
| Use the Shopware admin password when the MySQL client prompts for the database password. | ||||||
|
||||||
| Use the Shopware admin password when the MySQL client prompts for the database password. | |
| When the MySQL client prompts for a password, use the password for the database user of the managed MySQL service. Do not use the Shopware Administration UI password. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The page H1 uses sentence case (“Troubleshooting common issues”) while other Shopware docs pages consistently use Title Case headings (e.g., “# Manage Cron Jobs” in
products/paas/shopware/guides/cronjobs.md). Consider aligning the H1 capitalization with the nav title and the existing convention for page titles.