Created
April 11, 2016 14:32
-
-
Save facuescobar/e189daeb906da429efa40a8c047a63bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(rebelmouse)escobar@beta1:~/rebelmouse$ deploy-roar flonasespring | |
[localhost:8022] Executing task 'prod' | |
[localhost:8022] Executing task 'deploy_roar' | |
[localhost] local: ls -1 ./engine/ | |
[localhost] local: hostname | |
beta1 | |
[localhost] local: test -f /tmp/deploy2.lock && echo True || echo False | |
[localhost] local: test -f /tmp/rebelmouse2.lock && echo True || echo False | |
False | |
[localhost] local: echo -n escobar > /tmp/rebelmouse2.lock | |
[localhost:8022] run: whoami | |
[localhost:8022] Login password for 'escobar': | |
Sorry, you can't enter an empty password. Please try again. | |
[localhost:8022] Login password for 'escobar': | |
[localhost:8022] out: escobar | |
[localhost:8022] out: | |
Is there any change in css/js files? [y/N] y | |
[localhost:8022] running tests.. | |
[localhost] local: /bin/bash -c "set -o pipefail && RM_ENV=dev && $WORKON_HOME/rebelmouse/bin/python manage.py test engine --failfast --noinput 2>&1 > /mnt/local/tmp/log/escobar-2016-04-11-1410-test.log | tee /mnt/local/tmp/log/escobar-2016-04-11-1410-test-error.log && $WORKON_HOME/rebelmouse/bin/python manage.py test community/dynamic_content/tests/test_validate_xml.py --failfast 2>&1 > /mnt/local/tmp/log/escobar-2016-04-11-1410-test.log | tee /mnt/local/tmp/log/escobar-2016-04-11-1410-test-error.log " | |
'Raven is not configured (logging is disabled). Please see the documentation for more information.' | |
........S....................................... | |
'/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently. | |
To get rid of this warning, change this: | |
BeautifulSoup([your markup]) | |
to this: | |
BeautifulSoup([your markup], "lxml") | |
markup_type=markup_type)) | |
' | |
'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:1022: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. | |
res = mongo['community_{}'.format(posts_class)].insert(post) | |
' | |
base.py:210 => | |
"u'Internal Server Error: /post-for-approval-1.html'" | |
Traceback (most recent call last): | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 90, in get_response | |
response = middleware_method(request) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/middleware/common.py", line 69, in process_request | |
if (not urlresolvers.is_valid_path(request.path_info, urlconf) and | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 577, in is_valid_path | |
resolve(path, urlconf) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 466, in resolve | |
return get_resolver(urlconf).resolve(path) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 338, in resolve | |
for pattern in self.url_patterns: | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 366, in url_patterns | |
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 361, in urlconf_module | |
self._urlconf_module = import_module(self.urlconf_name) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module | |
__import__(name) | |
File "/mnt/local/home/escobar/rebelmouse/rebelmouse/urls_roar.py", line 1, in <module> | |
from rebelmouse import urls_base | |
File "/mnt/local/home/escobar/rebelmouse/rebelmouse/urls_base.py", line 90, in <module> | |
url(r'^social/', include('social.urls')), | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 25, in include | |
urlconf_module = import_module(urlconf_module) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module | |
__import__(name) | |
File "/mnt/local/home/escobar/rebelmouse/social/urls.py", line 8, in <module> | |
from social.scheduling.views.profile import SocialPageResource, SocialProfileResource | |
File "/mnt/local/home/escobar/rebelmouse/social/scheduling/views/profile.py", line 13, in <module> | |
class SocialProfileResource(SocialSharingBaseResource): | |
File "/mnt/local/home/escobar/rebelmouse/social/scheduling/views/profile.py", line 17, in SocialProfileResource | |
email=restea.fields.Email(required=lambda data: data.get('provider_id') == 0), | |
AttributeError: 'module' object has no attribute 'Email' | |
E | |
'/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/mongoengine/queryset/base.py:420: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead. | |
result = queryset._collection.remove(queryset._query, **write_concern) | |
' | |
====================================================================== | |
ERROR: testApprovalPage (engine.tests.views.test_drafts.Draft) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/mnt/local/home/escobar/rebelmouse/engine/tests/views/test_drafts.py", line 41, in testApprovalPage | |
response = c.get(post_url) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/test/client.py", line 453, in get | |
response = super(Client, self).get(path, data=data, **extra) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/test/client.py", line 279, in get | |
return self.request(**r) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/test/client.py", line 406, in request | |
response = self.handler(environ) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/test/client.py", line 111, in __call__ | |
response = self.get_response(request) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 176, in get_response | |
response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 218, in handle_uncaught_exception | |
if resolver.urlconf_module is None: | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 361, in urlconf_module | |
self._urlconf_module = import_module(self.urlconf_name) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module | |
__import__(name) | |
File "/mnt/local/home/escobar/rebelmouse/rebelmouse/urls_base.py", line 90, in <module> | |
url(r'^social/', include('social.urls')), | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 25, in include | |
urlconf_module = import_module(urlconf_module) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module | |
__import__(name) | |
File "/mnt/local/home/escobar/rebelmouse/social/urls.py", line 8, in <module> | |
from social.scheduling.views.profile import SocialPageResource, SocialProfileResource | |
File "/mnt/local/home/escobar/rebelmouse/social/scheduling/views/profile.py", line 13, in <module> | |
class SocialProfileResource(SocialSharingBaseResource): | |
File "/mnt/local/home/escobar/rebelmouse/social/scheduling/views/profile.py", line 17, in SocialProfileResource | |
email=restea.fields.Email(required=lambda data: data.get('provider_id') == 0), | |
AttributeError: 'module' object has no attribute 'Email' | |
-------------------- >> begin captured logging << -------------------- | |
factory.generate: DEBUG: | |
'BaseFactory: Preparing rm.tests.helpers.UserFactory(extra={})' | |
factory.containers: DEBUG: | |
'LazyStub: Computing values for rm.tests.helpers.UserFactory()' | |
factory.containers: DEBUG: | |
'LazyStub: Computed values, got rm.tests.helpers.UserFactory()' | |
factory.generate: DEBUG: | |
'BaseFactory: Generating rm.tests.helpers.UserFactory()' | |
factory.generate: DEBUG: | |
'BaseFactory: Preparing rm.tests.helpers.SiteFactory(extra={'owner': <User: 7:>, 'domain': 'testserver.com', 'name': 'MainRoarSite'})' | |
factory.containers: DEBUG: | |
'LazyStub: Computing values for rm.tests.helpers.SiteFactory(owner=<User: 7:>, domain='testserver.com', name='MainRoarSite', title='Test Site Title')' | |
factory.containers: DEBUG: | |
'LazyStub: Computed values, got rm.tests.helpers.SiteFactory(owner=<User: 7:>, domain='testserver.com', name='MainRoarSite', title='Test Site Title')' | |
factory.generate: DEBUG: | |
'BaseFactory: Generating rm.tests.helpers.SiteFactory(owner=<User: 7:>, domain='testserver.com', name='MainRoarSite', title='Test Site Title')' | |
factory.generate: DEBUG: | |
'BaseFactory: Preparing rm.tests.helpers.SubpageFactory(extra={'url': 'subpage_name', 'site_id': 6L, 'title': 'subpage_title'})' | |
factory.generate: DEBUG: | |
'<class 'rm.tests.helpers.SubpageFactory'>: Setting up next sequence (1)' | |
factory.containers: DEBUG: | |
'LazyStub: Computing values for rm.tests.helpers.SubpageFactory(url='subpage_name', site_id=6L, title='subpage_title')' | |
factory.containers: DEBUG: | |
'LazyStub: Computed values, got rm.tests.helpers.SubpageFactory(url='subpage_name', site_id=6L, title='subpage_title')' | |
factory.generate: DEBUG: | |
'BaseFactory: Generating rm.tests.helpers.SubpageFactory(url='subpage_name', site_id=6L, title='subpage_title')' | |
factory.generate: DEBUG: | |
'BaseFactory: Preparing rm.tests.helpers.PostFactory(extra={'body': 'Body For Approval', 'provider_post_id': '1_1', 'subpages': [0], 'user_id': 7L, 'posts_class': 'drafts', 'headline': 'Post For Approval', 'type': u'image', 'image': 'http://entries2.99static.com/designs/9784020-largecrop', 'site_id': 6L, 'provider_id': '1', 'image_size': '720x480', 'created_ts': 1325548860, 'user_name': 'john', 'basename': ''})' | |
factory.generate: DEBUG: | |
'<class 'rm.tests.helpers.PostFactory'>: Setting up next sequence (0)' | |
factory.containers: DEBUG: | |
'LazyStub: Computing values for rm.tests.helpers.PostFactory(body='Body For Approval', provider_post_id='1_1', subpages=[0], user_id=7L, posts_class='drafts', headline='Post For Approval', type=u'image', image='http://entries2.99static.com/designs/9784020-largecrop', title='Test title', site_id=6L, provider_id='1', image_size='720x480', created_ts=1325548860, user_name='john', basename='')' | |
factory.containers: DEBUG: | |
'LazyStub: Computed values, got rm.tests.helpers.PostFactory(body='Body For Approval', provider_post_id='1_1', subpages=[0], user_id=7L, posts_class='drafts', headline='Post For Approval', user_name='john', image='http://entries2.99static.com/designs/9784020-largecrop', title='Test title', site_id=6L, provider_id='1', image_size='720x480', created_ts=1325548860, type=u'image', basename='')' | |
factory.generate: DEBUG: | |
'BaseFactory: Generating rm.tests.helpers.PostFactory(body='Body For Approval', provider_post_id='1_1', subpages=[0], user_id=7L, posts_class='drafts', headline='Post For Approval', user_name='john', image='http://entries2.99static.com/designs/9784020-largecrop', title='Test title', site_id=6L, provider_id='1', image_size='720x480', created_ts=1325548860, type=u'image', basename='')' | |
py.warnings: WARNING: | |
"'/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently. | |
To get rid of this warning, change this: | |
BeautifulSoup([your markup]) | |
to this: | |
BeautifulSoup([your markup], "lxml") | |
markup_type=markup_type)) | |
'" | |
py.warnings: WARNING: | |
"'/mnt/local/home/escobar/rebelmouse/community/posts/__init__.py:1022: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. | |
res = mongo['community_{}'.format(posts_class)].insert(post) | |
'" | |
django.request: ERROR: | |
'"u\'Internal Server Error: /post-for-approval-1.html\'"' | |
Traceback (most recent call last): | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 90, in get_response | |
response = middleware_method(request) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/middleware/common.py", line 69, in process_request | |
if (not urlresolvers.is_valid_path(request.path_info, urlconf) and | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 577, in is_valid_path | |
resolve(path, urlconf) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 466, in resolve | |
return get_resolver(urlconf).resolve(path) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 338, in resolve | |
for pattern in self.url_patterns: | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 366, in url_patterns | |
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 361, in urlconf_module | |
self._urlconf_module = import_module(self.urlconf_name) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module | |
__import__(name) | |
File "/mnt/local/home/escobar/rebelmouse/rebelmouse/urls_roar.py", line 1, in <module> | |
from rebelmouse import urls_base | |
File "/mnt/local/home/escobar/rebelmouse/rebelmouse/urls_base.py", line 90, in <module> | |
url(r'^social/', include('social.urls')), | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 25, in include | |
urlconf_module = import_module(urlconf_module) | |
File "/home/escobar/envs/rebelmouse/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module | |
__import__(name) | |
File "/mnt/local/home/escobar/rebelmouse/social/urls.py", line 8, in <module> | |
from social.scheduling.views.profile import SocialPageResource, SocialProfileResource | |
File "/mnt/local/home/escobar/rebelmouse/social/scheduling/views/profile.py", line 13, in <module> | |
class SocialProfileResource(SocialSharingBaseResource): | |
File "/mnt/local/home/escobar/rebelmouse/social/scheduling/views/profile.py", line 17, in SocialProfileResource | |
email=restea.fields.Email(required=lambda data: data.get('provider_id') == 0), | |
AttributeError: 'module' object has no attribute 'Email' | |
--------------------- >> end captured logging << --------------------- | |
---------------------------------------------------------------------- | |
Ran 49 tests in 1.248s | |
FAILED (SKIP=1, errors=1) | |
Exception AttributeError: "'NoneType' object has no attribute 'getcurrent'" in <function _removeHandlerRef at 0x7f1b156baa28> ignored | |
Warning: local() encountered an error (return code 1) while executing '/bin/bash -c "set -o pipefail && RM_ENV=dev && $WORKON_HOME/rebelmouse/bin/python manage.py test engine --failfast --noinput 2>&1 > /mnt/local/tmp/log/escobar-2016-04-11-1410-test.log | tee /mnt/local/tmp/log/escobar-2016-04-11-1410-test-error.log && $WORKON_HOME/rebelmouse/bin/python manage.py test community/dynamic_content/tests/test_validate_xml.py --failfast 2>&1 > /mnt/local/tmp/log/escobar-2016-04-11-1410-test.log | tee /mnt/local/tmp/log/escobar-2016-04-11-1410-test-error.log "' | |
You can find stdout log at /mnt/local/tmp/log/escobar-2016-04-11-1410-test.log | |
The error's log is located at /mnt/local/tmp/log/escobar-2016-04-11-1410-test-error.log | |
continue deployment? [y/N] n | |
[localhost] local: rm /tmp/rebelmouse2.lock | |
Fatal error: Tests failed, stopping deployment | |
Aborting. | |
Disconnecting from localhost:8022... done. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment