ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Problems integrating with Beanstalk hosted Subversion repository

Added by Joshua Majonis at 2011-11-23 06:52 pm

Hello,

I am having difficulty connecting my Chiliproject installation (via https) to a subversion repository hosted with Beanstalk (http://beanstalkapp.com/) When trying to view the repository I am getting a "Page Not Found -- The page you were trying to access doesn't exist or has been removed".

I was able to connect (via http) and view a test SVN repo I setup on the same host as Chiliproject.

I've tried the steps described in this Redmine FAQ (http://www.redmine.org/projects/redmine/wiki/FAQ#I-cant-browse-my-svn-repository-through-redmine) but I believe this is just for repositories with self-signed SSL certificates.

Please excuse my ignorance as I'm very new to Chiliproject and RoR webapps in general.

How would I go about troubleshooting this problem?

Thanks,
Josh


Replies (6)

RE: Problems integrating with Beanstalk hosted Subversion repository - Added by Felix Schäfer at 2011-11-23 07:52 pm

Hi Joshua,

Joshua Majonis wrote:

Please excuse my ignorance as I'm very new to Chiliproject and RoR webapps in general.

Ignorance is nothing you have to excuse yourself for, we're here to help and teach :-)

I am having difficulty connecting my Chiliproject installation (via https) to a subversion repository hosted with Beanstalk (http://beanstalkapp.com/) When trying to view the repository I am getting a "Page Not Found -- The page you were trying to access doesn't exist or has been removed".

I was able to connect (via http) and view a test SVN repo I setup on the same host as Chiliproject.

I've tried the steps described in this Redmine FAQ (http://www.redmine.org/projects/redmine/wiki/FAQ#I-cant-browse-my-svn-repository-through-redmine) but I believe this is just for repositories with self-signed SSL certificates.

How would I go about troubleshooting this problem?

A few quick questions so that I can get a better grasp of the problem:

  • You say you're trying to connect your ChiliProject via https but tried the connection (I suppose on the console?) via http, could you try via https?
  • Do you have any error messages in your log (probably chiliproject/log/production.log) when you try to access the repository page? Do you have a chiliproject/log/scm_errors.log, and if so what's in there?
  • What app server do you use for ChiliProject? Passenger, mongrel, thin, …?

RE: Problems integrating with Beanstalk hosted Subversion repository - Added by Joshua Majonis at 2011-11-23 08:57 pm

Hi Felix,

Thanks for the help :)

My web host uses Passenger. Unfortunatley I don't have easy access to another SVN repo over the https protocol so I cannot test it in Chiliproject. There is no scm_errors.log but here is the relevant section from production.log

Processing ApplicationController#index (for {xxx.xxx.xxx.xxx at 2011-11-23 12:33:38) [GET]

ActionController::RoutingError (No route matches "/internal_error.html" with {:method=>:get}):
  /dh/passenger/lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
  /dh/passenger/lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
  /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:400:in `start_request_handler'
  /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:351:in `handle_spawn_application'
  /dh/passenger/lib/phusion_passenger/utils.rb:184:in `safe_fork'
  /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:349:in `handle_spawn_application'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:163:in `start'
  /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:209:in `start'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
  /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
  /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
  /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

Rendering /home/username/chiliprojectsite.com/public/404.html (404 Not Found)

Here is what the log shows when I try to show that test repo I was able to view with Chiliproject:

Processing RepositoriesController#show (for xxx.xxx.xxx.xxx at 2011-11-23 12:50:34) [GET]
  Parameters: {"action"=>"show", "id"=>"project_name", "controller"=>"repositories"}
Rendering template within layouts/base
Rendering repositories/show
Completed in 1755ms (View: 439, DB: 771) | 200 OK [https://chiliprojectsite.com/projects/project_name/repository]

It looks like RepositoriesController is being processed in the case where things work, ApplicationController in the case where things don't work.

RE: Problems integrating with Beanstalk hosted Subversion repository - Added by Chris Dähn at 2011-11-24 07:16 pm

Hi,

as Felix asked before: can you try to checkout some files with an other client (e.g. the command line client) to test the https connection?

e.g. with:

svn co https://mydomain/myrepo/

If that works with a simple SVN client, you should use the same url for ChiliProject - maybe it gets a little bit more complicated if username and password are needed.

ciao,
Chris

RE: Problems integrating with Beanstalk hosted Subversion repository - Added by Joshua Majonis at 2011-11-24 07:25 pm

Hi Chris,

I am able to access that https Beanstalk SVN repo via TortoiseSVN on my local Windows dev machine and SVN command line on my Linux dev/staging servers. Everything works fine.

Yesterday I tried an SVN repo from a randomly chosen SourceForge project. (The protocol is https, but no user/pass required). Again, it worked OK on TortoiseSVN but now with ChiliProject.

RE: Problems integrating with Beanstalk hosted Subversion repository - Added by Chris Dähn at 2011-11-24 07:40 pm

Hi,

can you give me such an https url? So I'll test that with my ChiliProject 2.4.0 install (Debian/Ubuntu).

Further: What is your system? (Ruby version, operating system, ChiliProject version)

ciao,
Chris

RE: Problems integrating with Beanstalk hosted Subversion repository - Added by Felix Schäfer at 2011-11-24 07:53 pm

Joshua, I think either your ChiliProject doesn't find the svn binary or doesn't have sufficient rights to write some temp files it might need.

Could you please check what user Passenger runs your ChiliProject as (in the standard passenger config it is not the same user as the apache user) and try to read a remote https svn repository as that user?

(1-6/6)