Error on homepage

341 views
Skip to first unread message

Jaware

unread,
Nov 9, 2021, 1:12:28 AM11/9/21
to DSpace Technical Support
Dear all,

Just installed DSpace 7.1 over Ubuntu and able to  connect to the REST API by running yarn config:check:rest works fine and runing  yarn start also works.
I  can login to the angular interface however I was looking the following errors
at the home page (error.top-level-communites) and also the following error while I was creating top level communtiies(An error occurred searching for a community
Request is invalid or incorrect)

May I get your support please

Testing the rest fine
jaware@library:~/angular-dspace# yarn config:check:rest

Building production environment
No specific environment file found for --prod
Angular environment.ts file generated correctly at ./src/environments/environment.ts

...Testing connection to REST API at http://172.21.6.150:8080/server/api...

RESPONSE: 200

Checking JSON returned for validity...
        "dspaceVersion" = DSpace 7.1
        "dspaceUI" = http://172.21.6.150:4000
        "dspaceServer" = http://172.21.6.150:8080/server
        "dspaceServer" property matches UI's "rest" config? true
        Does "/api" endpoint have HAL links ("_links" section)? true
Done in 3.77s.

Best,Jaware

Tim Donohue

unread,
Nov 9, 2021, 10:12:49 AM11/9/21
to Jaware, DSpace Technical Support
Hi,

I'd recommend checking your UI and backend for possible error messages.  Here's a troubleshooting guide for how to do that: https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)

We also have several common error messages that may be found (in either the UI or backend) documented here: https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-CommonInstallationIssues

Chances are you are hitting one of those common configuration issues (which may not be detected yet by the "yarn config:check:rest" script yet).  If you find the more specific errors in the UI or backend logs and cannot figure out a solution, feel free to send them to this list and we'll provide further advice.

Tim

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Jaware <endmarte...@gmail.com>
Sent: Tuesday, November 9, 2021 12:12 AM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] Error on homepage
 
--
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/b9f0e524-5f1b-4cab-9dc0-a576c95e12f1n%40googlegroups.com.

Endmar Technologies

unread,
Nov 10, 2021, 7:57:54 AM11/10/21
to Tim Donohue, DSpace Technical Support
Hi Tim,

I just seen the error on chrome browser which looks like the following.Can you suggest me the solution as per the following error

 Environment: Production
:8080/server/api/config/properties/google.analytics.key:1 Failed to load resource: the server responded with a status of 404 ()

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Wed Nov 10 12:42:36 UTC 2021
There was an unexpected error (type=Not Found, status=404).
An exception has occurred


Thanks,Jaware

Tim Donohue

unread,
Nov 10, 2021, 1:25:52 PM11/10/21
to Endmar Technologies, DSpace Technical Support
Hi Jaware,

The messages you sent in your last email can be ignored safely as they are not the root problem.  

The 404 response from "google.analytics.key" is just saying that you haven't yet configured that configuration on your backend. It will not cause any problems & can be ignored.

The "Whitelabel error page" just tells us that page is not responding but doesn't give us any information as to why it is not responding. 

So, in both cases, you need to look for a more descriptive error in your Browser's DevTools or in the backend logs.  Again, please see our troubleshooting guide for step-by-step of how to find more information about the errors.  https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)

Until you find the underlying errors, we won't be able to provide any useful support or help.  My best guess is that you are likely hitting one of the common installation issues, but I don't know which one until you follow the troubleshooting guide & look for errors.   https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-CommonInstallationIssues

Tim

From: Endmar Technologies <endmarte...@gmail.com>
Sent: Wednesday, November 10, 2021 7:07 AM
To: Tim Donohue <tim.d...@lyrasis.org>
Cc: DSpace Technical Support <dspac...@googlegroups.com>
Subject: Re: [dspace-tech] Error on homepage
 

Jaware Technologies

unread,
Nov 11, 2021, 6:22:47 AM11/11/21
to Tim Donohue, DSpace Technical Support
Hi Tim,

Thanks for your concern.

Here attached log files from both dspace and tomcat.

Let me know if something is figured out.


Thanks,Jaware

On Tue, Nov 9, 2021 at 6:12 PM Tim Donohue <tim.d...@lyrasis.org> wrote:
tomcat_log.txt
dspace_log.txt

Tim Donohue

unread,
Nov 11, 2021, 9:40:57 AM11/11/21
to Jaware Technologies, DSpace Technical Support
Hi Jaware,

Your DSpace log shows this error:

java.lang.RuntimeException: Error from server at http://172.21.6.150:8983/solr: Expected mime type application/octet-stream but got text/html.

Please also keep in mind that, because the DSpace 7 UI is Javascript-based, there are some errors that may ONLY APPEAR in your web browser's DevTools and never be sent to the DSpace or Tomcat logs on the backend.  This is why I keep stressing that you need to follow the "Troubleshooting" guide around using your Browser's DevTools to look for errors in your browser.  When you do so, it's possible you'll see other issues mentioned in our "Common Installation Issues" which will be quick for you to resolve on your own.  

Therefore, please make sure you also look for these Browser specific errors and check the Common Installation Issues list to see if you have encountered an easy to fix error.  Here's that "Troubleshooting" guide again: https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)
(See the first section on "Finding the Error Message in the User Interface" for information on locating errors that only appear in your web browser)

Overall, I suspect that the issues you are experiencing are all configuration problems & not bugs in DSpace. The errors you find will guide you in the direction of which configurations need updates.  Let us know on this list if you find an error that you are unable to locate the solution to in our "Common Installation Issues" guide.


Tim


From: Jaware Technologies <endmarte...@gmail.com>
Sent: Thursday, November 11, 2021 5:32 AM

To: Tim Donohue <tim.d...@lyrasis.org>
Cc: DSpace Technical Support <dspac...@googlegroups.com>
Subject: Re: [dspace-tech] Error on homepage
Reply all
Reply to author
Forward
0 new messages