port issue

100 views
Skip to first unread message

Test Gmail

unread,
Apr 15, 2024, 2:21:36 AM4/15/24
to DSpace Technical Support
Hello,

I have installed DSpace version 7.6. Ports 8080 and 8983 are working properly, but port 4000 is not open. Below, I will attach configuration files and their screenshots. Please assist in resolving this issue. If there is any way to solve this, let me know.

local.cfg

# It corresponds to the URL that you would type into your browser to access the REST API.
dspace.server.url = http://98.70.32.231:8080/server



# Public URL of DSpace frontend (Angular UI). May require a port number if not using standard ports (80 or 443)
# DO NOT end it with '/'.
# This is used by the backend to provide links in emails, RSS feeds, Sitemaps, etc.
# NOTE: this URL must be accessible to all DSpace users (should not use 'localhost' in Production).
# It corresponds to the URL that you would type into your browser to access the User Interface.
dspace.ui.url =  http://98.70.32.231:4000


config.prod.yml

ui:
  ssl: false
  host: 98.70.32.231
  port: 4000

rest:
  ssl: false
  host: 98.70.32.231
  port: 8080

dspace-ui.json

{
    "apps": [
        {
           "name": "dspace-ui",
           "cwd": "/home/dspace/dspace-angular-dspace-7.6.1/",
           "script": "dist/server/main.js",
           "env": {
              "NODE_ENV": "production",
   "DSPACE_REST_SSL": "false",
   "DSPACE_REST_HOST": "98.70.32.231",
   "DSPACE_REST_PORT": "8080",
   "DSPACE_REST_NAMESPACE": "/server"
           }
        }
    ]
}Screenshot from 2024-04-15 11-38-15.pngScreenshot from 2024-04-15 11-38-35.pngScreenshot from 2024-04-15 11-38-46.pngScreenshot from 2024-04-15 11-38-57.png

DSpace Technical Support

unread,
Apr 23, 2024, 12:40:33 PM4/23/24
to DSpace Technical Support
Hi,

I'd recommend following the installation guide at https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace if you wish to use this site in production scenarios.

It is much better & more secure to run DSpace on standard ports via HTTPS.  Using nonstandard ports (8080 or 4000) can result in firewall issues or similar.  It's also worth noting that you will likely find it difficult to run DSpace over plain HTTP _unless you use localhost URLs_.  

If you are wanting to simply run DSpace locally, then I'd recommend using localhost URLs for everything (not an IP address).  That will allow you to run DSpace via HTTP on your local machine, but that DSpace will not be available to the world until you use a proxy like Apache or Nginx as described in the Installation guide above.

Tim

Reply all
Reply to author
Forward
0 new messages