[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: hook deployment script [trying svn up]

From: smakawhat <smakawhat_at_yahoo.com>
Date: 2007-03-13 22:16:04 CET

the error I am seeing when I run the script:
  SET out=//OurServer/D$/folder/WorkCopyonWebServer
  svn update %out%
  from another workstation I get the errors:
  Unable to open an ra_local session to URL
  Unable to open repository 'file:///D:/folder/therepository
  Can't open file D:\folder\therepository\format the device is not ready.
  I am not using Apache, and I have not connected my working copies by any other method than the file:/// method. I do have the svnserve service running and tried to see if I could connect with the svn: protocol but I couldn't get it to work.

Andy Levy <andy.levy@gmail.com> wrote:
  Hook scripts run with a nearly-empty environment and under the user
account that your server process runs under. So, you must be sure to
A) use full paths to executables, file locations, etc. and B) grant
access for that account to any resources which your script requires.
Do not count on mapped drives unless you map them in your hook script.

I don't recall if you told us how you're serving the repository. If
you're serving via Apache, it typically runs under the local system
account on Windows, so you'd have to give that account rights to that
UNC path. It would be a good idea to create a domain account with
limited rights to run Apache under in this case so that it can access
your UNC paths for updates and you don't have to mess with granting
server A's system account rights on server B..

On 3/13/07, smakawhat wrote:
> I also tried using a UNC path but it's the same issue.
> smakawhat wrote:
> Well I got the script working just by using an svn update D:\mypath
> statement.
> However it doesn't transfer unless I run it from the actual server. I am
> thinking because I have a drive letter specified in the path. I know that
> it mentions environment variables aren't set in hook scripts but this
> shouldn't matter cause I wrote an explicit path.
> Andy Levy wrote:
> On 3/13/07, smakawhat wrote:
> > so this line: (including the correct paths)
> >
> > "C:\Path\To\svn.exe C:\Documents\MyWebSite"
> >
> > in the hook script is all I need for working copies from developers to
> > transfer over to the webserver automatically?
> >
> > The hook file should be in the hooks directory of the repository and in
> this
> > case should be and executable say changing it to 'post-commit.exe' woud
> > execute it?
> You cannot just change a file's extension to .exe to make it
> executable. You're talking about writing a batch script, which in
> Windows 2000/2003 needs either a .bat or .cmd extension.
> Naming a batch script .exe is probably what's causing your NTVDM issue.
> Please STOP changing your subject line on every post, as it is
> breaking some peoples' mail clients (GMail for example) and makes in
> general makes it harder to track the discussion.
> ________________________________
> No need to miss a message. Get email on-the-go
> with Yahoo! Mail for Mobile. Get started.
> ________________________________
> TV dinner still cooling?
> Check out "Tonight's Picks" on Yahoo! TV.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
Received on Tue Mar 13 22:16:26 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.