neurodata / ndgrutedb

Pipeline and tools for estimating human connectomes from Diffusion, Structural, and Functional MRI
http://neurodata.io
Apache License 2.0
29 stars 13 forks source link

make c4 service call docker container rather than python script #220

Closed gkiar closed 7 years ago

gkiar commented 7 years ago

should resolve current need for a "greg in the loop"

@disa-mhembere

gkiar commented 7 years ago

@disa-mhembere here is test data so we can close this: http://mrneurodata.s3-website-us-east-1.amazonaws.com/KKI2009/sub-113/ses-1/

gkiar commented 7 years ago

You can ignore the "func" folder as we don't use it in our pipeline.

disa-mhembere commented 7 years ago

The service is live. Try to use this data to see if it works 😊

On Mar 6, 2017 12:07 PM, "Greg Kiar" notifications@github.com wrote:

You can ignore the "func" folder as we don't use it in our pipeline.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/neurodata/ndgrutedb/issues/220#issuecomment-284462346, or mute the thread https://github.com/notifications/unsubscribe-auth/ABtfJKpAAkAb8brAt-0TEviMZ0ZlS81sks5rjD0XgaJpZM4LQRp8 .

gkiar commented 7 years ago

The traceback/error I get:

Environment:

Request Method: POST
Request URL: http://openconnecto.me/graph-services/c4/

Django Version: 1.8.4
Python Version: 2.7.6
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'pipeline',
 'registration',
 'django.contrib.admin',
 'django.contrib.admindocs',
 'django_tables2',
 'djcelery',
 'kombu.transport.django')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "./pipeline/proc_views/raw_upload.py" in raw_upload
  74.       ru_model.save() # Sync to Db
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py" in save
  734.                        force_update=force_update, update_fields=update_fields)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py" in save_base
  762.             updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py" in _save_table
  846.             result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py" in _do_insert
  885.                                using=using, raw=raw)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py" in manager_method
  127.                 return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in _insert
  920.         return query.get_compiler(using=using).execute_sql(return_id)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py" in execute_sql
  974.                 cursor.execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py" in execute
  79.             return super(CursorDebugWrapper, self).execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py" in execute
  64.                 return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py" in __exit__
  97.                 six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py" in execute
  64.                 return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py" in execute
  124.             return self.cursor.execute(query, args)
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/cursors.py" in execute
  205.             self.errorhandler(self, exc, value)
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py" in defaulterrorhandler
  36.     raise errorclass, errorvalue

Exception Type: OperationalError at /graph-services/c4/
Exception Value: (1054, "Unknown column 'bvectorpath' in 'field list'")
disa-mhembere commented 7 years ago

django migrations are not getting applied for some reason :/ this is caused by changing the rawuploadmodel.

disa-mhembere commented 7 years ago

ok -- let's try again now

gkiar commented 7 years ago

success! 🔥

proof