启动 GridDB 服务时出现问题

问题描述 投票:0回答:1

我在系统上启动 GridDB 服务时遇到困难。我在 Windows 11 电脑上使用适用于 Linux 的 Windows 子系统。尝试使用以下方式启动服务时:

sudo systemctl start gridstore

我收到以下错误消息:

Job for gridstore.service failed because the control process exited with error code.
See "systemctl status gridstore.service" and "journalctl -xeu gridstore.service" for details.

按照建议查看详细信息时,t

└─$ sudo systemctl status gridstore.service
× gridstore.service - GridDB database server.
     Loaded: loaded (/lib/systemd/system/gridstore.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Tue 2024-01-09 18:12:57 +0545; 7min ago
    Process: 271 ExecStart=/usr/griddb/bin/gridstore start (code=exited, status=1/FAILURE)

Jan 09 18:12:56 DESKTOP-MADJTO2 gridstore[288]:          ^^^^^^^^^^^^^^^^
Jan 09 18:12:56 DESKTOP-MADJTO2 gridstore[288]: ValueError: invalid mode: 'rU'
Jan 09 18:12:56 DESKTOP-MADJTO2 gridstore[271]: Stopping gridstore service:
Jan 09 18:12:56 DESKTOP-MADJTO2 gridstore[324]: A80101: Node is not joined.
Jan 09 18:12:57 DESKTOP-MADJTO2 gridstore[271]: Stopped.
Jan 09 18:12:57 DESKTOP-MADJTO2 gridstore[271]: F01002: Startnode error
Jan 09 18:12:57 DESKTOP-MADJTO2 gridstore[271]: [ FAILED ]
Jan 09 18:12:57 DESKTOP-MADJTO2 systemd[1]: gridstore.service: Control process exited, code=exited, status=1/FAILURE
Jan 09 18:12:57 DESKTOP-MADJTO2 systemd[1]: gridstore.service: Failed with result 'exit-code'.
Jan 09 18:12:57 DESKTOP-MADJTO2 systemd[1]: Failed to start GridDB database server..

└─$ sudo journalctl -xeu gridstore.service
Jan 09 18:12:56 DESKTOP-MADJTO2 gridstore[288]:   File "/usr/bin/gs_startnode", line 133, in <module>
Jan 09 18:12:56 DESKTOP-MADJTO2 gridstore[288]:     serverPid = util.getpid(pidfile)
Jan 09 18:12:56 DESKTOP-MADJTO2 gridstore[288]:                 ^^^^^^^^^^^^^^^^^^^^
Jan 09 18:12:56 DESKTOP-MADJTO2 gridstore[288]:   File "/usr/griddb-5.3.0/bin/util.py", line 191, in getpid
Jan 09 18:12:56 DESKTOP-MADJTO2 gridstore[288]:     fp = open(path, 'rU')
Jan 09 18:12:56 DESKTOP-MADJTO2 gridstore[288]:          ^^^^^^^^^^^^^^^^
Jan 09 18:12:56 DESKTOP-MADJTO2 gridstore[288]: ValueError: invalid mode: 'rU'
Jan 09 18:12:56 DESKTOP-MADJTO2 gridstore[271]: Stopping gridstore service:
Jan 09 18:12:56 DESKTOP-MADJTO2 gridstore[324]: A80101: Node is not joined.
Jan 09 18:12:57 DESKTOP-MADJTO2 gridstore[271]: Stopped.
Jan 09 18:12:57 DESKTOP-MADJTO2 gridstore[271]: F01002: Startnode error
Jan 09 18:12:57 DESKTOP-MADJTO2 gridstore[271]: [ FAILED ]
Jan 09 18:12:57 DESKTOP-MADJTO2 systemd[1]: gridstore.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStart= process belonging to unit gridstore.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jan 09 18:12:57 DESKTOP-MADJTO2 systemd[1]: gridstore.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit gridstore.service has entered the 'failed' state with result 'exit-code'.
Jan 09 18:12:57 DESKTOP-MADJTO2 systemd[1]: Failed to start GridDB database server..
░░ Subject: A start job for unit gridstore.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit gridstore.service has finished with a failure.
░░
░░ The job identifier is 398 and the job result is failed.

我遵循了GridDB官方网站的文档(https://docs.griddb.net/gettingstarted/wsl/#running-griddb-on-wsl)。

发生错误后,我尝试在具有相同配置(WSL)的新系统中再次安装,但仍然出现相同的错误。

linux database nosql windows-subsystem-for-linux griddb
1个回答
0
投票

对于 WSL 的某些安装,systemd 不可用,我怀疑您遇到了这种情况。在您链接到的文档中,有一个部分用于在没有 systemd 的情况下启动 GridDB:https://docs.griddb.net/gettingstarted/wsl/#using-griddb-on-wsl-without-systemd

你可以试试看它是否运行吗?

© www.soinside.com 2019 - 2024. All rights reserved.