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

最新版的安装,启动时数据库初始化直接报错。 #3215

Closed
meyer-net opened this issue Sep 11, 2019 · 7 comments

Comments

@meyer-net
Copy link

commented Sep 11, 2019

问题描述

以前并没发生类似的问题,因为一直在使用。
现在新环境通过 ./jms start all -d 启动直接报错

使用版本

master 分支 1.5.2

问题复现步骤
  1. 参考 https://docs.jumpserver.org/zh/docs/step_by_step.html 安装
  2. 当执行到 ./jms start all -d 时
  3. 出错
具体表现[截图可能会更好些,最好能截全]

image
image
image

其他

系统:centos 7.6

[注:] 完成后请关闭 issue

@jym503558564

This comment has been minimized.

Copy link
Contributor

commented Sep 16, 2019

数据库也是重新建的吗?

@meyer-net

This comment has been minimized.

Copy link
Author

commented Sep 16, 2019

是的,全部都是全新的。

@wojiushixiaobai

This comment has been minimized.

Copy link
Collaborator

commented Sep 16, 2019

@meyer-net 数据库里面把jumpserver drop 后重建

@meyer-net

This comment has been minimized.

Copy link
Author

commented Sep 16, 2019

@wojiushixiaobai 不行的,我重复试过很多次了。

@meyer-net

This comment has been minimized.

Copy link
Author

commented Sep 16, 2019

@jym503558564 包括py虚拟环境重建,都不行。这段报错了,后续的压根无法执行。

@jym503558564

This comment has been minimized.

Copy link
Contributor

commented Sep 16, 2019

在 perms 的migrations中'0002_auto_20171228_0025_squashed_0009_auto_20180903_1132.py'这张表,注释掉一些内容试试:
image
image
之后重新建表再启动试试

@meyer-net

This comment has been minimized.

Copy link
Author

commented Sep 16, 2019

@jym503558564 that's ok ,问题解决。非常感谢。

@meyer-net meyer-net closed this Sep 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.