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

[Bug Report] nginx reverse proxy. Bad Gateway: undefined #592

Open
mrfluffy-dev opened this issue May 27, 2023 · 3 comments
Open

[Bug Report] nginx reverse proxy. Bad Gateway: undefined #592

mrfluffy-dev opened this issue May 27, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@mrfluffy-dev
Copy link

Describe the bug
When I revere proxy using nginx proxy manager I get Bad Gateway: undefined in a red bar at the bottom.

To Reproduce
Steps to reproduce the behavior:

  1. run docker run -d --network nginx-net -p 8000:8000 -v /var/run/docker.sock:/var/run/docker.sock -v yacht:/config selfhostedpro/yacht
  2. go to 192.168.1.179:8000 (looks good everything works)
  3. setup reverse proxy in nginx proxy manager
  4. go to my.domain.com see yacht open
  5. no containers are listed get error at the bottom Bad Gateway: undefined

Expected behavior
Yacht loads like it does when going to 192.168.1.179:8000

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.2 LTS x86_64
  • Browser Brave and FireFox
  • Yacht Version v0.0.7-alpha-2023-01-12--05

Additional context
It worked when my network was bridge and I used cloudflare tunnel as a reverse proxy

** Logs **

exports https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:65
    exports https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:102
    onreadystatechange https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:252
    exports https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:252
    exports https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:252
    exports https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:118
    promise callback*0a06/l.prototype.request https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:13
    e https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:13
    exports https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:41
    readApp https://yacht.mrfluffy.xyz/js/app.aad2ad76.js:1
    readApp https://yacht.mrfluffy.xyz/js/app.aad2ad76.js:1
    C https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:73
    dispatch https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:73
    dispatch https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:73
    i https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:73
    created https://yacht.mrfluffy.xyz/js/app.aad2ad76.js:1
    nt https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    Pn https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    _init https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    a https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    sn https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    init https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    n https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    p https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    f https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    Fr https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    _update https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    i https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    get https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    ni https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    On https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    $mount https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    init https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    p https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    f https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
    y https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js:63
[chunk-vendors.5f15452b.js:65:3022](https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js)
Source map error: Error: request failed with status 502
Resource URL: https://yacht.mrfluffy.xyz/js/chunk-vendors.5f15452b.js
Source Map URL: chunk-vendors.5f15452b.js.map

Source map error: Error: request failed with status 502
Resource URL: https://yacht.mrfluffy.xyz/js/app.aad2ad76.js
Source Map URL: app.aad2ad76.js.map
@mrfluffy-dev mrfluffy-dev added the bug Something isn't working label May 27, 2023
@mrfluffy-dev mrfluffy-dev changed the title [Bug Report] Title nginx reverse proxy. Bad Gateway: undefined May 27, 2023
@mrfluffy-dev mrfluffy-dev changed the title nginx reverse proxy. Bad Gateway: undefined [Bug Report] nginx reverse proxy. Bad Gateway: undefined May 27, 2023
@pbogre
Copy link

pbogre commented Jul 14, 2023

getting this as well.

@QazCetelic
Copy link

I'm also experiencing this issue on v0.0.7-alpha-2023-01-12--05

@wickedyoda
Copy link
Collaborator

Have you all looked at http://dev.yacht.sh/docs/Advanced/Proxy

I went through and reworked the documentation website, There are old documents on the yacht.sh site, please use the subdomain of dev.yacht.sh, also There is a new version coming out sometime at the end of the year. The main site is not going to be updated until the new version is released. The dev.yacht.sh will remain the temp location for the most current documents.

Also, try pulling with selfhosted/yacht:devel image; it had lots of fixes applied to it that other images have not.

These directions are my current setup with a docker host running Debian in AWS with Nginx proxy manager/reverse proxy as a container hosted there as well. It works and passes yacht through just like any other website it's hosting.

@wickedyoda wickedyoda self-assigned this Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants