Ok, it's working now with 9.4 after completely removing Solr with rm -rf and 
starting over freshly.


Mag.phil. Robert Ehrenleitner, B.Eng.

Webdeveloper

IT-Services



Paris-Lodron-Universität Salzburg

Hellbrunner Straße 34, 5020 Salzburg, Österreich

https://www.plus.ac.at<https://www.plus.ac.at/>



[cid:563df9c7-d690-418f-92bc-9d6c6eb7e77c]



________________________________
Von: Ehrenleitner Robert Harald <robert.ehrenleit...@plus.ac.at>
Gesendet: Dienstag, 24. September 2024 15:59
An: users@solr.apache.org <users@solr.apache.org>
Betreff: AW: Weird error message with solr config

Thank you, this makes some progress.

Now, I receive the 401 error again. The environment variable 
SOLR_AUTHENTICATION_OPTS is set, and passing its value additionally doesn't 
help either.



Mag.phil. Robert Ehrenleitner, B.Eng.

Webdeveloper

IT-Services



Paris-Lodron-Universität Salzburg

Hellbrunner Straße 34, 5020 Salzburg, Österreich

https://www.plus.ac.at<https://www.plus.ac.at/>



[cid:81b551ca-6fed-47a4-aec3-990603cbf80a]



________________________________
Von: Christos Malliaridis <c.malliari...@gmail.com>
Gesendet: Dienstag, 24. September 2024 15:27
An: users@solr.apache.org <users@solr.apache.org>
Betreff: Re: Weird error message with solr config

[Sie erhalten nicht häufig E-Mails von c.malliari...@gmail.com. Weitere 
Informationen, warum dies wichtig ist, finden Sie unter 
https://aka.ms/LearnAboutSenderIdentification ]

You are completely right. It seems that the message is malformed. It is
missing the /solr path prefix (for V1 API), or /api/collections path prefix
(for V2 API). To fix it simply provide a custom solr URL like below:

bin/solr config -c mysearchindex -solrUrl
http://localhost:8983/api/collections -action set-user-property -property
update.autoCreateFields -value false

I tested the above with 9.6.1. I will file a ticket for this as well.

On Tue, Sep 24, 2024 at 3:01 PM Ehrenleitner Robert Harald <
robert.ehrenleit...@plus.ac.at> wrote:

> Once again, to be sure:
>
> $ searchIndex=mysearchindex
> $ bin/solr create -c $searchIndex
> WARNING: Using _default configset with data driven schema functionality.
> NOT RECOMMENDED for production use.
>          To turn off: bin/solr config -c mysearchindex -p 8983 -action
> set-user-property -property update.autoCreateFields -value false
>
> Created new core 'mysearchindex'
> $ bin/solr config -c mysearchindex -p 8983 -action set-user-property
> -property update.autoCreateFields -value false
> Neither -zkHost or -solrUrl parameters provided so assuming solrUrl is
> http://localhost:8983.
>
> POSTing request to Config API: http://localhost:8983/mysearchindex/config
> {"set-user-property":{"update.autoCreateFields":"false"}}
>
> ERROR: Error from server at
> http://localhost:8983/mysearchindex/config?wt=javabin&version=2: Expected
> mime type in [application/vnd.apache.solr.javabin,
> application/octet-stream] but got text/html. <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
> <title>Error 404 Not Found</title>
> </head>
> <body><h2>HTTP ERROR 404 Not Found</h2>
> <table>
> <tr><th>URI:</th><td>/mysearchindex/config</td></tr>
> <tr><th>STATUS:</th><td>404</td></tr>
> <tr><th>MESSAGE:</th><td>Not Found</td></tr>
> <tr><th>SERVLET:</th><td>-</td></tr>
> </table>
>
> </body>
> </html>
>
>
> In the command "bin/solr config", the variable "$searchIndex" is not used,
> because the whole command is copied-pasted from the output above.
>
>

Reply via email to