mieru icon indicating copy to clipboard operation
mieru copied to clipboard

mieru client is not running: connection refused

Open theonewhopassed opened this issue 1 year ago • 6 comments

hi i have wiered issues with mieru for example when the mieru client is started I type mieru get connections i get an error like this

get connections failed: rpc error: code = DeadlineExceeded desc = context deadline exceeded

or sometimes when I type mieru start i get an error like this

mieru client is not running: ClientLifecycleService.GetStatus() failed: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:8964: connect: connection refused"

what is the workaround for these kinds of errors?

theonewhopassed avatar May 29 '24 07:05 theonewhopassed

Are you using Windows?

If you got error when running "mieru start", it means the process is not reachable after 10 seconds. It is likely the anti-virus program is doing something.

enfein avatar May 30 '24 04:05 enfein

@theonewhopassed Most likely the port number is already occupied. You can check the mieru log to confirm. We are working on improving the error messages.

enfein avatar Jun 02 '24 16:06 enfein

no Im using linux and there is no other proccess using that port rather than mieru itself and the issue happens when I stop and start mieru multiple times

theonewhopassed avatar Jun 02 '24 18:06 theonewhopassed

When the problem happens, can you check the latest mieru log file from $HOME/.cache/mieru and see if there is any FATAL log?

enfein avatar Jun 03 '24 00:06 enfein

FATAL run HTTP proxy server failed: listen tcp 127.0.0.1:8080: bind: address already in use but there is no service other than mieru itself this issue happens if i stop and restart mieru multiple times

the version this issue is happening is 3.0.1 I didn't test 3.1.0 if the issue is resolved

theonewhopassed avatar Jun 05 '24 20:06 theonewhopassed

There are a few places where the SO_REUSEADDR and SO_REUSEPORT are not set, which could lead to this problem.

This only works for Linux.

enfein avatar Jun 06 '24 01:06 enfein

This issue is stale because it has been open 80 days with no activity. Remove stale label or comment or this will be closed in 9 days.

github-actions[bot] avatar Aug 26 '24 04:08 github-actions[bot]