502 proxy error upgrading from 0.8.7 to 0.9
For ease, I installed the BitNami package for 0.8.7. I have since been trying to update to the 0.9-stable branch. I am behind a firewall so I cannot do a lot of the easy commands to update components from the web (gem install rails -v=2.3.5). I have been manually downloading the packages and innstalling the local copy. To test this I have been using a brand new install from BitNami with no plugins, themes, or even any changed data. The default installation works without any issues.Current pc configuration.
- Mongrel and Apache installed with the BitNami package.
- Windows XP x86
- MySQL 5.0.83
- Copied in the .9 branch to a new redmine folder.
- Copied redmine-old\scripts redmine-old\conf redmine-old\files to the new redmine folder.
- Copied redmine-old\config\*.yml to redmine\config.
- Manually installed the new gem components for this version.
- # rake-0.8.7
- # rack-1.0.1
- # rails-2.3.5
- # # actionmailer-2.3.5
- # # actionpack-2.3.5
- # # activerecord-2.3.5
- # # activeresource-2.3.5
- # # activesupport-2.3.5
- Created the session store rake config/initializers/session_store.rb
- Migrated the database rake db:migrate RAILS_ENV="production"
- Started all services
All of the above commands succeed and there is no visible problem at this point. Once I go to the local website it gives me the error.
Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /redmine. Reason: Error reading from remote server
The production.log only contains when it was created. I am getting my company to use Redmine and we are currently working on getting it set up so I thought I would start off with 0.9 rather than using 0.8.7 and having to upgrade in the very near future.
Any ideas or things to try?
I've the same problem. I see in mongrel.log in ruby/bin and there is the following error:
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mysql-2.8.1-x86-mswin32/lib/1.8/mysql_api.so: 126: The specified module could not be found. - C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mysql-2.8.1-x86-mswin32/lib/1.8/mysql_api.so (LoadError) from C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' from C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mysql-2.8.1-x86-mswin32/lib/mysql.rb:7 from C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' ....... .......
I've also execute gem install mysql but the problem remain the same
Hi, any solutions?
I have tried the same yesterday with similar results.
I resolved the problem with these steps:
After all steps explained in RedmineUpgrade guide
- gem install mysql (in order to install mysql 2.8.1)
- copy the lib libmysql.dll that exists in mysql/bin to ruby/bin (or reach it in mysql-ruby PATH)
- install the patch abstract_request.rb for mongrel <= 1.1.5 before you can't use --prefix without patch mongrel or patching your rail apps
(the patch is in attachment and you must copy it in /config/initializers as explain at URL: http://www.ruby-forum.com/topic/183811)
Hope that this may help you
abstract_request.rb - Patch for mongrel 1.1.5 (520 Bytes)