Stream: containers

Topic: โœ” configbaker to update solr schema


view this post on Zulip Johannes D (Jul 11 2023 at 12:04):

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

view this post on Zulip Johannes D (Jul 11 2023 at 12:42):

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.

view this post on Zulip Philip Durbin ๐Ÿš€ (Jul 11 2023 at 12:55):

Can you please say a bit more about what you're doing? You have a custom metadata block you're trying to add?

view this post on Zulip Johannes D (Jul 11 2023 at 12:56):

Resvoled by addingapk add ed. Here is the PR: https://github.com/IQSS/dataverse/pull/9699

view this post on Zulip Johannes D (Jul 11 2023 at 12:58):

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.

view this post on Zulip Philip Durbin ๐Ÿš€ (Jul 11 2023 at 13:00):

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?

view this post on Zulip Philip Durbin ๐Ÿš€ (Jul 11 2023 at 13:01):

handy link: https://github.com/IQSS/dataverse/blob/v5.13/scripts/api/data/metadatablocks/customARCS.tsv

view this post on Zulip Johannes D (Jul 11 2023 at 13:05):

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.tsv for example?

Yes, it already fails in a clean dev env without any custom metdata.

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 11 2023 at 09:45):

Thanks again for the PR!

view this post on Zulip Notification Bot (Aug 11 2023 at 09:45):

Philip Durbin has marked this topic as resolved.


Last updated: Oct 30 2025 at 05:14 UTC