You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "JiriOndrusek (via GitHub)" <gi...@apache.org> on 2026/02/20 09:26:56 UTC

[PR] Release doc: how to solve issue with ksshaskpass [camel-quarkus]

JiriOndrusek opened a new pull request, #8324:
URL: https://github.com/apache/camel-quarkus/pull/8324

   I encountered strange error when running `release:prepare` command. I'm not sure why the error happened to me (a few days ago the same command work). I fixed the problem with some local configuration. I'm adding a small note to the releasing guide in case this happens again.
   
   <!-- Uncomment and fill this section if your PR is not trivial
   [ ] An issue should be filed for the change unless this is a trivial change (fixing a typo or similar). One issue should ideally be fixed by not more than one commit and the other way round, each commit should fix just one issue, without pulling in other changes.
   [ ] Each commit in the pull request should have a meaningful and properly spelled subject line and body. Copying the title of the associated issue is typically enough. Please include the issue number in the commit message prefixed by #.
   [ ] The pull request description should explain what the pull request does, how, and why. If the info is available in the associated issue or some other external document, a link is enough.
   [ ] Phrases like Fix #<issueNumber> or Fixes #<issueNumber> will auto-close the named issue upon merging the pull request. Using them is typically a good idea.
   [ ] Please run mvn process-resources -Pformat (and amend the changes if necessary) before sending the pull request.
   [ ] Contributor guide is your good friend: https://camel.apache.org/camel-quarkus/latest/contributor-guide.html
   -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Release doc: how to solve issue with ksshaskpass [camel-quarkus]

Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on PR #8324:
URL: https://github.com/apache/camel-quarkus/pull/8324#issuecomment-3943154151

   Did you try `dnf install ksshaskpass`?
   
   On fedora I have the Git `credential.helper` set to `git-credential-libsecret` and it works fine with `ksshaskpass` / `KWallet`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Release doc: how to solve issue with ksshaskpass [camel-quarkus]

Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on code in PR #8324:
URL: https://github.com/apache/camel-quarkus/pull/8324#discussion_r2839672930


##########
docs/modules/ROOT/pages/contributor-guide/release-guide.adoc:
##########
@@ -483,3 +483,47 @@ In addition to the above, the following is needed:
 
 * https://github.com/apache/camel-quarkus/issues/new[Create a ticket] asking a https://projects.apache.org/committee.html?camel[PMC member] to update the https://reporter.apache.org/addrelease.html?camel[Apache Committee Report Helper]. The ticket title could be as follow.
   Release: The Apache Committee Report Helper should be updated by a PMC member as camel-quarkus-X.Y.Z has been released on YYYY-MM-DD.
+
+
+== Troubleshooting
+
+=== Corner case with  ksshaskpass
+
+When you encounter an error related to `ksshaskpass`:
+
+----
+[ERROR] The git-push command failed.
+[ERROR] Command output:
+[ERROR] fatal: cannot exec '/usr/bin/ksshaskpass': No such file or directory
+[ERROR] fatal: could not read Username for 'https://gitbox.apache.org': terminal
+----
+
+Somehow the `ksshaskpass` is being used to store credentials.
+This utility might not work correctly on Fedora. (Probably because of wayland vs x11 vs qt)
+
+I used following commands to skip `ksshaskpass`:
+
+----
+unset SSH_ASKPASS
+export SSH_ASKPASS_REQUIRE=never
+----
+
+With them, the error was changed to
+
+----
+[ERROR] The git-push command failed.
+[ERROR] Command output:
+[ERROR] fatal: could not read Username for 'https://gitbox.apache.org': terminal prompts disabled
+[ERROR] -> [Help 1]
+----
+
+I executed several commands to force `git push` to prompt for credentials again.
+I’m not certain which specific command ultimately resolved the issue.
+Below is the list of commands I attempted; documenting them here in case they are useful for future troubleshooting.
+
+----
+ssh -T git@gitbox.apache.org
+git config --global credential.helper store
+ssh-add -l
+mvn help:evaluate -Dexpression=env.SSH_AUTH_SOCK -q -DforceStdout
+----

Review Comment:
   ```suggestion
   == Troubleshooting
   
   === Edge case involving SSH credential prompting
   
   If you encounter an error related to `ksshaskpass`, such as:
   
   ----
   [ERROR] The git-push command failed.
   [ERROR] Command output:
   [ERROR] fatal: cannot exec '/usr/bin/ksshaskpass': No such file or directory
   [ERROR] fatal: could not read Username for 'https://gitbox.apache.org': terminal
   ----
   
   In some environments, an SSH askpass helper may be invoked unexpectedly for
   credential handling. If the helper is missing or incompatible with the
   desktop/session configuration, Git operations can fail.
   
   One way to prevent the use of an askpass helper is to disable it explicitly:
   
   ----
   unset SSH_ASKPASS
   export SSH_ASKPASS_REQUIRE=never
   ----
   
   After applying these settings, the error may change to:
   
   ----
   [ERROR] The git-push command failed.
   [ERROR] Command output:
   [ERROR] fatal: could not read Username for 'https://gitbox.apache.org': terminal prompts disabled
   [ERROR] -> [Help 1]
   ----
   
   At this point, Git is no longer attempting to use an askpass helper, but is also
   unable to prompt for credentials interactively.
   
   To restore normal credential prompting or authentication behavior, several
   commands may be helpful, depending on the environment and Git configuration.
   The following commands were executed during troubleshooting; the exact one that
   resolved the issue is unclear, but they are documented here for reference:
   
   ----
   ssh -T git@gitbox.apache.org
   git config --global credential.helper store
   ssh-add -l
   mvn help:evaluate -Dexpression=env.SSH_AUTH_SOCK -q -DforceStdout
   ----
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Release doc: how to solve issue with ksshaskpass [camel-quarkus]

Posted by "JiriOndrusek (via GitHub)" <gi...@apache.org>.
JiriOndrusek commented on code in PR #8324:
URL: https://github.com/apache/camel-quarkus/pull/8324#discussion_r2839721505


##########
docs/modules/ROOT/pages/contributor-guide/release-guide.adoc:
##########
@@ -483,3 +483,47 @@ In addition to the above, the following is needed:
 
 * https://github.com/apache/camel-quarkus/issues/new[Create a ticket] asking a https://projects.apache.org/committee.html?camel[PMC member] to update the https://reporter.apache.org/addrelease.html?camel[Apache Committee Report Helper]. The ticket title could be as follow.
   Release: The Apache Committee Report Helper should be updated by a PMC member as camel-quarkus-X.Y.Z has been released on YYYY-MM-DD.
+
+
+== Troubleshooting
+
+=== Corner case with  ksshaskpass
+
+When you encounter an error related to `ksshaskpass`:
+
+----
+[ERROR] The git-push command failed.
+[ERROR] Command output:
+[ERROR] fatal: cannot exec '/usr/bin/ksshaskpass': No such file or directory
+[ERROR] fatal: could not read Username for 'https://gitbox.apache.org': terminal
+----
+
+Somehow the `ksshaskpass` is being used to store credentials.
+This utility might not work correctly on Fedora. (Probably because of wayland vs x11 vs qt)
+
+I used following commands to skip `ksshaskpass`:
+
+----
+unset SSH_ASKPASS
+export SSH_ASKPASS_REQUIRE=never
+----
+
+With them, the error was changed to
+
+----
+[ERROR] The git-push command failed.
+[ERROR] Command output:
+[ERROR] fatal: could not read Username for 'https://gitbox.apache.org': terminal prompts disabled
+[ERROR] -> [Help 1]
+----
+
+I executed several commands to force `git push` to prompt for credentials again.
+I’m not certain which specific command ultimately resolved the issue.
+Below is the list of commands I attempted; documenting them here in case they are useful for future troubleshooting.
+
+----
+ssh -T git@gitbox.apache.org
+git config --global credential.helper store
+ssh-add -l
+mvn help:evaluate -Dexpression=env.SSH_AUTH_SOCK -q -DforceStdout
+----

Review Comment:
   Thank you very much for making the doc more understandable! Change is applied in the PR.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Release doc: how to solve issue with ksshaskpass [camel-quarkus]

Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton merged PR #8324:
URL: https://github.com/apache/camel-quarkus/pull/8324


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Release doc: how to solve issue with ksshaskpass [camel-quarkus]

Posted by "JiriOndrusek (via GitHub)" <gi...@apache.org>.
JiriOndrusek commented on PR #8324:
URL: https://github.com/apache/camel-quarkus/pull/8324#issuecomment-3943350871

   > Did you try `dnf install ksshaskpass`?
   > 
   > On fedora I have the Git `credential.helper` set to `git-credential-libsecret` and it works fine with `ksshaskpass` / `KWallet`.
   
   Yes I installed `ksshaskpass`, but it didn't work for me. I was getting the same error as with git push.
   (Might be related to the fact, that I'm using cinnamon)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org