https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292020-07-28T09:19:11ZRedmineRedmine - Defect #33777: No anymore yaml_db rake tasks db:data:dump/db:data:load after update redmine from 4.0.x to 4.1.1https://www.redmine.org/issues/33777?journal_id=986682020-07-28T09:19:11ZVVD VVD
<ul></ul><p>Please, fix:</p>
<blockquote>
<p>yaml_db bugreport is here: <a class="external" href="https://github.com/yamldb/yaml_db/issues/141">https://github.com/yamldb/yaml_db/issues/141</a></p>
</blockquote> Redmine - Defect #33777: No anymore yaml_db rake tasks db:data:dump/db:data:load after update redmine from 4.0.x to 4.1.1https://www.redmine.org/issues/33777?journal_id=986712020-07-28T12:16:46ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Invalid</i></li></ul><p>yaml_db is a third-party plugin, not a part of Redmine. Please contact the author of the plugin.</p> Redmine - Defect #33777: No anymore yaml_db rake tasks db:data:dump/db:data:load after update redmine from 4.0.x to 4.1.1https://www.redmine.org/issues/33777?journal_id=986722020-07-28T12:46:33ZVVD VVD
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>Go MAEDA wrote:</p>
<blockquote>
<p>yaml_db is a third-party plugin, not a part of Redmine. Please contact the author of the plugin.</p>
</blockquote>
<p>Did you read my message?<br />I wrote that I don't know is it Redmine bug or yaml_db or something else and show link on yaml_db's bugreport.<br />It work fine with Redmine 4.0, but doesn't work with 4.1.1 - something changed in Redmine or/and gems.<br />Maybe it's rails bug, but if all upstreams begin to close bugs with "Invalid" and "XXX is a third-party plugin, not a part of YYY. Please contact the author of the plugin." - how to solve it?</p>
<p>P.S. yaml_db isn't Redmine plugin, it's a gem:<br /><pre>YamlDb is a database-independent format for dumping and restoring data.
It complements the database-independent schema format found in db/schema.rb.
The data is saved into db/data.yml.
Any database that has an ActiveRecord adapter should work.
This gem supports Rails versions 3.0 through 5.2.</pre></p> Redmine - Defect #33777: No anymore yaml_db rake tasks db:data:dump/db:data:load after update redmine from 4.0.x to 4.1.1https://www.redmine.org/issues/33777?journal_id=986732020-07-28T12:46:56ZVVD VVD
<ul></ul><p>Plz, help to find where is the bug.</p> Redmine - Defect #33777: No anymore yaml_db rake tasks db:data:dump/db:data:load after update redmine from 4.0.x to 4.1.1https://www.redmine.org/issues/33777?journal_id=986742020-07-28T12:56:16ZVVD VVD
<ul></ul><p>Just tested on CentOS Linux release 7.8.2003 (Core) with same version of the Redmine 4.1.1.<br /><pre># ruby --version
ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-linux]</pre><br />No db:data:dump and db:data:load too.</p> Redmine - Defect #33777: No anymore yaml_db rake tasks db:data:dump/db:data:load after update redmine from 4.0.x to 4.1.1https://www.redmine.org/issues/33777?journal_id=986752020-07-28T13:13:07ZHolger Just
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul><p>yaml_db is not a dependency of Redmine itself and is thus neither shipped with nor required by Redmine.</p>
<p>If you were able to use the rake tasks with your older Redmine version before, you (or someone else who has setup your Redmine) might have added the <code>yaml_db</code> dependency manually, e.g. by adding a <code>Gemfile.local</code> file or by manually adding the <code>Gemfile</code> shipped with Redmine.</p>
<p>In your updated Redmine, you can re-add <code>yaml_db</code> by editing (or creating of it's missing) the <code>Gemfile.local</code> file in the same directory as the shipped <code>Gemfile</code> and add the following content there:</p>
<pre>
gem "yaml_db"
</pre> Redmine - Defect #33777: No anymore yaml_db rake tasks db:data:dump/db:data:load after update redmine from 4.0.x to 4.1.1https://www.redmine.org/issues/33777?journal_id=986812020-07-28T13:28:32ZVVD VVD
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>I never said that Redmine depends on yaml_db.<br />Spend, please, 1 minute to read that is yaml_db and what is it used for:<br /><pre>This can be used as a replacement for mysqldump or pg_dump, but only for the databases typically used by Rails apps.
Users, permissions, schemas, triggers, and other advanced database features are not supported - by design.</pre><br />For example I used it for migrate from MySQL to PostgreSQL and using it to backup database now.<br />After update Redmine from 4.0 to 4.1 it stopped working.<br />I ask developers of Redmine and yaml_db for help to find the reason and to fix it.</p>
<p>Maybe bug in Redmine, maybe in yaml_db, maybe in rails, ruby or in something else, but how to find if all developers close bug reports as "Invalid"?</p> Redmine - Defect #33777: No anymore yaml_db rake tasks db:data:dump/db:data:load after update redmine from 4.0.x to 4.1.1https://www.redmine.org/issues/33777?journal_id=986842020-07-28T13:46:19ZHolger Just
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul><p>Please also read what we are telling you.</p>
<p><code>yaml_db</code> (and its rake tasks) is not part of Redmine and is not shipped with Redmine. As such, there is nothing we can fix here since there is nothing wrong with Redmine as shipped.</p>
<p>The sole reason why the rake tasks are not available in your Redmine 4.1 installation is that Redmine does not require <code>yaml_db</code> by default. To be able to use the rake tasks, you have to add <code>yaml_db</code> as a dependency in your local Redmine installation.</p>
<p>If you used <code>yaml_db</code> in your previous installation, someone has manually added the yaml_db gem to your own installation (which is a custom change which is not part of Redmine). I have explained in my previous reply how you might add the gem dependency to your new Redmine installation. Only after adding the gem dependency in the <code>Gemfile.local</code> and running <code>bundle install</code>, you will be able to use the rake tasks defined by the <code>yaml_db</code> gem.</p>
<p>If you have your previous Redmine 4.0 installation still available, I encourage you to check it how the (non-standard) yaml_db gem was added there. The same approach taken there likely stills works with your Redmine 4.1 installation after you have performed the same change as you had done previously in your Redmine 4.0 installation.</p> Redmine - Defect #33777: No anymore yaml_db rake tasks db:data:dump/db:data:load after update redmine from 4.0.x to 4.1.1https://www.redmine.org/issues/33777?journal_id=986862020-07-28T14:27:29ZVVD VVD
<ul></ul><p>Sorry, my english is so poor that I misundertood your explanation…<br />Only after read this I understood that you mean:</p>
<blockquote>
<p>Only after adding the gem dependency in the Gemfile.local and running bundle install, you will be able to use the rake tasks defined by the yaml_db gem.</p>
</blockquote>
<p>Thanks! It work now.</p> Redmine - Defect #33777: No anymore yaml_db rake tasks db:data:dump/db:data:load after update redmine from 4.0.x to 4.1.1https://www.redmine.org/issues/33777?journal_id=986872020-07-28T14:35:37ZVVD VVD
<ul></ul><p>Where are my eyes?<br />yaml_db have this in README.md:<br /><pre>Simply add to your Gemfile:
gem 'yaml_db'
All rake tasks will then be available to you.</pre></p>