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

Tray keeping grey and disconnected . #252

Closed
eromoe opened this issue Apr 18, 2024 · 10 comments
Closed

Tray keeping grey and disconnected . #252

eromoe opened this issue Apr 18, 2024 · 10 comments

Comments

@eromoe
Copy link

eromoe commented Apr 18, 2024

I get disconnected while syncthing running in bg . Using built-in syncthing, and http://127.0.0.1:8384 is accessable too .

This happend after I solved #250 , in that issue, windows hyper-v took some ports which prevented syncthing bind on 8384. Now the port problem is fixed, but the tray still grey and show disconnected .

@eromoe eromoe added the bug label Apr 18, 2024
@Martchus
Copy link
Owner

Are you sure that reconnects are configured? (Although it is probably also not normal to get disconnected in the first place.)

Sounds like this is a duplicate of #217 which I couldn't reproduce so far.

@eromoe
Copy link
Author

eromoe commented Apr 18, 2024

Yes, click this two place many times
image
It's not sometimes, but no reaction at all.

Looks like aother problem , I don't know where to see the logs, I mean logs of tray .

I recall I also change some tray client with differnet version when I encounter the ports problem, maybe a clue .

@Martchus
Copy link
Owner

Martchus commented Apr 18, 2024

True, when clicking the button doesn't help then it is a different problem.

I don't know where to see the logs, I mean logs of tray .

If there are errors you will get a notification about them - unless you disabled those. You can access errors also by right-clicking on the tray icon and selecting errors.

You can also show logs by running the tray from a terminal. Under Windows you need to use a redirection or the -cli.exe-binary to see any output. It would probably be useful to set the env variable LIB_SYNCTHING_CONNECTOR_LOG_ALL=1 before starting the tray (via the terminal). Also make sure to terminate the other tray process first (as there will normally only be one instance running).

The logging can actually be finely controlled (in case …_LOG_ALL=1 is too much): https://github.com/Martchus/syncthingtray#logging

@eromoe
Copy link
Author

eromoe commented Apr 18, 2024

logs is blank :
image

Try -cli.exe , nothing output too
image

@Martchus
Copy link
Owner

Ok, so really not obvious what's (not) going on here. That it not shows anything means it is either really broken in your environment or that outputting in the terminal doesn't work. To check for the latter you can try to invoke it with --help. If that prints nothing then outputting in the terminal doesn't work. I tested that under Windows 10 with cmd.exe and the Windows Terminal but if you're using a different terminal it may not work. Then you may try the version without -cli and/or a redirection to a file.

You could try to set a low timeout in the connection settings (you'll have to check the option to show the advanced config for that). If it then runs into a timeout we know that it at least tried to connect.

If you're using HTTPs it would make sense to try with HTTP instead. (You'll have to change the setting in Syncthing itself and then the URL in Syncthing Tray.)

If you're using a Windows 10 version older than 1809 you'll have to upgrade or use the Qt 5 based version. It may generally be worth trying the Qt 5 based version (although the Qt 6 based version is supposed to work and normally the better option).

Otherwise I also don't really know what to suggest and cannot really help as it works on my machine (with Windows 10).

@eromoe
Copy link
Author

eromoe commented Apr 27, 2024

Stop syncthing instance then click appl connnection setting and try to reconnect with the currently selected config would show reconnecting . Once start syncthing instance , click that button show disconnected .

I tried the qt5 version, is similar (however it mess up some items with Chinese characters in the configuration file , I use a whole english path to test ).

@eromoe
Copy link
Author

eromoe commented Apr 27, 2024

Just find API key in syncthing WEBUI doesn't match the value in syncthing tray.After copy the value in webui to syncthing tray, log showing, though the status is keeping in reconnecting...
I think reinstall Windows change something , cause the config changed.

@Martchus Is there any easy and safe way to save settings of sync folder only, and try with a fresh config?

@eromoe
Copy link
Author

eromoe commented Apr 27, 2024

Oh, timeouts was set to 1ms but not show if doesn't check advance settings as your recomend testings, remove the timeout get to work.
So the problem is API key doesn't match, but no error log is unexpecting.

@Martchus
Copy link
Owner

Martchus commented Apr 27, 2024

Oh, timeouts was set to 1ms but not show if doesn't check advance settings as your recomend testings, remove the timeout get to work.

That makes sense - although you should have gotten an error notification that the request was running into a timeout.

… but no error log is unexpecting.

That's true - also for an authentication error you should have gotten an error notification.

Did you perhaps disable notifications for errors (the second checkbox under notification settings)? But even if disabled, the error should have been accessible via the context menu you can open by right-clicking on the tray icon.


@Martchus Is there any easy and safe way to save settings of sync folder only, and try with a fresh config?

That's actually a question about Syncthing itself - and it is a good one I don't really know a good answer to. I suppose you could mess around with Syncthing's XML-based config manually (while Syncthing is stopped). I'd have to checkout the XML structure myself but probably not much speaks against copying the folder-elements from an old config file to a new one. You may have to adjust some details like paths, though.

Copy link

stale bot commented Jun 26, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 26, 2024
@stale stale bot closed this as completed Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants