Project

General

Profile

svn/extras/reposman.rb error, invalid character at "<?xml vers"

Added by Arne Pagel over 12 years ago

Hello, I have a problem using the /svn/extras/reposman.rb:

if I try to use
./reposman.rb --redmine myserver --svn-dir /var/svn --owner ... --key=..... --verbose

I get the following error:

Unable to connect to http://myserver: invalid character at "<?xml vers"

If I call directly myserver/sys/projects.json?key=....... I get something like:

<?xml version="1.0" encoding="UTF-8"?>
<projects type="array">
  <project>
    <created-on type="datetime">2011-10-08T16:31:37+02:00</created-on>
    <description></description>
    <homepage></homepage>
    <id type="integer">1</id>
    <identifier>test</identifier>

    <is-public type="boolean">false</is-public>
    <lft type="integer">1</lft>
    <name>test project</name>
    <parent-id type="integer" nil="true"></parent-id>
    <rgt type="integer">2</rgt>
    <status type="integer">1</status>

    <updated-on type="datetime">2011-10-08T16:31:37+02:00</updated-on>
    <repository>
      <id type="integer">1</id>
      <login></login>
      <password></password>
      <project-id type="integer">1</project-id>
      <root-url nil="true"></root-url>

      <url>..some..url..</url>
    </repository>
  </project>
</projects>

My Rubyversion is ruby 1.8.7, the Rails version is 2.3.11 and Redmine version is 1.2.1.stable.
according to http://www.redmine.org/projects/redmine/wiki/RedmineInstall this combination should be O.K.

Any Idea?


Replies (2)

RE: svn/extras/reposman.rb error, invalid character at "&lt;?xml vers" - Added by James Ang over 12 years ago

Hi,

I'm too getting this same error.

Furthermore, 1.2.1 can't read from a bare or cloned git repository even with 777 mode for the entire directory.

Please advise.

RE: svn/extras/reposman.rb error, invalid character at "<?xml vers" - Added by Arne Pagel over 12 years ago

Hello,

before I installed redmine 1.2.1, I used some earlier version, 0.9.x, but had the same problem with reposman.rb.

Here is the Output from script/about:
config.load_paths is deprecated and removed in Rails 3, please use autoload_paths instead
config.load_paths= is deprecated and removed in Rails 3, please use autoload_paths= instead
Storing outgoing emails configuration in config/email.yml is deprecated. You should now store it in config/configuration.yml using the email_delivery setting.
About your application's environment
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.4.2
Rack version 1.1.2
Rails version 2.3.11
Active Record version 2.3.11
Active Resource version 2.3.11
Action Mailer version 2.3.11
Active Support version 2.3.11
Edge Rails revision unknown
Application root /usr/share/redmine
Environment production
Database adapter mysql
Database schema version 20110511000000

regards
Arne

    (1-2/2)