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

Cannot run decidim_templates:install:migrations #6897

Closed
xdubx opened this issue Nov 20, 2020 · 6 comments · Fixed by #6899
Closed

Cannot run decidim_templates:install:migrations #6897

xdubx opened this issue Nov 20, 2020 · 6 comments · Fixed by #6899
Labels
type: bug Issues that describe a bug

Comments

@xdubx
Copy link

xdubx commented Nov 20, 2020

Describe the bug
Cannot run decidim_templates:install:migrations

To Reproduce
Steps to reproduce the behavior:

  1. add decidim_templates to GemFile
  2. run bundle in terminal
  3. run decidim_templates:install:migrations
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Stacktrace
bundle output

Fetching decidim-templates 0.23.1
Installing decidim-templates 0.23.1

Error Message after bundle

Don't know how to build task 'decidim_templates:install:migrations' (See the list of available tasks with `rails --tasks`)
Did you mean?  decidim_meetings:install:migrations
               decidim_pages:install:migrations
               decidim_debates:install:migrations
               decidim_system:install:migrations
               decidim_polis:install:migrations
               decidim_proposals:install:migrations
               decidim_calendar:install:migrations
               decidim_budgets:install:migrations
               decidim_assemblies:install:migrations
               decidim_blogs:install:migrations
               decidim_forms:install:migrations
               decidim_comments:install:migrations
               decidim_initiatives:install:migrations
               decidim_admin:install:migrations
               decidim_surveys:install:migrations
               decidim_consultations:install:migrations
               decidim_conferences:install:migrations
               decidim_verifications:install:migrations
               decidim_sortitions:install:migrations
/usr/local/bundle/gems/railties-5.2.4.4/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
/usr/local/bundle/gems/railties-5.2.4.4/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/usr/local/bundle/gems/railties-5.2.4.4/lib/rails/command.rb:48:in `invoke'
/usr/local/bundle/gems/railties-5.2.4.4/lib/rails/commands.rb:18:in `<main>'
/usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/usr/local/bundle/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/usr/local/bundle/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `block in require'
/usr/local/bundle/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:257:in `load_dependency'
/usr/local/bundle/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `require'
bin/rails:4:in `<main>'
(See full trace by running task with --trace)

Extra data (please complete the following information):

  • Decidim Version: 23.1
  • Decidim installation: Normal Decidim

Additional context

@microstudi
Copy link
Contributor

Good catch!
there's and error in the gem in this line:

s.files = Dir["{app,config,lib}/**/*", "LICENSE-AGPLv3.txt", "Rakefile", "README.md"]

it should include the db folder.
I'll make a patch, however until we publish the new gem it could be a while. meanwhile, you should use the alternative Gemfile definition to make it work:

DECIDIM_VERSION = { git: "https://github.com/decidim/decidim", branch: "release/0.23-stable }.freeze
...
gem "decidim", DECIDIM_VERSION
gem "decidim-templates", DECIDIM_VERSION
...

@xdubx
Copy link
Author

xdubx commented Nov 21, 2020

"release/0.23-stable" does not work either.

@microstudi
Copy link
Contributor

no? did you bundle before? same error?

@xdubx
Copy link
Author

xdubx commented Nov 23, 2020

no? did you bundle before? same error?

I noticed i have the wrong docker build image. Build was at last v23.1. So sorry for the wrong fact.

@xdubx
Copy link
Author

xdubx commented Nov 23, 2020

DECIDIM_VERSION = { git: "https://github.com/decidim/decidim", tag: "v0.23.0" }.freeze
works for me :)

@microstudi
Copy link
Contributor

sure, but I recommend to use the branch release/0.23-stable, i will be more updated and bugfixed (it will point always to the last commit whereas the tag only to a specific point in time).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Issues that describe a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants