Admin Authentication

181 views
Skip to first unread message

Sadati Okeyo

unread,
Nov 3, 2023, 4:58:00 PM11/3/23
to DSpace Community
Dear all,

I am experiencing a challenge in login as the administrator  to our newly installed database

I have created another e-person account but still I am not able to login

I am running Dspace 7.6

How can I troubleshoot the error?
Screenshot 2023-11-03 231018.png

Wood, Mark H

unread,
Nov 6, 2023, 7:57:11 AM11/6/23
to Sadati Okeyo, DSpace Community
https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error

________________________________________
From: dspace-c...@googlegroups.com <dspace-c...@googlegroups.com> on behalf of Sadati Okeyo <sadati...@gmail.com>
Sent: Friday, November 3, 2023 16:11
To: DSpace Community
Subject: [dspace-community] Admin Authentication
--
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 Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-communi...@googlegroups.com<mailto:dspace-communi...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-community/33fa4c2d-10b0-4727-8068-4393aa06fa7an%40googlegroups.com<https://groups.google.com/d/msgid/dspace-community/33fa4c2d-10b0-4727-8068-4393aa06fa7an%40googlegroups.com?utm_medium=email&utm_source=footer>.

Sadati Okeyo

unread,
Nov 6, 2023, 9:34:25 AM11/6/23
to DSpace Community
Dspace 7.6.0
Tomcat9
JDK11
NODE v18

Here is the dspace logs

2023-11-06 13:13:22,280 INFO  843f5fdc-08cb-4fcc-8914-a9c0991e7fae 3aade9f3-3c4e-42f7-b6c2-2ddae5fadf5f org.dspace.app.rest.utils.DSpaceAPIReques
tLoggingFilter @ Before request [GET /server/api/authz/authorizations/search/object] originated from /cf_scripts/scripts/ajax/ckeditor/ckeditor.j
s
2023-11-06 13:13:22,281 INFO  843f5fdc-08cb-4fcc-8914-a9c0991e7fae 4b68755e-8d1b-48bb-92eb-1d45d12bab78 org.dspace.app.rest.utils.DSpaceAPIReques
tLoggingFilter @ Before request [GET /server/api/authz/authorizations/search/object] originated from /cf_scripts/scripts/ajax/ckeditor/ckeditor.j
s
2023-11-06 13:19:41,396 INFO  bcd409d4-e603-4df2-817d-4633afb24c0d 8b724caa-4f76-4752-809e-affd0f005644 org.dspace.app.rest.utils.DSpaceAPIReques
tLoggingFilter @ Before request [GET /server/api] originated from /home
2023-11-06 13:51:53,329 INFO  unknown d39b9618-cd73-4c75-a7a5-df910483bf82 org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before reque
st [GET /server/api] originated from /
2023-11-06 13:51:53,378 INFO  ed41d173-0ca3-4f4b-aed6-213621854420 f10c7550-2335-4d9c-8654-753321322a23 org.dspace.app.rest.utils.DSpaceAPIReques
tLoggingFilter @ Before request [GET /server/api/authn/status] originated from /
2023-11-06 13:51:53,693 INFO  ed41d173-0ca3-4f4b-aed6-213621854420 2af45dda-271d-44d0-b60b-2bf4beb4f5af org.dspace.app.rest.utils.DSpaceAPIReques
tLoggingFilter @ Before request [GET /server/api/discover/browses] originated from /
2023-11-06 13:51:53,696 INFO  ed41d173-0ca3-4f4b-aed6-213621854420 5dff636d-0e58-4962-a270-38e3fa06d0dc org.dspace.app.rest.utils.DSpaceAPIReques
tLoggingFilter @ Before request [GET /server/api/system/scripts/metadata-import] originated from /
2023-11-06 13:51:53,697 WARN  ed41d173-0ca3-4f4b-aed6-213621854420 5dff636d-0e58-4962-a270-38e3fa06d0dc org.dspace.app.rest.exception.DSpaceApiEx
ceptionControllerAdvice @ Authentication is required (status:401 exception: Access is denied at: org.springframework.security.access.vote.Affirma
tiveBased.decide(AffirmativeBased.java:73))
2023-11-06 13:51:53,704 INFO  ed41d173-0ca3-4f4b-aed6-213621854420 45ff33cd-a1dc-4ad5-87c2-a5284e285dde org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request [GET /server/api/system/scripts/metadata-export] originated from /
2023-11-06 13:51:53,706 WARN  ed41d173-0ca3-4f4b-aed6-213621854420 45ff33cd-a1dc-4ad5-87c2-a5284e285dde org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ Authentication is required (status:401 exception: Access is denied at: org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:73))


Tomcat logs

Catalina logs

06-Nov-2023 08:17:43.783 SEVERE [Thread-6] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [server] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@6c792bb2]) and a value of type [net.sf.saxon.expr.sort.LRUCache] (value [net.sf.saxon.expr.sort.LRUCache@2d22d1ab]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
06-Nov-2023 08:17:43.798 INFO [Thread-6] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
06-Nov-2023 08:17:53.799 WARNING [Thread-6] org.apache.tomcat.util.net.Acceptor.stop The acceptor thread [http-nio-8080-Acceptor] did not stop cleanly

06-Nov-2023 08:17:43.779 WARNING [Thread-6] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [server]
appears to have started a thread named [Thread-3] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java...@11.0.21/java.lang.Object.wait(Native Method)
 org.dspace.service.impl.HttpConnectionPoolService$IdleConnectionMonitorThread.run(HttpConnectionPoolService.java:176)
06-Nov-2023 08:17:43.780 WARNING [Thread-6] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesObjectStreamClassCaches Failed to cle
ar soft references from ObjectStreamClass$Caches for web application [server]
        java.lang.ClassCastException: class java.io.ObjectStreamClass$Caches$1 cannot be cast to class java.util.Map (java.io.ObjectStreamClass$C
aches$1 and java.util.Map are in module java.base of loader 'bootstrap')

06-Nov-2023 08:17:41.703 INFO [Thread-6] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
06-Nov-2023 08:17:43.713 INFO [Thread-6] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
06-Nov-2023 08:17:43.732 WARNING [Thread-6] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesObjectStreamClassCaches Failed to cle
ar soft references from ObjectStreamClass$Caches for web application [ROOT]
        java.lang.ClassCastException: class java.io.ObjectStreamClass$Caches$1 cannot be cast to class java.util.Map (java.io.ObjectStreamClass$C
aches$1 and java.util.Map are in module java.base of loader 'bootstrap')

catalina out logs

[2023-11-06 08:17:43] [warning] Failed to clear soft references from ObjectStreamClass$Caches for web application [server]
[2023-11-06 08:17:43] [warning] java.lang.ClassCastException: class java.io.ObjectStreamClass$Caches$1 cannot be cast to class java.util.Map (jav
a.io.ObjectStreamClass$Caches$1 and java.util.Map are in module java.base of loader 'bootstrap')
[2023-11-06 08:17:43] [warning]     at org.apache.catalina.loader.WebappClassLoaderBase.clearCache(WebappClassLoaderBase.java:2282)
[2023-11-06 08:17:43] [warning]     at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesObjectStreamClassCaches(WebappClassLoaderB
ase.java:2257)
[2023-11-06 08:17:43] [warning]     at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1626)
[2023-11-06 08:17:43] [warning]     at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1554)
[2023-11-06 08:17:43] [warning]     at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:461)
[2023-11-06 08:17:43] [warning]     at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
[2023-11-06 08:17:43] [warning]     at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5469)
[2023-11-06 08:17:43] [warning]     at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
[2023-11-06 08:17:43] [warning]     at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1400)
[2023-11-06 08:17:43] [warning]     at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1389)
[2023-11-06 08:17:43] [warning]     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[2023-11-06 08:17:43] [warning]     at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
[2023-11-06 08:17:43] [warning]     at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
[2023-11-06 08:17:43] [warning]     at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:976)
[2023-11-06 08:17:43] [warning]     at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
[2023-11-06 08:17:43] [warning]     at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1400)
[2023-11-06 08:17:43] [warning]     at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1389)
[2023-11-06 08:17:43] [warning]     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[2023-11-06 08:17:43] [warning]     at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
[2023-11-06 08:17:43] [warning]     at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)

Errors from the UI

Environment extended with app config
main.e2091d5891fffb64.js:1
main.e2091d5891fffb64.js:1 dspace-angular
main.e2091d5891fffb64.js:1 Version: 7.6.0
main.e2091d5891fffb64.js:1 Environment: Production
main.e2091d5891fffb64.js:1
server/api/config/properties/google.analytics.key:1
       
       
       Failed to load resource: the server responded with a status of 404 ()
main.e2091d5891fffb64.js:1 The response for 'https://repo.pacuniversity.ac.ke/server/api/authz/authorizations/search/object?uri=https://repo.pacuniversity.ac.ke/server/api/core/sites/02a813f8-e5c5-4222-9a79-f16e9ff1d63b&feature=canViewUsageStatistics' has the self link 'https://repo.pacuniversity.ac.ke/server/api/authz/authorizations/search/object?uri=https://repo.pacuniversity.ac.ke/server/api/core/sites/02a813f8-e5c5-4222-9a79-f16e9ff1d63b&feature=canSendFeedback'. These don't match. This could mean there's an issue with the REST endpoint
ensureSelfLink @ main.e2091d5891fffb64.js:1
server/api/statistics/viewevents:1
       
       
       Failed to load resource: the server responded with a status of 403 ()
home:1 Autofocus processing was blocked because a document already has a focused element.
server/api/authn/login:1
       
       
       Failed to load resource: the server responded with a status of 403 ()
main.e2091d5891fffb64.js:1 Unknown auth error " <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD><BODY>
<H1>403 ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
This distribution is not configured to allow the HTTP request method that was used for this request. The distribution supports only cachable requests.
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
<BR clear="all">
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID: b9ci7GJnVyRe91TXJlVggAIU51CACm8HkzwpM_G0gXE4rF9cd-Z5Og==
</PRE>
<ADDRESS>
</ADDRESS>
</BODY></HTML> " caused  SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
    at JSON.parse (<anonymous>)
    at ge.makeAuthStatusObject (main.e2091d5891fffb64.js:1:1437455)
    at main.e2091d5891fffb64.js:1:1438629
    at main.e2091d5891fffb64.js:1:1731097
    at o._error (main.e2091d5891fffb64.js:1:1730562)
    at o.error (main.e2091d5891fffb64.js:1:1719397)
    at o._error (main.e2091d5891fffb64.js:1:1719635)
    at o.error (main.e2091d5891fffb64.js:1:1719397)
    at o._error (main.e2091d5891fffb64.js:1:1719635)
    at o.error (main.e2091d5891fffb64.js:1:1719397)
makeAuthStatusObject @ main.e2091d5891fffb64.js:1
server/api/eperson/registrations?accountRequestType=forgot:1
       
       
       Failed to load resource: the server responded with a status of 403 ()
server/api/authn/login:1
       
       
       Failed to load resource: the server responded with a status of 403 ()
main.e2091d5891fffb64.js:1 Unknown auth error " <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD><BODY>
<H1>403 ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
This distribution is not configured to allow the HTTP request method that was used for this request. The distribution supports only cachable requests.
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
<BR clear="all">
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID: _-HyCQOV35VU-esjwtQN6zMMtLr6-uzALabdVXP9CRYGfrxqPsl66A==
</PRE>
<ADDRESS>
</ADDRESS>
</BODY></HTML> " caused  SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
    at JSON.parse (<anonymous>)
    at ge.makeAuthStatusObject (main.e2091d5891fffb64.js:1:1437455)
    at main.e2091d5891fffb64.js:1:1438629
    at main.e2091d5891fffb64.js:1:1731097
    at o._error (main.e2091d5891fffb64.js:1:1730562)
    at o.error (main.e2091d5891fffb64.js:1:1719397)
    at o._error (main.e2091d5891fffb64.js:1:1719635)
    at o.error (main.e2091d5891fffb64.js:1:1719397)
    at o._error (main.e2091d5891fffb64.js:1:1719635)
    at o.error (main.e2091d5891fffb64.js:1:1719397)
makeAuthStatusObject @ main.e2091d5891fffb64.js:1

Sadati Okeyo

unread,
Nov 6, 2023, 9:40:13 AM11/6/23
to DSpace Community
Here are the above errors 
Catalina.logs-2023-11-6.txt
Catalina.out.txt
dspace logs.log
Dspace UI logs from Console.txt
Reply all
Reply to author
Forward
0 new messages