when i try to start webfort using systemd services it fails but starts fine from the binaries. I'm new to AdvAuth and first in our company to learn the config / install process so any help would be welcome
[Unit]Description=CA Strong Auth ServerAfter=network.target
[Service]Type=simpleEnvironmentFile=/etc/sysconfig/arcotExecStart=/opt/CA/AdvAuth/bin/webfortserver startExecStop=/opt/CA/AdvAuth/bin/webfortserver stop
# CA VARSLD_LIBRARY_PATH=/opt/CA/AdvAuth/odbc64v80/lib:/opt/CA/AdvAuth/sbin:/opt/CA/AdvAuth/lib:/opt/CA/AdvAuth/bin:/opt/CA/AdvAuth/sdk/server/plugin/c/lib:/opt/java/jre/binARCOT_HOME=/opt/CA/AdvAuthPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/bin:/opt/puppetlabs/bin:/opt/tomcat/bin:/opt/java/bin:/root/bin:/opt/java/bin
Output from journalctl
systemd: Starting CA Strong Auth Server...webfortserver: Operation start being performed on Server WebFort Serverwebfortserver: All environment variables are setpolkitd: Unregistered Authentication Agent for unix-process:52934:58479880 (system bus name :1.22, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, lsystemd: Started CA Strong Auth Server.webfortserver: Arcot arwfserver.real Watchdog Service initializing ...webfortserver: Operation stop being performed on Server WebFort Serverwebfortserver: Operation failed.webfortserver: Could not get failure details.TransportException. while connecting to [http://localhost:9743/] Err : create: No Transports Available
Note: the polkit error appears to be insignificant, according to: linux - Explanation of polkitd Unregistered Authentication Agent - Stack Overflow
It seems you were working for this issue with Namish in case 00943592 that has been resolved.
From a support perspective it is 'resolved.' From a community perspective, i would not count it as resolved. The resolution to the ticket was a workaround... we had systemd call an init.d script. As noted by red hat, that is 'old hat' way of doing things, and will eventually go away entirely: Overview of systemd for RHEL 7 - Red Hat Customer Portal
If anyone in the community has been able to get a native systemd unit file to work, that would be a big advantage to others!
Hi Drewthe same issue is present in CA Strong Authentication 9.1; but I've found a way to make it work in systemd.The "webfortserver" file is a shell script, which starts the arwfwatchdog process after some checking (env vars and so on); then puts it in background.I've built a systemd unit based on how the process is started and stopped by the above script; find it attachedIt's not perfect, the "stop" command is failing (the process stops with the message "operation successful"), but the process starts fineFeel free to use it as a starting point :)RegardsEnrico B.