You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the context of sciencemesh/sciencemesh#105 and while testing the wopiserver deployment together with a ruuning Reva and its simplified config from #826 (standalone.toml), we hit an error when trying to upload a file to Reva from the wopiserver integration tests:
2020-07-01T15:23:53 wopiserver.test[35] ERROR
msg="Exception when uploading file to Reva"
reason="HTTPConnectionPool(host='localhost', port=19001): Max retries exceeded with url: /data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd1b0677e80>: Failed to establish a new connection: [Errno 111] Connection refused'))"
In the context of sciencemesh/sciencemesh#105 and while testing the wopiserver deployment together with a ruuning Reva and its simplified config from #826 (
standalone.toml
), we hit an error when trying to upload a file to Reva from the wopiserver integration tests:By looking at the revad logs:
... we realized the Datagateway is using
localhost
as fallback when no url is provided inreva/pkg/sharedconf/sharedconf.go
Lines 44 to 47 in e8f1815
For some better and more flexible defaults, we've discussed the option to include a 2nd fallback: the
hostname
, which e.g. in kubernetes will resolve based on https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-hostname-and-subdomain-fields - it won't be as "correct" as the (kubernetes) service name, but will point at the right instance. The preference could be:hostname
, if set.localhost
.The text was updated successfully, but these errors were encountered: