Subversion klappt nicht

  • Hallo,


    i möchte einen Subversion Server auf meinem Qnap einrichten. Ich habe mich an den Qnap Wiki Artikel gehalten (http://wiki.qnap.com/wiki/Subversion) aber komme gerade nicht weiter.. daher mal hier was ich bisher gemacht habe


    - Paket installiert: ipkg install svn
    - ein "subversion" share über dsa Qnap Webadmin erstellt
    - Projektordner erstellt: mkdir /share/subversion/arduino
    - svnadmin benutzt: svnadmin create /share/subversion/arduino
    - die config Dateien angepasst: nano /share/subversion/arduino/conf/passwd und nano /share/subversion/arduino/conf/svnserve.conf


    Code
    [general]    ### These options control access to the repository for unauthenticated    ### and authenticated users.  Valid values are "write", "read",    ### and "none".  The sample settings below are the defaults.    anon-access = read    auth-access = write    ### The password-db option controls the location of the password    ### database file.  Unless you specify a path starting with a /,    ### the file's location is relative to the directory containing    ### this configuration file.    ### If SASL is enabled (see below), this file will NOT be used.    ### Uncomment the line below to use the default password file.    password-db = passwd    ### The authz-db option controls the location of the authorization    ### rules for path-based access control.  Unless you specify a path    ### starting with a /, the file's location is relative to the the    ### directory containing this file.  If you don't specify an    ### authz-db, no path-based access control is done.    ### Uncomment the line below to use the default authorization file.    # authz-db = authz    ### This option specifies the authentication realm of the repository.    ### If two repositories have the same authentication realm, they should    ### have the same password database, and vice versa.  The default realm    ### is repository's uuid.    # realm = My First Repository    [users]    # harry = harryssecret    # sally = sallyssecret    dehein = 1234



    - svn server gestartet: svnserve -d --listen-port=3690
    - testen ob er läuft


    Code
    ps |grep svn
        3545 admin      1004 S   svnserve -d --listen-port=3690
        4616 admin       484 S   grep svn



    Wenn ich das richtig sehe brauche ich Apache ja nicht wenn ich nur das svn protokoll nutzen will, oder?


    Dann habe ich Tortoisesvn (Windows) installiert und einen Ordner erstellt. Dann rechtsklick und SVN Checkout. Die URL svn://192.168.2.150/arduino eingegeben und sonst nichts geändert. Aber es klappt leider nicht:


    Zitat


    Command: Checkout from svn://192.168.2.150/arduino, revision HEAD, Fully recursive, Externals included
    Error: Unable to connect to a repository at URL 'svn://192.168.2.150/arduino'
    Error: No repository found in 'svn://192.168.2.150/arduino'



    Was mache ich falsch???


    Vielen Dank
    Dennis

  • Hier gibt es eine funktionierende, ausführlichere Anleitung. Die Installation hat bei mir gut funktioniert. Ein Goodie ist das QPKG-Symbol im WebUI zum Starten/Stoppen des Servers.


    http://forum.qnapclub.de/viewtopic.php?f=33&t=17813&start=10


    Die Pfade in der Doku musst du evtl. entsprechend deinem NAS etwas anpassen.


    Beim Serverstart musst du die Config-Datei des Repositories als auch den Repository-Pfad angeben, für das der Server zuständig ist.
    In meinem svnstart.sh Script (siehe auch Link zum Inhalt) sieht der Aufruf etwa so aus:


    Auszug:


    Code
    SVNSERVE=/share/HDA_DATA/.qpkg/Optware/bin/svnserve
    # PORT="--listen-port=4444" #default 3690
    BASE_PATH="/share/HDA_DATA/Subversion"
    SVN_REPOS_PATH="$BASE_PATH/svn-repository"
    CONFIG_FILE="--config-file $SVN_REPOS_PATH/conf/svnserve.conf"
    
    
    $SVNSERVE -d $PORT --root $SVN_REPOS_PATH $CONFIG_FILE
  • nun habe ich doch noch ein Problem, habe am WE einen Order ausgecheckt, jetzt ein paar Dateien bearbeitet und erstellt und bekomme folgenden Fehler beim commit:


    Code
    Sending content: C:\Users\dehein\Desktop\SA IST Latex\bericht.pdf  
    Error: Commit failed (details follow):  
    Error: While preparing 'C:\Users\dehein\Desktop\SA IST Latex\bericht.pdf' for commit  
    Error: Can't write to connection: Eine vorhandene Verbindung wurde vom Remotehost  
    Error:  geschlossen.  
    Error: Can't write to connection: Eine vorhandene Verbindung wurde vom Remotehost  
    Error:  geschlossen.


    !?!?! ;)

  • Entweder ist der SVN-Server abgestürzt oder wurde nach dem NAS-Neustart nicht gestartet.
    Es könnte auch sein, dass eine Firewall auf dem PC die Kommunikation blockt.


    Sonst fällt mir auch nichts weiter dazu ein.

  • der PC hat keine Firewall und wenn ich auf dem qnap ps | grep svn eingebe erscheint:


    Code
    5811 admin       672 S   /share//MD0_DATA/.qpkg/Optware/bin/svnserve -d --list
    19425 admin       576 S   grep svn
  • Bitte lies nochmal meinen Post davor:

    Zitat von "warpcam"

    Beim Serverstart musst du die Config-Datei des Repositories als auch den Repository-Pfad angeben, für das der Server zuständig ist.


    Das hast du nicht gemacht und deshalb nutzt der Server vermutlich gar nicht das gewünschte Repository und damit auch andere Zugriffsrechte.
    Woher soll der Server sonst wissen, wo dein Repository liegt?


    Deine svnserve-Parameter müssten m.E. so aussehen:


    Code
    /share/MD0_DATA/.qpkg/Optware/bin/svnserve -d --root /share/subversion/arduino --config-file /share/subversion/arduino/conf/svnserve.conf


    Der Teil "--config-file /share/subversion/arduino/conf/svnserve.conf" ist evtl. nicht notwendig, schaden tut er aber nicht.

  • also eignetlich habe ich mir das startscript angepasst (http://forum.qnapclub.de/viewt…=80&t=2489&p=13426#p13426)


    Bash
    #!/bin/shSVNSERVE=/share//MD0_DATA/.qpkg/Optware/bin/svnservePARAMS="-d"PORT="--listen-port=4321" #default 3690SVN_REPOS_PATH="--root /share/subversion/repositories"CONFIG_FILE="--config-file /share/subversion/svnserv.conf"        echo -n "Starting svnserve services: "        $SVNSERVE $PARAMS $PORT $SVN_REPOS_PATH $CONFIG_FILE



    ---Edit---



    und ich sehe gerade das ps war auch abgeschnitten:


    Code
    [/share/subversion] # ps | grep svn
     4619 admin       920 S   /share//MD0_DATA/.qpkg/Optware/bin/svnserve -d --listen-port=4321 --root /share/subversion/repositories --config-file /share/subversion/svnserv.conf
     4632 admin       484 S   grep svn

    Einmal editiert, zuletzt von bladekiller () aus folgendem Grund: Editierfunktion nutzen und doppelte Beiträge vermeiden, siehe Forenregeln!