Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to install with missing logstash zipfile breaks subsequent install attempts. #4

Open
alexdunncs opened this issue Dec 16, 2020 · 0 comments

Comments

@alexdunncs
Copy link

Steps to reproduce:

  • Attempt installation with missing logstash
  • Copy logstash zipfile to /usr/local/bin/cws/server/
  • Attempt reinstallation

Result:
Installation fails, per relevant log output below

Cause:
It appears that subsequent installations do not attempt to make the following directories

  • /usr/local/bin/cws/server/apache-tomcat-9.0.33/webapps/camunda
  • /usr/local/bin/cws/server/apache-tomcat-9.0.33/webapps/camunta/WEB-INF
  • /usr/local/bin/cws/server/apache-tomcat-9.0.33/webapps/engine-rest
  • /usr/local/bin/cws/server/apache-tomcat-9.0.33/webapps/engine-rest/WEB-INF

This causes failure of attempts to copy files to these directories.

[user@100 ~]$ /usr/local/bin/cws/configure.sh /tmp/init/configuration.properties

[...]

No issues found with installation configuration.

 Created directory: /usr/local/bin/cws/config/work
 Created directory: /usr/local/bin/cws/config/work/cws-engine
 Created directory: /usr/local/bin/cws/config/work/cws-ui
 Created directory: /usr/local/bin/cws/config/work/tomcat_lib
 Created directory: /usr/local/bin/cws/config/work/tomcat_bin
 Created directory: /usr/local/bin/cws/config/work/tomcat_conf
 Created directory: /usr/local/bin/cws/config/work/camunda_mods
 Created directory: /usr/local/bin/cws/config/work/engine-rest_mods
 Created directory: /usr/local/bin/cws/config/work/elasticsearch
 Created directory: /usr/local/bin/cws/config/work/logging
 Updating server.xml (to point to CWS database)...
 Updating cws-engine/applicationContext.xml...
 Updating cws-engine/cws-engine.properties...
 Updating /usr/local/bin/cws/config/work/tomcat_bin/setenv.sh...
 Updating tomcat/conf/web.xml..
 Updating webapps/camunda/WEB_INF/web.xml..
 Updating webapps/engine-rest/WEB_INF/web.xml..
ERROR: Problem copying /usr/local/bin/cws/config/work/engine-rest_mods/web.xml to /usr/local/bin/cws/server/apache-tomcat-9.0.33/webapps/engine-rest/WEB-INF/web.xml (java.nio.file.NoSuchFileException: /usr/local/bin/cws/server/apache-tomcat-9.0.33/webapps/engine-rest/WEB-INF/web.xml)

[configure.sh] ERROR: Problems detected during CWS Installer, aborting installation.
[user@100 ~]$ mkdir /usr/local/bin/cws/server/apache-tomcat-9.0.33/webapps/engine-rest
[user@100 ~]$ mkdir /usr/local/bin/cws/server/apache-tomcat-9.0.33/webapps/engine-rest/WEB-INF
[user@100 ~]$ /usr/local/bin/cws/configure.sh /tmp/init/configuration.properties

[...]

No issues found with installation configuration.

 Created directory: /usr/local/bin/cws/config/work
 Created directory: /usr/local/bin/cws/config/work/cws-engine
 Created directory: /usr/local/bin/cws/config/work/cws-ui
 Created directory: /usr/local/bin/cws/config/work/tomcat_lib
 Created directory: /usr/local/bin/cws/config/work/tomcat_bin
 Created directory: /usr/local/bin/cws/config/work/tomcat_conf
 Created directory: /usr/local/bin/cws/config/work/camunda_mods
 Created directory: /usr/local/bin/cws/config/work/engine-rest_mods
 Created directory: /usr/local/bin/cws/config/work/elasticsearch
 Created directory: /usr/local/bin/cws/config/work/logging
 Updating server.xml (to point to CWS database)...
 Updating cws-engine/applicationContext.xml...
 Updating cws-engine/cws-engine.properties...
 Updating /usr/local/bin/cws/config/work/tomcat_bin/setenv.sh...
 Updating tomcat/conf/web.xml..
 Updating webapps/camunda/WEB_INF/web.xml..
 Updating webapps/engine-rest/WEB_INF/web.xml..
 Unzipping /usr/local/bin/cws/server/logstash-6.4.2.zip to /usr/local/bin/cws/server
 Unzip of /usr/local/bin/cws/server/logstash-6.4.2.zip to /usr/local/bin/cws/server complete.
 Opening up permissions of file: /usr/local/bin/cws/server/logstash-6.4.2/bin/logstash ...
 Updating cws-logstash.conf...
 Put logstash conf file into place.
END CwsInstaller

---------------------------------------------------------------
Your configuration settings have been saved to:                
  /usr/local/bin/cws/configuration.properties

If no errors were seen above, then you are ready to launch CWS!
  Run:
    ./start_cws.sh

  Then access CWS with a browser at:
     <hostname redacted>
---------------------------------------------------------------

Writing configuration properties to: /usr/local/bin/cws/configuration.properties
[configure.sh] Finished

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant