ServerHandbook live check: run log ------------------------------------------------------------------------------ Check scripts/live/checks/dspace-expected-mime-type-solr.mjs (sha256 e3c9538e3e4df25ab9f8f9f3c7ab493c09c26621cef0d53715eb0cd9f8c3a4e3) Ran at 2026-11-20T04:29:45Z (823 s) Result PASS, all 42 claims held Tested on System Ubuntu 26.04 LTS Kernel 7.0.0-29-generic Package openjdk-21-jdk-headless 21.0.13.1+2-1~26.04.1 Package maven 3.9.12-1 Package ant 1.10.15-1build1 Package postgresql-17 17.12-1.pgdg26.04+1 Package dspace 10.1 Package solr 9.11.0 Setup A fresh Ubuntu 26.04 server (8 GB of memory) with DSpace 10.1 installed as lesson 1 of the DSpace course installs it (PostgreSQL, Solr 9.11.0, the backend as services; done by the check before the first step shown), reached over SSH as a sudo user. Every version above was read from the server at run time. Passwords used on the throwaway test server are shown as [password]. How we test: https://serverhandbook.com/how-we-test ------------------------------------------------------------------------------ What the steps changed on the server (recorded before the first step and after the last) Packages added (0) Packages upgraded (0) Packages removed (0) Services enabled at boot (0) Services disabled (0) Listening sockets opened (0) Listening sockets closed (0) Files added in /etc (0) Files changed in /etc (0) Files removed from /etc (0) Disk used on / (includes logs written during the run): +2.9 MB ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Check-your-server script (2 items): https://cdn.serverhandbook.com/check/dspace-expected-mime-type-solr/ubuntu-26.04-20261120t042945z.sh SHA-256 7224dde0bf4c27cd2a7a3e7a5c75c303215927eb9eb5939fc48ebce0e8498311 ------------------------------------------------------------------------------ On the stock server, before the first step: FAIL Solr has the DSpace search core FAIL DSpace’s search answers (HTTP 200) After the last step: PASS Solr has the DSpace search core PASS DSpace’s search answers (HTTP 200) ------------------------------------------------------------------------------ Claims (42), each with what the run saw ------------------------------------------------------------------------------ 1. ok a bare Ubuntu 26.04 server box (web-server) starts 2. ok (setup) the tools: Java 21, Ant, git, Maven, Node 3. ok (setup) the PostgreSQL project's apt repository (26.04 ships 18; DSpace 10 supports up to 17) 4. ok (setup) PostgreSQL 17 5. ok (setup) role and database dspace 6. ok (setup) the dspace user and /dspace 7. ok (setup) Solr 9.11.0 on 127.0.0.1:8983 8. ok (setup) Solr answers 9. ok (setup) the DSpace 10.1 source and local.cfg 10. ok (setup) mvn package 11. ok (setup) ant fresh_install 12. ok (setup) database migrate 13. ok (setup) the Solr cores 14. ok (setup) Solr is back with the cores 15. ok (setup) the backend service 16. ok (setup) the REST API answers: DSpace 10.1 17. ok (setup) the administrator 18. ok (setup) the search index builds on the healthy server 19. ok (setup) Solr is back up without the DSpace cores 20. ok index-discovery -b with no cores: "Expected mime type application/octet-stream but got text/html" | TIONS OF ANY KIND, either express or implied. | See the License for the specific language governing permissions and | limitations under the License. | --> |

| Searching for Solr?
| You must type the correct path.
| Solr will respond. |

| | at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:635) | at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:266) | at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248) | at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:225) | at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1035) | at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1051) | at org.dspace.discovery.SolrSearchCore.initSolr(SolrSearchCore.java:98) | at org.dspace.discovery.SolrSearchCore.getSolr(SolrSearchCore.java:59) | at org.dspace.discovery.indexobject.IndexFactoryImpl.deleteAll(IndexFactoryImpl.java:250) | at org.dspace.discovery.SolrServiceImpl.deleteIndex(SolrServiceImpl.java:384) | at org.dspace.discovery.IndexClient.internalRun(IndexClient.java:105) | at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:150) | at org.dspace.app.launcher.ScriptLauncher.executeScript(ScriptLauncher.java:175) | at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:152) | at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:126) | at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:101) 21. ok the REST search the web interface calls fails too (not 200) | 400 22. ok dspace.log has the same message | Expected mime type application/octet-stream but got text/html.

Searching for Solr?
You must type the correct path.
Solr will respond.

at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:635) at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:266) at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248) at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:225) at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1035) at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1051) at org.dspace.discovery.SolrSearchCore.initSolr(SolrSearchCore.java:98) at org.dspace.discovery.SolrSearchCore.getSolr(SolrSearchCore.java:59) at org.dspace.discovery.indexobject.IndexFactoryImpl.deleteAll(IndexFactoryImpl.java:250) at org.dspace.discovery.SolrServiceImpl.deleteIndex(SolrServiceImpl.java:384) at org.dspace.discovery.IndexClient.internalRun(IndexClient.java:105) at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:150) at org.dspace.app.launcher.ScriptLauncher.executeScript(ScriptLauncher.java:175) at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:152) at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:126) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:101) $ curl -s -o /dev/null -w "%{http_code}\n" "http://localhost:8080/server/api/discover/search/objects?query=*" 400 $ grep -m 1 -o 'Expected mime type[^;]*' /dspace/log/dspace.log Expected mime type application/octet-stream but got text/html.