question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Git fatal error committing changes using username and password credentials

See original GitHub issue
  • code-server version: 1.31.1-100
  • OS Version: Linux Mint 19.1 Tessa - xfce - Kernel 4.15.0-46-generic

Description

I run a private git server (Bonobo), that requires username/password credentials for access. When I click Sync in the Source Control menu, I receive the following pop-up error:

Git: fatal: cannot run /home/travis/build/codercom/code-server/packages/server/build/extensions/git/dis/askpass.sh: No such file or directory

Git was installed using sudo apt-get install git

I’m running the server with a bash shell script as a service: ./code-server /projects --allow-http --password=password --port=8443 --data-dir=/code-server-data

Steps to Reproduce

  1. Click Source Control
  2. Enter a message for the commit (Ctrl+Enter to commit)
  3. Click Sync in ellipsis (…) menu of the Source Control tab
  4. Observe pop-up with previously mentioned error

Logs

Git log Start script

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
gorbyparkcommented, Mar 14, 2019

I had the same issue. If you’re running with a docker container you can just update your image, as git is now included. Otherwise, run git config --global credential.helper cache and manually do a git pull/clone/etc (from the cli) where you’ll have to enter your password. Once you do that, git operations in the GUI should work.

1reaction
kylecarbscommented, Feb 26, 2020

Good catch. Should be fixed with #1306.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git fatal error committing changes using username and ...
It is possible to bypass the error by using a credential helper or SSH keys, but this is only a workaround and we...
Read more >
Git push results in "Authentication Failed"
It happens if you change your login or password of git service account (Git). You need to change it in Windows Credentials Manager...
Read more >
GitHub keep asking for username password when git push
The main reason for this problem is mistakenly git clone the HTTPS URL; we need the SSH URL to use the SSH keys....
Read more >
Why am I not prompted for password when pushing or ...
The most likely reason for this is that Git has been configured to use a credential helper. The configuration could have been made:....
Read more >
Fix GitHub's 'support for password authentication ... - YouTube
Please use a personal access token instead' error ? GitHub removed password authentication on August 13th, 2021. You can still easily clo …...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found