上一个提问主题:服务器换新,关于数据迁移的疑问
我们是从 1.0 版本一路升级上来的,升级脚本都有执行过。
但类似这些脚本没执行过,MongoDB、MySQL 这些没有改过任何设置。
3.6、3.7 有星星但是没看到脚本:
上一个提问主题:服务器换新,关于数据迁移的疑问
我们是从 1.0 版本一路升级上来的,升级脚本都有执行过。
但类似这些脚本没执行过,MongoDB、MySQL 这些没有改过任何设置。
3.6、3.7 有星星但是没看到脚本:
晋太元中 2023-06-22 10:08:51🚀️ OK 啦,感谢,我想再把所有脚本重新执行一遍,重复执行应该没影响吧?
没影响
吴言飞(Team) 2023-06-24 21:27:53点一下这里的
刷新所有成员信息
后再看下
OK,问题目前已经解决,感谢 🎉️
点一下这里的 刷新所有成员信息
后再看下
金可伟(Team) 2023-06-22 10:46:11这个我不直接负责,不确定了,通常脚本应当兼容的,可以先检查下有没有遗漏执行的,
ok,目前暂时没发现别的问题,先不操作,感谢 🎉️
金可伟(Team) 2023-06-22 09:58:04重启下,可能有些数据没有加载完整
这个我不直接负责,不确定了,通常脚本应当兼容的,可以先检查下有没有遗漏执行的,
金可伟(Team) 2023-06-22 09:58:04重启下,可能有些数据没有加载完整
🚀️ OK 啦,感谢,我想再把所有脚本重新执行一遍,重复执行应该没影响吧?
晋太元中 2023-06-22 09:56:43一开始不熟悉,可能漏执行了,后来熟悉了,都会注意执行脚本。
刚刚补充执行了 1.3.0 的脚本,组织管理正常了,但是汇报关系还是显示空白。
附上最新的系统日志 file_20230622095454.json
重启下,可能有些数据没有加载完整
金可伟(Team) 2023-06-22 09:49:07升级有脚本的话有执行的吧?
一开始不熟悉,可能漏执行了,后来熟悉了,都会注意执行脚本。
刚刚补充执行了 1.3.0 的脚本,组织管理正常了,但是汇报关系还是显示空白。
附上最新的系统日志 file_20230622095454.json
金可伟(Team) 2023-06-22 09:40:00看了下有数据库 ORM 错误,估计是漏了脚本执行语句,MySQL 数据库少字段,是哪个版本升级到最新的版本的?
很早之前不太熟悉,可能有漏,后来熟悉了,都会注意执行脚本的事情。
我刚刚执行了 1.3.0 的脚本,组织管理正常了,但是汇报关系可能还是有问题,是空白的。
附上新的系统日志 file_20230622094808.json
晋太元中 2023-06-22 09:42:26第一次安装时版本是 1.1,很古早了,都是一路升级上来的
升级有脚本的话有执行的吧?
金可伟(Team) 2023-06-22 09:40:00看了下有数据库 ORM 错误,估计是漏了脚本执行语句,MySQL 数据库少字段,是哪个版本升级到最新的版本的?
第一次安装时版本是 1.1,很古早了,都是一路升级上来的
晋太元中 2023-06-22 09:20:32服务器授权密钥是新的。
附件为系统日志 file_20230622091825.json
看了下有数据库 ORM 错误,估计是漏了脚本执行语句,MySQL 数据库少字段,是哪个版本升级到最新的版本的?
金可伟(Team) 2023-06-22 09:30:40这个启动日志看着没啥问题。主要看下,点击组织后台报错之后,有没有相关系统日志,系统管理可以导出的
我在前一条回复了,导出了系统日志,上传了日志附件
晋太元中 2023-06-22 09:25:29再补充刚刚的启动日志
root@VM-16-8-ubuntu:/usr/local/MDYHCY# bash ./service.sh startall Installer | 2023-06-22 09:12:05 | INFO | GenToken | 管理后台认证Token: xxxxx Installer | 2023-06-22 09:12:05 | INFO | main | Server Listen 0.0.0.0:38881 Installer | 2023-06-22 09:12:05 | INFO | StartServerIdExec | bash -c ./service.sh startServerIdExec panic: listen tcp 0.0.0.0:38881: bind: address already in use goroutine 1 [running]: main.main() /data/jenkins/workspace/安装包/private-installer/server/main.go:48 +0x4d9 Web日志已保存至: ./log/installer_20230622091205.log [Y] User: root [Y] Selinux: getenforce not found [Y] Firewalld: not running [Y] CPU: 8 [Y] Memory: 61 [Y] docker: executable [Y] dockerd: executable [Y] MaxMapCount: 262144 [Y] SysFileNr: 2048000 [Y] IPv4Forward: 1 [Y] DockerCgroupDrive: cgroupfs [Y] DockerdFileNr: 1048576 [Y] Umask: 0022 -------------------------------------------------------- 脚本模式启动ServerId服务 -------------------------------------------------------- 已加载镜像: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-community:4.3.0 已加载镜像: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc:1.2.0 script_doc_1 is up-to-date script_app_1 is up-to-date 完整启动服务预计需要等待5分钟,启动期间请勿访问服务! [###################################################][100%][|] -------------------------------------------------------- - CommunityVersion: 4.3.0 - Name: VM-16-8-ubuntu - ExternalIP: xxx.xxx.xxx.xxx - InternalIP: 172.16.16.8 - CPU(Core): 8 - Mem(GB): 61.06 - Disk: /dev/vda2 99G 27G 69G 28% / /dev/vdb 98G 13G 80G 14% /data - Kernel: Linux VM-16-8-ubuntu 5.15.0-75-generic #82-Ubuntu SMP Tue Jun 6 23:10:23 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux -------------------------------------------------------- check: [Y] User: root [Y] Selinux: getenforce not found [Y] Firewalld: not running [Y] CPU: 8 [Y] Memory: 61 [Y] docker: executable [Y] dockerd: executable [Y] MaxMapCount: 262144 [Y] SysFileNr: 2048000 [Y] IPv4Forward: 1 [Y] DockerCgroupDrive: cgroupfs [Y] DockerdFileNr: 1048576 [Y] Umask: 0022 installer: root 46006 0.0 0.0 561616 43560 pts/1 Sl 01:04 0:00 ./bin/amd64/mingdaoyun_private_deployment_captain --path /data/mingdao --port 38880 root 575022 0.0 0.0 6620 2260 pts/1 R+ 09:17 0:00 grep mingdaoyun_private_deployment_captain root 45999 0.0 0.0 7632 3800 pts/1 S 01:04 0:00 /bin/bash ./service.sh startServerIdExec root 567339 0.2 0.0 7764 4232 pts/1 S+ 09:12 0:00 bash ./service.sh startall root 575024 0.0 0.0 6612 2428 pts/1 R+ 09:17 0:00 grep service.sh -rw-r--r-- 1 root root 236 Jun 22 09:06 /data/mingdao/data service config: version: '3' services: app: image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-community:4.3.0 environment: ENV_ADDRESS_MAIN: "MASKMASKMASK" ENV_APP_VERSION: "MASKMASKMASK" ENV_API_TOKEN: "MASKMASKMASK" ports: - 8880:8880 volumes: - ./volume/data/:/data/ - ../data:/data/mingdao/data - /usr/share/zoneinfo/Etc/GMT-8:/etc/localtime doc: image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc:1.2.0 docker containers: 06f36247cdfd registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-community:4.3.0 "/Housekeeper/main -…" 8 hours ago Up 8 hours 0.0.0.0:8880->8880/tcp, :::8880->8880/tcp script_app_1 4dedf2cd6d13 registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc:1.2.0 "/app/ds/run-documen…" 8 hours ago Up 8 hours 80/tcp, 443/tcp script_doc_1 docker images: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-community 4.3.0 1ccbf7ca1cb0 2 days ago 9.26GB registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc 1.2.0 cc4d668f289b 3 months ago 2.66GB docker logs: Housekeeper | 2023-06-22 09:13:52 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:14:02 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:14:12 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:14:23 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:14:33 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:14:42 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:14:52 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:15:02 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:15:13 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:15:23 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:15:32 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:15:42 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:15:52 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:16:02 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:16:13 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:16:22 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:16:33 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:16:42 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:16:53 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK Housekeeper | 2023-06-22 09:17:02 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK 运行docker logs 06f36247cdfd输出更多日志 服务启动正常 ______ _______ _________ ___ |/ /__(_)_____________ ______ /_____ ______ __ /|_/ /__ /__ __ \_ __ `/ __ /_ __ `/ __ \ _ / / / _ / _ / / / /_/ // /_/ / / /_/ // /_/ / /_/ /_/ /_/ /_/ /_/_\__, / \__,_/ \__,_/ \____/ /____/
这个启动日志看着没啥问题。主要看下,点击组织后台报错之后,有没有相关系统日志,系统管理可以导出的
金可伟(Team) 2023-06-22 09:00:36这个要具体看下,更换服务器授权密钥也要修改了,系统日志看下
再补充刚刚的启动日志
root@VM-16-8-ubuntu:/usr/local/MDYHCY# bash ./service.sh startall
Installer | 2023-06-22 09:12:05 | INFO | GenToken | 管理后台认证Token: xxxxx
Installer | 2023-06-22 09:12:05 | INFO | main | Server Listen 0.0.0.0:38881
Installer | 2023-06-22 09:12:05 | INFO | StartServerIdExec | bash -c ./service.sh startServerIdExec
panic: listen tcp 0.0.0.0:38881: bind: address already in use
goroutine 1 [running]:
main.main()
/data/jenkins/workspace/安装包/private-installer/server/main.go:48 +0x4d9
Web日志已保存至: ./log/installer_20230622091205.log
[Y] User: root
[Y] Selinux: getenforce not found
[Y] Firewalld: not running
[Y] CPU: 8
[Y] Memory: 61
[Y] docker: executable
[Y] dockerd: executable
[Y] MaxMapCount: 262144
[Y] SysFileNr: 2048000
[Y] IPv4Forward: 1
[Y] DockerCgroupDrive: cgroupfs
[Y] DockerdFileNr: 1048576
[Y] Umask: 0022
--------------------------------------------------------
脚本模式启动ServerId服务
--------------------------------------------------------
已加载镜像: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-community:4.3.0
已加载镜像: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc:1.2.0
script_doc_1 is up-to-date
script_app_1 is up-to-date
完整启动服务预计需要等待5分钟,启动期间请勿访问服务!
[###################################################][100%][|]
--------------------------------------------------------
- CommunityVersion: 4.3.0
- Name: VM-16-8-ubuntu
- ExternalIP: xxx.xxx.xxx.xxx
- InternalIP: 172.16.16.8
- CPU(Core): 8
- Mem(GB): 61.06
- Disk: /dev/vda2 99G 27G 69G 28% / /dev/vdb 98G 13G 80G 14% /data
- Kernel: Linux VM-16-8-ubuntu 5.15.0-75-generic #82-Ubuntu SMP Tue Jun 6 23:10:23 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
--------------------------------------------------------
check:
[Y] User: root
[Y] Selinux: getenforce not found
[Y] Firewalld: not running
[Y] CPU: 8
[Y] Memory: 61
[Y] docker: executable
[Y] dockerd: executable
[Y] MaxMapCount: 262144
[Y] SysFileNr: 2048000
[Y] IPv4Forward: 1
[Y] DockerCgroupDrive: cgroupfs
[Y] DockerdFileNr: 1048576
[Y] Umask: 0022
installer:
root 46006 0.0 0.0 561616 43560 pts/1 Sl 01:04 0:00 ./bin/amd64/mingdaoyun_private_deployment_captain --path /data/mingdao --port 38880
root 575022 0.0 0.0 6620 2260 pts/1 R+ 09:17 0:00 grep mingdaoyun_private_deployment_captain
root 45999 0.0 0.0 7632 3800 pts/1 S 01:04 0:00 /bin/bash ./service.sh startServerIdExec
root 567339 0.2 0.0 7764 4232 pts/1 S+ 09:12 0:00 bash ./service.sh startall
root 575024 0.0 0.0 6612 2428 pts/1 R+ 09:17 0:00 grep service.sh
-rw-r--r-- 1 root root 236 Jun 22 09:06 /data/mingdao/data
service config:
version: '3'
services:
app:
image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-community:4.3.0
environment:
ENV_ADDRESS_MAIN: "MASKMASKMASK"
ENV_APP_VERSION: "MASKMASKMASK"
ENV_API_TOKEN: "MASKMASKMASK"
ports:
- 8880:8880
volumes:
- ./volume/data/:/data/
- ../data:/data/mingdao/data
- /usr/share/zoneinfo/Etc/GMT-8:/etc/localtime
doc:
image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc:1.2.0
docker containers:
06f36247cdfd registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-community:4.3.0 "/Housekeeper/main -…" 8 hours ago Up 8 hours 0.0.0.0:8880->8880/tcp, :::8880->8880/tcp script_app_1
4dedf2cd6d13 registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc:1.2.0 "/app/ds/run-documen…" 8 hours ago Up 8 hours 80/tcp, 443/tcp script_doc_1
docker images:
registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-community 4.3.0 1ccbf7ca1cb0 2 days ago 9.26GB
registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc 1.2.0 cc4d668f289b 3 months ago 2.66GB
docker logs:
Housekeeper | 2023-06-22 09:13:52 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:14:02 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:14:12 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:14:23 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:14:33 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:14:42 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:14:52 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:15:02 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:15:13 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:15:23 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:15:32 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:15:42 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:15:52 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:16:02 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:16:13 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:16:22 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:16:33 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:16:42 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:16:53 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
Housekeeper | 2023-06-22 09:17:02 | INFO | Housekeeper | Check result send to https://open.feishu.cn/open-apis/bot/v2/hook/49ecf1c0-f8b7-4fe1-8d70-554264ca1783, Status: 200 OK
运行docker logs 06f36247cdfd输出更多日志
服务启动正常
______ _______ _________
___ |/ /__(_)_____________ ______ /_____ ______
__ /|_/ /__ /__ __ \_ __ `/ __ /_ __ `/ __ \
_ / / / _ / _ / / / /_/ // /_/ / / /_/ // /_/ /
/_/ /_/ /_/ /_/ /_/_\__, / \__,_/ \__,_/ \____/
/____/
金可伟(Team) 2023-06-22 09:00:36这个要具体看下,更换服务器授权密钥也要修改了,系统日志看下
服务器授权密钥是新的。
附件为系统日志 file_20230622091825.json
这个要具体看下,更换服务器授权密钥也要修改了,系统日志看下