Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled scan: "User does not exist and could not be created: System" #22

Open
sch3pa opened this issue Oct 4, 2021 · 6 comments
Open

Comments

@sch3pa
Copy link

sch3pa commented Oct 4, 2021

A scheduled scan gives a "User does not exist and could not be created: System" error.
I am running Alfresco 6.2.2 runs on a container platform (Openshift 3.11 and 4.x).
The repository runs as user 'alfresco', not 'root'.

@sch3pa sch3pa changed the title Sceduled scan: "User does not exist and could not be created: System" Scheduled scan: "User does not exist and could not be created: System" Oct 4, 2021
@fegorama
Copy link
Owner

fegorama commented Oct 5, 2021

I am going to test this functionality and say you.

@sch3pa
Copy link
Author

sch3pa commented Jan 19, 2022

Any progress on this issue?

@fegorama
Copy link
Owner

Hi!
I have a hard work in my company. Can you create a user named System with admin permissions and test with this user?
I testing code the next week and I hope fix the problem.
Thank you and best regards.

@sch3pa
Copy link
Author

sch3pa commented Jan 27, 2022

*System user exists already:
__
We couldn't create user 00260028 Wrapped Exception (with status template): 00261413 Failed to execute script 'classpath
:alfresco/templates/webscripts/org/alfresco/repository/person/people.post.json.js': 00261412 The built-in authority 'System' is a user, but not a Person (i.e. it does not have a profile)..

And when a set 'alfviral.on_read=TRUE' in alfviral.properties the repository does not start:

org.alfresco.error.AlfrescoRuntimeException: 00260039 Failed to execute transaction-level behaviour public abstract void org.alfresco.repo.content.ContentServicePolicies$OnContentReadPolicy.onContentRead(org.alfresco.service.cmr.repository.NodeRef) in transaction 2d236006-73e5-42a7-9b47-86a491ba1b25
at org.alfresco.repo.policy.TransactionBehaviourQueue.execute(TransactionBehaviourQueue.java:262)
..........
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: net.sf.acegisecurity.AuthenticationCredentialsNotFoundException: A valid SecureContext was not provided in the RequestContext
at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:481)
........

I think this is caused by the same root cause (no valid SecureContext?)**

@sch3pa sch3pa closed this as completed Jan 27, 2022
@sch3pa sch3pa reopened this Jan 27, 2022
@LukasKleinKoeln
Copy link

Cheers,
Has anyone been able to find the root cause for this error or a possible solution?

@fegorama
Copy link
Owner

I'm sorry it took so long.

Try changing the System user to admin in the alfviral-context.xml file in subsystems/Security/alfviral:

     <property name="runAsUser">
         <value>System</value>
     </property>

by:

     <property name="runAsUser">
         <value>admin</value>
     </property>

And tell me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants