Koozali.org: home of the SME Server

SVN subversion on SME9?

Offline beast

  • *
  • 245
  • +0/-0
SVN subversion on SME9?
« 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

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SVN subversion on SME9?
« Reply #1 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
« Last Edit: July 24, 2015, 08:57:45 AM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline beast

  • *
  • 245
  • +0/-0
Re: SVN subversion on SME9?
« Reply #2 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.

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SVN subversion on SME9?
« Reply #3 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.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SVN subversion on SME9?
« Reply #4 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.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline beast

  • *
  • 245
  • +0/-0
Re: SVN subversion on SME9?
« Reply #5 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

Offline beast

  • *
  • 245
  • +0/-0
Re: SVN subversion on SME9?
« Reply #6 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.

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SVN subversion on SME9?
« Reply #7 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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SVN subversion on SME9?
« Reply #8 on: July 27, 2015, 07:16:17 PM »
found the bug, new version is coming
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline beast

  • *
  • 245
  • +0/-0
Re: SVN subversion on SME9?
« Reply #9 on: July 27, 2015, 07:24:18 PM »
found the bug, new version is coming

Was just about to access the logs - really :-)

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SVN subversion on SME9?
« Reply #10 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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline beast

  • *
  • 245
  • +0/-0
Re: SVN subversion on SME9?
« Reply #11 on: July 27, 2015, 10:54:51 PM »
Now it does not fail directly but I am unable to login with the right credentials??

Offline beast

  • *
  • 245
  • +0/-0
Re: SVN subversion on SME9?
« Reply #12 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/

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SVN subversion on SME9?
« Reply #13 on: July 27, 2015, 11:03:03 PM »
You are in 64 bit or 32 bit ?
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SVN subversion on SME9?
« Reply #14 on: July 27, 2015, 11:06:18 PM »
What is the output

rpm -qa pwauth
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline beast

  • *
  • 245
  • +0/-0
Re: SVN subversion on SME9?
« Reply #15 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

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SVN subversion on SME9?
« Reply #16 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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline beast

  • *
  • 245
  • +0/-0
Re: SVN subversion on SME9?
« Reply #17 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.

Offline beast

  • *
  • 245
  • +0/-0
Re: SVN subversion on SME9?
« Reply #18 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?

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SVN subversion on SME9?
« Reply #19 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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline beast

  • *
  • 245
  • +0/-0
Re: SVN subversion on SME9?
« Reply #20 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.

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SVN subversion on SME9?
« Reply #21 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

See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline beast

  • *
  • 245
  • +0/-0
Re: SVN subversion on SME9?
« Reply #22 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?

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SVN subversion on SME9?
« Reply #23 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.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SVN subversion on SME9?
« Reply #24 on: July 29, 2015, 09:18:39 AM »
If you can add to the contribs page some usages that could be nice
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline beast

  • *
  • 245
  • +0/-0
Re: SVN subversion on SME9?
« Reply #25 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 ;-)

Offline beast

  • *
  • 245
  • +0/-0
Re: SVN subversion on SME9?
« Reply #26 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/

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SVN subversion on SME9?
« Reply #27 on: August 11, 2015, 03:32:17 PM »
upgrade and report please
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline beast

  • *
  • 245
  • +0/-0
Re: SVN subversion on SME9?
« Reply #28 on: August 13, 2015, 07:38:54 PM »
upgrade and report please

Works fine  :smile: