Redmine installation with sqlite under Windows 2016

Added by Julieta Menjivar 2 months ago

Hi All,

I am completely new installing redmine/ruby and I am trying to install it on a virtual server with Windows Server 2016 Standard
and I am following the Installation guide from here
https://www.redmine.org/projects/redmine/wiki/RedmineInstall

But I got problems with the rake file that we have to use in the step 5 and 6, then I will appreciate any help that you can bring me, I was reading a lot in internet but I can not find the solution.

Step 5 - Session store secret generation
bundle exec rake generate_secret_token

Step 6 - Database schema objects creation
Windows syntax:
set RAILS_ENV=production
bundle exec rake db:migrate

First I got "No Rakefile found"

PS C:\Ruby26-x64> bundle exec rake db:migrate --trace
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:698:in `raw_load_rakefile'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:104:in `block in load_rakefile'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:103:in `load_rakefile'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:82:in `block in run'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:80:in `run'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
C:/Ruby26-x64/bin/rake:31:in `load'
C:/Ruby26-x64/bin/rake:31:in `<main>'

Then I searched for the location of some rakefile and I foun one in the path C:\Ruby26-x64\lib\ruby\gems\2.6.0\gems\rake-12.3.3>
and when I executed from these location I got the following:

rake aborted!
Don't know how to build task 'db:migrate' (See the list of available tasks with `rake --tasks`)
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/task_manager.rb:59:in `[]'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:159:in `invoke_task'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:116:in `block (2 levels) in top_level'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:116:in `each'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:116:in `block in top_level'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:125:in `run_with_threads'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:110:in `top_level'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:83:in `block in run'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:80:in `run'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
C:/Ruby26-x64/bin/rake:31:in `load'
C:/Ruby26-x64/bin/rake:31:in `<main>'
PS C:\Ruby26-x64\lib\ruby\gems\2.6.0\gems\rake-12.3.3>

Then I checked the available rake tasks, and I have only the tasks listed below, then I am not sure how I can get the rake tasks needed
PS C:\Ruby26-x64\lib\ruby\gems\2.6.0\gems\rack-2.2.3> rake -T

rake build # Build rack-2.2.3.gem into the pkg directory
rake changelog # Generate a ChangeLog
rake chmod # Make binaries executable
rake ci # Run all the tests we run on CI
rake clean # Remove any temporary products
rake clobber # Remove any generated files
rake default # Run all the tests
rake deps # Install gem dependencies
rake dist # Make an archive as .tar.gz
rake install # Build and install rack-2.2.3.gem into system gems
rake install:local # Build and install rack-2.2.3.gem into system gems w...
rake officialrelease # Make an official release
rake rdoc # Generate RDoc documentation
rake release[remote] # Create tag v2.2.3 and build and push rack-2.2.3.gem...
rake spec # Generate Rack Specification
rake test # Run all the fast + platform agnostic tests
rake test:regular # Run tests for test:regular
rake test_cov # Run tests with coverage

Until now I have installed the following:

sqlite-tools-win32-x86-3310100
redmine-4.1.1.zip
rubyinstaller-devkit-2.6.6-1-x64.exe

PS C:\Ruby26-x64\lib\ruby\gems\2.6.0\gems\rack-2.2.3> gem list

  • LOCAL GEMS ***

actioncable (6.0.3.2)
actionmailbox (6.0.3.2)
actionmailer (6.0.3.2)
actionpack (6.0.3.2)
actiontext (6.0.3.2)
actionview (6.0.3.2)
activejob (6.0.3.2)
activemodel (6.0.3.2)
activerecord (6.0.3.2)
activestorage (6.0.3.2)
activesupport (6.0.3.2)
ast (2.4.1)
bigdecimal (default: 1.4.1)
builder (3.2.4)
bundle (0.0.1)
bundler (2.1.4, default: 1.17.2)
cmath (default: 1.0.0)
concurrent-ruby (1.1.6)
coveralls (0.8.23)
crass (1.0.6)
csv (default: 3.0.9)
date (default: 2.0.0)
dbm (default: 1.0.0)
did_you_mean (1.3.0)
docile (1.3.2)
e2mmap (default: 0.1.0)
erubi (1.9.0)
etc (default: 1.0.1)
fcntl (default: 1.0.0)
fiddle (default: 1.0.0)
fileutils (default: 1.1.0)
forwardable (default: 1.2.0)
gdbm (default: 2.0.0)
globalid (0.4.2)
i18n (1.8.3)
io-console (default: 0.4.7)
ipaddr (default: 1.2.2)
irb (default: 1.0.0)
json (default: 2.1.0)
logger (default: 1.3.0)
loofah (2.6.0)
mail (2.7.1)
marcel (0.3.3)
matrix (default: 0.1.0)
method_source (1.0.0)
mimemagic (0.3.5)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.11.3)
mutex_m (default: 0.1.0)
net-telnet (0.2.0)
nio4r (2.5.2)
nokogiri (1.10.10 x64-mingw32)
openssl (default: 2.1.2)
ostruct (default: 0.1.0)
parallel (1.19.1)
parser (2.7.1.3)
power_assert (1.1.3)
prime (default: 0.1.0)
psych (default: 3.1.0)
rack (2.2.3)
rack-test (1.1.0)
rails (6.0.3.2)
rails-dom-testing (2.0.3)
rails-html-sanitizer (1.3.0)
railties (6.0.3.2)
rainbow (3.0.0)
rake (12.3.3)
rdoc (default: 6.1.2)
regexp_parser (1.7.1)
rexml (default: 3.1.9)
rmagick (4.1.2)
rss (default: 0.2.7)
rubocop (0.85.1)
rubocop-ast (0.0.3)
ruby-progressbar (1.10.1)
scanf (default: 1.0.0)
sdbm (default: 1.0.0)
shell (default: 0.7)
simplecov (0.18.5, 0.16.1)
simplecov-html (0.12.2, 0.10.2)
sprockets (4.0.2)
sprockets-rails (3.2.1)
stringio (default: 0.0.2)
strscan (default: 1.0.0)
sync (default: 0.5.0)
term-ansicolor (1.7.1)
test-unit (3.2.9)
thor (1.0.1)
thread_safe (0.3.6)
thwait (default: 0.1.0)
tins (1.25.0)
tracer (default: 0.1.0)
tzinfo (1.2.7)
unicode-display_width (1.7.0)
webrick (default: 1.4.2)
websocket-driver (0.7.2)
websocket-extensions (0.1.5)
xmlrpc (0.3.0)
zeitwerk (2.3.1)
zlib (default: 1.0.0)

Thank you.
Best Regards