Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always getting errors while installing #8

Closed
ludgerey opened this issue Sep 6, 2012 · 12 comments
Closed

Always getting errors while installing #8

ludgerey opened this issue Sep 6, 2012 · 12 comments
Labels

Comments

@ludgerey
Copy link

ludgerey commented Sep 6, 2012

I can't install in fresh BitNami installation because of errors while executing "rake db:migrate_plugins RAILS_ENV=production"

C:\Program Files\BitNami Redmine Stack\apps\redmine\htdocs>rake db:migrate_plugi
ns RAILS_ENV=production
rake aborted!
C:/Program Files/BitNami Redmine Stack/apps/redmine/htdocs/plugins/redmine_time_
tracker/lib/tt_query_patch.rb:115: syntax error, unexpected tASSOC, expecting ']
'
...irtual_comment, :time_entry => :issue, :time_log => :user]).
                              ^
C:/Program Files/BitNami Redmine Stack/apps/redmine/htdocs/plugins/redmine_time_
tracker/lib/tt_query_patch.rb:134: syntax error, unexpected tASSOC, expecting ']
'
...irtual_comment, :time_entry => :issue, :time_log => :user]).
                              ^
C:/Program Files/BitNami Redmine Stack/apps/redmine/htdocs/plugins/redmine_time_
tracker/lib/tt_query_patch.rb:158: syntax error, unexpected tASSOC, expecting ']
'
...irtual_comment, :time_entry => :issue, :time_log => :user]).
                              ^

Tasks: TOP => db:migrate_plugins => redmine:plugins:migrate => environment
(See full trace by running task with --trace)
@logical-and
Copy link

Looks like environment issue. Can you post your environment?

On 07.09.2012 0:56, lugy2001 wrote:

I can't install in fresh BitNami installation because of errors while
executing "rake db:migrate_plugins RAILS_ENV=production"

|C:\Program Files\BitNami Redmine Stack\apps\redmine\htdocs>rake db:migrate_plugi
ns RAILS_ENV=production
rake aborted!
C:/Program Files/BitNami Redmine Stack/apps/redmine/htdocs/plugins/redmine_time_
tracker/lib/tt_query_patch.rb:115: syntax error, unexpected tASSOC, expecting ']
'
...irtual_comment, :time_entry => :issue, :time_log => :user]).
^
C:/Program Files/BitNami Redmine Stack/apps/redmine/htdocs/plugins/redmine_time_
tracker/lib/tt_query_patch.rb:134: syntax error, unexpected tASSOC, expecting ']
'
...irtual_comment, :time_entry => :issue, :time_log => :user]).
^
C:/Program Files/BitNami Redmine Stack/apps/redmine/htdocs/plugins/redmine_time_
tracker/lib/tt_query_patch.rb:158: syntax error, unexpected tASSOC, expecting ']
'
...irtual_comment, :time_entry => :issue, :time_log => :user]).
^

Tasks: TOP => db:migrate_plugins => redmine:plugins:migrate => environment
(See full trace by running task with --trace)|

@ludgerey
Copy link
Author

ludgerey commented Sep 6, 2012

Sorry, but I'm not sure what you mean and how i can do it. Can you specify more what you need?

BitNami is using Redmine 2.0.3 with Rails 2.3.6 and mysql.

With these gems:

actionmailer (3.2.6, 2.3.14)
actionpack (3.2.6, 2.3.14)
activemodel (3.2.6)
activerecord (3.2.6, 2.3.14)
activeresource (3.2.6, 2.3.14)
activesupport (3.2.6, 2.3.14)
after_commit (1.0.10)
allison (2.0.3)
arel (3.0.2)
aws-sdk (1.5.4, 1.5.2)
bcrypt-ruby (3.0.1 x86-mingw32)
bluecloth (2.1.0 x86-mingw32)
builder (3.0.0)
bundler (1.0.21)
capistrano (2.9.0)
cgi_multipart_eof_fix (2.5.0)
coderay (1.0.6)
crack (0.3.1)
daemons (1.0.10)
delayed_job (2.0.7)
diff-lcs (1.1.2)
echoe (4.5.6)
edavis10-object_daddy (0.4.3)
erubis (2.7.0)
eventmachine (1.0.0.rc.4 x86-mingw32)
fastercsv (1.5.4)
gem_plugin (0.2.3)
gemcutter (0.7.1)
gruff (0.3.6)
highline (1.6.8)
hike (1.2.1)
hoe (2.12.4)
hpricot (0.8.5 i386-mswin32)
httparty (0.8.1)
i18n (0.6.0, 0.4.2)
journey (1.0.3)
json (1.4.6 x86-mingw32)
json_pure (1.6.3)
mail (2.4.4)
memcache-client (1.8.5)
metaclass (0.0.1)
mime-types (1.18)
mini_magick (3.3)
mocha (0.10.5)
mongrel (1.1.5 x86-mingw32)
mongrel_cluster (1.0.5)
mongrel_service (0.4.0)
multi_json (1.1.0)
multi_xml (0.4.1)
mysql (2.8.1 x86-mingw32)
mysql2 (0.3.11)
needle (1.3.0)
net-ldap (0.3.1)
net-scp (1.0.4)
net-sftp (2.0.5)
net-ssh (2.2.1)
net-ssh-gateway (1.1.0)
nokogiri (1.5.0 x86-mingw32, 1.4.4 x86-mingw3
polyglot (0.3.3)
prototype-rails (3.2.1)
rack (1.4.1, 1.1.3)
rack-cache (1.2)
rack-openid (1.3.1)
rack-ssl (1.3.2)
rack-test (0.6.1, 0.5.7)
rails (3.2.6, 2.3.14)
rails_analyzer_tools (1.4.0)
railties (3.2.6)
rake (0.9.2.2)
rake-compiler (0.7.9)
rdoc (3.11)
RedCloth (4.2.9 x86-mingw32)
riddle (1.5.0)
rmagick (2.12.0)
rspec (2.7.0)
rspec-core (2.7.1)
rspec-expectations (2.7.0)
rspec-mocks (2.7.0)
ruby-openid (2.1.8)
rubyforge (2.0.4)
sprockets (2.1.3, 2.1.2)
sqlite3 (1.3.5 x86-mingw32)
sqlite3-ruby (1.3.2 x86-mingw32)
subexec (0.1.0)
SyslogLogger (1.4.0)
term-ansicolor (1.0.7)
thin (1.3.1)
thinking-sphinx (1.4.10)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10, 1.4.5)
tzinfo (0.3.33)
uuidtools (2.1.2)
webrat (0.7.3)
yard (0.8.1)

@creich
Copy link

creich commented Sep 7, 2012

i am not sure how you tried to install your plugin. i qould recommend to read this doc: http://www.redmine.org/projects/redmine/wiki/Plugins
as far as i can see you used the old syntax of the rake command from redmine 1.x
you should use "rake redmine:plugins:migrate RAILS_ENV=production" instead

@logical-and
Copy link

I mean - what redmine, ruby, rails version you use? You can see it at
Redmine > Settings > Info page, or retrieve it in console.

On 07.09.2012 1:41, lugy2001 wrote:

Sorry, but I'm not sure what you mean and how i can do it. Can you
specify more what you need?


Reply to this email directly or view it on GitHub
#8 (comment).

@logical-and
Copy link

@lugy2001 Ok, second part of your message isnt delivered on my mail.

Did you mean Rails 3.2.6 instead 2.3.6? If not - I think there is trouble. Problem looks like Ruby parser cannot parse one of plugins file, so it crashes the application. I use, and it is work properly:

and@artvertep:/$ ruby -v
ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-linux]
and@artvertep:/$ rails -v
Rails 3.2.6

@creich
Copy link

creich commented Sep 7, 2012

as listed in his gem-list i think i his using rails 3.2.6 and therefor he should use the actual rake-syntax for the right redmine-rake-task...

@ludgerey
Copy link
Author

ludgerey commented Sep 7, 2012

C:\Program Files\BitNami Redmine Stack>ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [i386-mingw32]

C:\Program Files\BitNami Redmine Stack>rails -v
Rails 3.2.6

So the problem might be the different ruby version? As on http://www.redmine.org/projects/redmine/wiki/RedmineInstall redmine is supporting ruby 1.8.7.

I'm not sure how to update ruby in BitNami stack. I will try later.

@creich
Copy link

creich commented Sep 7, 2012

ruby 1.8.7 should work. have you tried the other rake-task syntax?
i think you should use "rake redmine:plugins:migrate RAILS_ENV=production"

@ludgerey
Copy link
Author

ludgerey commented Sep 7, 2012

Ah yes. I did. Forgot to mention. Same error as before.

@ludgerey
Copy link
Author

ludgerey commented Sep 7, 2012

C:\Program Files\BitNami Redmine Stack\apps\redmine\htdocs>rake redmine:plugins:
migrate RAILS_ENV=production
rake aborted!
C:/Program Files/BitNami Redmine Stack/apps/redmine/htdocs/plugins/redmine_time_
tracker/lib/tt_query_patch.rb:115: syntax error, unexpected tASSOC, expecting ']
'
...irtual_comment, :time_entry => :issue, :time_log => :user]).
                              ^
C:/Program Files/BitNami Redmine Stack/apps/redmine/htdocs/plugins/redmine_time_
tracker/lib/tt_query_patch.rb:134: syntax error, unexpected tASSOC, expecting ']
'
...irtual_comment, :time_entry => :issue, :time_log => :user]).
                              ^
C:/Program Files/BitNami Redmine Stack/apps/redmine/htdocs/plugins/redmine_time_
tracker/lib/tt_query_patch.rb:158: syntax error, unexpected tASSOC, expecting ']
'
...irtual_comment, :time_entry => :issue, :time_log => :user]).
                              ^

Rake is only working in apps/redmine/htdocs where i guess is the #{RAILS_ROOT} is located. In other dirs (e.g. apps/redmine) i just get No rakefile found.

@creich
Copy link

creich commented Sep 14, 2012

hi,
i have refactored some things to get the time_tracker_plugin working with "bitnami redmine stack".
the problem here was, that bitnami uses ruby 1.8 and at some places i used syntax which was compatible to ruby 1.9 only.
you shuold now be able to install it the normal way, if you use the actual git repository
there are some things you should have in mind during your installation.
i had some problems with the rake-task even if the syntax was fixed. so if you want to run the rake command you should do taht from an admin-console. to do that, the easiest way would be to right-click on the "use_redmine.bat" file within your bitnami install-dir and choose "run as administrator". from there you can walk through the plug-in installation as described on the redmine homepage.

one problem i could not fix yet is the missing chart on the "Reports" page. but i am not shure if i missed smething on the bitnami config... on all my other tests it runs wihtout problems. so if you find the chart not working please open a new ticket. if not be happy ;)

i hope your problem will be solved. if not feel free to write here again :)

kind regards
christian

@ludgerey
Copy link
Author

Thanks! Works now!

But report chart seems to be empty. The svg-Element is displayed but no charts in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants