Skip to content

502 Bad Gateway after setup #747

Description

@zilti

I've set up notify_push on my FreeBSD 15.1 server. There are no errors in the log, so I have absolutely nothing to work with. The command line to start it is /usr/local/www/nextcloud/apps/notify_push/bin/fbsd_amd64/notify_push /usr/local/www/nextcloud/config/config.php, and it is run - like PHP - as user www.

The proxy is set up as listed in the README:

location ^~ /push/ {
        proxy_pass http://127.0.0.1:7867/;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

I've also set the env var PORT=7867 just to make sure.

Here's the output trying to run setup with the URL:

root@nextcloud:~ # occ notify_push:setup https://nextcloud.lyrion.ch/push
✓ redis is configured
🗴 can't connect to push server: Server error: `GET https://nextcloud.lyrion.ch/push/test/cookie` resulted in a `502 Bad Gateway` response:
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>ngin (truncated...)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions