You are not logged in.
Hello.
I'm trying to set up a simple svn server, serving multiple repositories.
I was able to correctly set up single repository using guide from archwiki, now I'm trying to serve multiple repositories.
I've modified the /etc/conf.d/svnserve file to point to parent directory of those repositories, so instead of
-r /path/to/repos/repo1
it reads
-r /path/to/repos
However when I try to start subversion I get the following output
? svnserve.service
Loaded: error (Reason: Is a directory)
Active: inactive (dead) since Thu 2014-11-20 21:17:01 CET; 18min ago
Main PID: 24680 (code=killed, signal=TERM)
Now, when I try to start svnserve from shell, using this command
svnserve -d -r /path/to/repos
it starts normally and I am able to access all repositories. Adding and removing -d in /etc/conf.d/svnserve has no effect on error message.
Any thoughts?
Offline
Did you run
svnadmin create /path/to/repos
You have to actually CREATE the respository in the folder you want. Note: I do NOT know if this will cause problems with the repo you already have. I would think that creating a repo on a folder that wasn't empty (your repo1 is there now) would be a problem.
Last edited by mrunion (2014-11-20 21:18:19)
Matt
"It is very difficult to educate the educated."
Offline
Now, if I do that I'll have one repository with subdirectories, and each submission will increase version number on entire repository. I want to have several independent repositories, served by a single svnserve instance.
Offline
Makes sense. Then I don't have any idea what the problem is. Could you possibly post the entire conf file with the actual folder/directory names you are using?
Matt
"It is very difficult to educate the educated."
Offline
Sure, but there's not much else there:
#
# Parameters to be passed to svnserve
#
#SVNSERVE_ARGS="-r /path/to/some/repos"
SVNSERVE_ARGS=" -t -r /storage/repos/content --listen-port 3210"
Offline
Then I am truly out of ideas.
Matt
"It is very difficult to educate the educated."
Offline
Ok, for the time being I'm running it manually, without systemd.
Offline
This is the default svnserve.service I'm using:
[Unit]
Description=Subversion protocol daemon
After=syslog.target network.target
[Service]
Type=forking
EnvironmentFile=/etc/conf.d/svnserve
ExecStart=/usr/bin/svnserve --daemon $SVNSERVE_ARGS
[Install]
WantedBy=multi-user.target
Offline
Current /etc/conf.d/svnserve contains this:
SVNSERVE_ARGS=" -t -r /storage/repos/content --listen-port 3210"
but it still doesn't start, regardless if -t is present or not.
Offline
The problem has been solved.
The error message:
Loaded: error (Reason: Is a directory)
came from systemctl, specifically from /etc/systemd/system/svnserve.service being a directory.
The fix was to remove that directory
sudo rm -rf /etc/systemd/system/svnserve.service
and enabling/starting svnserve
systemctl enable svnserve
systemctl start svnserve
Hope this will help someone having similar problem.
Offline