Open idiazroncero opened 2 years ago
I see that the bash sentences are from previous version of Scripthor, this has been refactored at https://github.com/Metadrop/scripthor/commit/d6cffc23c72f4b766df710d5505d9d0d8eaa5469 , @idiazroncero please try using the latest Scripthor version and check if it fixes the problem for you.
In addition to this, I see that currently the cores folder is created in each iteration: https://github.com/Metadrop/scripthor/blob/2.x/bin/solr-sync.sh#L8 but it can be moved out of the loop. Working on a PR for this.
@idiazroncero may you try to check also this PR and confirm it works to you? https://github.com/Metadrop/scripthor/pull/33 . It is just a minor fix.
@idiazroncero I've tested it by myself and it works fine. Please check the latest Scripthor version whenever you can and confirm everything works okay.
cc @rsanzante the last change done in 2.x (https://github.com/Metadrop/scripthor/pull/33) is ready to do a release.
On a clean Solr container install, i've found repeated times this error when executing
make solr-sync
(or the script solr-sync.sh) for the first time:The error points that the directory
tmp/cores
is nonexistent, and it's right: I had to sh into the container and manually create the directory.This is happening with the Solr tag
8-4.7.5
, but in the past i've reproduced it on other wodby-solr container versions.The solution might be to try to check if the directory exists and proceed to create it if not.