Skip to content

Instantly share code, notes, and snippets.

287 2014-12-12_17:01:02.42105 Traceback (most recent call last):
288 2014-12-12_17:01:02.42107 File "/usr/share/gearbox/nexus/current/graph/lib/python2.7/site-packages/globusonline-RELEASE_2011_06_06-py2.7.egg/globusonline/graph/app.py", line 393, in __call__
289 2014-12-12_17:01:02.42108 return self.application(environ, start_response)
290 2014-12-12_17:01:02.42109 File "/usr/share/gearbox/nexus/current/graph/lib/python2.7/site-packages/globusonline-RELEASE_2011_06_06-py2.7.egg/globusonline/graph/request_id_middleware.py", line 24, in __call__
291 2014-12-12_17:01:02.42109 return self.application(environ, custom_start_response)
292 2014-12-12_17:01:02.42110 File "/usr/share/gearbox/nexus/current/graph/lib/python2.7/site-packages/globusonline-RELEASE_2011_06_06-py2.7.egg/globusonline/graph/app.py", line 426, in __call__
293 2014-12-12_17:01:02.42111 return self.application(environ, start_response)
294 2014-12-12_17:01:02.42112 File "/usr/share/gearbox/nexus/current/graph/lib/python
import itertools
# Get all OA4MP linked identities as a flat list
user_list = users.get_all_users() # Do this as a separate step because it's started timing out regularly
oauth_creds = itertools.chain.from_iterable([ user.credentials.get_all_credentials_of_type('oauth') for user in user_list if user.credentials.get_all_credentials_of_type('oauth')])
# Filter out bluewaters
bluewaters_creds = [ cred for cred in oauth_creds if cred['server'] == 'bluewaters.ncsa.illinois.edu' ]
# Update
for cred in bluewaters_creds: cred['server'] = 'oa4mp.ncsa.illinois.edu'; cred['id_index'] = "{0}_{1}".format(cred['oauth_username'], 'oa4mp.ncsa.illinois.edu'); cred.commit();
sudo cp migrate_to_sql.py /mnt/globus_deploy/apps/nexus/current/graph/lib/python2.7/site-packages/globusonline-RELEASE_2011_06_06-py2.7.egg/globusonline/graph/admin/migrate_to_sql.py
from globusonline.graph.admin.migrate_to_sql import clear_sql_db, initialize_sql_db, migrate_to_sql
from globusonline.graph.sql import SQLManager, Base
sql_manager = SQLManager()
clear_sql_db(sql_manager.engine(), Base)
initialize_sql_db(sql_manager.engine(), Base)
---------------------------------------------------------------------------
CommandError Traceback (most recent call last)
/mnt/globus_deploy/apps/nexus/versions/sandbox-GRAPH-1510-3-2015-03-17_22-01-47/graph/lib/python2.7/site-packages/globusonline-RELEASE_2011_06_06-py2.7.egg/EGG-INFO/scripts/admin in <module>()
----> 1 initialize_sql_db(sql_manager.engine(), Base)
/mnt/globus_deploy/apps/nexus/versions/sandbox-GRAPH-1510-3-2015-03-17_22-01-47/graph/lib/python2.7/site-packages/globusonline-RELEASE_2011_06_06-py2.7.egg/globusonline/graph/admin/migrate_to_sql.py in initialize_sql_db(engine, Base)
15 Base.metadata.create_all(engine) # Create tables if they don't exist
16 alembic_cfg = Config("/mnt/globus_deploy/apps/nexus/current/alembic.ini")
---> 17 command.stamp(alembic_cfg, "head")
18
Migrated users: 24815 (got 8 from Transfer)
Migrated GOAuth keys: 65
Migrated GOAuth tokens: {'duplicates_skipped': 350, 'request_tokens': 3263, 'access_tokens': 698284}
Migrated linked identities: {'oauth_nouser': 2, 'openid': 1151, 'x509': 735, 'myproxy_nouser': 6, 'openid_nouser': 2, 'myproxy': 501, 'oauth': 2303, 'discarded': 51, 'duplicates': 18, 'ssh2': 3988, 'x509_nouser': 0, 'ssh2_nouser': 3}
Migrated groups: 1281
Migrated memberships: 8024
Migrated messages: 107
{
"data": [{
"type": "articles",
"id": "1",
"title": "JSON API paints my bikeshed!",
"links": {
"self": "http://example.com/articles/1",
"author": {
"self": "http://example.com/articles/1/links/author",
"related": "http://example.com/articles/1/author",
{
"data": [{
"type": "articles",
"id": "1",
"title": "JSON API paints my bikeshed!",
"links": {
"self": "http://example.com/articles/1"
},
"included" :
"author": {
2015-07-30_01:06:03.63965 File "/mnt/globus_deploy/apps/globusauth/current/auth/lib/python2.7/site-packages/pyramid/router.py", line 242, in __call__
2015-07-30_01:06:03.63991 response = self.invoke_subrequest(request, use_tweens=True)
2015-07-30_01:06:03.64012 File "/mnt/globus_deploy/apps/globusauth/current/auth/lib/python2.7/site-packages/pyramid/router.py", line 217, in invoke_subrequest
2015-07-30_01:06:03.64036 response = handle_request(request)
2015-07-30_01:06:03.64056 File "/mnt/globus_deploy/apps/globusauth/current/auth/lib/python2.7/site-packages/pyramid/tweens.py", line 21, in excview_tween
2015-07-30_01:06:03.64075 response = handler(request)
2015-07-30_01:06:03.64095 File "/mnt/globus_deploy/apps/globusauth/current/auth/lib/python2.7/site-packages/pyramid/router.py", line 163, in handle_request
2015-07-30_01:06:03.64117 response = view_callable(context, request)
2015-07-30_01:06:03.64136 File "/mnt/globus_deploy/apps/globusauth/current/auth/lib/python2.7/site-packages/p
<?xml version="1.0" encoding="UTF-8"?>
<ProfileHandlerGroup xmlns="urn:mace:shibboleth:2.0:idp:profile-handler"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:mace:shibboleth:2.0:idp:profile-handler classpath:/schema/shibboleth-2.0-idp-profile-handler.xsd">
<!-- Error Handler -->
<ErrorHandler xsi:type="JSPErrorHandler" jspPagePath="/error.jsp" />
<!-- Profile Handlers -->
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/home/mattias/go_repos/globusonline-graph/birncommunity/test_utils/openid_server.py", line 751, in _start_server
Traceback (most recent call last):
File "/usr/local/bin/nosetests", line 9, in <module>
self.httpserver.serve_forever()
load_entry_point('nose==1.0.0', 'console_scripts', 'nosetests')()