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

feat: revamped error section #4477

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Kemi-Elizabeth
Copy link
Collaborator

Revamped error section with actionable points and additional solutions from devrel

Why

Closes #4476

What's changed

I've revamped this page so that we have actionable points and more solutions for customers who may be redirected here from an error 502 page.

Where are changes

https://docs.upsun.com/development/troubleshoot.html#http-responses-502-bad-gateway-or-503-service-unavailable

Updates are for:

  • platform (sites/platform templates)
  • upsun (sites/upsun templates)

revamped error section with actionable points and additional solutions from devrel
Copy link

Your Platform.sh environment has successfully deployed. 🚀

See the changed pages:

Platform.sh docs
Upsun docs

@Kemi-Elizabeth Kemi-Elizabeth added the newsletter This content can go in the newsletter for partners label Mar 27, 2025

#### 1. Your app is listening at the wrong place
- **Solution**: Check your app's [upstream properties](/create-apps/app-reference/single-runtime-image.md#upstream).
- If your app is listening at a specific port, verify that it’s using the [`PORT` environment variable](/development/variables/use-variables.md#use-provided-variables) and ensure that it is listening at the correct port.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we add a bullet here for apps listening to a socket?

Comment on lines +127 to +130
#### 2. Configuration issues in `.upsun/config.yaml`
- **Solution**: Review your `.upsun/config.yaml` configuration.
- Look for any errors that might prevent a process from starting or cause issues with requests being forwarded properly.
- Check the `web.commands.start` entry or your `passthru` configuration for any misconfigurations.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would propose to point our customers to the logs of their apps in order to understand what's going wrong here as well.

Indeed, one of the possible issues here is that they haven't configured their web.commands.start correctly, but identifying potential typos or what's really going south is only possible when they look into their logs.

Comment on lines +140 to +147
#### 5. PHP process crashing due to segmentation fault
If your PHP process crashes due to a segmentation fault, you may encounter a message like the warning error detailed below. This indicates that either a PHP extension is causing the segmentation fault or there’s an issue in your PHP app code.

```text {location="/var/log/app.log"}
WARNING: [pool web] child 112 exited on signal 11 (SIGSEGV) after 7.405936 seconds from start
```
- **Solution**: Review recent changes made to your app to identify potential causes.
- Consider using a debugging tool such as [Xdebug](/languages/php/xdebug.md) to help with quicker troubleshooting and identify the root cause of the crash.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something we've identified commonly in our customers? If yes, then that's definitely the place for this to be.

My PHP experience is limited, but I wouldn't consider this a common case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
markdown/prose newsletter This content can go in the newsletter for partners
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create dedicated documentation page for users who land on Upsun 502 error page
3 participants