Can't create VCS root using local git - NoRemoteRepositoryException - repo not found

Answered

New TeamCity user here:

I'm trying to create a VCS root connection to a git repo on my localhost.  When I test the connection I get a "Cannot create transport" failure.  Turning detailed logging on, I see the error is caused by: "org.eclipse.jgit.errors.NoRemoteRepositoryException: file:///e:/pixstro/pixstro-editor/.git: not found."  

I set the fetch url to: file:///E:/pixstro/pixstro-editor/.git

and E:\pixstro\pixstro-editor\.git does exist on my computer.  (I copied this from File Explorer.)

I'm using anonymous authentication method.  I must be missing something basic.  This seems like it should work.  Thanks for the help!

Pete

 

0
6 comments

I tested with some newly created git repo: sometimes it works and sometimes I get the above error.  I can't make out any reason why one repo would work and another one won't connect.  It has nothing to do with the particular drive, depth of dir or dashes in a dir name.  It just seems completely random.  Once it works for a repo it continues to work.  Very odd and frustrating!

0

Hi, try using file://E:\pixstro\pixstro-editor\.git as a fetch URL - this should work. There is no need to escape any slash symbols or change the slashes in a Windows path.

0

No change.  The documentation under Git-> General Settings -> Supported Git Protocols shows a file example:  file: (for example, file:///c:/projects/myproject/.git)

There are no escapes, this is equivalent to file://localhost/c:/projects/myproject/.git)

However, when I use localhost, I get the error, "List remote refs failed: org.eclipse.jgit.errors.NotSupportedException: URI not supported: file://localhost/E:/pixstro/pixstro-editor/.git'

 

0

The correct syntax should be file:///e:/pixstro/pixstro-editor/.git. Please tell me if drive E: is a mapped network drive, and are you running TeamCity as a service?

0

No, E: is not a mapped drive.  I have created other git repos on this drive and it works on some repos but not others, it seems random.   I just tried file:///e:/test_project/.git and it worked. 

Yes, I'm running TeamCity as a service on Windows 10.  

 

0

I stopped the teamcity services and ran 'runAll.bat start' to start teamcity.  I was then able to connect to git!  Odd, I'm NOT using a mapped drive.  The only thing unusual is that I have installed TeamCity on E: and not C:

I guess I have to start the server and agent manually.  How do I start the agent manually?  The doc says:

To start the agent manually, run the following script:

  • for Windows: <installation path>\bin\agent.bat start

However, that script does not exist. 

I reinstalled an agent and now the agent.bat shows up.  It was missing with the initial agent that was installed with the windows exe installer. 

How do I start the server without it shutting down when I close the console?

 

 

0

Please sign in to leave a comment.