command line Error: Unable to connect to a repository at URL
ddorval
Posts: 12
I finally got migration scripts to work from the command line but after moving the updated command to the build script it fails on the build machine.
I copied the actual sqlcompare command used from the log and replaced the local paths with network paths (so I'd be reusing the same folders/files) except for /scriptfile and it worked fine. I then cleared the Authentication Data in Tortoise SVN and now I get the same error running from my machine.
I am specifying the following switches:
/scripts1:"local database folder of branch being built"
/scripts2:"local database folder of Trunk"
/scriptfile:"file name/path of output"
/options:Default,IgnoreTSQLT
/force
/migrationsfolder:"local migration folder of branch"
/scriptsfolderxml:"local file with contents from db extended property"
/revision1:"revision number of branch"
/revision2:"revision number of trunk"
/versionusername1:"username"
/versionpassword1:"password"
/versionusername2:"username"
/versionpassword2:"password"
I've verified the username and password are correct. svn info with the url from the error and the username and password specified works.
Our build system actually copies the branch being build to a new branch with the build number then gets that branch for the build. To save having to maintain the /scriptsfolderxml file I thought I could be clever and update that file as part of the build with the url of the build branch. Doing this didn't give an Error but also didn't use the migration scripts .
It would also be nice to not have to specify the /scriptsfolderxml since that url is also in the migrationScript file.
I copied the actual sqlcompare command used from the log and replaced the local paths with network paths (so I'd be reusing the same folders/files) except for /scriptfile and it worked fine. I then cleared the Authentication Data in Tortoise SVN and now I get the same error running from my machine.
I am specifying the following switches:
/scripts1:"local database folder of branch being built"
/scripts2:"local database folder of Trunk"
/scriptfile:"file name/path of output"
/options:Default,IgnoreTSQLT
/force
/migrationsfolder:"local migration folder of branch"
/scriptsfolderxml:"local file with contents from db extended property"
/revision1:"revision number of branch"
/revision2:"revision number of trunk"
/versionusername1:"username"
/versionpassword1:"password"
/versionusername2:"username"
/versionpassword2:"password"
I've verified the username and password are correct. svn info with the url from the error and the username and password specified works.
Our build system actually copies the branch being build to a new branch with the build number then gets that branch for the build. To save having to maintain the /scriptsfolderxml file I thought I could be clever and update that file as part of the build with the url of the build branch. Doing this didn't give an Error but also didn't use the migration scripts .
It would also be nice to not have to specify the /scriptsfolderxml since that url is also in the migrationScript file.
Comments
With Windows Auth, I am guessing Windows transparently logs in as the user running the command, because I can change these options to invalid users and passwords, and it still works.
If you are using the SVN authentication database, please let me know and I'll forward this support query on to someone who can help.
I don't know all the details about how all the different svn's work but when testing at the command line all I had to do was call svn info and then sqlcompare would work but when running inside an msbuild script svn info wasn't enough and I had to write a program to use sharpsvn.
So something between SQL Compare and SQL Source Control seems to have broken down. But I could be misunderstanding the code. I can't get a comment in-house from anyone as to what is going on.
In the meantime, I suppose making a connection to SVN using SQL Source Control should repopulate the cache and that may fix the problem.