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

Server cannot be stopped #58

Open
hnorkowski opened this issue Jun 14, 2023 · 6 comments
Open

Server cannot be stopped #58

hnorkowski opened this issue Jun 14, 2023 · 6 comments
Assignees
Labels
bug Something isn't working confirmed A bug that has been reproduced

Comments

@hnorkowski
Copy link

When I try to stop the server with zentime server stop no output is shown but the server does not stop.

/tmp/zentime.d.out:

[2023-06-14T14:01:51Z ERROR zentime_rs::server::start] Could not handle connection: Could not handle client to server message

/tmp/zentime.d.err is empty.

Env:
EndeavourOS up to date
X11 i3wm
Kernel: 6.3.7-zen1-1-zen
Rust 1.69.0

@on3iro
Copy link
Owner

on3iro commented Jun 14, 2023

Hm, that's odd. Unfortunately I currently do not have the time to look into linux related issues. I assume you don't get any additional info when you increase the RUST_LOG-level? (https://github.com/on3iro/zentime-rs#logs)

Do other commands work correctly for you?

@hnorkowski
Copy link
Author

Yes other commands work. With the log level debug executing the command shows this:

[2023-06-14T21:34:24Z INFO  zentime::subcommands::server] Connecting to server...
[2023-06-14T21:34:24Z INFO  zentime::subcommands::server] Shutting down...
[2023-06-14T21:34:24Z INFO  zentime::subcommands::server] Done.

zentime.out.d:

[2023-06-15T13:03:20Z INFO  zentime::subcommands::server] Daemonized server process
[2023-06-15T13:03:20Z INFO  zentime::subcommands::server] Creating config from path: ~/.config/zentime/zentime.toml
[2023-06-15T13:03:20Z INFO  zentime_rs::server::start] Start listening for connections...
[2023-06-15T13:03:20Z INFO  zentime_rs::server::start] Binding to socket...
[2023-06-15T13:03:20Z INFO  zentime_rs::server::start] Starting timer...
[2023-06-15T13:03:23Z INFO  zentime_rs::server::start] New connection received.
[2023-06-15T13:03:23Z INFO  zentime_rs::server::start]
    Client told server to shutdown
[2023-06-15T13:03:23Z INFO  zentime_rs::server::start] Cleaning up socket file
[2023-06-15T13:03:23Z ERROR zentime_rs::server::start] Could not handle connection: Could not handle client to server message

@on3iro
Copy link
Owner

on3iro commented Jun 15, 2023

Thanks

One more question: which version of zentime are you running? I currently assume that there is either something breaking when building zentime for linux or that the message passing between processes is handled differently on your OS. I probably need to look into this when I have a bit more free time and can play around with it in a docker container...

@hnorkowski
Copy link
Author

hnorkowski commented Jun 15, 2023

I installed it with cargo install zentime-rs and have version zentime-rs 0.15.0 and created a symlink from ~/.cargo/bin/zentime to /usr/bin

@on3iro
Copy link
Owner

on3iro commented Jun 15, 2023

Ok, that should work fine (in theory). I'll have to check this out, when I have a bit more spare time - Thanks for posting that issue :)

@on3iro
Copy link
Owner

on3iro commented Jul 16, 2023

Alright, I could reproduce the issue inside a debian docker container. I'll have to take a deeper look into this. I'll hopefully have more time to do so, soon. Thanks for making me aware of the issue :) 👍

@on3iro on3iro added bug Something isn't working confirmed A bug that has been reproduced labels Jul 16, 2023
@on3iro on3iro self-assigned this Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed A bug that has been reproduced
Projects
None yet
Development

No branches or pull requests

2 participants