It was suggested to me to send this to this email address, I am not sure if
there is a online board for this, but here are some of the details that I
am working with below.

Issue started after attempting to get SVN to use LDAP.  I have rolled that
part back and now this issue has occurred.  I know of no network changes or
DNS changes.  the commits work to the Repos (all of them)  this particular
Repo has the post-commit hook to move the file to the web server.  This is
the first step to get the code to the SVN server into a build directory
(next step will SSH it over to web server, not that, that matters since
this is not working)

I have attempted to add the proxy-host-name to both the

/home/apache/.subversion/servers
and
/etc/subversion/servers

files with no change.

I was getting an error like:
svn: warning: Can't open file '/home/apache/.subversion/servers':
Permission denied
svn: OPTIONS of 'http://svnServer/svn/MyREPO/trunk/wwwroot': could not
connect to server (http://svnServer)

but I remove the /home/apache/.subversion whole directory and I am getting
the below.

Any suggestions are welcome.  IF more information is need that I may have
overlooked that is relevant please let me know and I can include.


svn, version 1.6.11 (r934486)
   compiled Apr 12 2012, 11:02:08

COMMIT code works, but post-commit does not.  Here is my post commit code:

  echo  "=============================" >> ${LOG}
echo "${REPOS_NAME} r${REV} ${DATE} $(${SVN}look author -r ${REV} $REPOS)"
>> ${LOG}

##########################
### DO INITIAL CHECKOUT ###
###########################
if [ ! -e ${SVN_DEST} ]; then
      echo "directory ${SVN_DEST} does not exist creating." >> ${LOG}
      mkdir -vp ${SVN_DEST} >> ${LOG}
      /usr/bin/whoami >> ${LOG}
     echo "initial checkout: ${SVN} co --username ${USER} --password
${PASS} -q ${SVN_SRC}${SVN_DEST} " >> ${LOG}
            ${SVN} co --username ${USER} --password ${PASS} -q ${SVN_SRC}
${SVN_DEST} >> ${LOG} 2>&1
            if [ ${?} != 0 ]; then
                echo "checkout: RETRYING" >> ${LOG}
                rm -rf ${SVN_DEST}
                ${SVN} co --username ${USER} --password ${PASS} -q
${SVN_SRC} ${SVN_DEST} >> ${LOG} 2>&1
                if [ ${?} != 0 ]; then
                    echo "checkout: FAILED -- FIXME" >> ${LOG}
                    tail --lines=100 ${LOG} | mail -s "svn checkout: FAILED
for ${REPOS_NAME} on ${DATE}" ${ADMINMAIL}
                    > ${LOCKFILE}
                    exit 1

Here is the output in my LOG file:

=============================
<myRepo> r2503 2014-02-09 13:46:34 -0500 <myID>

directory /var/svn/svntmp/<myRepo>/build/ does not exist creating.

apache  -- So this is user that SVN hooks are executed as

initial checkout: /usr/bin/svn co --username apache --password ***** -q
http://svnServer/<myREPO>/trunk/wwwroot/ /var/svn/svntmp/<myREPO>/build/

svn: OPTIONS of 'http://svn.bingham.lan/svn/empower-web/trunk/wwwroot':
could not connect to server (http://svn.bingham.lan)


"apache" is the name of the local user on the server that your HTTPd
process is running as.



HTTPd Conf contains:

# Load Subversion Apache Modules
LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

<Location /svn/>
# Enable Subversion
   DAV svn

# Directory containing all repos for this path
   SVNParentPath /var/svn

# List repositories collection
   SVNListParentPath On

# Repository Dispaly Name
   SVNReposName "Subversion Repositories"

# Authorization file
   AuthzSVNAccessFile    /var/svn/svn-acl-conf

# authenticate a valid user
# do basic password authentication in the clear
   AuthType Basic

# The name of the protected area or realm
   AuthName "Subversion Repositories"

# Basic Auth
   AuthUserFile /var/svn/svn-auth-conf

# Require valid-user
   Require valid-user
</Location>

Reply via email to