Tethys Dev Install Not Working...

32 views
Skip to first unread message

Jacob Fullerton

unread,
Mar 27, 2017, 5:06:45 PM3/27/17
to Tethys Platform
I was following the install instructions for Tethys 1.5 and got the following when I attempted to run the "tethys manage syncdb" command:

$ tethys manage syncdb
Loading Tethys Apps...
Tethys Apps Loaded:
/opt/miniconda/envs/tethys/lib/python2.7/site-packages/bokeh/core/json_encoder.py:52: DeprecationWarning:


parsing timezone aware datetimes
is deprecated; this will raise an error in the future




No changes detected
Loading Tethys Apps...
Tethys Apps Loaded:
/opt/miniconda/envs/tethys/lib/python2.7/site-packages/bokeh/core/json_encoder.py:52: DeprecationWarning:


parsing timezone aware datetimes
is deprecated; this will raise an error in the future



Traceback (most recent call last):
 
File "/usr/lib/tethys/src/manage.py", line 20, in <module>
    execute_from_command_line
(sys.argv)
 
File "/opt/miniconda/envs/tethys/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility
.execute()
 
File "/opt/miniconda/envs/tethys/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
   
self.fetch_command(subcommand).run_from_argv(self.argv)
 
File "/opt/miniconda/envs/tethys/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
   
self.execute(*args, **cmd_options)
 
File "/opt/miniconda/envs/tethys/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute
    output
= self.handle(*args, **options)
 
File "/opt/miniconda/envs/tethys/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 89, in handle
    executor
= MigrationExecutor(connection, self.migration_progress_callback)
 
File "/opt/miniconda/envs/tethys/lib/python2.7/site-packages/django/db/migrations/executor.py", line 20, in __init__
   
self.loader = MigrationLoader(self.connection)
 
File "/opt/miniconda/envs/tethys/lib/python2.7/site-packages/django/db/migrations/loader.py", line 49, in __init__
   
self.build_graph()
 
File "/opt/miniconda/envs/tethys/lib/python2.7/site-packages/django/db/migrations/loader.py", line 293, in build_graph
    _reraise_missing_dependency
(migration, parent, e)
 
File "/opt/miniconda/envs/tethys/lib/python2.7/site-packages/django/db/migrations/loader.py", line 276, in _reraise_missing_dependency
   
raise exc
django
.db.migrations.exceptions.NodeNotFoundError: Migration social_django.0004_auto_20160423_0400 dependencies reference nonexistent parent node (u'social_django', u'0003_alter_email_max_length')


I'm using the Ubuntu 16.04 installation on my virtual machine. I'd really appreciate some pointers. Thanks!!!

Scott Christensen

unread,
Mar 27, 2017, 10:39:35 PM3/27/17
to Jacob Fullerton, Tethys Platform
Are you upgrading from 1.4 or are you installing fresh? If you are upgrading then you need to make sure to follow the migration path for Python Social Auth. We haven't written good instructions yet, but you can read about them in the link that Nathan posted in this issue: https://github.com/tethysplatform/tethys/issues/201 ( which is: https://github.com/omab/python-social-auth/blob/master/MIGRATING_TO_SOCIAL.md)


--
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/38b7a107-a53b-4ac2-85e2-a43dd61b16b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Scott D. Christensen, PhD
Research Civil Engineer
Information Technology Laboratory  
US Army Corps of Engineers
 

Jacob Fullerton

unread,
Mar 29, 2017, 1:26:53 PM3/29/17
to Tethys Platform, jacob...@gmail.com
So I decided to install fresh given the trouble I was having trying to identify how to migrate properly prior to getting your message @sdc50. However, now I'm having a different issue altogether. While I was trying to run the
tethys docker init
command, I got an error telling me that I had an error code 404 that my ciwater/postgis 2.1.2 image was not found. I rebooted, re-logged in, redownloaded several times and I always got this error. I cannot figure out where to go from here, mostly because I don't know what this means. Help please??

Thanks!! I appreciate your patience with me as I work through this latest install

Jacob Fullerton

unread,
Mar 29, 2017, 3:13:05 PM3/29/17
to Tethys Platform, jacob...@gmail.com
So I ended up getting it to work after all! Thanks for the help Scott!

Scott Christensen

unread,
Mar 29, 2017, 3:21:27 PM3/29/17
to Jacob Fullerton, Tethys Platform
Just as a side note, if anyone else is in Jacob's situation (i.e. upgrading a development Tethys environment from 1.4 to latest), and you don't mind loosing everything in your database then you can just remove the database docker, and re-initialize it. I think something like this should do it:

`tethys docker remove -c postgis`
`tethys docker init -c postgis`

On Wed, Mar 29, 2017 at 2:13 PM Jacob Fullerton <jacob...@gmail.com> wrote:
So I ended up getting it to work after all! Thanks for the help Scott!

--
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.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages