Access denied on TeamCity VCS update - teamcity

I have some trouble getting the VCS of teamcity work.
I'm using perforce and the TC-Server should be configured correct, but when running the project I'm getting the error:
[Updating sources: server side checkout...] Error while applying patch: Failed to change text file: C:\Projects\BuildSrv7... C:\Projects\BuildSrv7.. (Access denied)
I checked the Settings and everybody has full rights in the directory.
And idea, what to do, or how this could happen?

Please check the known issues. Most likely it's your case.

Ok, solved the problem. In my case it was an error with Clientmapping configuration.
Teamcity default was "//depot/... //team-city-agent/.."
I changed it to "//depot/... //team-city-agent/..." with 3 dots on the end and it worked. Thats the normal way of perforce with 3 dots.

Related

error when pushing changes to git from teamcity (ssh_askpass: exec(/usr/lib/ssh/ssh-askpass))

I am getting
ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights.
This error occurs when trying to push changes to GitHub from TeamCity build.
How can I avoid this error message?
The TeamCity support page includes
I needed to set the environment variable SSH_ASKPASS to point to "C:\Program Files\Git\mingw64\libexec\git-core\git-askpass.exe".
This somehow overrides the unix path with the given correct one
That would assume your TeamCity is running on a Windows server.

Got Server Error 500 for web project which was downloaded from git

I made a project on GIT. It executes fine on my computer. But when I push it to GIT and my friends pull it, they can't execute it. They got this error-
Server Error (500)
Error screenshot
I found a lot of solutions on the Internet but nothing worked, so I have to ask on here. I use Wampserver, Sublime Text, Laravel for this project.
Manually copy the .env variable file and edit the settings accordingly.
It's listed as a standard in the .gitignore file because you don't want to upload the credentials in there to a VCS.

Build Failed from Dev to Staging using TFS Release management

I am trying to build a project from dev to staging environment, what all i did was just to merge the changes in dev to staging and trigger a build. but the build got failed even tried multiple times.
Below is the log file shared in google drive. there are no errors mentioned in the log file. Can anyone help me solve this problem.
https://drive.google.com/open?id=0B85ZmWDiKYHRVmN4MlMxc0ZEd28
I found a error in the log file in the release management, which says that "access denied for appsettings.config" file. I did remove the read only on the folder in the server and it worked. I am not sure of this fix properly, but it did work for me.
Thanks.

Jenkins - Read Only Access

I have installed Jenkins at C:\Jenkins but cannot disable 'Read-only' access to the folder.
This means I cannot create MSTest results files when running tests as Access is denied.
Any ideas to fix?
Problem solved.
My path to MSTest was incorrect. A poorly worded error message in my opinion!

Teamcity - Intermittent TransportException to bitbucket

We're using Teamcity 8.0.1 (build 27435). Having this exact same problem. Trying to connect to a bitbucket repo and getting the following exception intermittently:
Failed to collect changes, error: List remote refs failed:
org.eclipse.jgit.errors.TransportException:
https://username#bitbucket.org/myproject/project.git: -1 null
Behind a proxy server and I have added -Dhttps.proxyHost=XXX -Dhttps.proxyPort=1234 to the TEAMCITY_SERVER_OPTS environment variable. That didn't work. There was mention of trying to upgrade to Java7 on another forum but that also didn't help.
Unfortunately, we're not able to use SSH to bitbucket because of the company network rules.
Anyone solved this problem or have suggestions? Thanks for the help!
Im not sure if there a bug in Teamcity/Jgit, but HTTPS for Bitbucket is not working properly. The solution here was to use SSH, but thats not an option for me.
My solution for now is to clone the repo locally (git clone --mirror) and update it periodically in bash (git remote update). Then just point TeamCity to that local .git folder.

Resources