AtlasOfLivingAustralia / ala-install

Ansible playbooks for installing the ALA components
https://www.ala.org.au
Apache License 2.0
26 stars 52 forks source link

Ubuntu 22.04 current issues #599

Open vjrj opened 1 year ago

vjrj commented 1 year ago
geonbAtBiodiv commented 1 year ago

I tried to set up atlas node on 22.04 server here is my documentation

in spatial postgres seems to automatically install postgis 3.3 but ansible referes to the scripts of 3.2 but it seems the change to postgis scripts 3.3 doesn't satisfy the implementation!

failed: [spatial] (item=/usr/share/postgresql/14/contrib/postgis-3.2/postgis.sql) => {"ansible_loop_var": "item", "changed": true, "cmd": ["psql", "-d", "postgis_template", "-f", "/usr/share/postgresql/14/contrib/postgis-3.2/postgis.sql"], "delta": "0:00:00.033540", "end": "2023-01-11 09:24:54.753608", "item": "/usr/share/postgresql/14/contrib/postgis-3.2/postgis.sql", "msg": "non-zero return code", "rc": 1, "start": "2023-01-11 09:24:54.720068", "stderr": "psql: error: /usr/share/postgresql/14/contrib/postgis-3.2/postgis.sql: No such file or directory", "stderr_lines": ["psql: error: /usr/share/postgresql/14/contrib/postgis-3.2/postgis.sql: No such file or directory"], "stdout": "", "stdout_lines": []}

in userdetails

TASK [userdetails : create auth ip in db if does not exists] *********************************************************** failed: [spatial] (item=176.9.166.203) => {"ansible_loop_var": "item", "changed": true, "cmd": "mysql --host=localhost --port=3306 --user=cas --password=servus emmet -e \"set @ip='176.9.166.203'; set @description=''; source /data/userdetails/setup/auth-ip.sql;\"", "delta": "0:00:00.007799", "end": "2023-01-11 16:37:13.126725", "item": "176.9.166.203", "msg": "non-zero return code", "rc": 1, "start": "2023-01-11 16:37:13.118926", "stderr": "mysql: [Warning] Using a password on the command line interface can be insecure.\nERROR 1267 (HY000) at line 2 in file: '/data/userdetails/setup/auth-ip.sql': Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,IMPLICIT) for operation '='", "stderr_lines": ["mysql: [Warning] Using a password on the command line interface can be insecure.", "ERROR 1267 (HY000) at line 2 in file: '/data/userdetails/setup/auth-ip.sql': Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,IMPLICIT) for operation '='"], "stdout": "", "stdout_lines": []}

there was probaply missing some configuration fact

userDetails.url=https://auth.biodivdev.at/userdetails/ userdetails.baseUrl=https://auth.biodivdev.at/userdetails/

it started after adding this details

image-service starts but I couldn't test because in collections upload of testdata failed admin section can not be tested

It's difficult to know what causes the issues to the other services I'm still not familiar to all of the services dependencies.

our setup: server 1 -> java 8: records records-ws, solr, sds, Branding, biocache-cli, nameindexer, namematching,biocache-store, ecodata server 2 -> java 11: collections, species, species-ws, images, Lists, Regions, Logger, Auth, User Deatails, API-keys, CAS Management, Spatial, Spatial Webservice, Geoserver, Webapi, Dashboard, Alerts, Data-quality, Biocollect, PDFgen, Ecodata-reporting

geonbAtBiodiv commented 1 year ago

TASK [biocollect : copy all config.properties] ************************************************************************* fatal: [spatial]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'bie_ws_base_url' is undefined"}

bie_ws_base_url has to be added to the inventories

vjrj commented 1 year ago

Thanks @geonbAtBiodiv. Meanwhile I'll add that new variable to our generated inventories.

vjrj commented 1 year ago

Done, @geonbAtBiodiv : https://github.com/living-atlases/generator-living-atlas/commit/5a8467b185ac34b6eab943d5afbdefa541430fca