Skip to content

轻管理打不开(一直在加载 #581

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
3 tasks done
ohotto opened this issue May 4, 2025 · 7 comments
Open
3 tasks done

轻管理打不开(一直在加载 #581

ohotto opened this issue May 4, 2025 · 7 comments
Labels
bug Something isn't working

Comments

@ohotto
Copy link

ohotto commented May 4, 2025

Describe the bug

Image

如图所示,进入轻管理界面一直在加载

Image

F12查看有一条报错信息

docker前端容器没有报错日志

 WARN   [UserService]  主人已登录,IP: 000.000.000.000 

 WARN   [AllExceptionsFilter]  IP: 000.000.000.000 错误信息:(404) serverless function is not exist, Path: /ps/update Path: /api/v2/fn/ps/update

docker后端容器日志如上,会有一条登录日志和一个云函数报错,因为我的活动跟踪功能还没有部署,个人理解和轻管理功能不冲突

以上是观察到的现象,以及我初步获取的日志信息

考虑到可能跟用户登录有关系,尝试换用不同登陆方式

用户登陆方式设置了密码、通行密钥和oauth登录

Image

在前端尝试登陆,发现登录按钮图标加载失败,点击后一直转圈没有任何响应

Image

F12可以观察到以上报错信息

访问domain.com/login,输入账号密码,可以登录

或者访问后端domain.com/qaqdmin,使用密码、通行密钥和oauth都可以正常登录

Image

登陆后在前端可以看到已登录,但是不论上述哪种登陆方式,均无法打开轻管理界面

Image

另外,当使用oauth登录时,前端的登出按钮点击也没有效果

Image

退出按钮点击也没有效果时,F12可以观察到以上报错信息

Reproduction

环境版本:
Debian12 with 1panel
面板版本: 4.9.0
系统版本:8.1.1
前端版本不会看,使用docker部署,镜像id:8a0972fd1309

部署方式:
前后端都通过docker compose部署到同一台vps,用反向代理到同一个域名

部署完成后,仅修改了前端的配置(云函数),还没有撰写任何文章或页面

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@ohotto ohotto added the bug Something isn't working label May 4, 2025
@xinchenmi
Copy link

+1,我也一直显示加载中,打不开

@ohotto
Copy link
Author

ohotto commented May 5, 2025

通过自行构建docker镜像,问题已解决

构建环境:
Debian 12
docker 28

构建方式:

git clone https://github.com/Innei/Shiro
cd Shiro
docker build -t shiro-my .

compose文件:

services:
  shiro:
    container_name: shiro
    image: shiro-o
    volumes:
      - ./.env:/app/.env
    restart: always
    environment:
      - NEXT_SHARP_PATH=/usr/local/lib/node_modules/sharp
    ports:
      - 2323:2323

@xinchenmi
Copy link

通过自行构建docker镜像,问题已解决

构建环境: Debian 12 docker 28

构建方式:

git clone https://github.com/Innei/Shiro
cd Shiro
docker build -t shiro-my .
撰写文件:

services:
shiro:
container_name: shiro
image: shiro-o
volumes:
- ./.env:/app/.env
restart: always
environment:
- NEXT_SHARP_PATH=/usr/local/lib/node_modules/sharp
ports:
- 2323:2323

楼主,你的云函数配置可以分享一份吗?

@ohotto
Copy link
Author

ohotto commented May 5, 2025

楼主,你的云函数配置可以分享一份吗?

用的官方文档模板,只修改了个人信息,不知道你想看啥

@xinchenmi
Copy link

楼主,你的云函数配置可以分享一份吗?

用的官方文档模板,只修改了个人信息,不知道你想看啥

热力图的千篇一律,所以我做成了时间线,这个这么搞啊,看不懂,你有搞吗?可以发我一份吗

@ohotto
Copy link
Author

ohotto commented May 5, 2025

热力图的千篇一律,所以我做成了时间线,这个这么搞啊,看不懂,你有搞吗?可以发我一份吗

不知道你说的是什么,我应该没弄,我今天下午才自己构建部署成功,之前一直在排bug,个性化的东西都还没做

@xinchenmi
Copy link

热力图的千篇一律,所以我做成了时间线,这个这么搞啊,看不懂,你有搞吗?可以发我一份吗

不知道你说的是什么,我应该没弄,我今天下午才自己构建部署成功,之前一直在排bug,个性化的东西都还没做

可以加微信一起讨论一下吗?vx号:ZhangRuoNan-ck

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

2 participants