Open clojens opened 10 years ago
So the thing kinda is, as I see it, that rails g gollum_rails:install
can't run with the plugin present already because it will bugout. So I would add gollum_rails
to my project Gemfile, then bundle
, then rails g gollum_rails:install
and I'd get create config/initializers/gollum.rb
.
Now I don't know what * a symbol (only application) it uses the currently active rails environment configuration for the path* means so I've put in the absolute path to a bare wiki in the root /srv/http/redmine/
which is wiki.git
and point config.repository = '/srv/http/redmine/wiki.git'
I still keep getting that same error when I move the plugin into plugins/
directory. When I move it out, the error goes away (that is, with gollum_rails in project Gemfile and the wiki.git in place, it doesn't error so it's something inside the plugin that triggers it)
Hope you can help. Cheers.
Rob
Uhm. You do not need to add anything to your redmine installation at all.
Just download the plugin and run bundle install
. The problem with the initialisation is that Setting.plugin_gollum["repository_location"]
is undefined by default, so the path to the git repository is empty. I will commit a quick fix to the master branch in which you can pass in environment variables, so you can startup the first time, set your actual path and restart without ENV variables. Definitly need a better way to do this but this plugin is still work in progress.
Will comment here if I have committed that fix.
Hope I could help you.
Dang you are fast! Thanks, that might have been something I could have checked. I'm just glad to find someone doing active development, these two (redmine & gollum) scream for decent integration. Like peanut-butter and jelly :)
Yeah.. you've helped a bunch. Thanks for the quick reply + fix :+1:
I've just uploaded the fix:
Have a look at this file:
https://github.com/nirnanaaa/gollum_redmine/blob/master/lib/gollum/gollum_init_hook.rb
the initialization part is done there.
Before you do anything you probably want to take a look on the Administration>Plugins tab and configure your settings. Otherwise the whole would not work. I am constantly trying to improve things, so if you want something feel free to send me pull requests or simply just open an issue and I will try to implement/fix it ASAP.
Hey there,
It would be great if You contribute to this project as there are still some minor bugs.
The editor implementation shouldn't be that hard. We can implement some sort of configuration option to switch between editors.
To add more languages just throw the gems into the Gemfile and send it as a PR.
Thanks :)
Few things are:
Hi, I successfully installed gollum_rails and it created gollum.rb initializer. So I unzipped gollum_redmine-master.zip and ran the command as suggested by Readme.md
GOLLUM_WIKI_LOCATION=/usr/share/webapps/redmine/db/production_repo.git rails s
However, rails servers
fails with NameError
.
/usr/share/webapps/redmine/config/initializers/gollum.rb:2:in `<top (required)>': uninitialized constant GollumRails (NameError)
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/engine.rb:593:in `block (2 levels) in <class:Engine>'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/engine.rb:592:in `each'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/engine.rb:592:in `block in <class:Engine>'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `run'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `each'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/application.rb:136:in `initialize!'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /usr/share/webapps/redmine/config/environment.rb:14:in `<top (required)>'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
from /usr/share/webapps/redmine/config.ru:3:in `block in <main>'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /usr/share/webapps/redmine/config.ru:in `new'
from /usr/share/webapps/redmine/config.ru:in `<main>'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:46:in `app'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in `start'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in `tap'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in `<top (required)>'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `rescue in require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:124:in `require'
from script/rails:6:in `<main>'
I am new to RoR and hope you can guide me. Thank you. :-D
Hey,
Yeah you do NOT need to initializer file. This file is for gollumRAILS not for gollumredmine. Delete it and re-run the rails s command
Mosny
Am 11.03.2014 um 15:57 schrieb hamletmun notifications@github.com:
Hi, I successfully installed gollum_rails and it created gollum.rb initializer. So I unzipped gollum_redmine-master.zip and ran the command as suggested by Readme.md
GOLLUM_WIKI_LOCATION=/usr/share/webapps/redmine/db/production_repo.git rails s However, rails servers fails with NameError.
/usr/share/webapps/redmine/config/initializers/gollum.rb:2:in
<top (required)>': uninitialized constant GollumRails (NameError) from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/engine.rb:593:in
block (2 levels) in class:Engine' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/engine.rb:592:ineach' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/engine.rb:592:in
block in class:Engine' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:ininstance_exec' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:in
run' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:55:inblock in run_initializers' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:in
each' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:inrun_initializers' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/application.rb:136:in
initialize!' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:inmethod_missing' from /usr/share/webapps/redmine/config/environment.rb:14:in
<top (required)>' from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:inrequire' from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
require' from /usr/share/webapps/redmine/config.ru:3:inblock in <main>' from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in
instance_eval' from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:ininitialize' from /usr/share/webapps/redmine/config.ru:in
new' from /usr/share/webapps/redmine/config.ru:in<main>' from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in
eval' from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:inparse_file' from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in
app' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:46:inapp' from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in
wrapped_app' from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:instart' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in
start' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:55:inblock in <top (required)>' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in
tap' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in<top (required)>' from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in
require' from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:inrescue in require' from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:124:in
require' from script/rails:6:in `' I am new to RoR and hope you can guide me. Thank you. :-D — Reply to this email directly or view it on GitHub.
Uhm. And dont forget to run bundle in your redmine directory before starting
Mosny
Am 11.03.2014 um 15:57 schrieb hamletmun notifications@github.com:
Hi, I successfully installed gollum_rails and it created gollum.rb initializer. So I unzipped gollum_redmine-master.zip and ran the command as suggested by Readme.md
GOLLUM_WIKI_LOCATION=/usr/share/webapps/redmine/db/production_repo.git rails s However, rails servers fails with NameError.
/usr/share/webapps/redmine/config/initializers/gollum.rb:2:in
<top (required)>': uninitialized constant GollumRails (NameError) from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/engine.rb:593:in
block (2 levels) in class:Engine' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/engine.rb:592:ineach' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/engine.rb:592:in
block in class:Engine' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:ininstance_exec' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:in
run' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:55:inblock in run_initializers' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:in
each' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:inrun_initializers' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/application.rb:136:in
initialize!' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:inmethod_missing' from /usr/share/webapps/redmine/config/environment.rb:14:in
<top (required)>' from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:inrequire' from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
require' from /usr/share/webapps/redmine/config.ru:3:inblock in <main>' from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in
instance_eval' from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:ininitialize' from /usr/share/webapps/redmine/config.ru:in
new' from /usr/share/webapps/redmine/config.ru:in<main>' from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in
eval' from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:inparse_file' from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in
app' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:46:inapp' from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in
wrapped_app' from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:instart' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in
start' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:55:inblock in <top (required)>' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in
tap' from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in<top (required)>' from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in
require' from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:inrescue in require' from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:124:in
require' from script/rails:6:in `' I am new to RoR and hope you can guide me. Thank you. :-D — Reply to this email directly or view it on GitHub.
Do you mean that gollum_redmine does not require gollum_rails?
The server does not have internet connection. Do I need to install any other required package?
This is the result of rails s
after deleting gollum.rb
/usr/share/webapps/redmine/plugins/gollum_redmine/lib/gollum/gollum_init_hook.rb:5:in `block in <class:GollumInitHook>': uninitialized constant Gollum::GollumInitHook::GollumRails (NameError)
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:34:in `call'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/application/finisher.rb:59:in `block in <module:Finisher>'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `run'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `each'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/application.rb:136:in `initialize!'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /usr/share/webapps/redmine/config/environment.rb:14:in `<top (required)>'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
from /usr/share/webapps/redmine/config.ru:3:in `block in <main>'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /usr/share/webapps/redmine/config.ru:in `new'
from /usr/share/webapps/redmine/config.ru:in `<main>'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:46:in `app'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in `start'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in `tap'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in `<top (required)>'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `rescue in require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:124:in `require'
from script/rails:6:in `<main>'
How did you install redmine?
Without bundler
this won't work since GollumRedmine has a long list of dependencies including GollumRails
Thank you very much for your help.
Redmine is up and running with few other plugins.
I manually checked the dependencies and installed them with gem install -l
This is the list of the gems I have installed so far.
Most of them were installed because of gollum_rails gem.
Do you see any missing gem that I should install?
Or can you provide gem list
of working GollumRedmine installation?
actionmailer (3.2.14)
actionpack (3.2.14)
activemodel (3.2.14)
activerecord (3.2.14)
activeresource (3.2.14)
activesupport (3.2.14)
arel (3.0.2)
bigdecimal (1.2.0)
builder (3.0.4)
bundler (1.3.5)
charlock_holmes (0.6.9.4)
coderay (1.1.0)
diff-lcs (1.2.5)
erubis (2.7.0)
fastercsv (1.5.5)
github-markdown (0.5.5)
github-markup (0.7.5)
gitlab-grit (2.6.4, 2.6.0)
gollum (2.7.0)
gollum-lib (2.0.0)
gollum_rails (1.5.8)
grit (2.5.0)
hike (1.2.3)
i18n (0.6.6)
io-console (0.4.2)
journey (1.0.4)
jquery-rails (3.0.4)
json (1.8.0)
kgio (2.8.0)
mail (2.5.4)
metaclass (0.0.1)
mime-types (1.25)
mini_portile (0.5.2)
minitest (4.3.2)
mocha (0.14.0)
multi_json (1.7.9)
mustache (0.99.5)
net-ldap (0.3.1)
nokogiri (1.6.1)
polyglot (0.3.3)
posix-spawn (0.3.8)
psych (2.0.0)
rack (1.4.5)
rack-cache (1.2)
rack-openid (1.3.1)
rack-protection (1.5.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.14)
railties (3.2.14)
raindrops (0.12.0)
rake (0.9.6)
rdoc (4.0.0, 3.12.2)
rmagick (2.13.2)
rouge (1.3.3)
ruby-openid (2.2.3)
sanitize (2.0.6)
sinatra (1.4.4)
sprockets (2.2.2.backport2)
sqlite3 (1.3.8)
stringex (2.1.0)
test-unit (2.0.0.0)
thor (0.18.1)
tilt (1.4.1)
treetop (1.4.15)
tzinfo (0.3.37)
unicorn (4.6.3)
useragent (0.8.2)
*** LOCAL GEMS ***
actionmailer (3.2.16)
actionpack (4.0.2, 3.2.16)
activemodel (4.0.3, 4.0.2, 3.2.16)
activerecord (3.2.16)
activeresource (3.2.16)
activesupport (4.0.3, 4.0.2, 3.2.16)
arel (3.0.3)
atomic (1.1.15, 1.1.14)
bigdecimal (1.2.0)
bluepill (0.0.66)
builder (3.1.4, 3.0.0)
bundler (1.5.2, 1.5.1)
capybara (2.1.0)
celluloid (0.15.2)
charlock_holmes (0.6.9.4)
cliver (0.3.2)
coderay (1.1.0)
daemon_controller (1.1.8)
daemons (1.1.9)
database_cleaner (1.2.0)
diff-lcs (1.2.5)
erubis (2.7.0)
eventmachine (1.0.3)
exception_notification (4.0.1)
fastthread (1.0.7)
ffi (1.9.3)
formatador (0.2.4)
fuubar (1.3.2)
github-markdown (0.6.4, 0.5.5)
github-markup (0.7.5)
gitlab-grit (2.6.0)
god (0.13.3)
gollum (2.6.0)
gollum-lib (2.0.0, 1.0.9)
gollum_editor (0.4)
gollum_rails (1.5.7, 1.5.3, 1.5.2, 1.5.1, 1.5.0, 1.4.10)
guard (2.2.5)
guard-rspec (4.2.4)
haml (4.0.5)
hike (1.2.3)
holidays (1.0.6)
i18n (0.6.9)
icalendar (1.5.1, 1.5.0)
io-console (0.4.2)
journey (1.0.4)
jquery-rails (2.0.3)
jquery-ui-rails (4.2.0, 4.1.1)
json (1.8.1, 1.7.7)
listen (2.4.0)
lograge (0.2.2)
lumberjack (1.0.4)
mail (2.5.4)
method_decorators (0.9.4, 0.9.3)
method_source (0.8.2)
mime-types (2.0, 1.25.1)
mini_portile (0.5.2)
minitest (4.7.5, 4.3.2)
multi_json (1.8.4)
mustache (0.99.5)
mysql2 (0.3.15, 0.3.14)
net-ldap (0.3.1)
nokogiri (1.6.1)
open-uri-cached (0.0.5)
passenger (4.0.33, 3.0.9)
pdf-core (0.1.6)
poltergeist (1.5.0)
polyglot (0.3.4, 0.3.3)
posix-spawn (0.3.8)
prawn (0.15.0)
pry (0.9.12.4)
psych (2.0.0)
pygments.rb (0.5.4)
rack (1.5.2, 1.4.5)
rack-cache (1.2)
rack-openid (1.4.2, 1.4.1)
rack-protection (1.5.1)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.16)
railties (4.0.2, 3.2.16)
rake (10.1.1, 0.9.6)
rb-fsevent (0.9.4)
rb-inotify (0.9.3)
rdoc (4.0.0, 3.12.2)
redcarpet (3.0.0)
rmagick (2.13.2)
rouge (1.3.2)
rspec (2.14.1)
rspec-core (2.14.7)
rspec-expectations (2.14.4)
rspec-mocks (2.14.4)
rspec-rails (2.14.1)
ruby-openid (2.3.0)
ruby-progressbar (1.4.0)
sanitize (2.0.6)
sinatra (1.4.4)
slop (3.4.7)
sprockets (2.2.2)
state_machine (1.2.0)
stringex (2.1.2)
test-unit (2.5.5, 2.0.0.0)
thin (1.6.1)
thor (0.18.1)
thread_safe (0.2.0, 0.1.3)
tilt (2.0.0, 1.4.1)
timers (1.1.0)
treetop (1.4.15)
ttfunk (1.1.1, 1.1.0)
tzinfo (0.3.38)
useragent (0.8.3)
websocket-driver (0.3.2)
xpath (2.0.0)
yajl-ruby (1.1.0)
Can you post the output of:
~$ GOLLUM_WIKI_LOCATION=/usr/share/webapps/redmine/db/production_repo.git rails s
?
Could it be that ActiveRecord doesn't like sqlite3 adapter?
This is the output of GOLLUM_WIKI_LOCATION=/usr/share/webapps/redmine/db/production_repo.git rails s
/usr/lib/ruby/gems/2.0.0/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:47:in `resolve_hash_connection': database configuration does not specify adapter (ActiveRecord::AdapterNotSpecified)
from /usr/lib/ruby/gems/2.0.0/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection'
from /usr/lib/ruby/gems/2.0.0/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in `spec'
from /usr/lib/ruby/gems/2.0.0/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection'
from /usr/lib/ruby/gems/2.0.0/gems/activerecord-3.2.14/lib/active_record/railtie.rb:88:in `block (2 levels) in <class:Railtie>'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /usr/lib/ruby/gems/2.0.0/gems/activerecord-3.2.14/lib/active_record/base.rb:720:in `<top (required)>'
from /usr/share/webapps/redmine/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
from /usr/share/webapps/redmine/config/initializers/00-core_plugins.rb:12:in `eval'
from /usr/share/webapps/redmine/config/initializers/00-core_plugins.rb:12:in `block in <top (required)>'
from /usr/share/webapps/redmine/config/initializers/00-core_plugins.rb:2:in `each'
from /usr/share/webapps/redmine/config/initializers/00-core_plugins.rb:2:in `<top (required)>'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:245:in `load'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:245:in `block in load'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:245:in `load'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/engine.rb:593:in `block (2 levels) in <class:Engine>'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/engine.rb:592:in `each'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/engine.rb:592:in `block in <class:Engine>'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `run'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `each'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/application.rb:136:in `initialize!'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /usr/share/webapps/redmine/config/environment.rb:14:in `<top (required)>'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
from /usr/share/webapps/redmine/config.ru:3:in `block in <main>'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /usr/share/webapps/redmine/config.ru:in `new'
from /usr/share/webapps/redmine/config.ru:in `<main>'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:46:in `app'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in `start'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in `tap'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in `<top (required)>'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `rescue in require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:124:in `require'
from script/rails:6:in `<main>'
activerecord works perfectly with the sqlite adapter. I have a few small sites running the sqlite adapter
uhm ok.
Your adapter type needs to be sqlite
not `sqlite3`` I think
Redmine dies if I change the adapter from sqlit3
to sqlite
.
Ok. My fault:
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
And don't forget your environment. if you have setup everything in production environment run:
GOLLUM_WIKI_LOCATION=/usr/share/webapps/redmine/db/production_repo.git RAILS_ENV=production rails s
Actually, my first post was the output of this command:
RAILS_ENV=production GOLLUM_WIKI_LOCATION=/usr/share/webapps/redmine/db/production_repo.git rails s
=> Booting WEBrick
=> Rails 3.2.14 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Exiting
/usr/share/webapps/redmine/plugins/gollum_redmine/lib/gollum/gollum_init_hook.rb:5:in `block in <class:GollumInitHook>': uninitialized constant Gollum::GollumInitHook::GollumRails (NameError)
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:34:in `call'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/application/finisher.rb:59:in `block in <module:Finisher>'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `run'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `each'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/application.rb:136:in `initialize!'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /usr/share/webapps/redmine/config/environment.rb:14:in `<top (required)>'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
from /usr/share/webapps/redmine/config.ru:3:in `block in <main>'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /usr/share/webapps/redmine/config.ru:in `new'
from /usr/share/webapps/redmine/config.ru:in `<main>'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:46:in `app'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in `start'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in `tap'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in `<top (required)>'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `rescue in require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:124:in `require'
from script/rails:6:in `<main>'
Maybe I have to try to install all the gems you have in the list above.
okay. That says that it can't find gollum_rails. Can you go into plugins/gollum
and run bundle install
again?
I have no internet connection in the server. So, I used scp to install additional dependencies locally.
gem install -l i18n-0.6.9.gem
gem install -l minitest-4.7.5.gem
gem install -l multi_json-1.8.4.gem
gem install -l atomic-1.1.15.gem
gem install -l thread_safe-0.2.0.gem
gem install -l tzinfo-0.3.38.gem
gem install -l activesupport-4.0.3.gem
gem install -l builder-3.1.4.gem
gem install -l activemodel-4.0.3.gem
gem install -l github-markdown-0.6.4.gem
gem install -l mime-types-1.25.1.gem
gem install -l rouge-1.3.2.gem
gem install -l stringex-2.1.2.gem
Now, although the server already has gollum_rails-1.5.8.gem
installed, bundle install --local
tries to fetch gollum_rails.git.
Is there any other way to install gollum_redmine offline?
ughm. This could work but I am not so sure:
I pushed a new version of the gem to rubygems.org .Download it and install it as above.
Then go into your plugins/gollum
folder and edit the Gemfile
gem "gollum_rails", "~> 1.5.9"
re-run the command
I just used another linux machine to clone git repo, tar and scp.
Although bundle install --local
was successful, rail s
didn't work.
Since you pushed new version of gollum_rails
, I will try it.
localhost:/usr/share/webapps/redmine/plugins/gollum_redmine# bundle install --local
Cloning into '/usr/lib/ruby/gems/2.0.0/bundler/gems/gollum_rails-ee5b85fd48e2'...
done.
Using i18n (0.6.9)
Using minitest (4.7.5)
Using multi_json (1.8.4)
Using atomic (1.1.15)
Using thread_safe (0.2.0)
Using tzinfo (0.3.38)
Using activesupport (4.0.3)
Using builder (3.1.4)
Using activemodel (4.0.3)
Using charlock_holmes (0.6.9.4)
Using diff-lcs (1.2.5)
Using github-markdown (0.6.4)
Using github-markup (0.7.5)
Using mime-types (1.25.1)
Using posix-spawn (0.3.8)
Using gitlab-grit (2.6.0)
Using mini_portile (0.5.2)
Using nokogiri (1.6.1)
Using rouge (1.3.2)
Using sanitize (2.0.6)
Using stringex (2.1.2)
Using gollum-lib (2.0.0)
Using gollum_rails (1.5.8) from git://github.com/nirnanaaa/gollum_rails.git (at master)
Using bundler (1.3.5)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
localhost:/usr/share/webapps/redmine/plugins/gollum_redmine# RAILS_ENV=production GOLLUM_WIKI_LOCATION=/usr/share/webapps/redmine/db/production_repo.git rails s
=> Booting WEBrick
=> Rails 3.2.14 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Exiting
/usr/share/webapps/redmine/plugins/gollum_redmine/lib/gollum/gollum_init_hook.rb:5:in `block in <class:GollumInitHook>': uninitialized constant Gollum::GollumInitHook::GollumRails (NameError)
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:34:in `call'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/application/finisher.rb:59:in `block in <module:Finisher>'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `run'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `each'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/application.rb:136:in `initialize!'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /usr/share/webapps/redmine/config/environment.rb:14:in `<top (required)>'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:114:in `require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:114:in `require'
from /usr/share/webapps/redmine/config.ru:3:in `block in <main>'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /usr/share/webapps/redmine/config.ru:in `new'
from /usr/share/webapps/redmine/config.ru:in `<main>'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:46:in `app'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in `start'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in `tap'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in `<top (required)>'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `rescue in require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:124:in `require'
from script/rails:6:in `<main>'
Same result with gollum_rails-1.5.9.gem
localhost:/usr/share/webapps/redmine/plugins/gollum_redmine# bundle install --local
Resolving dependencies...
Using i18n (0.6.9)
Using minitest (4.7.5)
Using multi_json (1.8.4)
Using atomic (1.1.15)
Using thread_safe (0.2.0)
Using tzinfo (0.3.38)
Using activesupport (4.0.3)
Using builder (3.1.4)
Using activemodel (4.0.3)
Using charlock_holmes (0.6.9.4)
Using diff-lcs (1.2.5)
Using github-markdown (0.6.4)
Using github-markup (0.7.5)
Using mime-types (1.25.1)
Using posix-spawn (0.3.8)
Using gitlab-grit (2.6.0)
Using mini_portile (0.5.2)
Using nokogiri (1.6.1)
Using rouge (1.3.3)
Using sanitize (2.0.6)
Using stringex (2.1.2)
Using gollum-lib (2.0.0)
Using gollum_rails (1.5.9)
Using bundler (1.3.5)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
localhost:/usr/share/webapps/redmine/plugins/gollum_redmine# RAILS_ENV=production GOLLUM_WIKI_LOCATION=/usr/share/webapps/redmine/db/production_repo.git rails s
=> Booting WEBrick
=> Rails 3.2.14 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Exiting
/usr/share/webapps/redmine/plugins/gollum_redmine/lib/gollum/gollum_init_hook.rb:5:in `block in <class:GollumInitHook>': uninitialized constant Gollum::GollumInitHook::GollumRails (NameError)
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:34:in `call'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /usr/lib/ruby/gems/2.0.0/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/application/finisher.rb:59:in `block in <module:Finisher>'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `run'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `each'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/application.rb:136:in `initialize!'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /usr/share/webapps/redmine/config/environment.rb:14:in `<top (required)>'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:114:in `require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:114:in `require'
from /usr/share/webapps/redmine/config.ru:3:in `block in <main>'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /usr/share/webapps/redmine/config.ru:in `new'
from /usr/share/webapps/redmine/config.ru:in `<main>'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:46:in `app'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /usr/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in `start'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in `tap'
from /usr/lib/ruby/gems/2.0.0/gems/railties-3.2.14/lib/rails/commands.rb:50:in `<top (required)>'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:118:in `rescue in require'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:124:in `require'
from script/rails:6:in `<main>'
I just noticed that you are using gollum-2.6.0
, not 2.7.0
Same result with gollum-2.6.0
uninitialized constant Gollum::GollumInitHook::GollumRails
The plugin does not depend on the gollum gem. They both depend on gollum-lib
Mosny
Am 14.03.2014 um 15:31 schrieb hamletmun notifications@github.com:
Same result with gollum-2.6.0 uninitialized constant Gollum::GollumInitHook::GollumRails
— Reply to this email directly or view it on GitHub.
I had to add next line to gollum_init_hook.rb
in order to run rails s
require 'gollum_rails'
Any suggestion?
Besides,
rails g gollum_rails:language markdown
shows run gem install redcarped from "."
Probably you misspelled redcarpet
Yeah indeed I did.
By default bundler cares about requiring gollum_rails.
and markdown is installed by default through the github-markdown
gem.
On 16 Mar 2014 at 14:49:02, hamletmun (notifications@github.com) wrote:
Besides, rails g gollum_rails:language markdown shows run gem install redcarped from "." Probably you misspelled redcarpet
— Reply to this email directly or view it on GitHub.
hmmm, unicorn doesn't want to start yet.
/usr/lib/ruby/gems/2.0.0/gems/gollum_rails-1.5.9/lib/gollum_rails/setup.rb:49:in
initialize': no implicit conversion of nil into String (TypeError)`
Did you start it with GOLLUM_WIKI_LOCATION=/usr/share/webapps/redmine/db/production_repo.git
?
Thats necessary for the first start until you have changed the plugins settings
-- ZyG
On 16 Mar 2014 at 15:07:04, hamletmun (notifications@github.com) wrote:
setup.rb
It's like a chicken and egg problem. With plugins/gollum, unicorn doesn't start. If I start unicorn without plugins/gollum, redmine doesn't know that it exists.
I started unicorn and copied plugins/gollum.
I also did GOLLUM_WIKI_LOCATION=/usr/share/webapps/redmine/db/production_repo.git rails s
in a different console.
How can I make Redmine realize that it has gollum plugin, without restarting unicorn?
There is no way to do that as gollumredmine requires a restart to reload the initializers and patches
Start your server with the option in production mode and change it in the plugins settings. After that you can start unicorn without the option
Mosny
Am 16.03.2014 um 15:23 schrieb hamletmun notifications@github.com:
It's like a chicken and egg problem. With plugins/gollum, unicorn doesn't start. If I start unicorn without plugins/gollum, redmine doesn't know that it exists.
I started unicorn and copied plugins/gollum. How can I make Redmine realize that it has gollum plugin, without restarting unicorn?
— Reply to this email directly or view it on GitHub.
Commented out if self.repository == :application
clause in /usr/lib/ruby/gems/2.0.0/gems/gollum_rails-1.5.9/lib/gollum_rails/setup.rb
Start unicorn with plugins/gollum directory
Configure git repository in "Gollum integration plugin"
Revert the above change in setup.rb
And does it actually work?
Mosny
Am 16.03.2014 um 15:57 schrieb hamletmun notifications@github.com:
Commented out if self.repository == :application clause in /usr/lib/ruby/gems/2.0.0/gems/gollum_rails-1.5.9/lib/gollum_rails/setup.rb Start unicorn with plugins/gollum directory Configure git repository in "Gollum integration plugin" Revert the above change in setup.rb
— Reply to this email directly or view it on GitHub.
redmine.log shows these
ActionView::Template::Error (no implicit conversion of nil into Hash):
4:
5: <div class="issues box">
6: <h3><%=l(:label_project_wiki)%></h3>
7: <%- page = Page.find("#{Setting.plugin_gollum['project_prefix']}#{@project.name}", Page.wiki.ref, true) %>
8: <%- if page %>
9: <%= page.html_data.html_safe %>
10: <%= link_to l(:label_project_description_edit), edit_project_descriptions_path(@project) %>
lib/redmine/hook.rb:111:in `block in render_on'
lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in `each'
lib/redmine/hook.rb:61:in `block in call_hook'
lib/redmine/hook.rb:58:in `tap'
lib/redmine/hook.rb:58:in `call_hook'
lib/redmine/hook.rb:158:in `call_hook'
app/views/projects/show.html.erb:63:in `_app_views_projects_show_html_erb__3120315772485325177_2457578289920'
app/controllers/projects_controller.rb:163:in `show'
TypeError (no implicit conversion of nil into Hash):
gollum-lib (2.0.0) lib/gollum-lib/wiki.rb:199:in `merge'
gollum-lib (2.0.0) lib/gollum-lib/wiki.rb:199:in `initialize'
gollum_rails (1.5.9) lib/gollum_rails/store.rb:24:in `new'
gollum_rails (1.5.9) lib/gollum_rails/store.rb:24:in `wiki'
plugins/gollum/app/controllers/pages_controller.rb:16:in `index'
actionpack (3.2.14) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.2.14) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.14) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.2.14) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.2.14) lib/active_support/callbacks.rb:458:in `_run__4062166697951087949__process_action__659071685429016704__callbacks'
activesupport (3.2.14) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.14) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.14) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.14) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.2.14) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (3.2.14) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.2.14) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.14) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.14) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.14) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.2.14) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
activerecord (3.2.14) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (3.2.14) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.14) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.2.14) lib/action_controller/metal.rb:203:in `dispatch'
actionpack (3.2.14) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.2.14) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:73:in `call'
actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:36:in `call'
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
journey (1.0.4) lib/journey/router.rb:56:in `each'
journey (1.0.4) lib/journey/router.rb:56:in `call'
actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:608:in `call'
rack-openid (1.3.1) lib/rack/openid.rb:98:in `call'
actionpack (3.2.14) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.5) lib/rack/etag.rb:23:in `call'
rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.14) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.14) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.2.14) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
actionpack (3.2.14) lib/action_dispatch/middleware/cookies.rb:341:in `call'
activerecord (3.2.14) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.14) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
actionpack (3.2.14) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.14) lib/active_support/callbacks.rb:405:in `_run__1308059269315068178__call__3900595419226061525__callbacks'
activesupport (3.2.14) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.14) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.14) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.14) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.14) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.14) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.14) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.14) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.14) lib/rails/rack/logger.rb:18:in `call'
actionpack (3.2.14) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.5) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.14) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.5) lib/rack/lock.rb:15:in `call'
actionpack (3.2.14) lib/action_dispatch/middleware/static.rb:63:in `call'
rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
railties (3.2.14) lib/rails/engine.rb:484:in `call'
railties (3.2.14) lib/rails/application.rb:231:in `call'
railties (3.2.14) lib/rails/railtie/configurable.rb:30:in `method_missing'
unicorn (4.6.3) lib/unicorn/http_server.rb:552:in `process_client'
unicorn (4.6.3) lib/unicorn/http_server.rb:632:in `worker_loop'
unicorn (4.6.3) lib/unicorn/http_server.rb:500:in `spawn_missing_workers'
unicorn (4.6.3) lib/unicorn/http_server.rb:142:in `start'
unicorn (4.6.3) bin/unicorn_rails:209:in `<top (required)>'
/usr/lib/ruby/gems/2.0.0/bin/unicorn_rails:23:in `load'
/usr/lib/ruby/gems/2.0.0/bin/unicorn_rails:23:in `<main>'
Mainly overview pages show "internal error"
that is shown when you haven’t setup a default page. goto your settings and specify “home” or something similar, that does exist -- ZyG
On 16 Mar 2014 at 16:18:26, hamletmun (notifications@github.com) wrote:
redmine.log shows these
ActionView::Template::Error (no implicit conversion of nil into Hash): 4: 5:
block in render_on' lib/redmine/hook.rb:61:in
block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in each' lib/redmine/hook.rb:61:in
block in call_hook'
lib/redmine/hook.rb:58:in tap' lib/redmine/hook.rb:58:in
call_hook'
lib/redmine/hook.rb:158:in call_hook' app/views/projects/show.html.erb:63:in
_app_views_projects_show_html_erb__3120315772485325177_2457578289920'
app/controllers/projects_controller.rb:163:in `show'
TypeError (no implicit conversion of nil into Hash):
gollum-lib (2.0.0) lib/gollum-lib/wiki.rb:199:in merge' gollum-lib (2.0.0) lib/gollum-lib/wiki.rb:199:in
initialize'
gollum_rails (1.5.9) lib/gollum_rails/store.rb:24:in new' gollum_rails (1.5.9) lib/gollum_rails/store.rb:24:in
wiki'
plugins/gollum/app/controllers/pages_controller.rb:16:in index' actionpack (3.2.14) lib/action_controller/metal/implicit_render.rb:4:in
send_action'
actionpack (3.2.14) lib/abstract_controller/base.rb:167:in process_action' actionpack (3.2.14) lib/action_controller/metal/rendering.rb:10:in
process_action'
actionpack (3.2.14) lib/abstract_controller/callbacks.rb:18:in block in process_action' activesupport (3.2.14) lib/active_support/callbacks.rb:458:in
_run4062166697951087949process_action659071685429016704callbacks'
activesupport (3.2.14) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.14) lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks'
activesupport (3.2.14) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.14) lib/abstract_controller/callbacks.rb:17:in
process_action'
actionpack (3.2.14) lib/action_controller/metal/rescue.rb:29:in process_action' actionpack (3.2.14) lib/action_controller/metal/instrumentation.rb:30:in
block in process_action'
activesupport (3.2.14) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.14) lib/active_support/notifications/instrumenter.rb:20:in
instrument'
activesupport (3.2.14) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.14) lib/action_controller/metal/instrumentation.rb:29:in
process_action'
actionpack (3.2.14) lib/action_controller/metal/params_wrapper.rb:207:in process_action' activerecord (3.2.14) lib/active_record/railties/controller_runtime.rb:18:in
process_action'
actionpack (3.2.14) lib/abstract_controller/base.rb:121:in process' actionpack (3.2.14) lib/abstract_controller/rendering.rb:45:in
process'
actionpack (3.2.14) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.14) lib/action_controller/metal/rack_delegation.rb:14:in
dispatch'
actionpack (3.2.14) lib/action_controller/metal.rb:246:in block in action' actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:73:in
call'
actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:73:in dispatch' actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:36:in
call'
journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:in
each'
journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:608:in
call'
rack-openid (1.3.1) lib/rack/openid.rb:98:in call' actionpack (3.2.14) lib/action_dispatch/middleware/best_standards_support.rb:17:in
call'
rack (1.4.5) lib/rack/etag.rb:23:in call' rack (1.4.5) lib/rack/conditionalget.rb:25:in
call'
actionpack (3.2.14) lib/action_dispatch/middleware/head.rb:14:in call' actionpack (3.2.14) lib/action_dispatch/middleware/params_parser.rb:21:in
call'
actionpack (3.2.14) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.5) lib/rack/session/abstract/id.rb:210:in
context'
rack (1.4.5) lib/rack/session/abstract/id.rb:205:in call' actionpack (3.2.14) lib/action_dispatch/middleware/cookies.rb:341:in
call'
activerecord (3.2.14) lib/active_record/query_cache.rb:64:in call' activerecord (3.2.14) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in
call'
actionpack (3.2.14) lib/action_dispatch/middleware/callbacks.rb:28:in block in call' activesupport (3.2.14) lib/active_support/callbacks.rb:405:in
_run1308059269315068178call3900595419226061525callbacks'
activesupport (3.2.14) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.14) lib/active_support/callbacks.rb:385:in
_run_call_callbacks'
activesupport (3.2.14) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.14) lib/action_dispatch/middleware/callbacks.rb:27:in
call'
actionpack (3.2.14) lib/action_dispatch/middleware/remote_ip.rb:31:in call' actionpack (3.2.14) lib/action_dispatch/middleware/debug_exceptions.rb:16:in
call'
actionpack (3.2.14) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.14) lib/rails/rack/logger.rb:32:in
call_app'
railties (3.2.14) lib/rails/rack/logger.rb:18:in call' actionpack (3.2.14) lib/action_dispatch/middleware/request_id.rb:22:in
call'
rack (1.4.5) lib/rack/methodoverride.rb:21:in call' rack (1.4.5) lib/rack/runtime.rb:17:in
call'
activesupport (3.2.14) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.5) lib/rack/lock.rb:15:in
call'
actionpack (3.2.14) lib/action_dispatch/middleware/static.rb:63:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:in
forward'
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in
lookup'
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:in
call'
railties (3.2.14) lib/rails/engine.rb:484:in call' railties (3.2.14) lib/rails/application.rb:231:in
call'
railties (3.2.14) lib/rails/railtie/configurable.rb:30:in method_missing' unicorn (4.6.3) lib/unicorn/http_server.rb:552:in
process_client'
unicorn (4.6.3) lib/unicorn/http_server.rb:632:in worker_loop' unicorn (4.6.3) lib/unicorn/http_server.rb:500:in
spawn_missing_workers'
unicorn (4.6.3) lib/unicorn/http_server.rb:142:in start' unicorn (4.6.3) bin/unicorn_rails:209:in
<top (required)>'
/usr/lib/ruby/gems/2.0.0/bin/unicorn_rails:23:in load' /usr/lib/ruby/gems/2.0.0/bin/unicorn_rails:23:in
— Reply to this email directly or view it on GitHub.
Project overview pages give internal error. I tried changing default page in the plugin setting, but no success.
yeah my fault. change the project prefix path to something like this:
damn github is buggy i cannot edit anything
here is the correct link:
yeah my fault. change the project prefix path to something like this:
It seems that the setting is just fine
Please try restarting unicorn
ActionView::Template::Error (no implicit conversion of nil into Hash):
4:
5: <div class="issues box">
6: <h3><%=l(:label_project_wiki)%></h3>
7: <%- page = Page.find("#{Setting.plugin_gollum['project_prefix']}#{@project.name}", Page.wiki.ref, true) %>
8: <%- if page %>
9: <%= page.html_data.html_safe %>
10: <%= link_to l(:label_project_description_edit), edit_project_descriptions_path(@project) %>
lib/redmine/hook.rb:111:in `block in render_on'
lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in `each'
lib/redmine/hook.rb:61:in `block in call_hook'
lib/redmine/hook.rb:58:in `tap'
lib/redmine/hook.rb:58:in `call_hook'
lib/redmine/hook.rb:158:in `call_hook'
app/views/projects/show.html.erb:63:in `_app_views_projects_show_html_erb___1996107502842983448_2356807085260'
app/controllers/projects_controller.rb:163:in `show'
Hi, is this plugin working already? I can't get it to run, keep bumping into:
/srv/http/.rvm/gems/ruby-2.1.0-latest@redmine/gems/gollum_rails-1.5.1/lib/gollum_rails/setup.rb:52:in
initialize': no implicit conversion of nil into String (TypeError)`Also, your instructions seem to miss out on a part
rails g gollum_rails:install
or isn't that required?Thanks