Giter Site home page Giter Site logo

chaos-zhu / easynode Goto Github PK

View Code? Open in Web Editor NEW
1.2K 9.0 180.0 24.19 MB

一个Linux服务器WEB SSH面板(webSSH&webSFTP)

Home Page: https://github.com/chaos-zhu/easynode

License: MIT License

JavaScript 42.97% Vue 53.79% SCSS 1.36% Dockerfile 0.17% Shell 1.19% HTML 0.53%

easynode's Issues

安装可以用,重启之后就无法启动了

/root/.pm2/logs/easynode-server-error.log last 15 lines:
0|easynode | requireStack: []
0|easynode | }
0|easynode | Error: Cannot find module '/root/easynode-server'
0|easynode | at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
0|easynode | at Module._load (node:internal/modules/cjs/loader:901:27)
0|easynode | at Object. (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
0|easynode | at Module._compile (node:internal/modules/cjs/loader:1233:14)
0|easynode | at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
0|easynode | at Module.load (node:internal/modules/cjs/loader:1091:32)
0|easynode | at Module._load (node:internal/modules/cjs/loader:938:12)
0|easynode | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
0|easynode | at node:internal/main/run_main_module:23:47 {
0|easynode | code: 'MODULE_NOT_FOUND',
0|easynode | requireStack: []
0|easynode | }

一键脚本安装后cpu100%

系统:centos7 debian10
纯净系统安装完成后,或者重启后执行pm2 start easynode-server之后,CPU立马飙到100%

日志截图:

top截图:

这两个截图感觉看不出来很异常的地方,然后我装aapanel用任务管理器发现CPU占用最高的是ssh服务
jlGsFx.png

菜鸟问个问题

有服务器监控就行了,打开浏览器不是就可以访问了?那为何还要安装客户端呢?

Safari访问无法弹出登录页面

你好,Safari访问无法弹出登录页面,iPad和Mac上都不行,Mac上看到页面加载后控制台有个报错

SyntaxError: Invalid regular expression: invalid group specifier name
promiseReactionJob

Safari版本
Version 15.5 (17613.2.7.1.8)

Docker版鉴权窗口反复弹出

作者您好,我在使用了您给出的docker部署命令行进行部署您的应用:

docker run -d --net=host --name=easynode-server -v easynode-server:/easynode-server/app/storage/ chaoszhu/easynode:v1.2.1

部署成功后,在portainer管理页面看到该应用有稳定运行,然后我通过浏览器输入http://my_ip:8082后访问,有鉴权窗口显示

在输入默认的admin密码后,有弹出登录成功,请及时修改默认密码的通知,但鉴权页面依然重新弹出显示

流程大致如下

graph LR
    1(开始) --> 浏览器输入`http://my_ip:8082` --> 弹出鉴权页面 --> 输入密码 --> 弹出通知
    弹出通知 --> 弹出鉴权页面
Loading

可以打包docker的arm64镜像吗

最近看了看大佬写的这个项目确实不错,本来想体验体验的。但是我想在我arm上跑这个docker镜像,发现镜像只支持amd64的。所以能否打包arm64的镜像,假如可以的话就非常感谢了。

docker:v1.2.1-内网部署后,一直卡在登录界面,反复提示登录。

0.操作步骤

版本信息:docker、chaoszhu/easynode:v1.2.1

  • 外网docker save镜像
  • 内网docker load镜像
  • 内网执行启动命令启动

1.容器日志

> [email protected] server
> cross-env EXEC_ENV=production nodemon ./app/main.js
[nodemon] 2.0.16
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node ./app/main.js`
ℹ 路由白名单: [
  '/api/v1/login',
  '/api/v1/get-pub-pem'
]
ℹ Task: 已生成新的随机commonKey密钥
ℹ Task: 已生成新的非对称加密公私钥
✔ Server(http) is running on: http://localhost:8082
✔ Client(http) is running on: http://localhost:22022
ℹ 查询IP信息: undefined
ℹ Task: 生产环境首次启动储存本机IP:  获取IP信息API出错,请排查或更新API
✔ Task: start getIpInfo 2023-08-22T08:56:00.004Z
 ERROR  getIpInfo Error:  2023-08-22T08:56:03.016Z connect ETIMEDOUT 208.95.112.1:80
  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
✔ Task: start getIpInfo 2023-08-22T08:56:30.011Z
 ERROR  getIpInfo Error:  2023-08-22T08:56:33.396Z connect ETIMEDOUT 208.95.112.1:80
  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
✔ Task: start getIpInfo 2023-08-22T08:57:00.028Z
 ERROR  getIpInfo Error:  2023-08-22T08:57:03.036Z connect ETIMEDOUT 208.95.112.1:80
  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
✔ Task: start getIpInfo 2023-08-22T08:57:30.019Z
 ERROR  getIpInfo Error:  2023-08-22T08:57:33.160Z connect ETIMEDOUT 208.95.112.1:80
  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
ℹ verify path:  /api/v1/host-list
ℹ verify path:  /api/v1/get-pub-pem
✔ Task: start getIpInfo 2023-08-22T08:58:00.014Z
 ERROR  getIpInfo Error:  2023-08-22T08:58:03.032Z connect ETIMEDOUT 208.95.112.1:80
  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
ℹ verify path:  /api/v1/login
ℹ 查询IP信息: undefined
ℹ verify path:  /api/v1/host-list
ℹ 校验客户端IP: 10.16.94.201
ℹ 最后登录的IP: 获取IP信息API出错,请排查或更新API
ℹ verify path:  /api/v1/get-pub-pem
ℹ verify path:  /api/v1/login
✔ Task: start getIpInfo 2023-08-22T08:58:30.006Z
ℹ 查询IP信息: undefined
ℹ verify path:  /api/v1/host-list
ℹ 校验客户端IP: 10.16.94.201
ℹ 最后登录的IP: 获取IP信息API出错,请排查或更新API
ℹ verify path:  /api/v1/get-pub-pem
 ERROR  getIpInfo Error:  2023-08-22T08:58:33.021Z connect ETIMEDOUT 208.95.112.1:80
  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
✔ Task: start getIpInfo 2023-08-22T08:59:00.005Z
 ERROR  getIpInfo Error:  2023-08-22T08:59:03.015Z connect ETIMEDOUT 208.95.112.1:80
  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)

2.异常图(gif)

git打不开的话看这个地址
https://markdown-1258124344.cos.ap-guangzhou.myqcloud.com/images/202308221717380.gif

3

docker版本sftp打开文件报错

arm服务器docker安装easynode后可正常登陆ssh连接服务器,但是sftp打开文件时弹报错信息:

fastGet->fastGet: Bad path: /easynode-server/app/socket/sftp-cache/.profile: /easynode-server/app/socket/sftp-cache: not exist

截屏2023-03-11 下午8 45 20

可以提供前端的源代码吗

我主要想用webssh和websftp功能,而不想每台服务器安装客户端,所以也不需要左侧实时的内存,cpu,网络等资源监控,想对这里做些修改,但是现在的前端代码都是打包后的,没法修改,能提供打包前的源码吗

[Feature Request] Support IP2Location.io API in server/app/utils/tools.js

I would like to introduce the IP2Location.io IP geolocation API. It has the following advantages compare to other API providers.

  • Fast - one of the fastest API in the market using multi-location servers and anycast technology
  • Accurate - based on IP2Location and IP2Proxy database which is available since 2002
  • Free - free tier with 30,000 queries monthly available to all users who sign-up online

Please consider IP2Location.io as one of the database source in WordPress IP Geo Block. Feel free to ping me if you have any questions. Thank you.

背景设置

我是用docker-compose来搭建的,我想改一下背景图,怎么操作,麻烦指导一下,谢谢。

主机数量超出12个后,排序功能无法使用

您好,这边测试用下来发现以下问题:
Debian11,使用一键脚本安装的,各项功能都正常使用。但是在主机排序时发现当主机数量超过12个后,无法排序,因为排序界面显示的主机数量就只有12个。超出12个数量后,排序界面不显示。(当主机数量为12个以下时,是可以正常排序的。)

仅反馈使用中遇到的问题,感谢大佬开源。

SFTP 无法编辑文件问题。附:解决方法。

一键安装,连接SSH,打开SFTP,再打开任意文件后提示:fastGet->fastGet: Bad path: /root/easynode-server/app/socket/sftp-cache/libaudit.conf: /root/easynode-server/app/socket/sftp-cache: not exist
此错误可用以下方法解决:
在/root/easynode-server/app/socket/该目录下,创建文件夹【sftp-cache】后,就可以正常编辑文件了。

然后,感谢大佬开源这么好用的工具。

ubuntu20 安裝后反复login

在ubuntu16/20 上自动安装后,admin登录成功后,反复login,没法进行任何操作。。。
安装没有报错,但是login后又弹出来,无限往复。
求助。。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.