Cannot start Redmine, searching for gem 'blankslate'
Added by Ivan Cenov 4 months ago
Hello,
I upgraded Redmine to 5.1.2 version. Now, Redmine does not start, because of missing file 'blankslate'. here is a part of the log:
E:\data\redmine>puma -p 3002 -e production *** SIGUSR2 not implemented, signal based restart unavailable! *** SIGUSR1 not implemented, signal based restart unavailable! *** SIGHUP not implemented, signal based logs reopening unavailable! Puma starting in single mode... * Puma version: 6.4.2 (ruby 3.1.3-p185) ("The Eagle of Durango") * Min threads: 0 * Max threads: 5 * Environment: production * PID: 25464 fatal: not a git repository (or any of the parent directories): .git ! Unable to load application: LoadError: cannot load such file -- blankslate C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.15/lib/zeitwerk/kernel.rb:34:in `require': cannot load such file -- blankslate (LoadError) from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.15/lib/zeitwerk/kernel.rb:34:in `require' from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require' from E:/data/redmine/lib/redmine/views/builders/structure.rb:20:in `<top (required)>' from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.15/lib/zeitwerk/kernel.rb:34:in `require' from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.15/lib/zeitwerk/kernel.rb:34:in `require' from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require' from E:/data/redmine/lib/redmine/views/builders/json.rb:20:in `<top (required)>' from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.15/lib/zeitwerk/kernel.rb:34:in `require' from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.15/lib/zeitwerk/kernel.rb:34:in `require' from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
I installed gem blankslate (3.1.3), however above error persists.
Interestingly, I have the same version of Redmine installed on another PC and tehere are no this gem blankslate installed and Redmine runs.
I need any hints where to search... what is the problem?
Regards,
Ivan
Replies (11)
RE: Cannot start Redmine, searching for gem 'blankslate' - Added by Ivan Cenov 4 months ago
After research, blankslate
is required in path_to\redmine\lib\redmine\views\builders\structure.rb
.
However, as I mentioned, I have a Redmine installation non a PC without installed 'blankslate' gem and it works...
RE: Cannot start Redmine, searching for gem 'blankslate' - Added by David from RedminePRO.com 4 months ago
If you are doing an upgrade, please follow the official steps from Redmine https://www.redmine.org/projects/redmine/wiki/redmineupgrade
-- David https://redminepro.com/
RE: Cannot start Redmine, searching for gem 'blankslate' - Added by Ivan Cenov 4 months ago
David redminePRO wrote in RE: Cannot start Redmine, searching for gem 'blankslate':
If you are doing an upgrade, please follow the official steps from Redmine https://www.redmine.org/projects/redmine/wiki/redmineupgrade
-- David https://redminepro.com/
yes, I upgrade from 5.0.6 to 5.1.2. I have done upgrade from 0.9.3 till now and follow almost the official procedure. Now I am curious why the same version on two machines behaves differently...
RE: Cannot start Redmine, searching for gem 'blankslate' - Added by Ivan Cenov 4 months ago
At last I found a solution:
Added in Gemfile
gem 'blankslite'
Then run
bundle install
. Redmine started withpuma -e production -p 3002
RE: Cannot start Redmine, searching for gem 'blankslate' - Added by Ivan Cenov 4 months ago
gem 'blankslate'
RE: Cannot start Redmine, searching for gem 'blankslate' - Added by Boris Schaa 4 months ago
We have the same problem when we build Redmine from scratch just by raising the version to 5.1.2 in our `Dockerfile`.
Ivan's workaround works like a charm. What we do: to test it
1. Insert `gem 'blankslate'` in Redmine's `Gemfile`
2. Run `bundle install`
I hope there will be a bugfix for this.
RE: Cannot start Redmine, searching for gem 'blankslate' - Added by Boris Schaa 4 months ago
Holger Just wrote in RE: Cannot start Redmine, searching for gem 'blankslate':
Thank you for your swift reply! I am looking forward to it. <3
Cheers
RE: Cannot start Redmine, searching for gem 'blankslate' - Added by Boris Schaa 4 months ago
Holger Just wrote in RE: Cannot start Redmine, searching for gem 'blankslate':
I just took a glance into the 5.1.3 release road (https://www.redmine.org/versions/195) but the respective ticket #40802 wasn't mentioned. I gather that the fix will not be included in that release, right?
RE: Cannot start Redmine, searching for gem 'blankslate' - Added by Boris Schaa 4 months ago
Holger Just wrote in RE: Cannot start Redmine, searching for gem 'blankslate':
An issue can only be assigned to a single version in Redmine. In this case, #40802 is assigned to version 5.0.9.
The respective commit in r22863 was also merged into the 5.1-stable branch in r22864 though and will be included of the 5.1.3 release accordingly.
Oh, that is good news then! Thanks again for your swift reply!
Cheers