• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

502 Proxy Error on login

Scheduled Pinned Locked Moved Technical Support
16 Posts 3 Posters 6.0k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • HägarH Offline
    HägarH Offline
    Hägar
    wrote on last edited by Hägar
    #1

    First: Yesterday i've pulled the latest git repo. So maybe it's a new bug.

    Problem: Since today, all login attempts with an existing user account get an "502 Proxy Error" in an alert-box with this content:

    Failed login attempt, please try again.
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>502 Proxy Error</title> </head><body> <h1>Proxy Error</h1> <p>The proxy server received an invalid
     response from an upstream server.<br />
     The proxy server could not handle the request <em><a href="/login">POST&nbsp;/login</a></em>.<p> Reason: <strong>Error reading from remote server</strong></p></p> <hr> <address>Apache/2.2.15 (CentOS) Server at blahblahblah.com Port 80</address> </body></html>
    

    Amazing: When you register a new account; or when you've logged in yesterday and didn't logout, then you can use the whole forum and every seems to be fine.

    Setup:
    nodeBB latest (pulled from git repo)
    redis 2.6.10 (Shared host)
    Apache 2.2.15 (Shared host)
    .htaccess: RewriteRule ^(.*) http://localhost:4567/$1 [P]

    1 Reply Last reply
    0
  • nhl.plN Offline
    nhl.plN Offline
    nhl.pl
    wrote on last edited by nhl.pl
    #2

    Check your logs for errors.

    1. Timeout.
    2. Lack of disk space.
    3. package.json and dependencies.
    4. redis related.

    Source: https://forums.openshift.com/frequent-502-proxy-errors

    1 Reply Last reply
    0
  • HägarH Offline
    HägarH Offline
    Hägar
    wrote on last edited by Hägar
    #3

    redis and nodebb logs are fine.
    the error appears immediately.
    no lack of diskspace.

    1 Reply Last reply
    0
  • HägarH Offline
    HägarH Offline
    Hägar
    wrote on last edited by Hägar
    #4

    In the meantime i've installed nodebb from the scratch on new machine.
    The same problem appears also with a fresh installation. 😓

    1 Reply Last reply
    0
  • nhl.plN Offline
    nhl.plN Offline
    nhl.pl
    wrote on last edited by
    #5

    You can reproduce it so please report an issue to the Bug Tracker.

    1 Reply Last reply
    0
  • HägarH Offline
    HägarH Offline
    Hägar
    wrote on last edited by
    #6

    First I try to find the bad commit.

    1 Reply Last reply
    0
  • nhl.plN Offline
    nhl.plN Offline
    nhl.pl
    wrote on last edited by
    #7

    You can try a new install with older NodeBB core files.

    It can be related to this issue.
    https://github.com/NodeBB/NodeBB/issues/3029

    1 Reply Last reply
    0
  • HägarH Offline
    HägarH Offline
    Hägar
    wrote on last edited by
    #8

    I got it. When i checkout commit ceba856006a549d39d4c5d7c9b3363fb03cac2ae everything is fine. But with commit fa9fde43fb1e3d9a67000b7f69261d8eb150f3d5 it doesn't work anymore.

    1 Reply Last reply
    0
  • nhl.plN Offline
    nhl.plN Offline
    nhl.pl
    wrote on last edited by
    #9

    Have you updated theme files?

    1 Reply Last reply
    0
  • HägarH Offline
    HägarH Offline
    Hägar
    wrote on last edited by
    #10

    Yes.

    (filltext, filltext)

    1 Reply Last reply
    0
  • nhl.plN Offline
    nhl.plN Offline
    nhl.pl
    wrote on last edited by
    #11

    Here on community.nodebb.org you can send as many confirmation emails as you want. It means it wasn't updated with this commit.

    1 Reply Last reply
    0
  • HägarH Offline
    HägarH Offline
    Hägar
    wrote on last edited by
    #12

    I don't know. Just when i checkout the previous commit from Julian, it works again.

    1 Reply Last reply
    0
  • HägarH Offline
    HägarH Offline
    Hägar
    wrote on last edited by
    #13

    It had nothing to do with confirmation-emails. I could trackdown to this file src/database/redis/main.js

    1 Reply Last reply
    0
  • nhl.plN Offline
    nhl.plN Offline
    nhl.pl
    wrote on last edited by
    #14

    Yes, I saw your comment on GitHub. Great job, thanks for your time and input! 🙂

    1 Reply Last reply
    0
  • HägarH Offline
    HägarH Offline
    Hägar
    wrote on last edited by
    #15

    It drove me crazy. 😆

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #16

    This is fixed on master, thanks for reporting.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development