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

镜像启动失败,日志提示:Warning: connect.session() MemoryStore is not designed for a production environment, as it will leak memory, and will not scale past a single process. Listening for HTTP requests on port 3443 on all interfaces #185

Open
freejishu opened this issue Dec 27, 2024 · 0 comments

Comments

@freejishu
Copy link

freejishu commented Dec 27, 2024

一直使用该镜像,应该说稳定二百多天了,今天想调整网络,发现3443后台进不去了;

image

登录服务器后排查发现容器一直处于循环重启的状态;

通过docker logs 容器ID发现这块内容在日志中被循环输出:

Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.

Listening for HTTP requests on port 3443 on all interfaces

  • check_file_server
  • '[' '!' -f /app/config/file_server.port ]
  • echo 'file_server.port is exist, read it'
    file_server.port is exist, read it
  • cat /app/config/file_server.port
  • FILE_SERVER_PORT=3000
  • echo 3000
  • check_zerotier
  • mkdir -p /var/lib/zerotier-one
    3000
  • ls -A /var/lib/zerotier-one
    /var/lib/zerotier-one is not empty, start directly
  • '[' '00000009b37828e5.moon
    authtoken.secret
    controller.d
    current.c25519
    identity.public
    identity.secret
    metrics.prom
    metricstoken.secret
    mkmoonworld-x86_64
    moon.json
    moons.d
    peers.d
    planet
    previous.c25519
    zerotier-cli
    zerotier-idtool
    zerotier-one
    zerotier-one.pid
    zerotier-one.port
    zerotier-one.te' ]
  • echo '/var/lib/zerotier-one is not empty, start directly'
  • check_ztncui
  • mkdir -p /app/ztncui
  • ls -A /app/ztncui
  • '[' 'LICENSE
    README.md
    build
    src' ]
  • echo 3443
  • echo '/app/ztncui is not empty, start directly'
  • start
  • echo 'start ztncui and zerotier'
  • cd /var/lib/zerotier-one
    /app/ztncui is not empty, start directly
    start ztncui and zerotier
  • cat /app/config/zerotier-one.port
  • ./zerotier-one -p9994 -d
  • cd /app/ztncui/src
  • npm start
  • nohup node /app/http_server.js
    Starting V6 Control Plane...
    Starting Control Plane...

[email protected] start
node ./bin/www

Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Listening for HTTP requests on port 3443 on all interfaces`

...

推测重点的内容应该是Warning: connect.session() MemoryStore is no designed for a production environment, as it will leak memory, and will not scale past a single process.这个信息

因为重新配置一遍确实有好多台机器,所以在重新部署镜像之前想问问还有什么办法可以解决此问题。

感谢Dalao Orz

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

No branches or pull requests

1 participant