Skip to content

Internal 500 Error on the stream list page #4302

@afexer

Description

@afexer

Describe the bug
When going to the streams page in the latest version v2.12.2 I get a 500 Internal error message.
This is a line from the logs:
⚠ warning select stream.* from stream where is_deleted = 0 group by id order by CAST(incoming_port AS INTEGER) ASC - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INTEGER) ASC' at line 1

Nginx Proxy Manager Version
2.12.2

To Reproduce
Steps to reproduce the behavior:

  1. Go to the streams page
  2. See the error

Expected behavior
List the streams

Screenshots

Screenshot 2025-01-15 at 9 06 10 PM
Screenshot 2025-01-15 at 9 09 25 PM

Operating System
Ubuntu 24 - using docker image

Activity

truebigsand

truebigsand commented on Jan 20, 2025

@truebigsand

It's from here: (seems to be add for PostgreSQL)

.orderByRaw('CAST(incoming_port AS INTEGER) ASC');

However, it goes wrong on MySQL 8.0, probably can be fixed by this:

--- CAST(`stream`.incoming_port AS INTEGER) DESC;
+++ CAST(`stream`.incoming_port AS UNSIGNED INTEGER) DESC;

or just replace INTEGER with UNSIGNED
PgSQL and MySQL conflict here, I'm not familiar with PgSQL so I cannot give a perfect solution, maybe just delete the sorting :)

ZeroDeng01

ZeroDeng01 commented on Feb 21, 2025

@ZeroDeng01
Contributor

I have the same problem here, the current version 2.12.3, hope to fix

mcrook587

mcrook587 commented on Apr 15, 2025

@mcrook587

While your at it, maybe fix all the other shit thats plaguing this horrible project. Like maybe the custom locations that just about every other proxy manager on the planet earth has with ease but this project struggles.

This project is trash and dead!!!!

vrichv

vrichv commented on Apr 27, 2025

@vrichv

same problem,hope to fix asap

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @vrichv@afexer@ZeroDeng01@truebigsand@mcrook587

      Issue actions

        Internal 500 Error on the stream list page · Issue #4302 · NginxProxyManager/nginx-proxy-manager