(tethys) ubuntu@ip-172-31-45-47:~$ bash install_tethys.sh --skip-tethys-install -allowed-host 35.166.72.161 --db-username tethys_default --db-password pass --db-port 5436 --superuser admin --super-email pu...@byu.edu --super-pass pass --production
Ignoring unrecognized option: -allowed-host
Ignoring unrecognized option: 35.166.72.161
Ignoring unrecognized option: --super-email
Ignoring unrecognized option: pu...@byu.edu
Ignoring unrecognized option: --super-pass
Ignoring unrecognized option: pass
Production installation requires some commands to be run with sudo. Please enter password:
Installing Tethys Production Server...
Hit:1 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:3 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:5 https://download.docker.com/linux/ubuntu xenial InRelease
Fetched 204 kB in 0s (412 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
20 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
nginx is already the newest version (1.10.0-0ubuntu0.16.04.4).
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
rm: cannot remove '/etc/nginx/sites-enabled/default': No such file or directory
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 6: unalias: tethys_start_db: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 7: unalias: tstartdb: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 8: unalias: tethys_stop_db: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 9: unalias: tstopdb: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 10: unalias: tms: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 11: unalias: tstart: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 14: unalias: tethys_user_own: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 15: unalias: tuo: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 16: unalias: tethys_server_own: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 17: unalias: tso: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 18: unalias: tethys_server_restart: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 19: unalias: trs: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 22: unalias: tethys_user_own: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 23: unalias: tuo: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 24: unalias: tethys_server_own: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 25: unalias: tso: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 26: unalias: tethys_server_restart: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 27: unalias: trs: not found
pg_ctl: another server might be running; trying to start server anyway
server starting
Waiting for databases to startup...
Fetching package metadata ...........
Solving package specifications: .
# All requested packages already installed.
# packages in environment at /home/ubuntu/tethys/miniconda/envs/tethys:
#
uwsgi 2.0.12 py27_0 conda-forge
Loading Tethys Apps...
Tethys Apps Loaded:
Traceback (most recent call last):
File "/home/ubuntu/tethys/miniconda/envs/tethys/bin/tethys", line 11, in <module>
load_entry_point('tethys-platform', 'console_scripts', 'tethys')()
File "/home/ubuntu/tethys/src/tethys_apps/cli/__init__.py", line 294, in tethys_command
args.func(args)
File "/home/ubuntu/tethys/src/tethys_apps/cli/gen_commands.py", line 192, in generate_command
with open(destination_path, 'w') as f:
IOError: [Errno 13] Permission denied: '/home/ubuntu/tethys/src/tethys_portal/settings.py'
Loading Tethys Apps...
Tethys Apps Loaded:
Traceback (most recent call last):
File "/home/ubuntu/tethys/miniconda/envs/tethys/bin/tethys", line 11, in <module>
load_entry_point('tethys-platform', 'console_scripts', 'tethys')()
File "/home/ubuntu/tethys/src/tethys_apps/cli/__init__.py", line 294, in tethys_command
args.func(args)
File "/home/ubuntu/tethys/src/tethys_apps/cli/gen_commands.py", line 192, in generate_command
with open(destination_path, 'w') as f:
IOError: [Errno 13] Permission denied: '/home/ubuntu/tethys/src/tethys_portal/tethys_nginx.conf'
Loading Tethys Apps...
Tethys Apps Loaded:
Traceback (most recent call last):
File "/home/ubuntu/tethys/miniconda/envs/tethys/bin/tethys", line 11, in <module>
load_entry_point('tethys-platform', 'console_scripts', 'tethys')()
File "/home/ubuntu/tethys/src/tethys_apps/cli/__init__.py", line 294, in tethys_command
args.func(args)
File "/home/ubuntu/tethys/src/tethys_apps/cli/gen_commands.py", line 192, in generate_command
with open(destination_path, 'w') as f:
IOError: [Errno 13] Permission denied: '/home/ubuntu/tethys/src/tethys_portal/tethys_uwsgi.yml'
Loading Tethys Apps...
Tethys Apps Loaded:
Traceback (most recent call last):
File "/home/ubuntu/tethys/miniconda/envs/tethys/bin/tethys", line 11, in <module>
load_entry_point('tethys-platform', 'console_scripts', 'tethys')()
File "/home/ubuntu/tethys/src/tethys_apps/cli/__init__.py", line 294, in tethys_command
args.func(args)
File "/home/ubuntu/tethys/src/tethys_apps/cli/gen_commands.py", line 192, in generate_command
with open(destination_path, 'w') as f:
IOError: [Errno 13] Permission denied: '/home/ubuntu/tethys/src/tethys_portal/tethys.uwsgi.service'
Loading Tethys Apps...
Tethys Apps Loaded:
Loading Tethys Apps...
Tethys Apps Loaded:
INFO: Linking static and public directories of apps to "/home/ubuntu/tethys/static".
Loading Tethys Apps...
Tethys Apps Loaded:
0 static files copied to '/home/ubuntu/tethys/static', 1451 unmodified.
Loading Tethys Apps...
Tethys Apps Loaded:
INFO: Moving workspace directories of apps to "/home/ubuntu/tethys/workspaces" and linking back.
mkdir: cannot create directory ‘/var/log/uwsgi’: File exists
ln: failed to create symbolic link '/etc/nginx/sites-enabled/tethys_nginx.conf': File exists
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 19: unalias: trs: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 22: unalias: tethys_user_own: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 23: unalias: tuo: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 24: unalias: tethys_server_own: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 25: unalias: tso: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 26: unalias: tethys_server_restart: not found
/home/ubuntu/tethys/miniconda/envs/tethys/etc/conda/deactivate.d/tethys-deactivate.sh: line 27: unalias: trs: not found
bash install_tethys.sh --skip-tethys-install -allowed-host 35.166.72.161 --db-username tethys_default --db-password pass --db-port 5436 --superuser admin --super-email pulla@byu.edu --super-pass pass --productionThe correct options would be:
bash install_tethys.sh --skip-tethys-install --allowed-host 35.166.72.161 --db-username tethys_default --db-password pass --db-port 5436 --superuser admin --superuser-email pulla@byu.edu --superuser-pass pass --production(notice the two dashes in the --allowed-host option and the user in the --superuser-email and --superuser-pass options)
sudo chown -R ${USER} ${TETHYS_HOME}
--
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/3a6f623c-651a-4dd6-be35-569709860225%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It just doesn't connect. Nothing shows up. I've tried several ways to get it going but it keeps ending at this error. I even started from scratch on a new instance and it still kept showing this error.