Hi,
I am attempting to set up an svn server on Scientific Linux 7.5 using
subversion from the wandisco repositry. This is my entire process
(below). The current result is:
svn list svn://moria.metadatalibrary.org/MAAPSS
svn: E170013: Unable to connect to a repository at URL
'svn://moria.metadatalibrary.org/MAAPSS'
svn: E000013: Can't open file '/srv/svn/MAAPSS/format': Permission denied
Does anyone have any idea what have caused this problem?
--------------------------------------------------------------------------
cat /etc/yum.repos.d/wandisco-svn.repo
[WandiscoSVN]
name=Wandisco SVN Repo
baseurl=http://opensource.wandisco.com/centos/7/svn-1.10/RPMS/x86_64/
enabled=1
gpgcheck=0
rpm -q subversion
subversion-1.10.2-1.x86_64
svnserve --version
svnserve, version 1.10.2 (r1835932)
compiled Jul 24 2018, 15:08:17 on x86_64-redhat-linux-gnu
Copyright (C) 2018 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository back-end (FS) modules are available:
* fs_fs : Module for working with a plain file (FSFS) repository.
* fs_x : Module for working with an experimental (FSX) repository.
* fs_base : Module for working with a Berkeley DB repository.
Cyrus SASL authentication is available.
groupadd -g 502 svn
useradd -c "SVN" -d /srv/svn -g 502 -u 502 -s /sbin/nologin -M svn
mkdir /srv/svn
chown -R svn:svn /srv/svn/
sudo -u svn svnadmin create /srv/svn/MAAPSS
sudo -u svn vi /srv/svn/MAAPSS/conf/svnserve.conf
vi /etc/sasl2/svn.conf
pwcheck_method: auxprop
auxprop_plugin: sasldb
sasldb_path: /etc/svn_sasldb
mech_list: DIGEST-MD5 CRAM-MD5
saslpasswd2 -c -f /etc/svn_sasldb -u moria.metadatalibrary.org hanzer
chown svn:svn /etc/svn_sasldb
vi /etc/systemd/system/svnserve.service
[Unit]
Description=Subversion protocol daemon
After=syslog.target network.target
[Service]
Type=forking
RuntimeDirectory=svnserve
PIDFile=/run/svnserve/svnserve.pid
EnvironmentFile=/etc/default/svnserve
ExecStart=/usr/bin/svnserve $DAEMON_ARGS
User=svn
Group=svn
KillMode=control-group
Restart=on-failure
[Install]
WantedBy=multi-user.target
Alias=svnserve.service
vi /etc/default/svnserve
# svnserve options
DAEMON_ARGS="--daemon --pid-file /run/svnserve/svnserve.pid --root
/srv/svn/ --listen-port=3690 --log-file /var/log/svnserve/svnserve.log"
mkdir /var/log/svnserve; chown svn /var/log/svnserve
vi /etc/logrotate.d/svnserve
/var/log/svnserve/*.log {
daily
missingok
rotate 14
compress
notifempty
create 660 svn root
sharedscripts
postrotate
if /usr/bin/systemctl status svnserve > /dev/null ; then \
/usr/bin/systemctl restart svnserve > /dev/null; \
fi;
endscript
}
systemctl start svnserve.service
systemctl status svnserve.service
● svnserve.service - Subversion protocol daemon
Loaded: loaded (/etc/systemd/system/svnserve.service; disabled;
vendor preset: disabled)
Active: active (running) since Mon 2018-10-01 23:06:29 EDT; 2s ago
Process: 4049 ExecStart=/usr/bin/svnserve $DAEMON_ARGS (code=exited,
status=0/SUCCESS)
Main PID: 4050 (svnserve)
CGroup: /system.slice/svnserve.service
└─4050 /usr/bin/svnserve --daemon --pid-file
/run/svnserve/svnserve.pid --root /srv/svn/ --listen-port=3690
--log-file /var/log/s...
Oct 01 23:06:29 moria.metadatalibrary.org systemd[1]: Starting
Subversion protocol daemon...
Oct 01 23:06:29 moria.metadatalibrary.org systemd[1]: Started Subversion
protocol daemon.
firewall-cmd --zone=internal --permanent --add-port=3690/tcp
firewall-cmd --reload
--------------------------------------------------------------------------
svn list svn://moria.metadatalibrary.org/MAAPSS
svn: E170013: Unable to connect to a repository at URL
'svn://moria.metadatalibrary.org/MAAPSS'
svn: E000013: Can't open file '/srv/svn/MAAPSS/format': Permission denied
ls -l /srv/svn/MAAPSS
total 12
drwxr-xr-x. 2 svn svn 96 Oct 1 23:18 conf
drwxr-sr-x. 6 svn svn 4096 Oct 1 22:09 db
-r--r--r--. 1 svn svn 2 Oct 1 22:09 format
drwxr-xr-x. 2 svn svn 271 Oct 1 22:09 hooks
drwxr-xr-x. 2 svn svn 53 Oct 1 22:09 locks
-rw-r--r--. 1 svn svn 246 Oct 1 22:09 README.txt
ps -aux | grep svn
svn 4388 0.0 0.0 181276 1232 ? Ss 23:18 0:00
/usr/bin/svnserve --daemon --pid-file /run/svnserve/svnserve.pid --root
/srv/svn/ --listen-port=3690 --log-file /var/log/svnserve/svnserve.log
Received on 2018-10-02 06:54:40 CEST