SaaS deployment FAQ
This topic answers common questions about SaaS deployment.
How do I increase the startup memory for a node?
Find the build.xml file for each node and adjust the value of maxmemory as needed. For example:
<java jar="dist/project.jar" fork="true" maxmemory="4g"/>Change it to:
<java jar="dist/project.jar" fork="true" maxmemory="16g"/>During deployment, the interface is inaccessible. How do I view the specific error message?
Check the following file to locate the specific error message.
/home/admin/adam-eoa/logs/application.logWhen a machine has multiple bonded NICs, how do I request a license?
Use the MAC address of any network interface controller (NIC) to request the license.
Why do I get an invalid distance code error when I execute a script?
This error occurs because the data packet is corrupted, which causes the unpacking process to fail. Verify that the MD5 and SHA1 values of the data packet match the values from the online distribution.
Centos/Ubuntu
md5sum adam-saas-release.tar sha1sum adam-saas-release.tarmd5 adam-saas-release.tar shasum adam-saas-release.tar
Why does the Yum installation of JDK fail?
This may occur because the Yum source is unavailable. You can download Oracle JDK 8 from the Oracle website. For more information about the installation steps, see the installation document.
How do I change the ports if they conflict with other services during deployment?
The /home/admin/ directory contains the parameters.properties configuration file. This file lists all ports that are used by the adam-saas services. You can adjust the ports as needed:
adam-file-storage-web.server.port=8001
adam-file-storage-web.management.port=8002
adam-eoa.server.port=7001
adam-eoa.management.port=7002
adam-stand-alone-one.server.port=10081
adam-stand-alone-one.management.port=10082After you modify the ports, run the ./run.sh restart command to restart adam-saas.
What should I do if an ES connection error occurs when starting a service?
Delete the /home/admin/elasticsearch/config/elasticsearch.yml file and restart the service.
What should I do if the SaaS address is inaccessible from a browser?
Check whether the eoa service started successfully.
Run the
ps -ef|grep adam-eoacommand to check for the corresponding process, or check the eoa log file.Check whether the server port is open.
What should I do if a JAVA_HOME exception appears in Service_out.log?
Example error message:
Error: JAVA_HOME is not defined correctly.
We cannot execute /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64/jre/bin/java/bin/javaThis error occurs because the Java startup program cannot be found due to an incorrect JAVA_HOME configuration.
Find the JDK installation directory.
sudo which javaRun the following code:
sudo export JAVA_HOME=JDK_root_pathReconfigure the JAVA_HOME path and then restart the service.
Why does the error You can't specify target table for update in FROM clause occur in MySQL?
Add the following content to the MySQL startup parameters and restart MySQL.
optimizer_switch = 'derived_merge=off'What should you do when running the . / run .sh init command results in the error class not found:JDBC driver com.mysql.jdbc.Driver could not be loaded?
The following is an example of the error:
This error usually occurs because the Ant version is incorrect. To check the Ant version, run the following command:
ant -vThe version information in the output is as follows:
Apache Ant(TM) version 1.9.14 compiled on March 12 2019
Trying the default build file: build.xml
Buildfile: build.xml does not exist!
Build failedThe Ant version must be 1.9.14, which is included in the installation package. If you are using a different version, reconfigure the Ant environment variable as follows:
In the
/etc/profilefile, add the following information:export ANT_HOME=/home/admin/ant export PATH=$PATH:$ANT_HOME/binRun the
source /etc/profilecommand to apply the configuration.