has someone used the new configbaker image to update the solr schema? I get the following error:
# curl "http://${DATAVERSE_HOSTNAME}:8080/api/admin/index/solr/schema" | /scripts/update-fields.sh /template/conf/schema.xml
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 23010 0 23010 0 0 313k 0 --:--:-- --:--:-- --:--:-- 316k
ed: unimplemented command
ed: can't find string "SCHEMA-FIELDS::BEGIN"
ed: can't find string "SCHEMA-FIELDS::END"
ed: bad line range for delete
ed: unimplemented command
ed: can't find string "SCHEMA-COPY-FIELDS::BEGIN"
ed: can't find string "SCHEMA-COPY-FIELDS::END"
ed: bad line range for delete
The script within the container is identical with the one in develop and works if executed on the local machine but fails within the container.
Can you please say a bit more about what you're doing? You have a custom metadata block you're trying to add?
Resvoled by addingapk add ed. Here is the PR: https://github.com/IQSS/dataverse/pull/9699
Philip Durbin said:
Can you please say a bit more about what you're doing? You have a custom metadata block you're trying to add?
Yep, I've added a custom metadata block and wanted to use the new configbaker image to update the schema.xml for SOLR. Sadly it wasn't working out of the box.
Wow, thanks! How would I reproduce the bug on the develop branch? Do you think it would fail with scripts/api/data/metadatablocks/customARCS.tsv for example?
handy link: https://github.com/IQSS/dataverse/blob/v5.13/scripts/api/data/metadatablocks/customARCS.tsv
Philip Durbin said:
Wow, thanks! How would I reproduce the bug on the develop branch? Do you think it would fail with
scripts/api/data/metadatablocks/customARCS.tsvfor example?
Yes, it already fails in a clean dev env without any custom metdata.
Thanks again for the PR!
Philip Durbin has marked this topic as resolved.
Last updated: Oct 30 2025 at 05:14 UTC