Problem with tomcat on Dspace 7.6 beckend

1,279 views
Skip to first unread message

Massimiliano CILURZO

unread,
Sep 27, 2023, 6:55:37 AM9/27/23
to DSpace Technical Support
Dear Sir/Madame,
   I have installed the DSpace 7.6 backend
This is the result of mvn -.v 
Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
Maven home: /opt/maven
Java version: 11.0.20, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.20.0.8-1.el7_9.x86_64
Default locale: it_IT, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-1160.99.1.el7.x86_64", arch: "amd64", family: "unix"
on CentOS 7

I have copied the webapps in my tomcat webapps directory
and copied the configsets of solr  with
cp -R [dspace]/solr/* [solr]/server/solr/configsets
If I try the browser and try to access http://localhost:8080/server
It shows HTTP STATUS 404 - Not found
While the tomcat default page at http://localhost:8080  work properly.
In the catalina log I fond this error
27-Sep-2023 14:04:33.002 GRAVE [main] org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web application directory [/opt/tomcat/webapps/server]
        java.lang.IllegalStateException: Error starting child
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:686)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
                at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1184)
                at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1932)
                at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
                at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
                at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1094)
                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:476)
                at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1617)
                at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:318)
                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114)
                at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
                at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:345)
                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:893)
                at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:795)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
                at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
                at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:249)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
                at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
                at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:922)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:347)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478)
        Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/server]]
                at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:419)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:186)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683)
                ... 37 more
        Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticationRestController': Unsatisfied dependency expressed through field 'converter'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'converterService': Unsatisfied dependency expressed through field 'webSecurityExpressionEvaluator'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSecurityExpressionEvaluator' defined in file [/opt/tomcat/webapps/server/WEB-INF/classes/org/dspace/app/rest/security/WebSecurityExpressionEvaluator.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcHandlerMappingIntrospector' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthEndpointWebMvcHandlerMapping' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointWebExtensionConfiguration$MvcAdditionalHealthEndpointPathsConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.servlet.AdditionalHealthEndpointPathsWebMvcHandlerMapping]: Factory method 'healthEndpointWebMvcHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthContributorRegistry' parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'solrSearchCoreHealthIndicator' defined in class path resource [org/dspace/app/rest/configuration/ActuatorConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.solr.SolrHealthIndicator]: Factory method 'solrSearchCoreHealthIndicator' threw exception; nested exception is org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/search: Expected mime type application/octet-stream but got text/html. <p>
  Searching for Solr?<br/>
  You must type the correct path.<br/>
  Solr will respond.
</p>

Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jsonSchemaConverter' defined in class path resource [org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.rest.webmvc.json.PersistentEntityToJsonSchemaConverter]: Factory method 'jsonSchemaConverter' threw exception; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'linkCollector': Requested bean is currently in creation: Is there an unresolvable circular reference?
                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:660)
                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
                at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
                at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
                at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
                at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
                at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
                at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920)
                at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
                at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
                at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731)
                at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)
                at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
                at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:175)
                at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:155)
                at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:97)
                at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:174)
                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4904)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
                ... 38 more
        Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'converterService': Unsatisfied dependency expressed through field 'webSecurityExpressionEvaluator'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSecurityExpressionEvaluator' defined in file [/opt/tomcat/webapps/server/WEB-INF/classes/org/dspace/app/rest/security/WebSecurityExpressionEvaluator.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcHandlerMappingIntrospector' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthEndpointWebMvcHandlerMapping' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointWebExtensionConfiguration$MvcAdditionalHealthEndpointPathsConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.servlet.AdditionalHealthEndpointPathsWebMvcHandlerMapping]: Factory method 'healthEndpointWebMvcHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthContributorRegistry' parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'solrSearchCoreHealthIndicator' defined in class path resource [org/dspace/app/rest/configuration/ActuatorConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.solr.SolrHealthIndicator]: Factory method 'solrSearchCoreHealthIndicator' threw exception; nested exception is org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/search: Expected mime type application/octet-stream but got text/html. <p>
  Searching for Solr?<br/>
  You must type the correct path.<br/>
  Solr will respond.
</p>

                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:660)
                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
                at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
                at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
                at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
                at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
                at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
                at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
                at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:657)
                ... 61 more
        Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSecurityExpressionEvaluator' defined in file [/opt/tomcat/webapps/server/WEB-INF/classes/org/dspace/app/rest/security/WebSecurityExpressionEvaluator.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcHandlerMappingIntrospector' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthEndpointWebMvcHandlerMapping' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointWebExtensionConfiguration$MvcAdditionalHealthEndpointPathsConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.servlet.AdditionalHealthEndpointPathsWebMvcHandlerMapping]: Factory method 'healthEndpointWebMvcHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthContributorRegistry' parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'solrSearchCoreHealthIndicator' defined in class path resource [org/dspace/app/rest/configuration/ActuatorConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.solr.SolrHealthIndicator]: Factory method 'solrSearchCoreHealthIndicator' threw exception; nested exception is org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/search: Expected mime type application/octet-stream but got text/html. <p>
  Searching for Solr?<br/>
  You must type the correct path.<br/>
  Solr will respond.
</p>

While in the dspace.log
tBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.27.jar:5.3.27]
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr                                                                                                                                      y.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.27.jar:                                                                                                                                      5.3.27]
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe                                                                                                                                      an(AbstractBeanFactory.java:333) ~[spring-beans-5.3.27.jar:5.3.27]
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean                                                                                                                                      (AbstractBeanFactory.java:208) ~[spring-beans-5.3.27.jar:5.3.27]
        at org.springframework.beans.factory.config.DependencyDescriptor.resolve                                                                                                                                      Candidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.27.jar:5.3.27]
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.                                                                                                                                      doResolveDependency(DefaultListableBeanFactory.java:1391) ~[spring-beans-5.3.27.                                                                                                                                      jar:5.3.27]
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.                                                                                                                                      resolveDependency(DefaultListableBeanFactory.java:1311) ~[spring-beans-5.3.27.ja                                                                                                                                      r:5.3.27]
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP                                                                                                                                      ostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPost                                                                                                                                      Processor.java:657) ~[spring-beans-5.3.27.jar:5.3.27]
        ... 61 more
dAutowireCandidates(DefaultListableBeanFactory.java:1573) ~[spring-beans-5.3.                                                                                                                                      27.jar:5.3.27]
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.                                                                                                                                      resolveMultipleBeans(DefaultListableBeanFactory.java:1462) ~[spring-beans-5.3.27                                                                                                                                      .jar:5.3.27]
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.                                                                                                                                      doResolveDependency(DefaultListableBeanFactory.java:1349) ~[spring-beans-5.3.27.                                                                                                                                      jar:5.3.27]
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.                                                                                                                                      resolveDependency(DefaultListableBeanFactory.java:1311) ~[spring-beans-5.3.27.ja                                                                                                                                      r:5.3.27]
        at org.springframework.beans.factory.support.ConstructorResolver.resolve                                                                                                                                      AutowiredArgument(ConstructorResolver.java:887) ~[spring-beans-5.3.27.jar:5.3.27                                                                                                                                      ]
        at org.springframework.beans.factory.support.ConstructorResolver.createA                                                                                                                                      rgumentArray(ConstructorResolver.java:791) ~[spring-beans-5.3.27.jar:5.3.27]
        at org.springframework.beans.factory.support.ConstructorResolver.autowir                                                                                                                                      eConstructor(ConstructorResolver.java:229) ~[spring-beans-5.3.27.jar:5.3.27]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean                                                                                                                                      Factory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) ~[spri                                                                                                                                      ng-beans-5.3.27.jar:5.3.27]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean                                                                                                                                      Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) ~[sprin                                                                                                                                      g-beans-5.3.27.jar:5.3.27]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean                                                                                                                                      Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans                                                                                                                                      -5.3.27.jar:5.3.27]
Could you help me?
Thanks
Best regards
Massimiliano





DSpace Technical Support

unread,
Oct 4, 2023, 11:15:47 AM10/4/23
to DSpace Technical Support
Hi Massimiliano,

The error appears to be saying that your Solr is either not running or not responding.  See this part of the error message you shared:


 Error from server at http://localhost:8983/solr/search: Expected mime type application/octet-stream but got text/html. <p>
  Searching for Solr?<br/>
  You must type the correct path.<br/>
  Solr will respond.

I'd recommend making sure that Solr is running on that localhost port.  If it's in a different location, then you need to modify the "solr.server" configuration in either your dspace.cfg or local.cfg.  By default "solr.server = http://localhost:8983/solr".

Tim

Massimiliano CILURZO

unread,
Oct 5, 2023, 2:34:41 AM10/5/23
to DSpace Technical Support

Dear Tim,
     the solr server is active and respond on http://localhost:8983 but if I try http://localhost:8983/solr/search the system gives me error status  404.
tomcat respond on http://localhost:8080 but if I try http://localhost:8080/server it fails and give me the previous error.
Thanks
Best regards
Massimiliano

Massimiliano CILURZO

unread,
Oct 5, 2023, 2:43:07 AM10/5/23
to DSpace Technical Support
Dear Tim, 
    I have copied again the  cp -R [dspace]/solr/* [solr]/server/solr/configsets and restarted solr and tomcat and now I can see the backend working.
But if I try http://localhost:8983/solr/search the result is error status 404.
I have another problem if I try to connect to http://"mydspaceserver(IP):8080 I can't access from an external PC what I can do?
Thanks
Best regards
Massimiliano

Massimiliano CILURZO

unread,
Oct 5, 2023, 8:57:51 AM10/5/23
to DSpace Technical Support
Dear Tim,
    I have changed the firewalld  so http://mydspaceIP at port 80 and 8080 is accessible in the lan from another PC.
the solr server is working even if http://localhost:8983/solr/sarch give me error 404.
I have intalled the frontend 7.6 but I have on http://localhost:4000 I have not inserted port 4000 on firewalld so I can't access from another IP as I would like to use nginx.
But when I installed nginx now I have the error 502 Bad Gateway on http://mydspaceip at port 80.
I presume that the error 500 is a backend error but in the dspace.log or catalina,out I can't see errors.
Could you help me to find what's wrong?
Thanks
Best regards
Massimiliano

DSpace Technical Support

unread,
Oct 5, 2023, 12:03:22 PM10/5/23
to DSpace Technical Support
Hi Massimiliano,

A 500 error generally means that either the frontend *cannot find* the backend, or something has gone wrong on the backend that has caused it to return an invalid response to the frontend.

The only way to determine the cause is by following our troubleshooting guide, which you should follow for any error you see: https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)

We also have many "Common Installation Issues" documented in our Install Guide (at the bottom).  There are even suggestions there for this common 500 error: https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-%22500ServiceUnavailable%22fromtheUserInterface

I'd recommend using those guides to debug your issue.  It's likely a configuration problem between the frontend & backend, as it sounds like they are not able to communicate properly.

Tim

Massimiliano CILURZO

unread,
Oct 5, 2023, 12:10:36 PM10/5/23
to DSpace Technical Support
Dear Tim, 
    I'll follow your advice and let you know. And for nginx and the 802 error do you have some suggestions?
Thanks
Best regards
Massimiliano

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to a topic in the Google Groups "DSpace Technical Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/mLzSrCu99Gk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/a5de489b-f054-4e07-b986-bd1ca01f3f36n%40googlegroups.com.

DSpace Technical Support

unread,
Oct 5, 2023, 12:34:22 PM10/5/23
to DSpace Technical Support
My recommendations are the same.  Use the Troubleshooting guide and Common Installation Issues guide.  They are there to help you figure out the solution yourself, as it can be very difficult for others to be able to track down a misconfiguration on your site. 

I'd also recommend double checking the Installation Guide section on Nginx to ensure you have set things up in the exact way it is documented there.  You need to also pay close attention to the fact that the backend *requires* HTTPS if you plan to run it on a non-localhost URL.  Without HTTPS, many modern browsers will block the UI from accessing it.  Simply put, DSpace only supports plain HTTP if you are typing in localhost URLs in your browser window.  As soon as you want to use an IP address or other URL, you need to look at using HTTPS.

Again, see the links I sent previously for more helpful information & verify that you have followed the installation guide for configuring Nginx and HTTPS.

Tim

Mehmet Demirel

unread,
Jul 4, 2024, 12:48:12 PM7/4/24
to DSpace Technical Support
Solution 1
solr stop
tomcat stop
after

Copy Solr cores:  DSpace installation creates a set of four empty Solr cores already configured. 

  1. Copy them from [dspace]/solr to the place where your Solr instance will discover them. For example:

cp -R [dspace]/solr/* [solr]/server/solr/configsets

postgresql restart
solr start
tomcat start

Solution 2 (with rebuild)
solr stop
tomcat stop
Check your Maven Version. Must be maven min version 3.5.4.
cd source-dspace-7.6
mvn package
cd dspace/target/dspace-installer 
ant update ( or ant fresh_install)
cp -R dspace/solr/* solr-8.11.2/server/solr/configsets
postgresql restart
solr start
tomcat start


Best Regards
Mehmet Demirel
SelenSoft (Türkiye)
Reply all
Reply to author
Forward
0 new messages