All,

Just a note that, with Sten's help, we seem to have narrowed down the issue 
here.  See discussion in https://github.com/DSpace/dspace-angular/issues/1036

For those having issues with login after a fresh install, try adding this to 
your local.cfg (on the backend) & restarting Tomcat (where "server" webapp is 
running):


proxies.trusted.ipranges = [IP-address-of-UI-server]

It seems that this proxy setting is getting in the way of login working 
correctly when using a Production build/installation.

This appears, at a glance, to be a bug... I'll be digging into it more next 
week to see if we can fix it soon (prior to the upcoming 7.0 Beta 5).  (The fix 
might be to remove this configuration altogether, see 
https://github.com/DSpace/DSpace/issues/2984)  So, just consider this a 
temporary workaround​ for now.

Thanks,

Tim

________________________________
From: [email protected] <[email protected]> on behalf of 
Sten Aus <[email protected]>
Sent: Friday, February 26, 2021 1:23 AM
To: DSpace Technical Support <[email protected]>
Subject: Re: [dspace-tech] Re: Unable to login to new DSpace 7 installation

As this seems to be an issue for at least 3 now, I suggest to move this thread 
to Github: https://github.com/DSpace/dspace-angular/issues/1036

On Thursday, February 25, 2021 at 6:57:15 PM UTC+2 Tim Donohue wrote:

Hi Sten & Michael,

Sorry to hear you are having issues getting login working right for DSpace 7.

Unfortunately, though, I think we'd need more information to help debug this.

  *   What's the exact error you are seeing?
     *   If you are using a browser like Chrome, you could also open up 
"DevTools" (More Tools -> Developer Tools) and look at the "Network" tab right 
before you try to login.  Then attempt to login & it may give you a more 
detailed error message.
     *   You also could check the (backend) logs to see if it gives additional 
details
  *   As we are in very active​ development right now, I'd highly encourage 
updating to the latest "main" GitHub branch (both for Angular UI and the 
backend).  Because we are merging new fixes daily/weekly, if one of the two is 
outdated, you might hit odd issues.  (Additionally, sometimes we merge fixes to 
both the frontend & backend simultaneously because you need both fixes 
together​ to fix some bugs.)
  *   I'd also highly recommend double checking that the URLs in the 
"dspace.server.url" and "dspace.ui.url" (in the backend local.cfg) match up 
with the URL parts in your "environment.*.ts" configuration in Angular UI.  If 
those don't match​, then the frontend may not trust​ the backend and will 
refuse to allow you to login.

If you could provide more info, I might be able to help figure out what is 
going on.   I can verify though that login works on our Demo site 
(https://demo7.dspace.org) and it also works for me locally using the Docker 
setup 
(https://wiki.lyrasis.org/display/DSPACE/Try+out+DSpace+7#TryoutDSpace7-InstallviaDocker).
  So, we just need to determine how your setup differs.

Thanks for doing some early testing for us!

Tim



________________________________
From: [email protected] on behalf of Michael Plate
Sent: Thursday, February 25, 2021 7:21 AM
To: [email protected]
Subject: Re: [dspace-tech] Re: Unable to login to new DSpace 7 installation

Am 25.02.21 um 11:50 schrieb Sten Aus:
> I've discovered that Docker was running in "development". After building
> with the same configuration, only using yarn start:dev login works.


fascinating facts - now I have the same problem, and indeed yesterday I
started it with "yarn run start:dev", later on just "yarn start".

--
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
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/713cf613-2e76-622c-ff6b-1d3e4cc952bb%40bibliothek.uni-kassel.de.

--
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/afd70bd4-e102-4fae-a9c4-032a07e932fbn%40googlegroups.com<https://groups.google.com/d/msgid/dspace-tech/afd70bd4-e102-4fae-a9c4-032a07e932fbn%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://duraspace.org/about/policies/code-of-conduct/
--- 
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/DM5PR2201MB114836BEE3446AA2C057B5CDED9D9%40DM5PR2201MB1148.namprd22.prod.outlook.com.

Reply via email to