Page MenuHomeSoftware Heritage

data/defaults.yaml: Set search as empty dict in webapp conf
ClosedPublic

Authored by anlambert on Mon, Jan 13, 3:34 PM.

Details

Summary

When a conf entry equals None, the explicit default one will be used instead.
So ensure to set an empty dict for the search conf entry of swh-web to avoid
search errors until swh-search is deployed in production.

When testing inside the docker environment without that fix, the following
errors are reported:

swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.connectionpool._new_conn:225 - Starting new HTTP connection (1): 127.0.0.1:5010
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.util.retry.increment:438 - Incremented Retry for (url='/origin/search'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
swh-web_1                       | [13/Jan/2020 14:27:41] [WARNING] urllib3.connectionpool.urlopen:745 - Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe0cc585550>: Failed to establish a new connection: [Errno 111] Connection refused')': /origin/search
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.connectionpool._new_conn:225 - Starting new HTTP connection (2): 127.0.0.1:5010
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.util.retry.increment:438 - Incremented Retry for (url='/origin/search'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
swh-web_1                       | [13/Jan/2020 14:27:41] [WARNING] urllib3.connectionpool.urlopen:745 - Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe0cc5859d0>: Failed to establish a new connection: [Errno 111] Connection refused')': /origin/search
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.connectionpool._new_conn:225 - Starting new HTTP connection (3): 127.0.0.1:5010
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.util.retry.increment:438 - Incremented Retry for (url='/origin/search'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
swh-web_1                       | [13/Jan/2020 14:27:41] [WARNING] urllib3.connectionpool.urlopen:745 - Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe0cc5746d0>: Failed to establish a new connection: [Errno 111] Connection refused')': /origin/search
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.connectionpool._new_conn:225 - Starting new HTTP connection (4): 127.0.0.1:5010

Diff Detail

Repository
rSPSITE puppet-swh-site
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

anlambert created this revision.Mon, Jan 13, 3:34 PM
vlorentz accepted this revision.Mon, Jan 13, 4:28 PM
vlorentz added a subscriber: vlorentz.

oops

This revision is now accepted and ready to land.Mon, Jan 13, 4:28 PM