Angular is up, but Cannot Login

497 views
Skip to first unread message

Chris Clawson

unread,
Dec 27, 2021, 3:41:04 PM12/27/21
to DSpace Technical Support

First DSpace 7 Angular UI screen! – (but) Unable to log in.

I would appreciate some guidance. I was just successful in getting a DSpace 7 welcome screen from my remote webserver. I am unable to log in or browse the default database . Below the home page search box (Search the repository) is a message which says “error.top-level-communites “. If I click on any of the top menus (Communities, Statistics, etc) the screen attempts to load the page and then hangs (… loading..), as if waiting forever. I have added two Epersons and an Administrator using the ./dspace command line utility and am able to list them back, but the ui login says “invalid email or password”. So far, any command line database utility I have attempted has worked. The default database seems to be there (including my own two added epersons), but the ui doesn't appear to be accessing it. (right?)

I had earlier issues installing Solr. Solr is running now as user 'solr'. The installation directories in /opt are owned by 'root', but the /server/solr/configsets are owned by 'solr'. When I try and run the command './dspace solr-reindex-statistics' I get an error:

Exception: Error from server at http://localhost:8983/solr: Path /dspace/solr/statistics must be relative to SOLR_HOME, SOLR_DATA_HOME coreRootDirectory. Set system property 'solr.allowPaths' to add other allowed paths.

?? Is this related to my primary problem? Where are these paths defined (SOLR_HOME, SOLR_DATA_HOME, etc)? I didn't see them in dspace.cfg or local.cfg.

Some help in guiding the blind would be appreciated, here!

Chris


Ubuntu 18.04

KVM Cloud server

2 cpu cores

4GB ram

Chris Clawson

unread,
Dec 27, 2021, 7:36:51 PM12/27/21
to DSpace Technical Support
More reading led me to my Firefox debug console. There are messages, like "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://myserver.com" all over the place. I still have no idea what to do about it, but I guess this is where I keep studying..

Chris Clawson

unread,
Dec 27, 2021, 7:52:16 PM12/27/21
to DSpace Technical Support
Another Question: Below is the Rest portion of my environment.prods.ts file in /dspace-angular. I am using port 8443, rather than 443. Might this be causing all the 'CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403' messages?

  rest: {
      ssl: true,
      host: 'mywebsite.com',
      port: 8443,
      // NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
      nameSpace: '/server'
  }

Tim Donohue

unread,
Jan 6, 2022, 12:05:55 PM1/6/22
to DSpace Technical Support
Hi Chris,

For hints on solving CORS errors, see the notes in our "Common Installation Issues" in our documentation:

Usually, the cause is that the *backend* (REST API) local.cfg configs have the wrong dspace.ui.url setting.

Tim

Chris Clawson

unread,
Jan 6, 2022, 12:16:06 PM1/6/22
to DSpace Technical Support
Thanks, Tim.
My installation of DSpace 7 is mostly complete. It is up and running, I can login, add communities and items. Thanks to Mohamed AlMutairi, he has help investigate and resolve many points I hope get into the installation documentation. I have been trying to keep a diary on all this, and might consider submitting it to the team for review (when ready, if I knew where to submit it). At my skill level, there seems to be many missing points which might be provided for future users. It is a great package and I look forward to further development and a greater acceptance to a wider, less technical audience. This would especially benefit small libraries, non profit community collections and historical societies.

Tim Donohue

unread,
Jan 6, 2022, 12:41:09 PM1/6/22
to DSpace Technical Support
Hi Chris,

We'd definitely appreciate feedback you have on the install instructions at https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace

We've done our best to describe the steps (and various common issues) that everyone will need to get DSpace installed. But if you've stumbled on major gaps in our docs, please feel free to either submit them as comments on that wiki page (you can ask for a free wiki acct by emailing wiki...@lyrasis.org), or you are welcome to document the changes you'd recommend at another location & send them my way.  I'll see if I can use it to improve the main docs.  

However, one thing to keep in mind is that we unfortunately need to keep our instructions "generic" and avoid tailoring them to a specific Operating System (as DSpace will work on any operating system, it'd be very hard to maintain / keep up to date instructions for every operating system out there). So, it's a difficult balance in giving folks the information we need, while avoiding overwhelming people with too many operating system specific notes.

In any case, feedback is more than welcome.  And, it definitely could help us to improve these instructions for others

Tim

Agustín Alfieri

unread,
Feb 9, 2023, 6:54:48 AM2/9/23
to DSpace Technical Support
Hi Chris,

I ran into a similar problem as yours. It too get this exception when reindexing the statistics:
Exception: Error from server at http://localhost:8983/solr: Path /dspace/solr/statistics must be relative to SOLR_HOME, SOLR_DATA_HOME coreRootDirectory. Set system property 'solr.allowPaths' to add other allowed paths.

Do you remember how were you able to fix it? Or a general idea of what was the issue?

Agustin.

Mohammad S. AlMutairi

unread,
Feb 9, 2023, 5:36:36 PM2/9/23
to DSpace Technical Support
Reply all
Reply to author
Forward
0 new messages