This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14:02:49 rummager.1 | ERROR Elasticsearch::Client : BadRequest error from elasticsearch. Response: {"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[1h_dYBGaTmG0vFxQ0L5W0g][detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51][0]: SearchParseException[[detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51][0]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "First Hearing Digital Case File 1.0.0", | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"type": "object", | |
"properties": { | |
"pti_urn": { | |
"type": "string", | |
"pattern": "[A-Z]{4}[0-999999][0-9][0-9]" | |
}, | |
"type": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"base_path": "/vat-rates", | |
"content_id": "a5d86183-7252-4426-aad2-3f732f7f2581", | |
"title": "VAT rates", | |
"description": "Current VAT rates - standard 20% and rates for reduced rate and zero-rated items", | |
"format": "answer", | |
"publishing_app": "publisher", | |
"rendering_app": "frontend", | |
"routes": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ fleetctl journal -f -sudo teamcity-agent@1 | |
-- Logs begin at Mon 2015-05-18 12:58:49 . -- | |
May 18 15:25:41 ip-192-168-1-13.eu-west-1.compute.internal bash[17760]: time="2015-05-18T15:25:41Z" level=info msg="+job serveapi(unix:///var/run/docker.sock)" | |
May 18 15:25:41 ip-192-168-1-13.eu-west-1.compute.internal bash[17760]: time="2015-05-18T15:25:41Z" level=info msg="Listening for HTTP on unix (/var/run/docker.sock)" | |
May 18 15:25:42 ip-192-168-1-13.eu-west-1.compute.internal bash[17760]: time="2015-05-18T15:25:42Z" level=warning msg="Udev sync is not supported. This will lead to unexpected behavior, data loss and errors" | |
May 18 15:25:42 ip-192-168-1-13.eu-west-1.compute.internal bash[17760]: time="2015-05-18T15:25:42Z" level=error msg="There are no more loopback devices available." | |
May 18 15:25:42 ip-192-168-1-13.eu-west-1.compute.internal bash[17760]: time="2015-05-18T15:25:42Z" level=fatal msg="Shutting down daemon due to errors: error intializing graphdriver: loopback mounting failed" | |
May 18 15:25:43 ip-192-1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"coreos:\n", | |
" etcd:\n", | |
" discovery: ", {"Ref": "DiscoveryURL"}, "\n", | |
" addr: $public_ipv4:4001\n", | |
" peer-addr: $private_ipv4:7001\n", | |
" units:\n", | |
" - name: etcd.service\n", | |
" command: start\n", | |
" - name: fleet.service\n", | |
" command: start\n", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[template] | |
src = "django.py.tmpl" | |
dest = "/app/vis/settings/local.py" | |
keys = [ | |
"/services/postgres" | |
] | |
reload_cmd = "supervisorctl -c /etc/supervisor/supervisord.conf restart uwsgi-vis" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{$db := json (getv "/services/postgres")}} | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql_psycopg2', | |
'NAME': '{{$db.database}}', | |
'USER': '{{$db.username}}', | |
'PASSWORD': '{{$db.password}}', | |
'HOST': '{{$db.ipv4_addr}}', | |
'PORT': '{{$db.port}}', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=PostgreSQL server discovery service | |
# Requirements | |
Requires=etcd.service | |
Requires=docker.service | |
Requires=postgres.service | |
# Dependency ordering | |
After=etcd.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=VIS django service on port 8080 | |
# Requirements | |
Requires=etcd.service | |
Requires=docker.service | |
Requires=django-discovery@%i.service | |
Requires=postgres-discovery.service | |
# Dependency ordering |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=VIS django discovery service | |
# Requirements | |
Requires=etcd.service | |
Requires=django@%i.service | |
# Dependency ordering and binding | |
After=etcd.service | |
After=django@%i.service |