The backend does need to use SSL (HTTPS) if you plan on accessing it from a different machine. However, it is possible to run both the frontend & backend on HTTP, provided that you only use localhost URLs & you only access the site from the same machine where it is running (as this is a normal development setup).
It's unclear from the errors you shared whether you are attempting to access the site from the same machine it's running on, or not. The basic issue though seems to imply that the UI is not running at all (if you don't even see a loading screen or a blank screen or anything, that means the UI is not running at all). This would likely imply that something is incorrect in your PM2 setup or the UI configuration (config.*.yml). You could try running the UI temporarily via "yarn start" just to see if it starts up properly that way. If it does, then your PM2 configuration may require updates. If it does not, then it's more likely your config.*.yml needs fixes (and you may see some more descriptive error messages) Tim On Friday, September 2, 2022 at 3:14:07 AM UTC-5 [email protected] wrote: > Your backend must use ssl... (https*) > > On Thu, 1 Sept 2022, 09:06 Night Librarian, <[email protected]> wrote: > >> Greetings! >> >> I installed DSpace 7.2 on Ubuntu 20.04 and migrated the database and the >> assetstore. Backend installed fine, HAL browser shows the contents >> correctly, SOLR is running. >> >> Followed the Frontend installation instructions. Now, "pm start >> dspace-ui.json" output shows that dspace-ui is online. >> http://localhost:8080/server/api has 3 tabs, the first one, JSON, shows >> dspaceUI as "http://localhost:4000", and dspaceServer as " >> http://localhost:8080/server". >> >> lsof -i:4000 shows: >> >> COMMAND node\x20 >> PID 16129 >> USER dspace >> FD 20u >> TYPE IPv4 >> DEVICE 188128 >> SIZE/OFF 0t0 >> NODE TCP >> NAME localhost:4000 (LISTEN) >> >> However, when I try to go to http://localhost:4000, the browser says >> "Unable to connect". >> >> I followed the instructions at >> https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-FindingtheErrorMessageintheUserInterface(Trythisfirst!) >> >> and reproduced the problem in Chrome and Firefox with similar results. >> >> In Chrome, Console shows: >> >> VM487:6792 crbug/1173575, non-JS module files deprecated. >> (anonymous) @ VM487:6792 >> >> >> Network -> Headers shows: >> >> Request URL: >> http://localhost:4000/ >> Referrer Policy:strict-origin-when-cross-origin >> Request Headers >> >> Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 >> Accept-Encoding:gzip, deflate, br >> Accept-Language:en-US,en;q=0.9 >> Cache-Control:max-age=0 >> Connection:keep-alive >> Host:localhost:4000 >> sec-ch-ua:"Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105" >> sec-ch-ua-mobile:?0 >> sec-ch-ua-platform:"Linux" >> Sec-Fetch-Dest:document >> Sec-Fetch-Mode:navigate >> Sec-Fetch-Site:none >> Sec-Fetch-User:?1 >> Upgrade-Insecure-Requests:1 >> User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, >> like Gecko) Chrome/105.0.0.0 Safari/537.36 >> >> while Network -> Response only says: >> >> Failed to load response data: No resource with given identifier found >> >> What am I missing? >> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/dspace-tech/4da33458-5e1c-4b05-86d5-7f8cd91d678cn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/dspace-tech/4da33458-5e1c-4b05-86d5-7f8cd91d678cn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/b3ca526f-a648-4a4c-8f98-e0de4d4a056cn%40googlegroups.com.
