Basic Tethys Installation Problems

89 views
Skip to first unread message

Norm Jones

unread,
Jun 16, 2016, 1:51:57 PM6/16/16
to Tethys Platform
Hey folks. I had to reinstall Ubuntu so I am now re-installing Tethys. Getting some errors so I am curious if any of you have any suggestions or recommendations.

First of all, I got an error message on Step 1. 


E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I redid the install command with "--fix-missing" and didn't give any error messages that time, so I am hoping that issue is resolved.

Second, I got and error message on Step 2. I issued this command:

$ source /etc/bash_completion.d/docker

And it said there was no such file. I pathed down into the directory and there is nothing there docker related. I reinstalled the docker.io package and didn't get any error messages. Is this just an outdated command or something?

Norm Jones

unread,
Jun 16, 2016, 2:31:58 PM6/16/16
to Tethys Platform
More problems. Did the docker initialization. Then I tried to start the dockers. Got the following error messages. Related to earlier problem? Dead in the water at this point.

(tethys) njones@ubuvm:~$ tethys docker start
Starting PostGIS container...
Traceback (most recent call last):
  File "/usr/lib/tethys/bin/tethys", line 9, in <module>
    load_entry_point('tethys-platform', 'console_scripts', 'tethys')()
  File "/usr/lib/tethys/src/tethys_apps/cli/__init__.py", line 256, in tethys_command
    args.func(args)
  File "/usr/lib/tethys/src/tethys_apps/cli/__init__.py", line 118, in docker_command
    docker_start(container=args.container)
  File "/usr/lib/tethys/src/tethys_apps/cli/docker_commands.py", line 737, in docker_start
    start_docker_containers(docker_client, container=container)
  File "/usr/lib/tethys/src/tethys_apps/cli/docker_commands.py", line 583, in start_docker_containers
    port_bindings={5432: DEFAULT_POSTGIS_PORT})
  File "/usr/lib/tethys/local/lib/python2.7/site-packages/docker/utils/decorators.py", line 15, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "/usr/lib/tethys/local/lib/python2.7/site-packages/docker/client.py", line 1076, in start
    self._raise_for_status(res)
  File "/usr/lib/tethys/local/lib/python2.7/site-packages/docker/client.py", line 122, in _raise_for_status
    raise errors.APIError(e, response, explanation=explanation)
docker.errors.APIError: 500 Server Error: Internal Server Error ("json: cannot unmarshal string into Go value of type container.RestartPolicy")

Norm Jones

unread,
Jun 16, 2016, 3:24:06 PM6/16/16
to Tethys Platform
Looks like Christian had the same problem:


I have installed Ubuntu 16.04. I will downgrade to 14.04 and try again. 

swainn

unread,
Jun 21, 2016, 11:19:54 AM6/21/16
to Tethys Platform
Sorry for the late response on this. As you have pointed out, the confusion is occurring because the current release of Ubuntu is 16.04 and the main download button will give you this version. You need to use the Alternative Downloads page to get version 14.04. I will point out that 14.04 is still in long term support status (LTS) meaning they will continue to issue security updates making it safe to use for web. I have added a warning to the documentation that provides a link to the Alternative Downloads page.

swainn

unread,
Jul 2, 2016, 12:03:49 AM7/2/16
to Tethys Platform
FYI. I have posted installation instructions for Ubuntu 16.04 on the development documentation. These instructions will only work for the dev branch (1.4) because of issues with the newer version of Docker. These issues have been resolved in dev, but will cause you grief with 1.3.0 or lower.


Note: I've also added Alan's tip of setting an alias for activating the virtual environment to both sets of installation docs.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages