Skip to content

[OS X] Can't open log window via command line to already running client #4098

Closed

Description

@tflidd

Reproduce

  1. Start OS X Client (from start menu)
  2. Execute /Applications/owncloud.app/Contents/MacOS/owncloud --logwindow in console

Expected

Log window opens. See note in blue box: https://doc.owncloud.org/desktop/2.0/troubleshooting.html#obtaining-the-client-log-file

what happens:

Client window comes to the front. No log-window is opened.

System: OS X 10.9.5
Client 2.0.2

Workaround:

Use logfile:
/Applications/owncloud.app/Contents/MacOS/owncloud --logfile <filename>

edit: would be nice to have short cut as well, or a button to open log-window.

Activity

  1. guruz commented on Nov 10, 2015

    @guruz
    Contributor

    Possibly the log window is behind all other application windows (of other applications)?

  2. tflidd commented on Nov 10, 2015

    @tflidd
    Author

    I didn't see anything hidden under the actual owncloud window. I closed
    other programs on the desktop, I tried to switch to a different window
    with apple+tab, nothing works.
    Now I started the client with logging to a logfile (--logfile), and I
    tried the --logwindow command again, this shows up in the logfile:

    11-10 14:38:05:835 0x60800000e8c0 OCC::Application::setupLogging: 
    "################## ownCloud en_US (en) 2.0.2 (build 2818)"
    11-10 14:38:05:836 0x60800000e8c0 OCC::Application::slotParseMessage: 
    Running for 319.943 sec
    11-10 14:38:05:836 0x60800000e8c0 OCC::ownCloudGui::slotShowSettings: 
    void OCC::ownCloudGui::slotShowSettings()
    
  3. stonerl commented on Dec 12, 2015

    @stonerl

    @tflidd The Problem is that you started the owncloud client already. You should get this message on the cmd

    int main(int, char **) Already running, exiting...
    

    If you want to run the client with the logwindow you need to close it first and then start it from the commandline with:

    ./owncloud --logwindow
    
  4. stonerl commented on Dec 12, 2015

    @stonerl

    If you want to open the log window while ownCloud is already running, open the openCloud-client and press F12

  5. tflidd commented on Dec 13, 2015

    @tflidd
    Author

    If you want to open the log window while ownCloud is already running, open the openCloud-client and press F12

    It is OS X, not Windows !

  6. stonerl commented on Dec 13, 2015

    @stonerl

    @tflidd when I press F12 on my mac it opens the log window.

  7. stonerl commented on Dec 13, 2015

    @stonerl

    usually F12 is assigned to open the Dashboard by default:

    screen shot 2015-12-13 at 13 27 54

  8. changed the title [-]Can't open log window OS X on running client[/-] [+][OS X] Can't open log window via command line to already running client[/+] on Dec 14, 2015
  9. added this to the milestone on Dec 14, 2015
  10. removed this from the milestone on Feb 22, 2016
  11. 7 remaining items

  12. added
    p4-low
    and removed on May 3, 2018
  13. added
    ReadyToTest
    on Dec 11, 2018
  14. HanaGemela commented on Jun 3, 2019

    @HanaGemela
    Contributor

    @guruz @ogoffart How has this been resolved?
    Should '/Applications/owncloud.app/Contents/MacOS/owncloud --logwindow' work now?

  15. guruz commented on Jun 4, 2019

    @guruz
    Contributor

    Works for me on macOS. Opened client in one terminal tab:
    ./bin/owncloud.app/Contents/MacOS/owncloud
    Then this in second terminal tab opens log window:
    ./bin/owncloud.app/Contents/MacOS/owncloud --logwindow

  16. HanaGemela commented on Jun 4, 2019

    @HanaGemela
    Contributor

    @guruz
    When I run: /Applications/owncloud.app/Contents/MacOS/owncloud --logwindow

    I can see the below line in the terminal and it also opens webUI and asks for login. Is that right?
    m_crashReporterChar: /Applications/owncloud.app/Contents/MacOS/owncloud_crash_reporter

  17. guruz commented on Jun 4, 2019

    @guruz
    Contributor
  18. HanaGemela commented on Jun 4, 2019

    @HanaGemela
    Contributor

    @guruz
    When I run the command for the first time, it opens the webUI, I log in and then I can see Log Output window.
    When I run the command (/Applications/owncloud.app/Contents/MacOS/owncloud --logwindow) for the second time in another tab, it exists:

    /Applications/owncloud.app/Contents/MacOS/owncloud --logwindow
    gui.application: Already running, exiting...

  19. guruz commented on Jun 4, 2019

    @guruz
    Contributor
  20. HanaGemela commented on Jun 4, 2019

    @HanaGemela
    Contributor

    @guruz Oh, I see! Then it works as expected

  21. guruz commented on Jun 4, 2019

    @guruz
    Contributor

    Great :-)

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

Metadata

Metadata

Assignees

Labels

ReadyToTestp2-highp4-low

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions