From alfredo, 1 Year ago, written in Bash.
Embed
  1. [root@dev-alfredo04 prr]# docker exec -i tango bash -c "cd /opt/jop/virtualenv/lib/python2.7/site-packages/solariat_bottle/jop/common/scripts/data_load/; /opt/jop/virtualenv/bin/python load_post_data.py --username='super_user@genesys.com' --password='password' --mode=prod"
  2. 2017-11-01 17:34:08,212 [132] WARNING <BOTTLE> config.py:99   Some consumers for topic "model_training" will be idle
  3. 2017-11-01 17:34:08,212 [132] WARNING <BOTTLE> config.py:99   Some consumers for topic "tw_recovery" will be idle
  4. 2017-11-01 17:34:08,212 [132] WARNING <BOTTLE> config.py:99   Some consumers for topic "analysis" will be idle
  5. 2017-11-01 17:34:08,213 [132] WARNING <BOTTLE> config.py:88   Topic "check_kafka" exists in kafka, but not in supported topics
  6. 2017-11-01 17:34:08,213 [132] WARNING <BOTTLE> config.py:99   Some consumers for topic "tags_relabel" will be idle
  7. 2017-11-01 17:34:08,213 [132] WARNING <BOTTLE> config.py:88   Topic "pytest" exists in kafka, but not in supported topics
  8. 2017-11-01 17:34:08,213 [132] WARNING <BOTTLE> config.py:88   Topic "facebook" exists in kafka, but not in supported topics
  9. 2017-11-01 17:34:08,213 [132] WARNING <BOTTLE> config.py:88   Topic "twitter" exists in kafka, but not in supported topics
  10. 2017-11-01 17:34:08,214 [132] INFO  <BOTTLE> registry.py:24   Job with name "solariat_bottle.social.common.tasks.twitter.tw_process_historic_subscription" added
  11. 2017-11-01 17:34:08,281 [132] INFO  <BOTTLE> registry.py:24   Job with name "solariat_bottle.jop.common.models.dynamic_tag.process_tags_type" added
  12. 2017-11-01 17:34:08,292 [132] INFO  <BOTTLE> registry.py:24   Job with name "solariat_bottle.jop.analysis.tasks.dataset_analysis.process_dataset_analysis" added
  13. 2017-11-01 17:34:08,373 [132] INFO  <BOTTLE> registry.py:24   Job with name "solariat_bottle.jop.analysis.tasks.predictors_analysis.process_predictive_analysis" added
  14. 2017-11-01 17:34:08,417 [132] INFO  <BOTTLE> registry.py:24   Job with name "solariat_bottle.ja.journeys.journeys_analysis.process_journeys_analysis" added
  15. 2017-11-01 17:34:08,422 [132] INFO  <BOTTLE> registry.py:24   Job with name "solariat_bottle.jop.predictors.tasks.retrain_classifier" added
  16. 2017-11-01 17:34:08,512 [132] INFO  <BOTTLE> registry.py:24   Job with name "solariat_bottle.jop.api.score_log.join_abtesting_job" added
  17. 2017-11-01 17:34:08,558 [132] INFO  <BOTTLE> app.py:166  Starting the application in prod mode
  18.  
  19. 2017-11-01 17:34:11,147 [132] INFO  <I/O> load_post_data.py:409  * using an embedded worker (concurrency=16, serial=False)
  20. 2017-11-01 17:34:11,147 [132] INFO  <I/O> io.py:90   INIT
  21. 2017-11-01 17:34:11,148 [132] INFO  <I/O> facebook.py:31   pre-importing facebook dependencies
  22. 2017-11-01 17:34:11,148 [132] INFO  <I/O> stats.py:21   pre-importing stats dependencies
  23. 2017-11-01 17:34:11,148 [132] INFO  <I/O> twitter.py:13   pre-importing twitter dependencies
  24. 2017-11-01 17:34:11,148 [132] INFO  <I/O> __init__.py:31   pre-importing heavy modules
  25. 2017-11-01 17:34:11,148 [132] INFO  <I/O> nlp.py:15   warming up NLP code
  26. 2017-11-01 17:34:11,341 [132] INFO  <I/O> nlp.py:29   done
  27. Traceback (most recent call last):
  28.   File "load_post_data.py", line 494, in <module>
  29.     account = Account.objects.get_or_create(name=options.account)
  30.   File "/opt/jop/virtualenv/lib/python2.7/site-packages/solariat_bottle/jop/accounts/models/account.py", line 166, in get_or_create
  31. [model62_3] Loading /opt/jop/virtualenv/lib/python2.7/site-packages/solariat_nlp/intention_cls/en/model62_3/vectorizer.pkl...
  32. [model62_3] Loading confusion_matrix and avg_confidence matrices from cache...
  33. * running in prod mode
  34. WARNING: You are using the system in production mode. Handle with extreme care!
  35. >>>Press Enter to continue, Ctrl-C to abort<<<    return super(AccountManager, self).get_or_create(**kw)
  36.   File "/opt/jop/virtualenv/lib/python2.7/site-packages/solariat/db/abstract.py", line 232, in get_or_create
  37.     return self.find_one(**kw) or self.create(**kw)
  38.   File "/opt/jop/virtualenv/lib/python2.7/site-packages/solariat_bottle/jop/accounts/models/account.py", line 111, in create
  39.     AvailableAppHook.hook('PricingPackage.initialize', package, kwargs)
  40.   File "/opt/jop/virtualenv/lib/python2.7/site-packages/solariat_bottle/jop/common/utils/hooks.py", line 46, in hook
  41.     hooks = cls._get_hook(name, apps=apps)
  42.   File "/opt/jop/virtualenv/lib/python2.7/site-packages/solariat_bottle/jop/common/utils/hooks.py", line 60, in _get_hook
  43.     user = get_user()
  44.   File "/opt/jop/virtualenv/lib/python2.7/site-packages/solariat_bottle/jop/users/models.py", line 38, in get_user
  45.     return _thread_local.user
  46. AttributeError: 'thread._local' object has no attribute 'user'
  47.