Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: beast on July 24, 2015, 12:09:33 AM

Title: SVN subversion on SME9?
Post by: beast on July 24, 2015, 12:09:33 AM
Hi

Anybody that have some experience with subversion installation on SME9?

Looks like http://wiki.contribs.org/Subversion is quite old now an out dated.

Just like any hint before I do my own testing with the installation from the following sources:


/Benny
Title: Re: SVN subversion on SME9?
Post by: stephdl on July 24, 2015, 08:52:47 AM
Never tested before you ask but

- you have a contrib for smeserver-git ( i do prefer git, it is more modern)
- you must change the path of perl files between sme7/8 and sme9
/usr/lib/perl5/site_perl/esmith/*  to /usr/share/perl5/vendor_perl/esmith
- You may have some unitialized variables in
Title: Re: SVN subversion on SME9?
Post by: beast on July 24, 2015, 09:45:27 AM
Never tested before you ask but

- you have a contrib for smeserver-git ( i do prefer git, it is more modern)
- you must change the path of perl files between sme7/8 and sme9
/usr/lib/perl5/site_perl/esmith/*  to /usr/share/perl5/vendor_perl/esmith
- You may have some unitialized variables in

I sort of dislike Git and like to use a server/client model for my project with a small amount of deveopers working on seperate parts - the reason for the SVN request.

Stupid question - but where do I change the paths? In the RPM or after installation etc.
Title: Re: SVN subversion on SME9?
Post by: stephdl on July 24, 2015, 12:29:19 PM
After the installation IF the contrib uses it because old contrib used esmith-cgi in /etc/esmith/web/function therefore in this case you have nothing to do.

Sorry but i'm still in holydays i cant' verify it myself.

Maybe the better way to be sure is to open the rpm and look inside.

After that you should open a bug, ask to push it to sme9contribs and write there all you did to solve issues you found.
Title: Re: SVN subversion on SME9?
Post by: stephdl on July 24, 2015, 11:53:21 PM
try this please

Code: [Select]
yum install http://mirror.de-labrusse.fr/Sme-Server/smeserver-subversion/smeserver-subversion-1.7-1.el6.sme.noarch.rpm --enablerepo=smecontribs
signal-event post-upgrade; signal-event reboot

it seems workable here, but I need your return please.
Title: Re: SVN subversion on SME9?
Post by: beast on July 26, 2015, 10:17:39 AM
try this please

Code: [Select]
yum install http://mirror.de-labrusse.fr/Sme-Server/smeserver-subversion/smeserver-subversion-1.7-1.el6.sme.noarch.rpm --enablerepo=smecontribs
signal-event post-upgrade; signal-event reboot

it seems workable here, but I need your return please.

First impression looks good but I have the following problems!

Old version used (minor problem)

If I set some sort of authentification access I get a "Internal Server Error" page when I try to access the repository web page after the page have asked about my credentials. Also the same situation with TortoiseSVN.

Have only for now testet on a VirtualBox SME9 64bit server
Title: Re: SVN subversion on SME9?
Post by: beast on July 26, 2015, 01:53:12 PM
First impression looks good but I have the following problems!

Old version used (minor problem)

If I set some sort of authentification access I get a "Internal Server Error" page when I try to access the repository web page after the page have asked about my credentials. Also the same situation with TortoiseSVN.

Have only for now testet on a VirtualBox SME9 64bit server

Only happens when I select a user og group for read access - the rest of the setting do not seam to change anything.
Title: Re: SVN subversion on SME9?
Post by: stephdl on July 26, 2015, 11:11:42 PM
Only happens when I select a user og group for read access - the rest of the setting do not seam to change anything.
can you catch something in logs ?
/var/log/httpd/admin_error_log
/var/log/httpd/error_log
/var/log/messages
Title: Re: SVN subversion on SME9?
Post by: stephdl on July 27, 2015, 07:16:17 PM
found the bug, new version is coming
Title: Re: SVN subversion on SME9?
Post by: beast on July 27, 2015, 07:24:18 PM
found the bug, new version is coming

Was just about to access the logs - really :-)
Title: Re: SVN subversion on SME9?
Post by: stephdl on July 27, 2015, 09:37:55 PM
yum install http://mirror.de-labrusse.fr/Sme-Server/smeserver-subversion/smeserver-subversion-1.7-2.el6.sme.noarch.rpm --enablerepo=smecontribs
signal-event post-upgrade; signal-event reboot

now I can log to http with relevant credentials, as a side note I have not tested more, I don't know how work subversion, I do love Git
Title: Re: SVN subversion on SME9?
Post by: beast on July 27, 2015, 10:54:51 PM
Now it does not fail directly but I am unable to login with the right credentials??
Title: Re: SVN subversion on SME9?
Post by: beast on July 27, 2015, 11:00:08 PM
Seam as if it is not the correct credentials, but I have changed my test user to the same password a number of times now:

[Mon Jul 27 22:55:28 2015] [error] [client 192.168.11.141] AuthExtern pwauth [/usr/lib/httpd/modules/pwauth]: Failed (255) for user benny
[Mon Jul 27 22:55:28 2015] [error] [client 192.168.11.141] user benny: authentication failure for "/test/addon/": Password Mismatch
exec of '/usr/lib/httpd/modules/pwauth' failed: (2) No such file or directory
[Mon Jul 27 22:55:29 2015] [error] [client 192.168.11.141] AuthExtern pwauth [/usr/lib/httpd/modules/pwauth]: Failed (255) for user benny
[Mon Jul 27 22:55:29 2015] [error] [client 192.168.11.141] user benny: authentication failure for "/test/addon/": Password Mismatch
exec of '/usr/lib/httpd/modules/pwauth' failed: (2) No such file or directory
[Mon Jul 27 22:55:29 2015] [error] [client 192.168.11.141] AuthExtern pwauth [/usr/lib/httpd/modules/pwauth]: Failed (255) for user benny
[Mon Jul 27 22:55:29 2015] [error] [client 192.168.11.141] user benny: authentication failure for "/test/addon/": Password Mismatch
exec of '/usr/lib/httpd/modules/pwauth' failed: (2) No such file or directory
[Mon Jul 27 22:58:22 2015] [error] [client 192.168.11.141] AuthExtern pwauth [/usr/lib/httpd/modules/pwauth]: Failed (255) for user benny, referer: https://192.168.11.18/test/
[Mon Jul 27 22:58:22 2015] [error] [client 192.168.11.141] user benny: authentication failure for "/test/addon/": Password Mismatch, referer: https://192.168.11.18/test/
exec of '/usr/lib/httpd/modules/pwauth' failed: (2) No such file or directory
[Mon Jul 27 22:58:22 2015] [error] [client 192.168.11.141] AuthExtern pwauth [/usr/lib/httpd/modules/pwauth]: Failed (255) for user benny, referer: https://192.168.11.18/test/
[Mon Jul 27 22:58:22 2015] [error] [client 192.168.11.141] user benny: authentication failure for "/test/addon/": Password Mismatch, referer: https://192.168.11.18/test/
Title: Re: SVN subversion on SME9?
Post by: stephdl on July 27, 2015, 11:03:03 PM
You are in 64 bit or 32 bit ?
Title: Re: SVN subversion on SME9?
Post by: stephdl on July 27, 2015, 11:06:18 PM
What is the output

rpm -qa pwauth
Title: Re: SVN subversion on SME9?
Post by: beast on July 27, 2015, 11:07:49 PM
What is the output

rpm -qa pwauth

pwauth-2.3.10-5.el6.sme.x86_64

On 64bit
Title: Re: SVN subversion on SME9?
Post by: stephdl on July 27, 2015, 11:32:53 PM
Code: [Select]
yum install http://mirror.de-labrusse.fr/Sme-Server/smeserver-subversion/smeserver-subversion-1.7-3.el6.sme.noarch.rpm --enablerepo=smecontribs
signal-event post-upgrade; signal-event reboot

tested on a 64 bit, I have forgotten that the path to pwauth is different between sme8 and sme9, keep me in touch
Title: Re: SVN subversion on SME9?
Post by: beast on July 28, 2015, 08:13:00 AM
Seam to be working now :-)

Will install it on my production server and start using it to see if other problems appear!

Thank you so much for the support. I will update the Wiki soon.
Title: Re: SVN subversion on SME9?
Post by: beast on July 28, 2015, 12:32:52 PM
Found a small problem I think!

If I disable modDAVSVN I am unable to access the repository with https - think this is wrong if I have understood the concept correctly. E.g. modDAV is still enabled.

Am I correct in the assumption that modDAV is for http(s) and modDAVSVN is for the special protocol SVN?
Title: Re: SVN subversion on SME9?
Post by: stephdl on July 28, 2015, 01:05:32 PM
I don't know take a look to the http.conf (sort by the name of your repository) from what i recall you can't authenticate if you dont use https.

I'm at my day work i will look tonight
Title: Re: SVN subversion on SME9?
Post by: beast on July 28, 2015, 01:12:48 PM
I don't know take a look to the http.conf (sort by the name of your repository) from what i recall you can't authenticate if you dont use https.

I'm at my day work i will look tonight

It just return an unknown page when I try to access the repo with https:

Not Found

The requested URL /blabla/ was not found on this server.
Title: Re: SVN subversion on SME9?
Post by: stephdl on July 28, 2015, 06:31:22 PM
it seems that it is a mandatory

    if ( $modDAVSVNStatus eq 'enabled' ) {

see  /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/28SubversionContent

Title: Re: SVN subversion on SME9?
Post by: beast on July 28, 2015, 06:51:46 PM
it seems that it is a mandatory

    if ( $modDAVSVNStatus eq 'enabled' ) {

see  /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/28SubversionContent

Why then have the option?
Title: Re: SVN subversion on SME9?
Post by: stephdl on July 28, 2015, 08:44:53 PM
Maybe to stop the service of the contrib....but see the description of http://wiki.contribs.org/Subversion it just offers to  use http and https with subversion.

No more.
Title: Re: SVN subversion on SME9?
Post by: stephdl on July 29, 2015, 09:18:39 AM
If you can add to the contribs page some usages that could be nice
Title: Re: SVN subversion on SME9?
Post by: beast on July 29, 2015, 01:05:15 PM
If you can add to the contribs page some usages that could be nice

Sure, but have to work everything out myself first ;-)
Title: Re: SVN subversion on SME9?
Post by: beast on August 09, 2015, 09:48:01 AM
Now I have updated the Wiki as good as I can but have found a small error.

In the admin page there is a link that is not valid any more - need an update!

http://subversion.tigris.org to https://subversion.apache.org/
Title: Re: SVN subversion on SME9?
Post by: stephdl on August 11, 2015, 03:32:17 PM
upgrade and report please
Title: Re: SVN subversion on SME9?
Post by: beast on August 13, 2015, 07:38:54 PM
upgrade and report please

Works fine  :smile: