aggregate
aggregate copied to clipboard
Running ODK Installer Unattended Results in Errors Requiring Unnecessary Options
I am trying to run the ODK Aggregate Installer v1.4.15 for Linux x64. I am configuring for Tomcat and PostgreSQL and have the following options in my options file....
mode=unattended
debuglevel=2
debugtrace=debug.txt
installer-language=en
parent_installdir=/path/to/artifacts
tomcat_http_port=8080
tomcat_https_port=443
raw_hostname=test.example.org
platform=postgresql
database_port=5432
database_hostname=127.0.0.1
jdbc_username=odk_aggregate
jdbc_password=fakepassword123!
jdbc_database=odk_aggregate
jdbc_schema=odk_aggregate
instance_display_name=AggregateName
username=admin
I am met with the following error message:
$ ./ODK_Aggregate_v1.4.15_linux-x64-installer.run --optionfile ./optionfile.txt
There has been an error.
The following options were not specified and are required:
--jdbc_sqlserver_url
--jdbc_gae_mysql_instance_name
--jdbc_gae_mysql_password
--app_id
--master_slave_app_id
Debug file written.
It appears that the options above are required to be non-empty even though I am not configuring to use SQL Server, MySQL, or Google App engine.
--jdbc_sqlserver_url
https://github.com/opendatakit/aggregate/blob/7efa916176778c64ed73336dae61cd68514d12d6/bitrock-installer/components/params.xml#L825
--jdbc_gae_mysql_instance_name
https://github.com/opendatakit/aggregate/blob/7efa916176778c64ed73336dae61cd68514d12d6/bitrock-installer/components/params.xml#L861
--jdbc_gae_mysql_password
https://github.com/opendatakit/aggregate/blob/7efa916176778c64ed73336dae61cd68514d12d6/bitrock-installer/components/params.xml#L879
--app_id
https://github.com/opendatakit/aggregate/blob/7efa916176778c64ed73336dae61cd68514d12d6/bitrock-installer/components/params.xml#L970
--master_slave_app_id
https://github.com/opendatakit/aggregate/blob/7efa916176778c64ed73336dae61cd68514d12d6/bitrock-installer/components/params.xml#L1018
Hi @johnzimm! We're in the middle of reworking the ways to install Aggregate and I'm hoping we'll be able clean this up when the rework is done. Can't promise an ETA, but please keep filing issues you come across!
Hi @johnzimm! I think everything is ready now to work on your suggestions about those installer options. I agree that having to define every option (even those that won't be ultimately used) doesn't look good.
Do you want to maybe create a PR with those changes? You'll find that producing an installer with the new project structure is much easier than before and any feedback will be much appreciated too :)
Here you have the instructions: ODK Aggregate - Installer generation
Please, don't hesitate to ask for help here or on our #aggregate-code Slack channel