Skip to main content
June 7, 2021
Question

Validation Error in file custom.properties.dev

  • June 7, 2021
  • 1 reply
  • 0 views

Hello Appian Community,

Hope you are doing fine!

I am new in Appian and I am installing an Appian 21.2 HA Distributed environment in RedHat RHEL 8.4, so far all the installation steps were successfully completed but I am stuck in the Validation step. This is my configuration:

  • Running as user Appian.
  • Created a new environment called dev.
  • Environment variables:
    • APPIAN_HOME=/opt/appian/appian
    • JAVA_HOME=/opt/appian/appian/java
    • PATH=/opt/appian/.local/bin:/opt/appian/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/opt/appian/appian/java/bin
  • Then my configuration files located in /opt/appian/appian/conf (I just modified the following files):
    • appian-topology.xml.dev
      
      
      
      
      
        
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
        
        
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
        
        
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
        
        
          
          
          
        
        
          
          
          
        
        
          
          
          
        
        
          
          
          
        
      
      
    • custom.properties.dev
      #################
      #### General ####
      #################
      
      conf.suite.SCHEME=https
      conf.suite.SERVER_AND_PORT=appianloadbalancer.mydomain.com
       
       
       
      ###########################################
      #### Application Server Configurations ####
      ###########################################
      ## The initial and maximum sizes for the application server heap
      conf.appserver.minHeapSize=4096m
      conf.appserver.maxHeapSize=8192m
       
       
      ###############
      #### Email ####
      ###############
       
      conf.mailhandler.ntf_sndr_addr=appian-dev-noreply@mydomain.com
      conf.mailhandler.email.domain=mydomain.com
      conf.mailhandler.mail.smtp.host=mailserver.mydomain.com:25
       
       
      ###########################
      #### Process Execution ####
      ###########################
      
      server.conf.processcommon.MAX_EXEC_ENGINE_LOAD_METRIC=120
       
      ######################
      #### Data Sources ####
      ######################
       
      conf.data.APPIAN_DATA_SOURCE=jdbc/AppianDS
      #conf.data.datasources=
      
    • passwords.properties.dev (just added the password and admin user)
    • tomcatResources.xml.dev
        
      

The problem comes when I try to validate my configuration I got the following error:

./_admin/_scripts/configure/configure.sh

======================================================================
Configure Appian

This script assists with configuring Appian on various environments.
======================================================================

Repository location: /data/appian/repository
Registered environments: dev


1 - Change repository
2 - Create initial backup of Appian installation
3 - Register an environment
4 - Validate configurations
5 - Deploy configurations
6 - Tools
B - Back
Q - Quit
> 4
Validating configurations for environment dev
Validation Error in file custom.properties.dev: missing property conf.data.APPIAN_DATA_SOURCE
Validation Error in file custom.properties.dev: missing property conf.suite.SERVER_AND_PORT
The message received from the daemon indicates that the daemon has disappeared.
Build request sent: Build{id=a56832ec-6329-4fa8-8605-0d99c48fce0b, currentDir=/opt/appian/appian/_admin/_scripts/configure}
Attempting to read last messages from the daemon log...
Daemon pid: 10746
  log file: /opt/appian/.gradle/daemon/6.1.1/daemon-10746.out.log
----- Last  20 lines from daemon log file - daemon-10746.out.log -----
2021-06-07T11:08:21.779+0200 [DEBUG] [org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Marking busy by address: [d24161d6-f390-4cd3-997a-a75355e7f068 port:42857, addresses:[localhost/127.0.0.1]]
2021-06-07T11:08:21.779+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry.
2021-06-07T11:08:21.780+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2021-06-07T11:08:21.781+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2021-06-07T11:08:21.783+0200 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] resetting idle timer
2021-06-07T11:08:21.784+0200 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] daemon is running. Sleeping until state changes.
2021-06-07T11:08:21.784+0200 [INFO] [org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy] Daemon is about to start building Build{id=a56832ec-6329-4fa8-8605-0d99c48fce0b, currentDir=/opt/appian/appian/_admin/_scripts/configure}. Dispatching build started information...
2021-06-07T11:08:21.784+0200 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 18: dispatching org.gradle.launcher.daemon.protocol.BuildStarted@3b7f27f1
2021-06-07T11:08:21.785+0200 [DEBUG] [org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment] Configuring env variables: {PATH=/opt/appian/.local/bin:/opt/appian/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/lib/oracle/19.11/client64/bin:/opt/puppetlabs/bin:/opt/appian/appian/java/bin, APPIAN_HOME=/opt/appian/appian, HISTCONTROL=ignoredups, MANPATH=:/opt/puppetlabs/puppet/share/man, HISTSIZE=1000, JAVA_HOME=/opt/appian/appian/java, TERM=xterm, TNS_ADMIN=/etc/tns_admin, LANG=en_US.UTF-8, SUDO_USER=root, SUDO_GID=0, MAIL=/var/spool/mail/appian, LD_LIBRARY_PATH=/usr/lib/oracle/19.11/client64/lib, LOGNAME=appian, SUDO_UID=0, PWD=/opt/appian/appian/_admin/_scripts/configure, S_COLORS=auto, LESSOPEN=||/usr/bin/lesspipe.sh %s, SHELL=/bin/bash, OLDPWD=/opt/appian/appian/_admin/_scripts/configure, USER=appian, SUDO_COMMAND=/bin/bash, HOSTNAME=server1, LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:, SHLVL=1, HOME=/opt/appian}
2021-06-07T11:08:21.791+0200 [DEBUG] [org.gradle.launcher.daemon.server.exec.LogToClient] About to start relaying all logs to the client via the connection.
2021-06-07T11:08:21.791+0200 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] The client will now receive all logging from the daemon (pid: 10746). The daemon log file: /opt/appian/.gradle/daemon/6.1.1/daemon-10746.out.log
2021-06-07T11:08:21.792+0200 [DEBUG] [org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon] Requesting daemon stop after processing Build{id=a56832ec-6329-4fa8-8605-0d99c48fce0b, currentDir=/opt/appian/appian/_admin/_scripts/configure}
2021-06-07T11:08:21.792+0200 [LIFECYCLE] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Daemon will be stopped at the end of the build stopping after processing
2021-06-07T11:08:21.792+0200 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Stop as soon as idle requested. The daemon is busy: true
2021-06-07T11:08:21.793+0200 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] daemon stop has been requested. Sleeping until state changes.
2021-06-07T11:08:21.795+0200 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has started executing the build.
2021-06-07T11:08:21.795+0200 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] Executing build with daemon context: DefaultDaemonContext[uid=e9851818-63ea-4a26-b138-0f7c132b467e,javaHome=/opt/appian/appian/java,daemonRegistryDir=/opt/appian/.gradle/daemon,pid=10746,idleTimeout=120000,priority=NORMAL,daemonOpts=-XX:MaxMetaspaceSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
Validation Error in file custom.properties.dev: missing property conf.data.APPIAN_DATA_SOURCE
Validation Error in file custom.properties.dev: missing property conf.suite.SERVER_AND_PORT
Daemon vm is shutting down... The daemon has exited normally or was terminated in response to a user interrupt.
----- End of the daemon log -----


FAILURE: Build failed with an exception.

* What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
The configurations for the environment dev are incorrect. Update and run validation again.

As you can see, the error is the following:

Validating configurations for environment dev
Validation Error in file custom.properties.dev: missing property conf.data.APPIAN_DATA_SOURCE
Validation Error in file custom.properties.dev: missing property conf.suite.SERVER_AND_PORT

But in my configuration file custom.properties.dev those fields are configured and match with the Datasource name and with my server (https using 443 we dont have to add the port regarding the comments in the original custom.properties.dev):

conf.suite.SERVER_AND_PORT=appianloadbalancer.mydomain.com
conf.data.APPIAN_DATA_SOURCE=jdbc/AppianDS

Could you help me with this problem please?

Thanks a lot in advance,

Best regards,

1 reply

June 24, 2021

Hello all,

In the documentation does not mention it, but you have to copy the custom.properties and the appian-topology.xml in the following locations:

<APPIAN_HOME>/data-server/conf/custom.properties

<APPIAN_HOME>/data-server/conf/appian-topology.xml

With this all is working fine now.

Best regards,