Menu

svnmanager creates empty folders

Help
2005-06-30
2013-05-01
  • Marijn Verkerk

    Marijn Verkerk - 2005-06-30

    Hi Jaguar,

    Would you please be so kind to ask questions in the available forum at sourceforge next time? Thanks! (I will forward this mail to the forum as well).

    For now, please check that:

    - the user or group that apache is running (such as 'apache') has read / write permissions to apache's homedirectory (which is usually something like /var/www/ , you can check in /etc/passwd)
    - the 'HOME' environment variable is unset in the script that launches the httpd server!! (since svnadmin uses this env variable to locate where it could find / make the .subversion directory)
    - php is NOT running in safe mode (since this would prevent php from reading / writing in any other directory than specified

    Regards,
    Marijn Verkerk

    Янковой Иван Иванович wrote:

    >how it work?
    >i create repository
    >i create user
    >repository folder created empty (example /home/subversion/svn)
    >and i can't do anything with permissions
    >if i try view users ot group privileges, i have an error (svn: Can't
    >check path '/home/jaguar/.subversion': Permission denied
    >(cmd: /usr/local/bin/svn list --non-interactive
    >file:///home/subversion/svn3)
    >Command used: /usr/local/bin/svn list --non-interactive
    >file:///home/subversion/svn3)
    >why? because folder "/home/jaguar/.subversion" is present and i change
    >rights to read and write to this folder
    >
    >Jaguar.
    >
    >
    >

     
    • Ivan Yankovoy

      Ivan Yankovoy - 2005-06-30

      this is part of my svnmanager congiguration file:
      "//Shell command's
      $htpassword_cmd                         =       "/home/subversion/.htpasswd";
      $svn_cmd                                =       "/usr/local/bin/svn";
      $svnadmin_cmd                           =       "/usr/local/bin/svnadmin";

      //Subversion locations
      $svn_repos_loc                          =       "/home/subversion";
      $svn_passwd_file                        =       "/home/subversion/passwd";
      $svn_access_file                        =       "/home/subversion/auth";
      "

      When i create new repository using "svnmanager" -  in /home/subversion folder created empty folder. this is wrong, i think.

       
    • Marijn Verkerk

      Marijn Verkerk - 2005-06-30

      Hi Ivan,

      In the config file, you should define the location of apache's htpasswd command (you know, the tool to create password files), instead of the .htpasswd file.

      something like:

      $htpassword_cmd = /usr/bin/htpasswd

       
    • Ivan Yankovoy

      Ivan Yankovoy - 2005-06-30

      heh, sorry. i am fool :).
      i try use svnmanager now once again :).

       
    • Ivan Yankovoy

      Ivan Yankovoy - 2005-06-30

      trouble was in HOME env variable. :(
      i think it must be writen in reame file bold font :) because it is important. not all http script disable HOME env variable.

       
    • Jason Lim

      Jason Lim - 2005-10-27

      Hi Marijn,

      Could you please explain more about this point?

      "the 'HOME' environment variable is unset in the script that launches the httpd server!! (since svnadmin uses this env variable to locate where it could find / make the .subversion directory) "

      We're always having '/root/.subversion' permission problem & 'svnadmin create newrepo'(just create an empty folder) problem.
      BUT all those problem solved after a restart machine.

      Thanks!

      Regards,
      Jason

       

Log in to post a comment.