Results 1 to 4 of 4

Thread: Qt Creator doesn't ask for 'Gnome keyring', can't get connect to Subversion repo

  1. #1
    Join Date
    May 2012
    Posts
    16
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Qt Creator doesn't ask for 'Gnome keyring', can't get connect to Subversion repo

    Hello everybody,

    I have somewhat of an annoying problem with subversion; I created an online repo with some code hosting site, and checked out the project using the console, and imported the project into Qt Creator; everything seemed to work as it should, I was able to diff, commit, and do everything else.

    When I rebooted, however, Qt creator would respond with an error that looked something like 'Server rejected basic challenge' everytime I tried to do any Subversion commands like those mentioned above.

    I later found that this is because Qt doesn't ask me for a 'Gnome keyring' password, which is the password for the repo; if I checkout the project every time I reboot (during which I AM asked the keyring password), then svn integration with Qt creator is fine.

    Under Tools -> Options, I can there's an 'Authentication' group box that I can put in my hosting site account info, but nowhere can I find a keyring password...

    So is there some way to specify this keyring password in Qt Creator, to save me some headache?

    Thanks!


    EDIT: Forgot to mention the code hosting site is Assembla.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt Creator doesn't ask for 'Gnome keyring', can't get connect to Subversion repo

    The hosting site has nothing to do with this.

    When ssh needs to ask for a password it looks for the SSH_ASKPASS variable and, if set, runs the program it identifies. In your case that's a Gnome utility, on my system that's a KDE equivalent (I also have ssh-add in one of my KDE autostart files so I am prompted once at the start of each day and never again). If the variable is not set then ssh queries its stdin for a password.

    If the variable is not set and Qt Creator runs ssh without a terminal then it will probably just fail silently.

    So, look at the environment that Qt Creator is running in and see if SSH_ASKPASS is set. My guess is that it differs from the one your terminal session has.

  3. The following user says thank you to ChrisW67 for this useful post:

    dsab123 (23rd August 2012)

  4. #3
    Join Date
    May 2012
    Posts
    16
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt Creator doesn't ask for 'Gnome keyring', can't get connect to Subversion repo

    thanks for your reply, ChrisW67..so I took your advice and installed ssh-askpass, and specified its location in Qt Creator under Tools -> Options -> common -> SSH Prompt Command. I also ran ssh-askpass from the console and typed in the same password I use for the keyring mentioned earlier. Upon attempting to commit a file, I still get the 'Server rejected basic challenge' error.

    Is there anything else I need to set that I don't know about?

    EDIT: So I also tried exporting SSH_ASKPASS=/path/to/ssh-askpass in the console before attempting to commit a file through Qt, that didn't work either.
    Last edited by dsab123; 23rd August 2012 at 17:29.

  5. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt Creator doesn't ask for 'Gnome keyring', can't get connect to Subversion repo

    The default ssh_askpass program is asking for the passphrase to unlock an SSH private key and does not know about the key ring.

    The Gnome Keyring, from what I see, offers an SSH agent. If the key ring daemon is launched at the start of the session then the necessary plumbing (in the form of an SSH_AUTH_SOCK env var) should be in place.

    Immediately after logging in...
    What are the values of SSH_ASKPASS and/or SSH_AUTH_SOCK environment variables in a default terminal?
    Is there a running gnome-keyring-daemon for your user?

    If you set SSH_ASKPASS="gnome-keyring-daemon --start" does that help?

Similar Threads

  1. Replies: 4
    Last Post: 25th December 2010, 16:20
  2. Replies: 18
    Last Post: 18th July 2010, 16:21
  3. Qt Creator doesn't stop at breakpoints
    By TheSaw in forum Qt Tools
    Replies: 3
    Last Post: 12th May 2009, 15:53
  4. Qt(Creator), subversion: include revision
    By rgrayson in forum Qt Programming
    Replies: 0
    Last Post: 8th May 2009, 16:39
  5. Designer doesn't connect the widgets
    By martinb0820 in forum Qt Tools
    Replies: 6
    Last Post: 6th November 2008, 14:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.