Hi,

The original error you shared seems to be saying that DSpace cannot connect 
to Solr:

ERROR unknown unknown org.dspace.discovery.SolrSearchCore @ Error while 
initializing solr server http://PUBLIC_IP:8983/solr/search 
<http://public_ip:8983/solr/search>

You should double check that Solr is running at that IP and port.  If not, 
you may need to modify the Solr configs.   You also mentioned running Solr 
9, while DSpace 8 currently supports Solr 8: 
https://wiki.lyrasis.org/display/DSDOC8x/Installing+DSpace#InstallingDSpace-ApacheSolr8.x(full-textindex/searchservice)

The 502 Bad Gateway error sounds like it might be a misconfigured proxy.  
If you are running Nginx or Apache in front of the Runnable JAR, you may 
want to double check your settings in Nginx and/or Apache, keeping in mind 
the examples in step 16 (Production Installation) of the Backend Install: 
https://wiki.lyrasis.org/display/DSDOC8x/Installing+DSpace#InstallingDSpace-BackendInstallation
  
 You could also try to see if the backend works on port 8080, the default 
Tomcat port, first...and then try to setup the proxy as a second step.  
This is the process detailed in the installation guide.

Tim
On Thursday, July 25, 2024 at 7:51:58 AM UTC-5 faogu...@ngren.edu.ng wrote:

> Hi everyone,
>
> I forgot to include that I used Runnable JAR application without the 
> optional parameters
>  java -jar /dspace/webapps/server-boot.jar.
>
> It showed the spring boot logo only 
>
> On Tue, Jul 23, 2024 at 1:03 PM Femi Ogundele <faogu...@ngren.edu.ng> 
> wrote:
>
>> I am getting the following errors when test the backend server 
>> installation. I am new to DSpace 8.0. Please, how do I get it up working 
>> properly?
>>
>>
>> root@server1:/build/dspace-angular-dspace-8.0/config# yarn test:rest     
>>          yarn run v1.22.22
>> $ ts-node --project ./tsconfig.ts-node.json scripts/test-rest.ts
>> Building production app config
>> Overriding app config with 
>> /build/dspace-angular-dspace-8.0/config/config.yml
>> Overriding app config with 
>> /build/dspace-angular-dspace-8.0/config/config.prod.yml
>> ...Testing connection to REST API at 
>> https://niris.ngren.edu.ng/server/api...
>>
>> RESPONSE: 502 Bad Gateway
>>
>> ERROR: INVALID DSPACE REST API! Response is not valid JSON!
>> Response returned:
>> <html>
>> <head><title>502 Bad Gateway</title></head>
>> <body>
>> <center><h1>502 Bad Gateway</h1></center>
>> <hr><center>nginx/1.24.0 (Ubuntu)</center>
>> </body>
>> </html>
>>
>> Done in 1.58s.
>>
>> Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256)
>> Maven home: /opt/maven
>> Java version: 17.0.11, vendor: Ubuntu, runtime: 
>> /usr/lib/jvm/java-17-openjdk-amd64
>> Default locale: en_US, platform encoding: UTF-8
>> OS name: "linux", version: "6.8.0-38-generic", arch: "amd64", family: 
>> "unix"
>>
>> solr-9.6.1
>>
>>
>> /dspace/log/dspace.log  indicates some errors as shown below:
>>
>>
>> 2024-07-23 06:41:31,640 WARN  unknown unknown 
>> org.springframework.aop.framework.CglibAopProxy @ Unable to proxy 
>> interface-implementing method [public final java.lang. Iterable 
>> org.dspace.app.rest.repository.DSpaceRestRepository.findAll(org.springframework.data.domain.Sort)]
>>  
>> because it is marked as final, consider using Interface-based JDK proxies 
>> instead.>
>> 2024-07-23 06:41:31,640 WARN  unknown unknown 
>> org.springframework.aop.framework.CglibAopProxy @ Unable to proxy 
>> interface-implementing method [public final java.lang.Iterable 
>> org.dspace.app.rest.repository.DSpaceRestRepository.findAll()] because it 
>> is marked as final, consider using interface-based JDK proxies instead.
>> >
>> 2024-07-23 06:41:32,011 INFO  unknown unknown 
>> org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping 
>> @ Adding welcome page: class path resource [>
>> 2024-07-23 06:41:32,523 ERROR unknown unknown 
>> org.dspace.discovery.SolrSearchCore @ Error while initializing solr server 
>> http://PUBLIC_IP:8983/solr/search
>> org.apache.solr.client.solrj.SolrServerException: Server refused 
>> connection at: http://154.68.232.18:8983/solr/search
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:688)
>>  
>> ~[solr-solrj-8.11.3.jar!/:8.11.3 baa7c80af4278cc8951a344d8e932038658>
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:266)
>>  
>> ~[solr-solrj-8.11.3.jar!/:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d >
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248)
>>  
>> ~[solr-solrj-8.11.3.jar!/:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d >
>>         at 
>> org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:225) 
>> ~[solr-solrj-8.11.3.jar!/:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d - 
>> houstonpu>
>>         at 
>> org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1035) 
>> ~[solr-solrj-8.11.3.jar!/:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d - 
>> houstonputma>
>>         at 
>> org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1051) 
>> ~[solr-solrj-8.11.3.jar!/:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d - 
>> houstonputma>
>>         at 
>> org.dspace.discovery.SolrSearchCore.initSolr(SolrSearchCore.java:96) 
>> ~[dspace-api-8.0.jar!/:8.0]
>>         at 
>> org.dspace.discovery.SolrSearchCore.getSolr(SolrSearchCore.java:59) 
>> ~[dspace-api-8.0.jar!/:8.0]
>>         at 
>> org.dspace.app.rest.configuration.ActuatorConfiguration.solrSearchCoreHealthIndicator(ActuatorConfiguration.java:59)
>>  
>> ~[dspace-server-webapp-8.0.jar!/:8.0]
>>
>>
>>
>> 2024-07-23 06:41:31,640 WARN  unknown unknown 
>> org.springframework.aop.framework.CglibAopProxy @ Unable to proxy 
>> interface-implementing method [public final java.lang. Iterable 
>> org.dspace.app.rest.repository.DSpaceRestRepository.findAll(org.springframework.data.domain.Sort)]
>>  
>> because it is marked as final, consider using Interface-based JDK proxies 
>> instead.>
>> 2024-07-23 06:41:31,640 WARN  unknown unknown 
>> org.springframework.aop.framework.CglibAopProxy @ Unable to proxy 
>> interface-implementing method [public final java.lang.Iterable 
>> org.dspace.app.rest.repository.DSpaceRestRepository.findAll()] because it 
>> is marked as final, consider using interface-based JDK proxies instead.
>> >
>> 2024-07-23 06:41:32,011 INFO  unknown unknown 
>> org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping 
>> @ Adding welcome page: class path resource [>
>> 2024-07-23 06:41:32,523 ERROR unknown unknown 
>> org.dspace.discovery.SolrSearchCore @ Error while initializing solr server 
>> http://PUBLIC_IP:8983/solr/search
>> org.apache.solr.client.solrj.SolrServerException: Server refused 
>> connection at: http://154.68.232.18:8983/solr/search
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:688)
>>  
>> ~[solr-solrj-8.11.3.jar!/:8.11.3 baa7c80af4278cc8951a344d8e932038658>
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:266)
>>  
>> ~[solr-solrj-8.11.3.jar!/:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d >
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248)
>>  
>> ~[solr-solrj-8.11.3.jar!/:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d >
>>         at 
>> org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:225) 
>> ~[solr-solrj-8.11.3.jar!/:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d - 
>> houstonpu>
>>         at 
>> org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1035) 
>> ~[solr-solrj-8.11.3.jar!/:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d - 
>> houstonputma>
>>         at 
>> org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1051) 
>> ~[solr-solrj-8.11.3.jar!/:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d - 
>> houstonputma>
>>         at 
>> org.dspace.discovery.SolrSearchCore.initSolr(SolrSearchCore.java:96) 
>> ~[dspace-api-8.0.jar!/:8.0]
>>         at 
>> org.dspace.discovery.SolrSearchCore.getSolr(SolrSearchCore.java:59) 
>> ~[dspace-api-8.0.jar!/:8.0]
>>         at 
>> org.dspace.app.rest.configuration.ActuatorConfiguration.solrSearchCoreHealthIndicator(ActuatorConfiguration.java:59)
>>  
>> ~[dspace-server-webapp-8.0.jar!/:8.0]
>>
>>
>>
>>
>> -- 
>> 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 the Google Groups 
>> "DSpace Technical Support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to dspace-tech...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dspace-tech/11cfb60f-5688-43cf-b845-d01e66681535n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/dspace-tech/11cfb60f-5688-43cf-b845-d01e66681535n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
>
> Femi, Ogundele
> Nigerian Research and Education Network,
> Peter Okebukola Building,
> 26, Aguyi Ironsi Street,
> Maitama, Abuja.
> Nigeria 
>
> *DISCLAIMER*: This email (including any attachments) is intended for the 
> addressee only, and the information that it contains may be confidential, 
> legally privileged and protected by law. If you are not the intended 
> recipient, please notify the author immediately and delete this email 
> (including any attachments) immediately in its entirety. Do not disclose 
> the contents to any other person or use it for any purpose or store or copy 
> the information in any medium.
>

-- 
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 the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/6b1b1d79-eef5-4c8c-a0f6-531fbdfa2a3bn%40googlegroups.com.

Reply via email to