Project

General

Profile

Beginners problems to Plugins

Added by Martin Freiberger over 15 years ago

Hello,

i have installed Redmine via the Bitnami installer. This workes fine and Redmine is working good.
Now i would like to install some plugins. Afetr a longer search i found out where the /vendor/plugin folder is located and copied the plugins folder in there. After I changed the permissions of the new plugin folders to the same of the allready existing folders in the plugin folder.

But whenever i want to run the "rake db:migrate_plugins" command, i get an error: rake: command not found. I also tried out ./rake in different locations, but in fact I dont know what i need to do and where i should do this.
Unfortunatly the documentation seems written for users that already know what they are doing, but not for absolute beginners to Remine or Ruby.

Please, tell me how/where i need to run that "rake db:migrate_plugin" command.

Thanks a lot for your help.


Replies (8)

RE: Beginners problems to Plugins - Added by Jean-Baptiste Barth over 15 years ago

This command has to be run from the root directory of your redmine install, where you can see the "vendor" directory.

I think rake is not installed on your server. You first need to install it ; the best way is to run this command : "gem install rake".

If it answers you "gem: command not found", then you have to install rubygems : see here ; download the latest zip version, unzip it and go to the directory, then run "ruby setup.rb". After that you should be able to run "gem install rake".

RE: Beginners problems to Plugins - Added by Martin Freiberger over 15 years ago

OK, i found out the errors:

The fist one i solved here:
http://bitnami.org/forums/forums/19/topics/848
-------------
Before to start any command (ruby, rake, mysql, ...) you should access to the Stack console. If you have installed BitNami Redmine on Linux or OS X you can type:

cd <installation_directory>
./use_redmine
-----------------
after this another Error occured, it is solved here:
http://bitnami.org/forums/forums/19/topics/927

after this the plugin was installed correctly.

Jean Lacoste
thank you for your help, but those software is installed from the Bitnami package allready i think. I didnt had to install it.

Problems installing ezFAQ - Added by Martin Freiberger over 15 years ago

OK, the next problem is while i want to install the ezFAQ plugin.

There comes a permission denied ERROR for the file /opt/redmine-.../ruby/lib/ruby/gems/1.8/cache/will_paginate-2.2.2.gem.

The problem is that this file didnt't exist at all.

I found a download page of this file:
http://de.mirror.rubyforge.org/will-paginate/

can i just copy this file in the right directory?

RE: Beginners problems to Plugins - Added by Chaoqun Zou over 15 years ago

Martin Freiberger wrote:

OK, the next problem is while i want to install the ezFAQ plugin.

There comes a permission denied ERROR for the file /opt/redmine-.../ruby/lib/ruby/gems/1.8/cache/will_paginate-2.2.2.gem.

The problem is that this file didnt't exist at all.

I found a download page of this file:
http://de.mirror.rubyforge.org/will-paginate/

can i just copy this file in the right directory?

Hi, Martin
The new version ezFAQ doesn't use will_paginate. And I'm going to update the plugin's wiki page quickly.
For now, if you use redmine 0.8.2, you can get the latest ezFAQ 0.2.0 at http://github.com/zouchaoqun/ezfaq/tree/master
And if you use redmine under 0.8.2, you can get the ezFAQ 0.0.4 at http://github.com/zouchaoqun/ezfaq/commit/3bdd623294fa7ea9dc0affedc0a36e0d8aeadf74

RE: Beginners problems to Plugins - Added by martyn Pot over 15 years ago

I've got a problem getting the Schedule plugin to install correctly. It seems to be installed and I can see it in the administration section, but instead of appearing correctly as a tab as per the author's site:
http://www.redmine.org/attachments/1583/project-view.png

It appears on my site in the toolbar as label_schedules_my and in the project view I have a tab called label_schedules_index. See the attached .png

Clicking on either of these two gives me a '403 You are not authorized to access this page' in Redmine.

I've installed Redmine 0.8.2 on OS X 10.5.7 and that all went well, was able to sign in and create a new project.

I then downloaded Schedule 0.3.2 and unzipped the folder into my Applications/Redmine-0.8.2-0/apps/redmine/vendor/plugins directory.

I then fired up the terminal and did the following:

ruby:~ admin$ cd /Applications/redmine*
ruby:redmine-0.8.2-0 admin$ ls
README.txt changelog.txt gems mysql subversion
apache2 common img ruby uninstall.app
apps ctlscript.sh licenses scripts use_redmine
ruby:redmine-0.8.2-0 admin$ ./use_redmine
bash-3.2$ cd apps
bash-3.2$ ls
redmine
bash-3.2$ cd redmine
bash-3.2$ ls
Rakefile db lang script vendor
app doc lib scripts
conf extra log test
config files public tmp
bash-3.2$ rake db:migrate_plugins RAILS_ENV=production

Which went ok and gave me this:

(in /Applications/redmine-0.8.2-0/apps/redmine)
Migrating engines...
Migrating actionwebservice...
Migrating acts_as_activity_provider...
Migrating acts_as_attachable...
Migrating acts_as_customizable...
Migrating acts_as_event...
Migrating acts_as_list...
Migrating acts_as_searchable...
Migrating acts_as_tree...
Migrating acts_as_versioned...
Migrating acts_as_watchable...
Migrating classic_pagination...
Migrating coderay-0.7.6.227...
Migrating gloc-1.1.0...
Migrating gravatar...
Migrating redmine_schedules...
1 CreateScheduleEntry: migrating =========================================
-- create_table(:schedule_entries)
> 0.0049s
-
add_index("schedule_entries", ["project_id"], {:name=>"schedule_entries_project_id"})
> 0.0088s
-
add_index("schedule_entries", ["user_id"], {:name=>"schedule_entries_user_id"})
> 0.0081s
-
add_index("schedule_entries", ["date"], {:name=>"schedule_entries_date"})
-> 0.0091s
1 CreateScheduleEntry: migrated (0.0332s) ================================

2 CreateAvailabilityEntry: migrating =====================================
-- create_table(:availability_entries)
> 0.0047s
-
add_index("availability_entries", ["user_id"], {:name=>"availability_entries_user_id"})
> 0.0134s
-
add_index("availability_entries", ["date"], {:name=>"availability_entries_date"})
-> 0.0106s
2 CreateAvailabilityEntry: migrated (0.0301s) ============================ 3 CreateScheduleDefault: migrating =======================================
-- create_table(:schedule_defaults)
> 0.0042s
-
add_index("schedule_defaults", ["user_id"], {:name=>"schedule_defaults_user_id"})
> 0.0080s
-
create_table(:schedule_closed_entries)
> 0.0120s
-
add_index("schedule_closed_entries", ["user_id"], {:name=>"schedule_closed_entries_user_id"})
> 0.0094s
-
add_index("schedule_closed_entries", ["date"], {:name=>"schedule_closed_entries_date"})
> 0.0105s
-
drop_table(:availability_entries)
-> 0.0030s
3 CreateScheduleDefault: migrated (0.0517s) ==============================

Migrating rfpdf...
Migrating ruby-net-ldap-0.0.4...

I then went back up a few levels and did a restart:
bash-3.2$ ls
README.txt changelog.txt gems mysql subversion
apache2 common img ruby uninstall.app
apps ctlscript.sh licenses scripts use_redmine
bash-3.2$ ./ctlscript.sh restart
/Applications/redmine-0.8.2-0/subversion/scripts/ctl.sh : subversion stopped
Syntax OK
/Applications/redmine-0.8.2-0/apache2/scripts/ctl.sh : httpd stopped
stopping port 3001
stopping port 3002
/Applications/redmine-0.8.2-0/mysql/scripts/ctl.sh : mysql could not be stopped
chown: /Applications/redmine-0.8.2-0/mysql/data/mysqld.log: Operation not permitted
Starting mysqld.bin daemon with databases from /Applications/redmine-0.8.2-0/mysql/data
/Applications/redmine-0.8.2-0/mysql/scripts/ctl.sh : mysql started at port 3306
starting port 3001
starting port 3002
Syntax OK
/Applications/redmine-0.8.2-0/apache2/scripts/ctl.sh : httpd started at port 8080
/Applications/redmine-0.8.2-0/subversion/scripts/ctl.sh : subversion started at port 3690

Is there something I have missed in installing this plugin correctly for Redmine.

I read these two forum posts and don't know what else to try:
http://bitnami.org/forums/forums/19/topics/927
http://bitnami.org/forums/forums/19/topics/848

Can anyone point me in the right direction.

Cheers.

Picture_3.png (60.3 KB) Picture_3.png Schedule tabs not appearing correctly?

RE: Beginners problems to Plugins - Added by Chaoqun Zou over 15 years ago

Please try the redmine devel at svn

RE: Beginners problems to Plugins - Added by martyn Pot over 15 years ago

Sorry I don't understand...

RE: Beginners problems to Plugins - Added by Chaoqun Zou over 15 years ago

martyn Pot wrote:

Sorry I don't understand...

Look at this: CheckingoutRedmine

    (1-8/8)