Skip to content

WTF :login 502 #3965

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

Open
peterwillcn opened this issue Aug 29, 2024 · 12 comments · May be fixed by #4398
Open

WTF :login 502 #3965

peterwillcn opened this issue Aug 29, 2024 · 12 comments · May be fixed by #4398
Labels

Comments

@peterwillcn
Copy link

peterwillcn commented Aug 29, 2024

WTF : login 502

  ngx:
    image: 'docker.io/jc21/nginx-proxy-manager:latest'
    container_name: nginx
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    volumes:
      - /data/nginx:/data
      - /data/nginx/letsencrypt:/etc/letsencrypt

image

@devMikeUA
Copy link

devMikeUA commented Aug 30, 2024

Same crap:

 Starting backend ...
    node[1006]: std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() at ../src/node_platform.cc:68
    Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))
----- Native stack trace -----
 1: 0xcbc127 node::Assert(node::AssertionInfo const&) [node]
 2: 0xd3b96e node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [node]
 3: 0xd3ba4c node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
 4: 0xc702d6  [node]
 5: 0xc717d4 node::Start(int, char**) [node]
 6: 0x7f54bfe8324a  [/lib/x86_64-linux-gnu/libc.so.6]
 7: 0x7f54bfe83305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
 8: 0xbc630e _start [node]
./run: line 21:  1006 Aborted                 (core dumped) s6-setuidgid "$PUID:$PGID" bash -c "export HOME=$NPMHOME;node --abort_on_uncaught_exception --max_old_space_size=250 index.js"

@ip520011
Copy link

ip520011 commented Aug 31, 2024

找到解决办法了,我发现是因为我的宿主机上装了node 导致的,把 node 卸载掉,就可以了。
重要的事情说三遍!
宿主机必须删除 node 环境!宿主机必须删除 node 环境!宿主机必须删除 node 环境!注意需要重启宿主机!
image
image
image
image

成功!!!

@riruigit
Copy link

riruigit commented Sep 1, 2024

找到解决办法了,我发现是因为我的宿主机上装了node 导致的,把 node 卸载掉,就可以了。 重要的事情说三遍! 宿主机必须删除 node 环境!宿主机必须删除 node 环境!宿主机必须删除 node 环境!

他这个是基于docker运行的,应该跟你这个没多大关系,我也是docker 复现了。

@riruigit
Copy link

riruigit commented Sep 1, 2024

找到解决方案了吗?

@ip520011
Copy link

ip520011 commented Sep 2, 2024

找到解决办法了,我发现是因为我的宿主机上装了node 导致的,把 node 卸载掉,就可以了。 重要的事情说三遍! 宿主机必须删除 node 环境!宿主机必须删除 node 环境!宿主机必须删除 node 环境!

他这个是基于docker运行的,应该跟你这个没多大关系,我也是docker 复现了。

那就不清楚了,我复现了好几次,删除了 node 环境,并且重启服务器,就可以了

@laopaoer-wallet
Copy link

跟node没关系。。。。

@icerao
Copy link

icerao commented Sep 12, 2024

I have same issue.start log I found:

[9/12/2024] [4:58:37 AM] [Setup    ] › ℹ  info      Initial admin setup completed
[9/12/2024] [4:58:37 AM] [Setup    ] › ℹ  info      Default settings added
[9/12/2024] [4:58:37 AM] [Setup    ] › ℹ  info      Logrotate Timer initialized
[9/12/2024] [4:58:37 AM] [Global   ] › ⬤  debug     CMD: logrotate /etc/logrotate.d/nginx-proxy-manager
[9/12/2024] [4:58:37 AM] [Setup    ] › ℹ  info      Logrotate completed.
[9/12/2024] [4:58:37 AM] [IP Ranges] › ℹ  info      Fetching IP Ranges from online services...
[9/12/2024] [4:58:37 AM] [IP Ranges] › ℹ  info      Fetching https://ip-ranges.amazonaws.com/ip-ranges.json

[9/12/2024] [5:04:41 AM] [IP Ranges] › ✖  error     read ECONNRESET
[9/12/2024] [5:04:41 AM] [SSL      ] › ℹ  info      Let's Encrypt Renewal Timer initialized
[9/12/2024] [5:04:41 AM] [SSL      ] › ℹ  info      Renewing SSL certs expiring within 30 days ...
[9/12/2024] [5:04:41 AM] [IP Ranges] › ℹ  info      IP Ranges Renewal Timer initialized
[9/12/2024] [5:04:41 AM] [Global   ] › ℹ  info      Backend PID 159 listening on port 3000 ...
[9/12/2024] [5:04:41 AM] [SSL      ] › ℹ  info      Completed SSL cert renew process

The Fetching https://ip-ranges.amazonaws.com/ip-ranges.json blocked at startup. Some times this will cost many many time.

@zanderzhng
Copy link

Last night my container stuck at fetching ip-ranges as well, and failed to fetch it for all night.
But I restarted it again this morning and it was all fixed. It would be better to add a timeout and retry here.

@jqknono
Copy link

jqknono commented Sep 26, 2024

I have same issue.start log I found:

[9/12/2024] [4:58:37 AM] [Setup    ] › ℹ  info      Initial admin setup completed
[9/12/2024] [4:58:37 AM] [Setup    ] › ℹ  info      Default settings added
[9/12/2024] [4:58:37 AM] [Setup    ] › ℹ  info      Logrotate Timer initialized
[9/12/2024] [4:58:37 AM] [Global   ] › ⬤  debug     CMD: logrotate /etc/logrotate.d/nginx-proxy-manager
[9/12/2024] [4:58:37 AM] [Setup    ] › ℹ  info      Logrotate completed.
[9/12/2024] [4:58:37 AM] [IP Ranges] › ℹ  info      Fetching IP Ranges from online services...
[9/12/2024] [4:58:37 AM] [IP Ranges] › ℹ  info      Fetching https://ip-ranges.amazonaws.com/ip-ranges.json

[9/12/2024] [5:04:41 AM] [IP Ranges] › ✖  error     read ECONNRESET
[9/12/2024] [5:04:41 AM] [SSL      ] › ℹ  info      Let's Encrypt Renewal Timer initialized
[9/12/2024] [5:04:41 AM] [SSL      ] › ℹ  info      Renewing SSL certs expiring within 30 days ...
[9/12/2024] [5:04:41 AM] [IP Ranges] › ℹ  info      IP Ranges Renewal Timer initialized
[9/12/2024] [5:04:41 AM] [Global   ] › ℹ  info      Backend PID 159 listening on port 3000 ...
[9/12/2024] [5:04:41 AM] [SSL      ] › ℹ  info      Completed SSL cert renew process

The Fetching https://ip-ranges.amazonaws.com/ip-ranges.json blocked at startup. Some times this will cost many many time.

I'm blocked by this fetching too, just run:

NPM_CTR_NAME=nginxproxymanager
docker exec $NPM_CTR_NAME sed -i 's/\.then(internalIpRanges\.fetch)//g' /app/index.js
docker restart $NPM_CTR_NAME

This should skip the fetching of the startup.

@JokerAlger
Copy link

找到解决办法了,我发现是因为我的宿主机上装了node 导致的,把 node 卸载掉,就可以了。 重要的事情说三遍! 宿主机必须删除 node 环境!宿主机必须删除 node 环境!注意需要重启宿主机! 图像 图像 图像 图像

成功!!!

感谢我也是卸载node后重启就好了
微信截图_20241015224924

image

@riruigit
Copy link

这么神奇,我是直接docker部署的。宿主机没有node啊

@Tenodec
Copy link

Tenodec commented Nov 16, 2024

找到解决办法了,我发现是因为我的宿主机上装了node 导致的,把 node 卸载掉,就可以了。 重要的事情说三遍! 宿主机必须删除 node 环境!宿主机必须删除 node 环境!宿主机必须删除 node 环境!注意需要重启宿主机! image image image image

成功!!!

这不是最终解决办法啊,那项目非得用node呢。我怀疑是某个指令是npm 与node的npm冲突了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants