Project

General

Profile

Problem querying redmine for Projects using crontab

Added by Christian Kiesel over 11 years ago

hi there,

I got the following crontab entry:

/usr/bin/ruby /usr/local/share/redmine-2.1.2/extra/svn/reposman.rb --redmine-host localhost:3001/ --svn-dir  /repo2 -owner root --group daemon -command="/usr/bin/svnadmin create -pre-1.6-compatible --fs-type fsfs" -url https://172.18.0.10:/svn --key=cc54rR3tVmg3WI37hTue --verbose >> /var/log/reposman.log

if i run this I got the following error:

querying Redmine for projects...
Unable to connect to http://localhost:3001/svn/: Failed with 404 Not Found

Port 3001 openend with that command

/usr/bin/ruby1.8 /var/lib/gems/1.8/bin/thin start -e production -p 3001

I configured the apache with the directory svn is it neccessary to configure thin also ?

Thanks in advance

best regards

Christian


Replies (4)

RE: Problem querying redmine for Projects using crontab - Added by Jan Niggemann (redmine.org team member) over 11 years ago

Short: Yes

Long:

The 404 or Not Found error message is a HTTP standard response code indicating that the client was able to communicate with the server, but the server could not find what was requested.

You query port 3001 and the service running there can't find what wat you're looking for.
Since your're running thin on port 3001 you need to configure it properly.

RE: Problem querying redmine for Projects using crontab - Added by Christian Kiesel over 11 years ago

now I created thin config but it still doesnt work:

thin:

pid: tmp/pids/thin.pid
log: /var/log/thin.log
timeout: 30
chdir: /usr/local/share/redmine-2.1.2
max_conns: 1024
port: 3000
max_persistent_conns: 512
environment: production
servers: 1
address: 127.0.0.1
port: 3001
group: redmine
daemonize: true

apache:

<IfModule mod_ssl.c>
<VirtualHost 172.18.0.10:443>
  ServerAdmin sysadmin.qskills.de
  ServerName redmine.qs.de:443
  ServerAlias redmine.qs.de:443
  ErrorLog "/var/log/apache2/error.log" 
  CustomLog "/var/log/apache2/access.log" combined
  # This passes through remote_user to mongrel
  RewriteEngine On
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
 RewriteRule ^/(.*)$ balancer://redminecluster%{REQUEST_URI} [P,QSA,L]
SSLEngine on
SSLCertificateFile /etc/apache2/server.crt
SSLCertificateKeyFile /etc/apache2/server.key
<Directory />
Options FollowSymLinks MultiViews
AllowOverride None
</Directory>
<Directory /repo2/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

AllowCONNECT 80 443 563 3690 3000 3001 3002
ProxyPass / balancer://redminecluster
ProxyPassReverse / balancer://redminecluster
ProxyPass /svn !

<Proxy balancer://redminecluster>
 BalancerMember http://127.0.0.1:3001
  RewriteCond %{REQUEST_URI} !/svn(/|$)
</proxy>

<Location /svn>

Allow from all
    DAV svn
    SSLRequireSSL
    SVNParentPath "/repo2" 
    #SVNPath "/repo2" 
   SVNListParentPath On
#    PerlAccessHandler Apache::Authn::Redmine::access_handler
#    PerlAuthenHandler Apache::Authn::Redmine::authen_handler

Satisfy all
</Location>

</VirtualHost>
</IfModule>

this is the crontab entry:

/usr/bin/ruby /usr/local/share/redmine-2.1.2/extra/svn/reposman.rb --redmine-host localhost:3001/  --svn-dir  /repo2  --group daemon --command="/usr/bin/svnadmin create  --pre-1.6-compatible --fs-type fsfs" --url https://172.18.0.1:/repo2 --key=xyz123 --verbose >> /var/log/reposman.log

it still tells me:

querying Redmine for projects...
Unable to connect to http://localhost:3001/svn/: Failed with 404 Not Found

My subversion repositories are under /repo2
redmine 2.1.2 on a debian box

has anybody an idea what is missing or incorrect?

Thanks in advance

Christian

RE: Problem querying redmine for Projects using crontab - Added by Jan Niggemann (redmine.org team member) over 11 years ago

This is not a redmine issue, although there might be people on the forum who can help you either way.
You have an issue with your server configuration, whatever service answers the request on port 3001 can't find what you're looking for... Double check your paths, your mod_proxy config, ...

RE: Problem querying redmine for Projects using crontab - Added by Christian Kiesel over 11 years ago

also solved during my trial and error I changed reposman.rb Directory frm /sys to my svn directory
Because of error the sys couldnt be found. But this problem occured before I configured my thin server correctly.
Changed back to /sys and now it worked

    (1-4/4)