设置开机启动出现错误。

问答  收藏
1 / 80

开机启动的文件如下,文件名 mingdao.service

[Unit]
Description=Start Mingdao services at boot time
After=network.target

[Service]
Type=oneshot
ExecStartPre=/bin/sleep 30
ExecStartPre=/usr/bin/docker system prune -f
ExecStart=/bin/bash -c 'cd /home/mumu/mingdaoyun && ./service.sh startall'
ExecStop=/bin/bash -c 'cd /home/mumu/mingdaoyun && ./service.sh stopall'
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

开机启动出现如下错误

1月 24 13:03:54 muluochu systemd[1]: Starting mingdao.service - Start Mingdao services at boot time...
1月 24 13:07:47 muluochu docker[884]: Deleted Containers:
1月 24 13:07:47 muluochu docker[884]: 76b80a3a198453ab7c397726c613b832bd043b9af36fac0325b4826f3cab7c1b
1月 24 13:07:47 muluochu docker[884]: e06fd61db3c4caab4aba70c7947b23fb3f976fe262f338997e14c89a0d2edc5b
1月 24 13:07:47 muluochu docker[884]: d4e5b0b4eb0a8bceac39d7a89d6e58980b48e4d2d3d7ecea2066c0ffaa235c22
1月 24 13:07:47 muluochu docker[884]: 89eb753fc3630c9ee16abecaf9c9e58d6d257dfe949f18ed3cb328f42360d417
1月 24 13:07:47 muluochu docker[884]: 9d8fd14104a1a6a023185a303f1be6afdb08425a30faf6ba332ed6d313503a8c
1月 24 13:07:47 muluochu docker[884]: b918b21a7c07e5608285aeb5af9ac87e8d81734d29d953ea6afb11b5dc4f63d9
1月 24 13:07:48 muluochu docker[884]: Deleted Networks:
1月 24 13:07:48 muluochu docker[884]: script_default
1月 24 13:07:48 muluochu docker[884]: Total reclaimed space: 3.697GB
1月 24 13:07:48 muluochu bash[3112]: Web logs have been saved to: ./log/installer_20250124130748.log
1月 24 13:07:48 muluochu bash[3112]: [Y]                                           User: root
1月 24 13:07:48 muluochu bash[3112]: [Y]                        Selinux: getenforce not found
1月 24 13:07:48 muluochu bash[3112]: [Y]                               Firewalld: not running
1月 24 13:07:49 muluochu bash[3112]: [Y]                                               CPU: 8
1月 24 13:07:49 muluochu bash[3112]: [Y]                                           Memory: 62
1月 24 13:07:49 muluochu bash[3112]: [Y]                                   docker: executable
1月 24 13:07:49 muluochu bash[3112]: [Y]                                  dockerd: executable
1月 24 13:07:49 muluochu bash[3112]: [Y]                              timedatectl: executable
1月 24 13:07:49 muluochu bash[3112]: [Y]                                   MaxMapCount: 65530
1月 24 13:07:49 muluochu bash[3112]: [Y]                                   SysFileNr: 2048000
1月 24 13:07:49 muluochu bash[3112]: [Y]                                       IPv4Forward: 1
1月 24 13:08:05 muluochu bash[3112]: [Y]                          DockerCgroupDrive: cgroupfs
1月 24 13:08:05 muluochu bash[3112]: [Y]                                DockerdFileNr: 524288
1月 24 13:08:05 muluochu bash[3112]: [Y]                               DockerdVersion: 27.5.0
1月 24 13:08:05 muluochu bash[3112]: [Y]                                          Umask: 0022
1月 24 13:08:05 muluochu bash[3112]: --------------------------------------------------------
1月 24 13:08:05 muluochu bash[3112]: Start ServerId service in script mode
1月 24 13:08:05 muluochu bash[3112]: --------------------------------------------------------
1月 24 13:08:05 muluochu bash[3112]: Image loaded: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-command:node1018-python36
1月 24 13:08:05 muluochu bash[3112]: Image loaded: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-community:6.0.1
1月 24 13:08:05 muluochu bash[3112]: Image loaded: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc:1.2.0
1月 24 13:08:05 muluochu bash[3112]: Image loaded: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-flink:1.17.1.530
1月 24 13:08:05 muluochu bash[3112]: Image loaded: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-ldoc:1.0.0
1月 24 13:08:05 muluochu bash[3112]: Image loaded: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-sc:3.0.0
1月 24 13:08:07 muluochu bash[4735]: Creating network "script_default" with the default driver
1月 24 13:08:08 muluochu bash[4735]: Creating script_sc_1      ...
1月 24 13:08:08 muluochu bash[4735]: Creating script_flink_1   ...
1月 24 13:08:08 muluochu bash[4735]: Creating script_ldoc_1    ...
1月 24 13:08:08 muluochu bash[4735]: Creating script_command_1 ...
1月 24 13:08:08 muluochu bash[4735]: Creating script_app_1     ...
1月 24 13:08:08 muluochu bash[4735]: Creating script_doc_1     ...
1月 24 13:09:08 muluochu bash[4735]: [240B blob data]
1月 24 13:09:08 muluochu bash[4735]: ERROR: for script_doc_1  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
1月 24 13:09:09 muluochu bash[4735]: ERROR: for doc  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
1月 24 13:09:09 muluochu bash[4735]: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
1月 24 13:09:09 muluochu bash[4735]: If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).
1月 24 13:09:09 muluochu bash[3112]: The complete service startup is expected to take 5 minutes, please do not access the service during startup!
1月 24 13:10:29 muluochu bash[3112]: [47.9K blob data]

开机以后用 sudo systemctl start mingdao.service 启动就没问题,
是什么地方设置有问题?