Can't setup redmine on window!
Added by shine dang almost 14 years ago
Hi all!
i have been trying setup redmine on window follow link:
http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache
When i setup at step
Create (or update) Redmine database tables * in command window, execute: cd C:\webserver\Redmine set RAILS_ENV=production rake generate_session_store rake db:migrate
i have error and can't fix it. plz help me
C:\webserver\Redmine>rake generate_session_store
(in C:/webserver/Redmine)
NOTE: SourceIndex.new(hash) is deprecated; From C:/webserver/Redmine/config/../v
endor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in `new'.
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_loa
d_rakefile'
(See full trace by running task with --trace)
C:\webserver\Redmine>rake db:migrate
(in C:/webserver/Redmine)
NOTE: SourceIndex.new(hash) is deprecated; From C:/webserver/Redmine/config/../v
endor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in `new'.
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_loa
d_rakefile'
(See full trace by running task with --trace)
C:\webserver\Redmine>rake generate_session_store
(in C:/webserver/Redmine)
NOTE: SourceIndex.new(hash) is deprecated; From C:/webserver/Redmine/config/../v
endor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in `new'.
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_loa
d_rakefile'
(See full trace by running task with --trace)
C:\webserver\Redmine>rake db:migrate RAILS_ENV="production"
(in C:/webserver/Redmine)
NOTE: SourceIndex.new(hash) is deprecated; From C:/webserver/Redmine/config/../v
endor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in `new'.
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_loa
d_rakefile'
(See full trace by running task with --trace)
Replies (14)
RE: Can't setup redmine on window! - Added by Etienne Massip almost 14 years ago
What's you gem list
?
RE: Can't setup redmine on window! - Added by shine dang almost 14 years ago
C:\Documents and Settings\Administrator>gem list
- LOCAL GEMS ***
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
cgi_multipart_eof_fix (2.5.0)
gem_plugin (0.2.3)
i18n (0.4.2)
mongrel (1.1.5 x86-mingw32)
mongrel_service (0.3.4 i386-mswin32)
mysql (2.8.1 x86-mingw32)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
rubygems-update (1.7.2)
win32-service (0.5.2 mswin32)
RE: Can't setup redmine on window! - Added by Etienne Massip almost 14 years ago
Your RubyGems version is not compatible with Rails 2.3.5.
Latest stable Redmine requires RubyGems < 1.5.0 (see RedmineInstall).
You can either :- downgrade RubyGems to fit Redmine needs (should be simple enaough with a
gem update --system 1.3.7
command but can be trickier sometimes) RECOMMENDED - tweak your installation as suggested on http://makandra.com/notes/1051-fixing-uninitialized-constant-activesupport-dependencies-mutex-nameerror
RE: Can't setup redmine on window! - Added by shine dang almost 14 years ago
our RubyGems version is not compatible with Rails 2.3.5. Latest stable Redmine requires RubyGems < 1.5.0 (see RedmineInstall). You can either : downgrade RubyGems to fit Redmine needs (should be simple enaough with a gem update --system 1.3.7 command but can be trickier sometimes) RECOMMENDED tweak your installation as suggested on http://makandra.com/notes/1051-fixing-uninitialized-constant-activesupport-dependencies-mutex-nameerror
Thank you. I have just follow your instructions and have error
C:\webserver\Redmine>set RAILS_ENV=production
C:\webserver\Redmine>rake generate_session_store
(in C:/webserver/Redmine)
C:\webserver\Redmine>rake generate_session_store
(in C:/webserver/Redmine)
C:\webserver\Redmine>rake db:migrate
(in C:/webserver/Redmine)
rake aborted!
C:/webserver/Redmine/config/initializers/patch_for_mongrel.rb:1: Invalid char `\
377' in expression
C:/webserver/Redmine/config/initializers/patch_for_mongrel.rb:1: Invalid char `\
376' in expression
(See full trace by running task with --trace)
redmine.JPG (133 KB) redmine.JPG |
RE: Can't setup redmine on window! - Added by Etienne Massip almost 14 years ago
Guess your file "patch_for_mongrel.rb" must have some invalid content.
RE: Can't setup redmine on window! - Added by robert willis almost 14 years ago
C:\webserver\Redmine>gem update --system 1.3.7
Updating rubygems-update
Fetching: rubygems-update-1.3.7.gem (100%)
Successfully installed rubygems-update-1.3.7
Installing RubyGems 1.3.7
RubyGems 1.3.7 installed
´╗┐=== 1.3.7 / 2010-05-13
NOTE:
http://rubygems.org is now the default source for downloading gems.
You may have sources set via ~/.gemrc, so you should replace
http://gems.rubyforge.org with http://rubygems.org
http://gems.rubyforge.org will continue to work for the forseeable future.
New features:
- `gem` commands
* `gem install` and `gem fetch` now report alternate platforms when a
matching one couldn't be found. * `gem contents` --prefix is now the default as specified in --help. Bug
#27211 by Mamoru Tasaka. * `gem fetch` can fetch of old versions again. Bug #27960 by Eric Hankins. * `gem query` and friends output now lists platforms. Bug #27856 by Greg
Hazel. * `gem server` now allows specification of multiple gem dirs for
documentation. Bug #27573 by Yuki Sonoda. * `gem unpack` can unpack gems again. Bug #27872 by Timothy Jones. * `gem unpack` now unpacks remote gems. * --user-install is no longer the default. If you really liked it, see
Gem::ConfigFile to learn how to set it by default. (This change was made
in 1.3.6) - RubyGems now has platform support for IronRuby. Patch #27951 by Will Green
Bug fixes:
- Require rubygems/custom_require if --disable-gem was set. Bug #27700 by
Roger Pack. - RubyGems now protects against exceptions being raised by plugins.
- rubygems/builder now requires user_interaction. Ruby Bug #1040 by Phillip
Toland. - Gem::Dependency support #version_requirements= with a warning. Fix for old
Rails versions. Bug #27868 by Wei Jen Lu. - Gem::PackageTask depends on the package dir like the other rake package
tasks so dependencies can be hooked up correctly.
RubyGems installed the following executables:
C:/webserver/Ruby/bin/gem
RubyGems system software updated
C:\webserver\Redmine>cd C:\webserver\Redmine
C:\webserver\Redmine> set RAILS_ENV=production
C:\webserver\Redmine> rake generate_session_store
(in C:/webserver/Redmine)
C:\webserver\Redmine> rake db:migrate
(in C:/webserver/Redmine)
rake aborted!
Can't connect to MySQL server on 'localhost' (10061)
(See full trace by running task with --trace)
C:\webserver\Redmine>
RE: Can't setup redmine on window! - Added by Etienne Massip almost 14 years ago
Run rake
with --trace
?
RE: Can't setup redmine on window! - Added by robert willis almost 14 years ago
Forgive me for being a newbie but not sure if this is the result of run trace below? Can not find rake.rb I seem to have rake 0.8.7 in my gem list, and can only see a blank Rakefile in the file registry (c:/webserver/Redmine
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\RWillis>rake -v
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_o
riginal_require': C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.r
b:59: syntax error, unexpected tDOT3 (SyntaxError)
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2506: syntax err
or, unexpected $end, expecting kEND
from C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb
:31:in `require'
from C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:26
from C:/webserver/Ruby/bin/rake:20:in `load'
from C:/webserver/Ruby/bin/rake:20
C:\Users\RWillis>
Note;
Also found the following info on line (custom_require.rb:31)
def require(path) # :doc:
gem_original_require path
rescue LoadError => load_error
Many thanks!
RE: Can't setup redmine on window! - Added by robert willis almost 14 years ago
Did a bit of adjustments and ended up with the following;
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\RWillis>cd C:\webserver\Redmine
C:\webserver\Redmine>set RAILS_ENV=production
C:\webserver\Redmine>rake generate_session_store
(in C:/webserver/Redmine)
C:\webserver\Redmine>rake db:migrate
(in C:/webserver/Redmine)
rake aborted!
Can't connect to MySQL server on 'localhost' (10061)
(See full trace by running task with --trace)
C:\webserver\Redmine>
Checked 'my.ini' file in my Ruby folder and it looks like this
[client]
port=3307
[mysql]
default-character-set=utf8
- SERVER SECTION
- ---------------------------------------------------------------------- #
- The following options will be read by the MySQL Server. Make sure that
- you have installed the server correctly (see above) so it reads this
- file.
#
[mysqld]
- The TCP/IP Port the MySQL Server will listen on
port=3307
#Path to installation directory. All paths are usually resolved relative to this.
basedir=C:/webserver/MySQL
#Path to the database root
datadir=C:/webserver/MySQL_Data/Data
- The default character set that will be used when a new schema or table is
- created and no character set is defined
default-character-set=utf8
- The default storage engine that will be used when create new tables when
default-storage-engine=INNODB
- Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
- The maximum amount of concurrent sessions the MySQL server will
- allow. One of these connections will be reserved for a user with
- SUPER privileges to allow the administrator to login even if the
- connection limit has been reached.
max_connections=100
etc..
RE: Can't setup redmine on window! - Added by Etienne Massip almost 14 years ago
Running with trace is using the command rake db:migrate --trace
instead of rake db:migrate
.
Guess your db config is not correct in config.database.yml
.
Did you go through the HowTo_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache steps 4 & 5 ?
RE: Can't setup redmine on window! - Added by robert willis almost 14 years ago
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\RWillis>cd C:\webserver\Redmine
C:\webserver\Redmine>set RAILS_ENV=production
C:\webserver\Redmine>rake generate_session_store
(in C:/webserver/Redmine)
(in C:/webserver/Redmine)
- Invoke db:migrate (first_time)
- Invoke environment (first_time)
- Execute environment
rake aborted!
no such file to load -- tread
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_o
riginal_require'
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `requi
re'
C:/webserver/Redmine/vendor/rails/activesupport/lib/active_support/dependencies.
rb:156:in `require'
C:/webserver/Redmine/vendor/rails/activesupport/lib/active_support/dependencies.
rb:521:in `new_constants_in'
C:/webserver/Redmine/vendor/rails/activesupport/lib/active_support/dependencies.
rb:156:in `require'
C:/webserver/Redmine/config/environment.rb:2
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_o
riginal_require'
C:/webserver/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `requi
re'
C:/webserver/Redmine/vendor/rails/activesupport/lib/active_support/dependencies.
rb:156:in `require'
C:/webserver/Redmine/vendor/rails/activesupport/lib/active_support/dependencies.
rb:521:in `new_constants_in'
C:/webserver/Redmine/vendor/rails/activesupport/lib/active_support/dependencies.
rb:156:in `require'
C:/webserver/Redmine/vendor/rails/railties/lib/tasks/misc.rake:4
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_w
ith_call_chain'
C:/webserver/Ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_w
ith_call_chain'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_p
rerequisites'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_p
rerequisites'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_w
ith_call_chain'
C:/webserver/Ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_w
ith_call_chain'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_
task'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_lev
el'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_lev
el'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standar
d_exception_handling'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_lev
el'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standar
d_exception_handling'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
C:/webserver/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/webserver/Ruby/bin/rake:20:in `load'
C:/webserver/Ruby/bin/rake:20
C:\webserver\Redmine>
Regarding "Guess your db config is not correct in
config.database.yml"
My cofig.database.yml file looks like this;
- MySQL (default setup).
production:
adapter: mysql
database: redmine
host: localhost
username: redmindUser
password: (my***password*no.**)
encoding: utf8
#development:
#adapter: mysql
#database: redmine_development
#host: localhost
#username: redmindUser
#password: (my***password*no.**)
#encoding: utf8
- Warning: The database defined as "test" will be erased and
- re-generated from your development database when you run "rake".
- Do not set this db to the same as development or production.
test:
adapter: mysql
database: redmine_test
host: localhost
username: redmineUser
password: (i've left empty!)
encoding: utf8
test_pgsql:
adapter: postgresql
database: redmine_test
host: localhost
username: redmineUser
password: (l've left empty!)
test_sqlite3:
adapter: sqlite3
database: db/test.db
RE: Can't setup redmine on window! - Added by Etienne Massip almost 14 years ago
Didn't you wrote require "tread"
somewhere instead of require "thread"
?
RE: Can't setup redmine on window! - Added by shine dang over 13 years ago
Thank all. I have been setup success on windows.
RE: Can't setup redmine on window! - Added by robert willis over 13 years ago
All up and running!!! Uninstalled MySQL (from port:3307) and installed again using 3306 and adjusting Norton firewall as well. Thanks also to Etienne for your help!
Cheers R