I changed the permissions but it didn't change anything. Is there anything 
else to do? 

Le lundi 7 novembre 2022 à 19:09:52 UTC+1, Ray Bon a écrit :

> lanf,
>
> You can change the group for the services directory and give it write 
> permissions.
>
> sudo chgrp --recursive tomcat /etc/cas/services
> sudo chmod g+w --recursive /etc/cas/services/
>
> Ray
>
> On Sun, 2022-11-06 at 22:46 -0800, lanf detroy wrote:
>
> Notice: This message was sent from outside the University of Victoria 
> email system. Please be cautious with links and sensitive information.
>
> hello, the directory user is root and the CAS user is tomcat. Do you have 
> to give CAS directory rights to tomcat?
>
> ls -l /etc/cas/
> drwxr-xr-x 2 root root 4096 27 oct.  16:07 config
> drwxr-xr-x 2 root root 4096 28 oct.  09:56 services
>
> ps aux | grep tomcat
> tomcat     35266  1.8 16.3 5092560 1333328 ?     Ssl  oct.27 278:49 
> /usr/lib/jvm/java-11-openjdk-amd64/bin/java 
> -Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties 
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
> -Dlog4j2.formatMsgNoLookups=True -Djdk.tls.ephemeralDHKeySize=2048 
> -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 
> -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 
> -Dignore.endorsed.dirs= -classpath 
> /usr/share/tomcat9/bin/bootstrap.jar:/usr/share/tomcat9/bin/tomcat-juli.jar 
> -Dcatalina.base=/var/lib/tomcat9 -Dcatalina.home=/usr/share/tomcat9 
> -Djava.io.tmpdir=/tmp org.apache.catalina.startup.Bootstrap start
>
>
>
> Le vendredi 28 octobre 2022 à 20:15:35 UTC+2, Ray Bon a écrit :
>
> lanf,
>
> If you are on linux you can use this command to see access and ownership 
> of the services directory (on my laptop):
> ls -l /etc/cas/
> total 4
> drwxrwxr-x 3 rbon rbon 4096 Jun 16 18:36 services
>
> To see the process owner for the container running cas (this is for tomcat 
> running, substitute your app server)
> ps aux | grep tomcat
> rbon 336911 338 7.0 11769108 2314612 pts/10 SNl 11:12 1:17 /usr/bin/java 
> -Djava.util.logging.config.file=/home/rbon/Applications/mgmt/conf/logging.properties
>  
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
> -Djdk.tls.ephemeralDHKeySize=2048 
> -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 
> -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 
> -Djava.awt.headless=true -XX:+UseG1GC -Xms1024m -Xmx2048m 
> -Dcas.standalone.configurationDirectory=/home/uvtomcat/cas-management_config 
> -Dignore.endorsed.dirs= -classpath 
> /home/rbon/Applications/mgmt/bin/bootstrap.jar:/home/rbon/Applications/mgmt/bin/tomcat-juli.jar
>  
> -Dcatalina.base=/home/rbon/Applications/mgmt 
> -Dcatalina.home=/home/rbon/Applications/mgmt 
> -Djava.io.tmpdir=/home/rbon/Applications/mgmt/temp 
> org.apache.catalina.startup.Bootstrap start
>
> If you need more info, provide more details about your configuration.
>
> Ray
>
> On Thu, 2022-10-27 at 22:46 -0700, lanf detroy wrote:
>
> Notice: This message was sent from outside the University of Victoria 
> email system. Please be cautious with links and sensitive information.
>
> I don't know where to look for this? What parameter to put?
>
> Le jeudi 27 octobre 2022 à 18:37:46 UTC+2, Ray Bon a écrit :
>
> lanf,
>
> Check that the process that is running cas management has write access to 
> the directory in the config.
>
> Ray
>
> On Thu, 2022-10-27 at 07:42 -0700, lanf detroy wrote:
>
> Notice: This message was sent from outside the University of Victoria 
> email system. Please be cautious with links and sensitive information.
>
>
> [2022-10-27 16:40:14] [info] 
> =============================================================
> [2022-10-27 16:40:14] [info] WHO: me
> [2022-10-27 16:40:14] [info] WHAT: IO error opening file stream.
> [2022-10-27 16:40:14] [info] ACTION: SAVE_SERVICE_FAILED
> [2022-10-27 16:40:14] [info] APPLICATION: CAS_Management
> [2022-10-27 16:40:14] [info] WHEN: Thu Oct 27 16:40:14 CEST 2022
> [2022-10-27 16:40:14] [info] CLIENT IP ADDRESS: 192.168.1.254
> [2022-10-27 16:40:14] [info] SERVER IP ADDRESS: 192.168.1.14
> [2022-10-27 16:40:14] [info] 
> =============================================================
> [2022-10-27 16:40:14] [info] >
> [2022-10-27 16:40:14] [info] 2022-10-27 16:40:14,159 ERROR 
> [org.springframework.boot.web.servlet.support.ErrorPageFilter] - 
> <Forwarding to error page from request [/api/services/] due to exception 
> [org.springframework.web.util.NestedServletException: Request processing 
> failed; nested exception is java.lang.IllegalArgumentException: IO error 
> opening file stream.]>
> [2022-10-27 16:40:14] [info] java.lang.RuntimeException: 
> org.springframework.web.util.NestedServletException: Request processing 
> failed; nested exception is java.lang.IllegalArgumentException: IO error 
> opening file stream
>
> Le jeudi 27 octobre 2022 à 15:45:52 UTC+2, lanf detroy a écrit :
>
>
> Hello,
>  I installed cas-management in version 6.6.0, and when I create a service 
> and I want to register it I have the following error:
> An error has occurred while attempting to save the service. Please try 
> again later.
>
> I see the services that I created by hand in the directory 
> /etc/cas/services
>
> Can you help me?
>
>
>
>
>
>

-- 
- 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/13ebac23-b66a-42c7-89ad-06f7b2a0c72an%40apereo.org.

Reply via email to