Jenkins Could Not Lock Config File .git/config: Permission Denied
asked 3 years ago viewed 50663 times active 6 months ago Related 11Error Installing Git with Apt-Get5Git ssh error: port 22: no route to host53git config global file - remove settings4Git You could check: Is there a git.exe process still running on the machine? Try JIRA - bug tracking software for your team. Show I've got two machines where this happens. http://venamail.com/could-not/error-could-not-lock-config-file-c-program-files-git-mingw64-etc-gitconfig-permission-denied.html
In ~/.gitconfig? In some cases the error may have more parameters in Error Could Not Lock Config File .git/config File Exists format .This additional hexadecimal code are the address of the memory locations What will you bring for Thanksgiving? The file ~/.gitconfig belongs to you (use ls -la ~/.gitconfig to check).
Jenkins Could Not Lock Config File .git/config: Permission Denied
People Assignee: Nicolas De Loof Reporter: cswarren Votes: 1 Vote for this issue Watchers: 5 Start watching this issue Dates Created: 2014/Feb/21 4:32 PM Updated: 2014/Jun/14 8:56 PM Resolved: 2014/Jun/14 8:56 AttachmentsActivity All Comments History Activity Hide Permalink Oleg Nenashev added a comment - 2014/Jun/15 8:52 PM Seems that both components were incorrect. Novice Computer User Solution (completely automated): 1) Download (Error Could Not Lock Config File .git/config File Exists) repair utility. 2) Install program and click Scan button. 3) Click the Fix Errors
Some problems may appear there with unknown_host, but if you tried manually you must have accept the host... Click here follow the steps to fix Error Could Not Lock Config File .git/config File Exists and related errors. UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. Create Gitconfig I've tried googling everything I can think of, but most searches point to people who are having key problems, rather than config file permission problems.
Show Ryan Malgren added a comment - 2014/Apr/22 11:47 AM I had this problem and just as the error message said there was a file called config.lock that needed to be Error: Could Not Lock Config File C:\program Files\git\mingw64/etc/gitconfig: Permission Denied Atlassian DashboardsProjectsIssuesCaptureGetting started Help JIRA Core help Keyboard Shortcuts About JIRA JIRA Credits Log In Register for Jenkins World Join the Jenkins community at "Jenkins World" in Santa Clara, California from Any advice? –uDaY Jan 3 '14 at 3:22 add a comment| up vote 1 down vote You need to own the directory where .gitconfig is in: chown -R
- Have you checked to see if that change avoids the problem?
- Multline, split Find the number from 10 statements Why is the article "the" used in "the events?" Spearman's Correlation shows significance but scatter plot looks random?
- When this happens, it is intermittent.
- People Assignee: Nicolas De Loof Reporter: Daniel Barth Votes: 34 Vote for this issue Watchers: 55 Start watching this issue Dates Created: 2013/Dec/15 8:29 PM Updated: 2014/Apr/14 7:56 PM Resolved: 2014/Feb/05
- I found that the "git" user was unable to access its home directory.
- fatal: error processing config file(s) [[email protected] ~]# git config --list --global fatal: unable to read config file '/root/.gitconfig': No such file or directory [[email protected] ~]# git config --list --system fatal: unable
Error: Could Not Lock Config File C:\program Files\git\mingw64/etc/gitconfig: Permission Denied
This Error Could Not Lock Config File .git/config File Exists error code has a numeric error number and a technical description. What causes Error Could Not Lock Config File .git/config File Exists error? Jenkins Could Not Lock Config File .git/config: Permission Denied It seems to be similar to the stack trace in JENKINS-21914. Rename From '.git/config.lock' To '.git/config' Failed Specific to that single repository.
In both cases, the problem is visible on Windows. share|improve this answer answered Aug 21 '14 at 22:43 Rafael Diego Nicoletti 111 add a comment| up vote 1 down vote In my case, there is a file .git/config.lock file in This tool will scan and diagnose, then repairs, your PC with patent pending technology that fix your windows operating system registry structure. All the above actives may result in the deletion or corruption of the entries in the windows system files. Error: Failure While Executing: Git Config Core.autocrlf False
Which user owns .gitconfig? –Flimm Feb 19 '13 at 17:51 add a comment| 4 Answers 4 active oldest votes up vote 10 down vote accepted See if any of those tips Thank you. Odd question I'm sorry, I can't find out why it's not going the right way. check my blog What's a word/phrase like "compulsion" or "addiction" that is more about guilt than physiology or anxiety?
It depends on some specific tools from Linux. Git Config --system Core.longpaths True If that's the case just delete it. Personal tools Namespaces Article Search Main Page Applications AOL Internet Explorer MS Outlook Outlook Express Windows Live DLL Errors Exe Errors Ocx Errors Operating Systems Windows 7 Windows Others Windows
If there is and you kill that process, does it resolve the issue?
Thanks. Can morse code be called steganography? Not the answer you're looking for? Could Not Remove The Credential Section From The Git Configuration The strange thing was everything worked on cmd.exe (same user, same commands) but not when driven by Jenkins.
If that's not the case replace it with the correct path. git.exe will show up in the task manager, but quickly disappear. Have you restarted Jenkins? news What is the command to remove all files but no folders?
In both cases, the problem is visible on Windows. Hide Permalink David Humeniuk added a comment - 2014/Apr/15 2:38 AM Is it possible the same workaround of enabling "Force polling using workspace" avoid this issue? Could anyone help me in translating this sentence? It is just a INI like file.
How to combine two of list? Finding Residue Is it appropriate to use the term "Semite" for Muslims? config.lock doesn't exist. Conditionally coloring the cells' background At age 25, is it still okay to wear dental braces to work?
There are 3 files where git configuration settings are stored. Thanks, Dave Show David Humeniuk added a comment - 2014/Apr/16 11:27 AM I've set the property on a few jobs as a test. When this happens, it is intermittent. share|improve this answer answered Feb 19 '13 at 17:31 Salem 14.4k34075 there is no file named .gitconfig.lock in home directory and .gitconfig is already exists ~/ –codepros Feb 19
The systems have >10 jobs each, polling HTTPS URLs to private repositories on Github, and using global credentials stored in Jenkins. An example: $ cat ~/.gitconfig [user] name = my_username email = [email protected] [core] editor = editor pager = most [color] ui = auto [merge] conflictstyle = diff3 I am assuming the Show David Humeniuk added a comment - 2014/Apr/14 8:22 PM I have the same issue. The file was located in a path like this on my Jenkins server: C:\GitRepo\master\