Tethys docker on Mac installation

20 views
Skip to first unread message

Marty Landsfeld

unread,
Dec 8, 2020, 1:16:43 PM12/8/20
to Tethys Platform
I am trying to set up Tethys on a Mac (2014, OS 10.14.6) and I have installed Anaconda and Docker and set up my portal_config.yml file. I can start the docker with

(tethys)$ tethys docker start
PostGIS/Database container not installed.
GeoServer container not installed.52 
North WPS container not installed.
THREDDS container not installed.

But I can not access the Web Admin interface at localhost:8000/admin. I get a connection refused error because it doesn't look like it is running on any port. Is there another step I am missing? Do I need to install all of these docker images first?

Thanks,
Marty

Scott Christensen

unread,
Dec 8, 2020, 3:21:38 PM12/8/20
to Marty Landsfeld, Tethys Platform
Running "tethys docker start" will just start the Dockers that run 3rd party services. It does not actually start the tethys server. To start the tethys server you need to run "tethys manage start". This is assuming that you have a database set up and running. It looks like you don't have the docker database installed, so you'll need to have the conda environment DB or some other DB configured and running. If you followed the installation instructions and ran "tethys db configure" then it most likely set up the conda env DB.

--
You received this message because you are subscribed to the Google Groups "Tethys Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tethysplatfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tethysplatform/72e67ada-749b-47d7-ab9a-7e331c3cd106n%40googlegroups.com.

Marty Landsfeld

unread,
Dec 9, 2020, 9:34:42 PM12/9/20
to Tethys Platform
I got it running, thanks!. I had to reconfigure the database and clear out some DB settings from the portal_config.yml file.

I was following the installation instructions but they were not really clear on how to proceed.  I saw this instruction, in step 3 of Getting Started.

As an alternative to creating a local database server you can also configure a Docker DB server (see Using Docker). A local database server is only recommended for development environments. 

Following that link, and since I am installing on a Mac, I followed the link to the Docker Installation document and after installing the Docker software, the next instructions are to start the docker and access the Web Admin interface. It wasn't clear that I still had to install PostgreSQL and start that up.

I then tried to install the PostGIS docker and got these errors:

(tethys) $ tethys docker init -c postgis

Traceback (most recent call last):

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/urllib3/response.py", line 696, in _update_chunk_length

    self.chunk_left = int(line, 16)

ValueError: invalid literal for int() with base 16: b''


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/urllib3/response.py", line 436, in _error_catcher

    yield

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/urllib3/response.py", line 763, in read_chunked

    self._update_chunk_length()

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/urllib3/response.py", line 700, in _update_chunk_length

    raise httplib.IncompleteRead(line)

http.client.IncompleteRead: IncompleteRead(0 bytes read)


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/requests/models.py", line 751, in generate

    for chunk in self.raw.stream(chunk_size, decode_content=True):

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/urllib3/response.py", line 571, in stream

    for line in self.read_chunked(amt, decode_content=decode_content):

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/urllib3/response.py", line 792, in read_chunked

    self._original_response.close()

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/contextlib.py", line 130, in __exit__

    self.gen.throw(type, value, traceback)

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/urllib3/response.py", line 454, in _error_catcher

    raise ProtocolError("Connection broken: %r" % e, e)

urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/Users/marty/opt/anaconda3/envs/tethys/bin/tethys", line 10, in <module>

    sys.exit(tethys_command())

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/tethys_cli/__init__.py", line 66, in tethys_command

    args.func(args)

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/tethys_cli/docker_commands.py", line 777, in docker_command

    docker_init(containers=args.containers, defaults=args.defaults)

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/tethys_cli/docker_commands.py", line 653, in docker_init

    containers_to_install = ContainerMetadata.get_containers(containers, installed=installed)

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/tethys_cli/docker_commands.py", line 107, in get_containers

    containers = [c for c in containers if c.is_installed == installed]

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/tethys_cli/docker_commands.py", line 107, in <listcomp>

    containers = [c for c in containers if c.is_installed == installed]

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/tethys_cli/docker_commands.py", line 113, in is_installed

    return self.container is not None

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/tethys_cli/docker_commands.py", line 119, in container

    self._container = self.docker_client.containers.get(self.name)

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/docker/models/containers.py", line 887, in get

    resp = self.client.api.inspect_container(container_id)

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/docker/utils/decorators.py", line 19, in wrapped

    return f(self, resource_id, *args, **kwargs)

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/docker/api/container.py", line 771, in inspect_container

    self._get(self._url("/containers/{0}/json", container)), True

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/docker/utils/decorators.py", line 46, in inner

    return f(self, *args, **kwargs)

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/docker/api/client.py", line 228, in _get

    return self.get(url, **self._set_request_timeout(kwargs))

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/requests/sessions.py", line 543, in get

    return self.request('GET', url, **kwargs)

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/requests/sessions.py", line 530, in request

    resp = self.send(prep, **send_kwargs)

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/requests/sessions.py", line 685, in send

    r.content

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/requests/models.py", line 829, in content

    self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''

  File "/Users/marty/opt/anaconda3/envs/tethys/lib/python3.7/site-packages/requests/models.py", line 754, in generate

    raise ChunkedEncodingError(e)

requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))


Any idea what could be causing this? I got similar results trying to install the GeoServer docker.
Thanks!
Reply all
Reply to author
Forward
0 new messages