You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Check for multiple simultaneous instances is too selective #1004
The check for multiple instances has a gotcha, it seems to check the whole command line. If you start two clients, one with default settings, the other one with logging options, you get two instances in parallel. This is reproducible here. Confirmed with this command line: "c:\Program Files (x86)\ownCloud\owncloud.exe" --logdir e:\oclog --logexpire 8 on one side and the standard start menu shortcut on the other.
Haven't checked how things are if the clients are in different directories as well, for the record.
This report is incorrect. The implementation doesn't care for arguments at all (and I can't reproduce the problem here, but that's probably because my set of synced files is relatively small). What I think is happening is that the first instance is too busy to signal its validity to the second instance (especially the windows code path seems to opt for firing up a second session in case of doubt), thus leading the second instance to think it can act as the primary instance. Can you send me a log of the second instance instance starting?
I think I have found the real cavet. On my system (W7/64 Pro) OC starts a new client if the working directories are different. What I could reproduce in various constellations:
Start a command shell
Stay in c:\users$username
Launch this on the shell: "c:\program files (x86)\owncloud\owncloud.exe" [args of your choice]
Klick the start menu shortcut of OC (which uses the install dir as current working directory) and you get a new client. This is reproducible on the command line as well.
You get this log in the second instance of the above example (tell me if you need more, I have the actual start of the sync as well):
Note, that the full path startup is taken from the client docs when it comes to attach a log to an already running instance (in most cases you'd probably have a different startup workin dir I'd guess):
Activity
danimo commentedon Sep 16, 2013
This report is incorrect. The implementation doesn't care for arguments at all (and I can't reproduce the problem here, but that's probably because my set of synced files is relatively small). What I think is happening is that the first instance is too busy to signal its validity to the second instance (especially the windows code path seems to opt for firing up a second session in case of doubt), thus leading the second instance to think it can act as the primary instance. Can you send me a log of the second instance instance starting?
torbennehmer commentedon Sep 16, 2013
I think I have found the real cavet. On my system (W7/64 Pro) OC starts a new client if the working directories are different. What I could reproduce in various constellations:
You get this log in the second instance of the above example (tell me if you need more, I have the actual start of the sync as well):
https://owncloud.nehmer.net/public.php?service=files&t=3a385c0f52fa534548992f4cb8a3bcbf
Note, that the full path startup is taken from the client docs when it comes to attach a log to an already running instance (in most cases you'd probably have a different startup workin dir I'd guess):
http://doc.owncloud.org/desktop/1.4/troubleshooting.html#logfiles
danimo commentedon Sep 16, 2013
Sorry, still can't reproduce this with the description above. It still is a single instance for me.
dragotin commentedon Oct 2, 2013
I am also not able to reproduce that. Second client 1.4.1 appears for a second in the tray and than goes away.
danimo commentedon Nov 3, 2013
Closing as we were not able to reproduce this.