public:8084_issue:cbs_service_on_linux_not_automatically_starting_after_a_server_reboot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
public:8084_issue:cbs_service_on_linux_not_automatically_starting_after_a_server_reboot [2020/08/07 16:06]
yuk.cheng [Resolution]
public:8084_issue:cbs_service_on_linux_not_automatically_starting_after_a_server_reboot [2020/11/18 15:07]
edward.chan
Line 1: Line 1:
-=====  ISSUE: AhsayCBS services on Linux are not automatically starting up after a server reboot (AhsayCBS Linux) ​ =====+=====  ISSUE: AhsayCBS services on Linux are not automatically starting up after a server reboot (AhsayCBS ​installation on Linux) ​ =====
  
 <​html>​ <​html>​
Line 23: Line 23:
 ===== Problem Description ===== ===== Problem Description =====
 <​html>​ <​html>​
-When an AhsayCBS ​v8 server installed ​on newer versions of the following Linux distributions,​ for example CentOS 8, Red Hat Enterprise 8, or Ubuntu 20.04 LTS. After the server is rebooted or shutdown/​started both the AhsayCBS and NFS services are not automatically started up. +After installation ​AhsayCBS on newer versions of the following Linux distributions,​ for example, the CentOS 8, Red Hat Enterprise 8, or Ubuntu 20.04 LTS. &nbsp;After the server is rebooted or shutdown / startedboth the AhsayCBS and NFS services are not automatically started up. 
 <br/> <br/>
 <br/> <br/>
-These services ​have to be manually started ​using the following scripts:+The two services ​must be manually started ​with the following scripts:
 <br/> <br/>
 <ul> <ul>
-<​li><​font color=black>​AhsayCBS service - <b>/​usr/​local/​cbs/​bin/​startup.sh</b></​font></​li>​ +<​li><​font color=black>​AhsayCBS service - &​nbsp;&​nbsp;​/​usr/​local/​cbs/​bin/​startup.sh</​font></​li>​ 
-<​li><​font color=black>​NFS service - <b>/​usr/​local/​cbs/​nfs/​bin/​startup.sh</b></​font></​li>​+<​li><​font color=black>​NFS service - &​nbsp;&​nbsp;​/​usr/​local/​cbs/​nfs/​bin/​startup.sh</​font></​li>​
 </ul> </ul>
 </​html> ​ </​html> ​
Line 36: Line 36:
 ===== Cause ===== ===== Cause =====
 <​html>​ <​html>​
-This issue related to a problem with the AhsayCBS ​v8 installation script and the Linux systemd utility (systemctl)+This issue is related to a problem with the AhsayCBS installation script and the Linux systemd utility (systemctl).
 </​html>​ </​html>​
  
 ===== Resolution ===== ===== Resolution =====
 <​html>​ <​html>​
-To workaround this issue it is recommended to:+To workaround this issueit is recommended to perform the following steps:
 <ol> <ol>
 +
 <​li><​font color=black>​Login to the Linux server as root.</​font></​li>​ <​li><​font color=black>​Login to the Linux server as root.</​font></​li>​
-<br/>  +<​br> ​ 
-<​li><​font color=black>​Run the following commands:<​/font></li+ 
-<ul+<​li><​font color=black>​Run the following commands: 
-<li><​font color=black><b>​systemctl enable cbs</b></font></li+<br> 
-<li><​font color=black><b>​systemctl enable cbsnfs</b></font></li+<br
-</ul>  + 
-<​li><​font color=black>​Reboot the server.</​font></​li>​ +    ​<table border="​0"​ cellpadding="​0"​ cellspacing="​0"​ width="​850"​
-<br/+    <tr> 
-<​li><​font color=black>​After the server is online ​use the following commands to verify ​the services are running.</​font></​li>​+     <​td style="​BACKGROUND-COLOR:​ black">​ 
 +      ​<​font ​size=2 ​color=white><p style="​font-family:​courier;">​  
 +>​systemctl enable cbs 
 +     </td> 
 +    ​</tr> 
 +   </table
 + 
 +and<br><​br>​ 
 + 
 +    <table border="​0"​ cellpadding="​0"​ cellspacing="​0"​ width="​850">​ 
 +    <​tr>​ 
 +     <​td style="​BACKGROUND-COLOR:​ black">​ 
 +      ​<​font ​size=2 ​color=white><p style="​font-family:​courier;">​  
 +>​systemctl enable cbsnfs 
 +     </td> 
 +    ​</tr> 
 +   </table
 +</font></​li> 
 + 
 + 
 +<​li><​font color=black>​Reboot the server ​afterward.</​font></​li>​ 
 +<​br>​ 
 +<​li><​font color=black>​After the server is restarted, you can use the following commands to confirm if the services are running ​properly. 
 +<​br>​ 
 +<​br>​ 
 +    <table border="​0"​ cellpadding="​0"​ cellspacing="​0"​ width="​850">​ 
 +    <​tr>​ 
 +     <​td style="​BACKGROUND-COLOR:​ black">​ 
 +      <font size=2 color=white><​p style="​font-family:​courier;">​  
 +# ps -ef| grep java<​br>​ 
 +root&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​1372&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​1 12 10:26 ?&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​00:​01:​19 /​usr/​local/​cbs/​java/​bin/​java -Djava.util.logging.config.file=/​usr/​local/​cbs/​conf/​logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.library.path=/​usr/​local/​cbs/​lib/​LinX64 -DCATALINA_PID=/​var/​run/​obsr.pid -Xrs -Xms512m -Xmx2048m -Xss384k -XX:​MetaspaceSize=96m -XX:​MaxMetaspaceSize=256m -XX:​MaxDirectMemorySize=512m -XX:​NewRatio=3 -XX:​SurvivorRatio=32 -XX:​MinHeapFreeRatio=20 -XX:​MaxHeapFreeRatio=80 -XX:​+PrintGCDetails -XX:​+PrintGCDateStamps -XX:​+UseConcMarkSweepGC -XX:​+UseCMSInitiatingOccupancyOnly -XX:​CMSInitiatingOccupancyFraction=85 -XX:​+ScavengeBeforeFullGC -XX:​+CMSScavengeBeforeRemark -Dsun.net.inetaddr.ttl=3600 -Dnetworkaddress.cache.ttl=3600 -Dsun.net.inetaddr.negative.ttl=300 -Dnetworkaddress.cache.negative.ttl=300 -Dsun.nio.PageAlignDirectMemory=true -Djava.net.preferIPv4Stack=true -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=conf/​logging.properties -Dtc.work.path=work -Dtc.log.path=logs -Djavax.servlet.context.tempdir=work -Djdk.nio.maxCachedBufferSize=262144 -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /​usr/​local/​cbs/​tomcat/​bin/​bootstrap.jar:/​usr/​local/​cbs/​tomcat/​bin/​tomcat-juli.jar -Dcatalina.base=/​usr/​local/​cbs -Dcatalina.home=/​usr/​local/​cbs/​tomcat -Djava.io.tmpdir=/​usr/​local/​cbs/​temp org.apache.catalina.startup.Bootstrap start<​br>​ 
 +root&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​2006&​nbsp;&​nbsp;&​nbsp;&​nbsp;​1996&​nbsp;&​nbsp;​0 10:36 pts/​0&​nbsp;&​nbsp;&​nbsp;&​nbsp;​00:​00:​00 grep --color=auto java<​br>​ 
 +#<​br>​ 
 +#<​br>​ 
 +# ps -ef|grep nfs<​br>​ 
 +root&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​723&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​1&​nbsp;&​nbsp;​0 10:25 ?&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​00:​00:​00 /​usr/​local/​cbs/​nfs/​bin/​NfsLinX64 -logfile /​usr/​local/​cbs/​nfs/​log/​debug.log -pidfile /​var/​run/​cbsnfs.pid<​br>​ 
 +root&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​2009&​nbsp;&​nbsp;&​nbsp;&​nbsp;​1996&​nbsp;&​nbsp;​0 10:37 pts/​0&​nbsp;&​nbsp;&​nbsp;&​nbsp;​00:​00:​00 grep --color=auto nfs 
 +     </​td>​ 
 +    </​tr>​ 
 +   </​table> ​  
 + 
 + 
 +</​font></​li>​
 </ol> </ol>
 </​html>​ </​html>​
-<​code>​ 
-Example: 
-======= 
-# ps -ef| grep java 
-root        1372       1 12 10:26 ?        00:01:19 /​usr/​local/​cbs/​java/​bin/​java -Djava.util.logging.config.file=/​usr/​local/​cbs/​conf/​logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.library.path=/​usr/​local/​cbs/​lib/​LinX64 -DCATALINA_PID=/​var/​run/​obsr.pid -Xrs -Xms512m -Xmx2048m -Xss384k -XX:​MetaspaceSize=96m -XX:​MaxMetaspaceSize=256m -XX:​MaxDirectMemorySize=512m -XX:​NewRatio=3 -XX:​SurvivorRatio=32 -XX:​MinHeapFreeRatio=20 -XX:​MaxHeapFreeRatio=80 -XX:​+PrintGCDetails -XX:​+PrintGCDateStamps -XX:​+UseConcMarkSweepGC -XX:​+UseCMSInitiatingOccupancyOnly -XX:​CMSInitiatingOccupancyFraction=85 -XX:​+ScavengeBeforeFullGC -XX:​+CMSScavengeBeforeRemark -Dsun.net.inetaddr.ttl=3600 -Dnetworkaddress.cache.ttl=3600 -Dsun.net.inetaddr.negative.ttl=300 -Dnetworkaddress.cache.negative.ttl=300 -Dsun.nio.PageAlignDirectMemory=true -Djava.net.preferIPv4Stack=true -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=conf/​logging.properties -Dtc.work.path=work -Dtc.log.path=logs -Djavax.servlet.context.tempdir=work -Djdk.nio.maxCachedBufferSize=262144 -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /​usr/​local/​cbs/​tomcat/​bin/​bootstrap.jar:/​usr/​local/​cbs/​tomcat/​bin/​tomcat-juli.jar -Dcatalina.base=/​usr/​local/​cbs -Dcatalina.home=/​usr/​local/​cbs/​tomcat -Djava.io.tmpdir=/​usr/​local/​cbs/​temp org.apache.catalina.startup.Bootstrap start 
-root        2006    1996  0 10:36 pts/0    00:00:00 grep --color=auto java 
-# 
-# 
-# ps -ef|grep nfs 
-root         ​723 ​      ​1 ​ 0 10:25 ?        00:00:00 /​usr/​local/​cbs/​nfs/​bin/​NfsLinX64 -logfile /​usr/​local/​cbs/​nfs/​log/​debug.log -pidfile /​var/​run/​cbsnfs.pid 
-root        2009    1996  0 10:37 pts/0    00:00:00 grep --color=auto nfs 
-</​code>​ 
  
 ===== Keywords ===== ===== Keywords =====
-systemctl, ​CentosRed Hat EnterpriseUbuntu, install, ​cbs services, nfs service+systemctl, ​centosredhead, redhead, enterprise, ubuntu, install, ​installation,​ installed, service, ​services, nfs
public/8084_issue/cbs_service_on_linux_not_automatically_starting_after_a_server_reboot.txt · Last modified: 2021/12/14 02:21 by anna.olalia

Page Tools