Skip to content

Check for multiple simultaneous instances is too selective #1004

Closed

Description

@torbennehmer

In response to danimo at #994:

#994 (comment)

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.

Activity

  1. danimo commented on Sep 16, 2013

    @danimo
    Contributor

    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?

  2. torbennehmer commented on Sep 16, 2013

    @torbennehmer
    Author

    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:

    1. Start a command shell
    2. Stay in c:\users$username
    3. Launch this on the shell: "c:\program files (x86)\owncloud\owncloud.exe" [args of your choice]
    4. 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):

    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

  3. danimo commented on Sep 16, 2013

    @danimo
    Contributor

    Sorry, still can't reproduce this with the description above. It still is a single instance for me.

  4. dragotin commented on Oct 2, 2013

    @dragotin
    Contributor

    I am also not able to reproduce that. Second client 1.4.1 appears for a second in the tray and than goes away.

  5. danimo commented on Nov 3, 2013

    @danimo
    Contributor

    Closing as we were not able to reproduce this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions