I remember having an issue on that one.
Can you try this configuration ?

mgmt.versionControl.servicesRepo=//etc/cas/services-repo


Make sure whatever runs cas-management has read/write access to 
/etc/cas/services-repo and on the git
Once the git repo is initialized, make sure to configure the default git 
user (name+email)

Le samedi 7 mars 2020 04:25:46 UTC+1, Napoleon Ponaparte a écrit :
>
> Sorry,
> I have put this config to my management.properties
> mgmt.versionControl.servicesRepo=/etc/cas/services-repo
> But it still error.
> I have test with CAS Management 6.0 but it has error too, when I save 
> registry service.
> [image: image.png]
> ERROR 
> [org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/cas-management].[dispatcherServlet]]
>  
> - <Servlet.service() for servlet [dispatcherServlet] in context with path 
> [/cas-management] threw exception>
> org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: 
> /etc/cas/services-repo/.git
> [image: image.png]
> Please help me. Thanks
>
>
> Vào Th 6, 6 thg 3, 2020 vào lúc 20:14 B Ran <[email protected] 
> <javascript:>> đã viết:
>
>> cas-management usually creates a git repository and then offers to push 
>> commits made through the UI to service registries.
>>
>> You can configure the location of the git repo with the property 
>> mgmt.versionControl.servicesRepo
>>
>> Assuming both CAS and cas-management are running on the same machine 
>> you'd have to define 'cas.serviceRegistry.json.location' in the management 
>> properties as well
>>
>> However I don't think setting both properties with the same folder is a 
>> good practice (since changes made through the UI would be reflected in CAS 
>> before you decide to publish)
>>
>> Le vendredi 6 mars 2020 09:13:59 UTC+1, Napoleon Ponaparte a écrit :
>>>
>>> Hi,
>>> I have a trouble with CAS Management Web App (version 6.1.0-RC and 
>>> version 6.0.x) , while I save new registry to CAS.
>>>  Here is my error:
>>> *Error 1:*
>>>
>>> ERROR 
>>> [org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/cas-management].[dispatcherServlet]]
>>>  
>>> - <Servlet.service() for servlet [dispatcherServlet] in context with path 
>>> [/cas-management] threw exception>
>>>
>>> org.eclipse.jgit.errors.RepositoryNotFoundException: repository not 
>>> found: /etc/cas/services-repo/.git
>>>
>>> Here is my config:
>>> *1. CAS config*
>>> cas.server.name=https://ssostandalone.vdc2.com.vn:8443
>>> cas.server.prefix=${cas.server.name}/cas
>>>
>>> logging.config: file:/etc/cas/config/log4j2.xml
>>> server.port=8443
>>> server.ssl.enabled=true
>>>
>>> cas.serviceRegistry.initFromJson=false
>>> #cas.serviceRegistry.json.location=file:/etc/cas/services-repo
>>> cas.serviceRegistry.json.location=file:/etc/cas/vnpt-service-repo
>>> cas.authn.oauth.grants.resourceOwner.requireServiceHeader=true
>>> cas.authn.oauth.userProfileViewType=NESTED
>>>
>>> cas.authn.policy.requiredHandlerAuthenticationPolicyEnabled=false
>>>
>>> cas.authn.attributeRepository.stub.attributes.email=cas...@example.org
>>> #REST API JSON
>>> cas.rest.attributeName=email
>>> cas.rest.attributeValue=.+example.*
>>> *2. CAS Management Config*
>>> cas.server.name=https://ssostandalone.vdc2.com.vn:8443
>>> cas.server.prefix=${cas.server.name}/cas
>>> mgmt.serverName=https://ssostandalone.vdc2.com.vn:8088
>>> mgmt.adminRoles[0]=ROLE_ADMIN
>>> mgmt.userPropertiesFile=file:/etc/cas/config/users.json
>>> mgmt.userRoles[0]=ROLE_USER
>>> spring.thymeleaf.mode=HTML
>>> server.port=8088
>>> server.ssl.enabled=true
>>> server.ssl.keyStore=file:/etc/cas/thekeystore
>>> server.ssl.keyStorePassword=changeit
>>> server.ssl.keyPassword=changeit
>>> logging.config=file:/etc/cas/config/log4j2-management.xml
>>> *3. Service registry (in /etc/cas/vnpt-service-repo)*
>>> root@ssostandalone:/etc/cas/vnpt-service-repo# cat casManagement-4.json 
>>> {
>>>   "@class" : "org.apereo.cas.services.RegexRegisteredService",
>>>   "serviceId":"^https://ssostandalone.vdc2.com.vn:8088/.+";,
>>>   "name" : "casManagement",
>>>   "id" : 4,
>>>   "evaluationOrder" : 10,
>>>   "allowedAttributes":["cn","mail"]
>>> }
>>>
>>> Please help me. 
>>> Thank you.
>>>
>>>
>>> -- 
>> - Website: https://apereo.github.io/cas
>> - Gitter Chatroom: https://gitter.im/apereo/cas
>> - List Guidelines: https://goo.gl/1VRrw7
>> - Contributions: https://goo.gl/mh7qDG
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "CAS Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/b60a72a7-389d-4465-9cc4-0bfd6c5ff2b5%40apereo.org
>>  
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/b60a72a7-389d-4465-9cc4-0bfd6c5ff2b5%40apereo.org?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" 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/a/apereo.org/d/msgid/cas-user/f3cbaa2d-e918-4e38-8cfe-6c856fb43c04%40apereo.org.

Reply via email to