Comments (16)
race condition again i guess, can you retry with this before the 'create georchestra user' task ?
wait_for: port=5432
should be equivalent to
wait_for: path=/var/run/postgresql/.s.PGSQL.5432 state=present
but im not sure having the socket is enough of a clue for psql being fully available.
from ansible.
Will retry tonight on my home computer.
Works without the fix this morning on my c2c computer...
from ansible.
This did not fix it.
Looks like 8efd230 is the culprit.
from ansible.
Seems like a vagrant-specific issue, since this fixes it:
diff --git a/playbooks/georchestra.yml b/playbooks/georchestra.yml
index 9c077d1..f58d3a0 100644
--- a/playbooks/georchestra.yml
+++ b/playbooks/georchestra.yml
@@ -83,7 +83,7 @@
extractor_datadir: /srv/data/extractor/
tomcat_keystore_pass: tomcatkstp
tomcat_basedir: /srv/tomcat
- system_locale: en_US.UTF-8
+ system_locale: fr_FR.UTF-8
logs_basedir: /srv/log
force_https: true
ldapadmin_adminemail: [email protected]
from ansible.
That.. makes no sense to me :) If you use en_US, postgresql doesnt start in the remote VM ?
from ansible.
right, makes no sense to me too...
from ansible.
oh, maybe an empty vm settings depends on the host settings, and en_US is not in the list of 'available' locales to locale_gen ?
from ansible.
possibly
from ansible.
Correct: http://stackoverflow.com/questions/27292368/vagrantfile-set-locale-for-ssh-agent & https://gist.github.com/mlafeldt/2477731
from ansible.
Eww, gross.. so what's the 'right' way to fix this ? Fix vagrand config/sample invocation ? The playbook ?
from ansible.
http://stackoverflow.com/a/34582489 seems a minimal fix, does it work for you ?
from ansible.
Will try tonight.
from ansible.
@Vampouille is going to have a look :-)
from ansible.
Seems like I fixed this issue by preventing the guest ssh server to accept the LANG and LC_* environment variables from my host:
diff --git a/Vagrantfile b/Vagrantfile
index fe33e82..3440e1d 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -4,6 +4,12 @@
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
+$script = <<SCRIPT
+echo configuring ssh in guest...
+sudo sed -i '/AcceptEnv/d' /etc/ssh/sshd_config
+sudo /etc/init.d/ssh restart
+SCRIPT
+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
@@ -31,6 +37,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "georchestra" do |georchestra|
end
+ config.vm.provision "shell", inline: $script
+
config.vm.provision "ansible" do |ansible|
# execute this playbook for vm provisioning:
ansible.playbook = "playbooks/georchestra.yml"
For the record, here are the locales on my host:
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=
... while in the box, they are:
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
from ansible.
An improvement over the previous patch would be:
- run the pre-provisioning step, commenting out the AcceptEnv line
- provision with ansible
- post-provision step, restoring the AcceptEnv line
Opinions ?
from ansible.
http://stackoverflow.com/a/34582489 seems a minimal fix, does it work for you ?
Have you tried this instead ? Seems 'simpler' than a shell hack
from ansible.
Related Issues (20)
- geOrchestra version HOT 1
- Add Mviewer and Mviewer as optional installable viewer HOT 1
- gwc - use the config dir java env variable
- geonetwork - get rid of the geonetwork postgresql user
- MviewerStudio should only be accessible HOT 1
- Remove buster from ansible
- Update datahub configuration HOT 4
- tomcat proxycas - remove 8443 SSL port HOT 2
- migration bookworm/debian 12
- ALLOW_WORLD_READABLE_TMPFILES deprecated
- faq - remote ssh install errors : need sudo password
- Geoserver 404 and datafeeder unavailable HOT 6
- Could not fetch Mapstore2 artifacts from github HOT 3
- Mapstore2 Could not instantiate appender named "fileAppender".
- Mapstore2 - no target-mapping entry HOT 1
- ldap setup can fail if the target hostname is "...georchestra.org" HOT 1
- debian bullseye support HOT 3
- [ Mapstore ] Datadir HOT 2
- parts of the tomcat config files from /etc/default ignored ? HOT 1
- mapstore - switch to the package generated onto packages.g.o HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible.