Subversion With Write Over HTTP in Centos

Veeramani P's Avatar

Veeramani P

26 Sep, 2018 04:57 AM

we are upgrade rhodecode community version 4.8 into 4.13. Also generate Apache config file in Rhode admin.

need to enable dav_svn in subversion.conf
vim /etc/httpd/conf.d/subversion.conf

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

This is for vim /etc/httpd/conf/httpd.conf
<VirtualHost *:2080>
   ServerAdmin rhodecode-admin@localhost
   DocumentRoot /var/www/html
  #ErrorLog ${'${APACHE_LOG_DIR}'}/error.log
 #CustomLog ${'${APACHE_LOG_DIR}'}/access.log combined
   LogLevel info
      #HttpProtocolOptions Unsafe
   Include /home/rhode/.rccontrol/community-1/mod_dav_svn.conf
 </VirtualHost>

In rhodecode config file /.rccontrol/community-1/rhodecode.ini

############################################################
### Subversion proxy support (mod_dav_svn) ###
### Maps RhodeCode repo groups into SVN paths for Apache ###
############################################################
## Enable or disable the config file generation.
svn.proxy.generate_config = true
## Generate config file with `SVNListParentPath` set to `On`.
svn.proxy.list_parent_path = true
## Set location and file name of generated config file.
svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
## Used as a prefix to the `Location` block in the generated config file.
## In most cases it should be set to `/`.
svn.proxy.location_root = /
## Command to reload the mod dav svn configuration on change.
## Example: `/etc/init.d/apache2 reload`
svn.proxy.reload_cmd = /etc/init.d/httpd reload
## If the timeout expires before the reload command finishes, the command will
## be killed. Setting it to zero means no timeout. Defaults to 10 seconds.
#svn.proxy.reload_timeout = 10

Also generate mod_dav_svn.conf in in rhodecode VCS admin.

export APACHE_RUN_USER=rhodecode
export APACHE_RUN_GROUP=rhodecode
we can't change the user into rhodecode user. we are running another instance in apache.

All configuration are done. So what should I do next.

  1. 1 Posted by Veeramani P on 26 Sep, 2018 08:14 AM

    Veeramani P's Avatar

    I configured successfully. If I enter the http://localhost:2080 it asking for ldap password once entered it will show the all rhodecode repository's. If I open one project I got this error
    "
    <D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns" xmlns:C="svn:">
    <C:error/>
    <m:human-readable errcode="2"> Could not open the requested SVN filesystem </m:human-readable>
    </D:error>
    "
    Here i attache the screenshots.

  2. 2 Posted by Veeramani P on 27 Sep, 2018 04:20 AM

    Veeramani P's Avatar

    Dear Team,

    Is there any update regarding my issue I mentioned above.
    Kindly help me to solve this issue.

  3. Support Staff 3 Posted by Marcin Kuzminsk... on 03 Oct, 2018 01:16 PM

    Marcin Kuzminski's Avatar
  4. Marcin Kuzminski closed this discussion on 03 Oct, 2018 01:16 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

17 Oct, 2018 03:22 PM
15 Oct, 2018 12:10 PM
15 Oct, 2018 05:20 AM
10 Oct, 2018 08:11 AM
03 Oct, 2018 01:16 PM

 

01 Oct, 2018 08:41 AM
28 Sep, 2018 10:12 AM
26 Sep, 2018 04:34 AM
21 Sep, 2018 04:40 PM
18 Sep, 2018 03:30 PM
11 Sep, 2018 09:12 AM