Error accessing DSpace 7.2 through IP address

443 views
Skip to first unread message

ruchira raul

unread,
Jul 14, 2022, 7:41:53 AM7/14/22
to DSpace Technical Support
Installed DSpace 7.2 on Ubuntu 22.04 and it is running on localhost but accessing through IP it gives 500 "Service Unavailable"  error in frontend and 404 error in backend.

Did all necessary changes in local.cfg file & config.prod.yml file.

Please provide solution for this issue.

Tim Donohue

unread,
Jul 14, 2022, 1:28:56 PM7/14/22
to ruchira raul, DSpace Technical Support
Unfortunately, we don't have enough information to help you resolve this issue. Please take a look at our guide on Troubleshooting Errors, which provides useful information about how to locate the underlying error: https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove) 

After following that guide and locating the underlying error message, you should search to see if this error has already been solved/answered elsewhere. For example, if you just installed DSpace 7, the error may be listed in our Common Installation Issues: https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-CommonInstallationIssues 

If you cannot find a solution, feel free to send the underlying error messages to this list and we'll do our best to help out.

Tim


From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of ruchira raul <ruchi...@gmail.com>
Sent: Thursday, July 14, 2022 3:49 AM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] Error accessing DSpace 7.2 through IP address
 
Installed DSpace 7.2 on Ubuntu 22.04 and it is running on localhost but accessing through IP it gives 500 "Service Unavailable"  error in frontend and 404 error in backend.

Did all necessary changes in local.cfg file & config.prod.yml file.

Please provide solution for this issue.

--
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/de29d4c8-f26c-4b48-928c-d3914c516322n%40googlegroups.com.

ruchira raul

unread,
Aug 16, 2022, 1:18:26 AM8/16/22
to DSpace Technical Support
I have tried with all possibilities provided in "Common installation Issues" but still issue of accessing frontend through IP is not resolved.
Please try to provide some other alternative or support as soon as possible.

Regards,
Ruchira

ruchira raul

unread,
Aug 16, 2022, 4:41:51 AM8/16/22
to DSpace Technical Support
Hi,

This is my configuration:
local.cfg -

dspace.server.url = http://[IP]:8080/server
dspace.ui.url = http://[IP]:4000

config.prod.yml -

ui:
  ssl: false
  host: [IP]
  port: 4000
  nameSpace: /
  
rest:
  ssl: false
  host: [IP]
  port: 8080
  nameSpace: /server

My backend was working with IP but frontend was not working with IP. I want to access both in production environment through IP

Tim Donohue

unread,
Aug 17, 2022, 5:09:28 PM8/17/22
to DSpace Technical Support
I think the likely problem is that you MUST run the backend with HTTPS if you are using non-localhost URLs.  This is documented in the Install guide (see step 16 of the backend installation): https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-BackendInstallation

Since you want to run the backend via IP address, you will have to convert it to using HTTPS.  Otherwise, the frontend is likely to throw a 403 Forbidden error whenever you attempt to login... see this "Common Installation Issue" for more details: 
https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-%22403Forbidden%22errorwithamessagethatsays%22Accessisdenied.InvalidCSRFToken%22

If this isn't the issue you are seeing, then you need to follow our Troubleshooting guide to find the underlying error message.  Without the underlying error message we cannot help (it's impossible to help unless we know the exact underlying error you are seeing): https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)

Tim
Reply all
Reply to author
Forward
0 new messages