Menu

error onClick "Repository Admin" ?

Help
2009-08-20
2013-05-01
  • Hoang Long Nguyen

    Hi,

    I got it installed and i could create admin and see the admin menu with user, group and repository admin.

    But when i clicked on " Repository Admin" i got this error message: "skip setlocale() failed, unicode characters might fail! ".  Do you have any ideas?

    Perhaps my config is wrong? you can see it below.

    $lang                        = "en_US.UTF-8";

    //Shell command's
    $htpassword_cmd             =     "C:\\Program Files\\Zend\\Apache2\\bin\\htpasswd";
    $svn_cmd                     =     "C:\\Program Files\\Subversion\\bin\\svn";
    $svnadmin_cmd                 =     "C:\\Program Files\\Subversion\\bin\\svnadmin";

    //Subversion locations
    $svn_config_dir                =    "C:\\svn-repos\\conf"; 
    $svn_repos_loc                 =     "C:\\www\respo";
    $svn_passwd_file             =     "C:\\svn-repos\\conf\\htpasswd";
    $svn_access_file             =     "/home/marijn/Data/repos/accessfile";

    Thanks,

    -Hoang Long

     
    • Marijn Verkerk

      Marijn Verkerk - 2009-08-20

      Please use the config.win as basis for your config file (I should have removed my config, sorry), and make sure you define $lang to someting that is configured on your computer..

      Also, you haven't configured your access file yet, have you?

      Marijn

       
    • Hoang Long Nguyen

      Hi Marijn,

      Thank you for your response. I got it worked by changing the setLocale function as below.
              if (false == setlocale(LC_ALL, null))  {...}

      I read the instruction at this link,: http://www.derangedcoder.net/programming/subversion/installSVNWindowsServer.html#installSubversion

      and found that "The current release of Subversion does not seem to work with Apache 2.2 so please make sure to use Apache 2.0 and not Apache 2.2.". What do you think?

      Currently, i could create respository (the interface saying "created". But i don't know how to verify it. I think it is actually not created because i got the error below:

      From the manu of respository admin, if i click on "User priviledges" then i "select" any respositories that i created, i got an error:
      "an executable program or batch file (cmd: "C:\Windows\system32\cmd.exe /C C:\Program Files\Subversion\bin\svn list --config-dir C:\svn-repos\conf --non-interactive file:///C:/svn-repos/repos2")
      Command used: "C:\Windows\system32\cmd.exe /C C:\Program Files\Subversion\bin\svn list --config-dir C:\svn-repos\conf --non-interactive file:///C:/svn-repos/repos2"

      thanks,

      -Hoang Long

       
      • Marijn Verkerk

        Marijn Verkerk - 2009-08-21

        You can also solve it by means of defining a correct setting for the $lang variable in your config file. I think you should do that instead of removing this completely!

        The document you are referring to is quite old and there are binaries available for Apache 2.2

        About the last part, I don't see the error message? Could you try to run the command's on a command shell, to see if they work? Maybe a misconfigured path?

        Marijn

         
    • Hoang Long Nguyen

      i am using Apache 2.2; PHP 5.2.10. And the server failed to load extension php_svn.dll
      But i think you are using command line,,hence it should not be a problem.

       
    • Hoang Long Nguyen

      oh,,right svnmanager version 1.07

       
    • Hoang Long Nguyen

      the error saying "not successfully open the repository file:///C:/svn-repos/repos2".

      This is my setting:
      //Shell command's
      $htpassword_cmd             =     "C:\\Programmi\\Zend\\Apache2\\bin\\htpasswd";
      $svn_cmd                     =     "C:\\Programmi\\Subversion\\bin\\svn";
      $svnadmin_cmd                 =     "C:\\Programmi\\Subversion\\bin\\svnadmin";

      //Subversion locations
      $svn_config_dir                =    "C:\\svn-repos\\conf"; 
      $svn_repos_loc                 =     "C:\\svn-repos";
      $svn_passwd_file             =     "C:\\svn-repos\\conf\\htpasswd";
      $svn_access_file             =     "C:\\svn-repos\\conf\\authz";

      I doubt the $svn_access_file value because in the "conf" there is only htpasswd file but no authz. Do you know why?

      thank you for your time,

      -Hoang Long

      Do you know how to set the $lang variable correctly? I google around and always got empty string return after the setlocale called. The only one i got successfully was removing it completely. (i used locale_get_default(); and the returned result was "it_IT" but i still failed if i passed this string to setLocale(..) )

       
    • Hoang Long Nguyen

      i rechecked my configuration and this is the result:
      Error: "L'URL 'file:///C:/svn-repos/newrepos1" Revision not exist.

      my config in Apache

      <Location /svn-repos>
          DAV svn
          SVNParentPath C:\svn-repos

          Satisfy Any
          Require valid-user

          AuthType Basic
          AuthName "Subversion Repository"
          AuthUserFile C:\svn-repos\conf\htpasswd
          <LimitExcept GET PROPFIND OPTIONS REPORT>
              Require valid-user
          </LimitExcept>
      </Location>

      and config.php
      //Subversion locations
      $svn_config_dir                =    "C:\\svn-repos\\conf"; 
      $svn_repos_loc                 =     "C:\\svn-repos";
      $svn_passwd_file             =     "C:\\svn-repos\\conf\\htpasswd";
      $svn_access_file             =     "C:\\svn-repos\\conf\\authz";

      I ensure that users and groups are created properly. I saw in the authz and htpasswd files.
      Could you tell me why the revision not exist ?

      thank you very much,

      ps: I am still trying to define the $lang value,,don't know if you have a hint to find out the correct value for my system?

      -Hoang Long

       
    • Hoang Long Nguyen

      finally it works. I debug and found that the repository truly not created. And in

      class DataModule.php

      method createRepository(...)

      the $a_dir value should be:
      $a_dir = escapeshellarg($svn_repos_loc.DIRECTORY_SEPARATOR.$rname);

      and the exec(...) has to be splitted to:
      $cmd1 = "set LANG=" . $lang . ";";
      $cmd2 = $svnadmin_cmd . " --config-dir " . $svn_config_dir . " create " . $a_dir;

      ps: I am still thinking about how to set the $lang variable correctly, do you have a hint ?

      regards,

      -Hoang Long

       
    • Marijn Verkerk

      Marijn Verkerk - 2009-08-23

      Could you send me a patch?

      Concerning the $lang value, what language is your OS using, and what is your OS?

      Marijn

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.