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

ubuntu-server无法启动 #126

Closed
YipSzeho opened this issue Jan 11, 2024 · 7 comments
Closed

ubuntu-server无法启动 #126

YipSzeho opened this issue Jan 11, 2024 · 7 comments

Comments

@YipSzeho
Copy link

YipSzeho commented Jan 11, 2024

@ubuntu-server:~/koi$ ./koi
0000|2024-01-11 14:39:04 [I] launcher Koishi 桌面 v1.0.1
2024/01/11 14:39:04 systray error: failed to register our icon with the notifier watcher (maybe no tray is running?): The name org.kde.StatusNotifierWatcher was not provided by any .service files

然后测试web界面

@ubuntu-server:~$ curl 127.0.0.1:5140
curl: (7) Failed to connect to 127.0.0.1 port 5140 after 0 ms: 拒绝连接

修改监听IP为0.0.0.0
image
局域网浏览器无法打开
image
内部curl也无法打开

ubuntu-server:~$ curl 127.0.0.1:5140
curl: (7) Failed to connect to 127.0.0.1 port 5140 after 0 ms: 拒绝连接
@ilharp
Copy link
Member

ilharp commented Jan 11, 2024

Koishi Desktop 已经正常启动。参考 #123

无法连接可能是 Koishi 没有正常运行导致的,可以先运行 koi ps 查看 Koishi 是否正常运行;另外,每次手动修改配置文件以后需要运行 koi restart default 来重启 Koishi。

@YipSzeho
Copy link
Author

Koishi Desktop 已经正常启动。参考 #123

无法连接可能是 Koishi 没有正常运行导致的,可以先运行 koi ps 查看 Koishi 是否正常运行;另外,每次手动修改配置文件以后需要运行 koi restart default 来重启 Koishi。

@ubuntu-server:~/koi$ ./koi restart default
0000|2024-01-11 18:20:27 [I] launcher Koishi 桌面 v1.0.1
@ubuntu-server:~/koi$ ./koi ps
0000|2024-01-11 18:20:36 [I] launcher Koishi 桌面 v1.0.1
{"instances":null}

是程序没正常运行起来?

@ilharp
Copy link
Member

ilharp commented Jan 11, 2024

看起来是的。运行

cat ~/.koishi/data/logs/2024-01-11.log | less -S

看看日志吧。可以把日志全部发上来。

@YipSzeho
Copy link
Author

看起来是的。运行

cat ~/.koishi/data/logs/2024-01-11.log | less -S

看看日志吧。可以把日志全部发上来。

0000|3|2024-01-11 18:28:28 [D] launcher 触发操作:运行用户界面
0000|3|2024-01-11 18:28:28 [D] launcher 触发操作:运行
0000|3|2024-01-11 18:28:28 [D] launcher Writing tray.lock...
0000|3|2024-01-11 18:28:28 [D] launcher 托盘已就绪。
0000|2|2024-01-11 18:28: [I] launcher 正在启动这些实例:
                        default
0000|3|2024-01-11 18:28: [D] launcher 触发操作:运行服务
0000|3|2024-01-11 18:28: [D] launcher Serving daemon...
0000|3|2024-01-11 18:28: [D] launcher Writing daemon.lock...
0000|2|2024-01-11 18:28: [W] launcher Instance default exited: fork/exec /home/yipszeho/koi/bin/koishi: permission denied.
0000|3|2024-01-11 18:28: [D] launcher Client connected at 127.0.0.1:40972
0000|3|2024-01-11 18:28: [D] launcher Parsed request type: ping
0000|3|2024-01-11 18:28: [D] launcher Send pong back
0000|3|2024-01-11 18:28: [D] launcher Parsed request type: ping
0000|3|2024-01-11 18:28: [D] launcher Client connected at 127.0.0.1:40986
0000|3|2024-01-11 18:28: [D] launcher Send pong back
0000|3|2024-01-11 18:28: [D] launcher Client connected at 127.0.0.1:40992
0000|3|2024-01-11 18:28: [D] launcher Parsed command: ps
0000|3|2024-01-11 18:28: [D] launcher Parsed request type: cmd
0001|3|2024-01-11 18:28: [D] launcher Trigger KoiCmd ps
0000|3|2024-01-11 18:28: [D] launcher Acquired task 1
0000|3|2024-01-11 18:28: [D] launcher Releasing task 1

看样子是权限问题吗

@ilharp
Copy link
Member

ilharp commented Jan 11, 2024

fork/exec /home/yipszeho/koi/bin/koishi: permission denied.

从网络上下载的文件是不能直接在 Linux 上运行的,需要进行名为 chmod 的操作。

如果你不会使用 Linux,请使用 Koishi Desktop 的 AppImage 版本,或使用 Windows。

@YipSzeho
Copy link
Author

fork/exec /home/yipszeho/koi/bin/koishi: permission denied.

从网络上下载的文件是不能直接在 Linux 上运行的,需要进行名为 chmod 的操作。

如果你不会使用 Linux,请使用 Koishi Desktop 的 AppImage 版本,或使用 Windows。

能运行就已经是chmod +x过了

@ilharp
Copy link
Member

ilharp commented Jan 11, 2024

fork/exec /home/yipszeho/koi/bin/koishi: permission denied.

这行日志已经表明你的 Koishi 因为权限不足无法运行。你可能需要学习 chmod-R 参数。

鉴于此问题与 Linux 有关而与 Koishi Desktop 无关,我将关闭此 issue。有其他问题可以继续回复。

@ilharp ilharp closed this as not planned Won't fix, can't repro, duplicate, stale Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants