Advertisement
Guest User

Untitled

a guest
Dec 15th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.71 KB | None | 0 0
  1. [ec2-user@ip-172-31-44-58 saleor]$ docker-compose run web python3 manage.py populatedb --createsuperuser
  2. Starting saleor_db_1_1ca3e7465a46 ... done
  3. Starting saleor_redis_1_ab799728bfca ... done
  4. Starting saleor_search_1_f6fe97b60262 ... done
  5. Shipping Zone: Europe
  6. Shipping Zone: Oceania
  7. Shipping Zone: Asia
  8. Shipping Zone: Americas
  9. Shipping Zone: Africa
  10. WARNING elasticsearch POST http://search:9200/_bulk?refresh=true [status:N/A request:0.002s] [PID:1:MainThread]
  11. Traceback (most recent call last):
  12. File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 502, in update_or_create
  13. obj = self.select_for_update().get(**lookup)
  14. File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 399, in get
  15. self.model._meta.object_name
  16. saleor.product.models.Product.DoesNotExist: Product matching query does not exist.
  17.  
  18. During handling of the above exception, another exception occurred:
  19.  
  20. Traceback (most recent call last):
  21. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
  22. (self.host, self.port), self.timeout, **extra_kw)
  23. File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 60, in create_connection
  24. for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  25. File "/usr/local/lib/python3.6/socket.py", line 745, in getaddrinfo
  26. for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
  27. socket.gaierror: [Errno -2] Name or service not known
  28.  
  29. During handling of the above exception, another exception occurred:
  30.  
  31. Traceback (most recent call last):
  32. File "/usr/local/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 147, in perform_request
  33. response = self.pool.urlopen(method, url, body, retries=False, headers=self.headers, **kw)
  34. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
  35. _stacktrace=sys.exc_info()[2])
  36. File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 333, in increment
  37. raise six.reraise(type(error), error, _stacktrace)
  38. File "/usr/local/lib/python3.6/site-packages/urllib3/packages/six.py", line 686, in reraise
  39. raise value
  40. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
  41. chunked=chunked)
  42. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 357, in _make_request
  43. conn.request(method, url, **httplib_request_kw)
  44. File "/usr/local/lib/python3.6/http/client.py", line 1239, in request
  45. self._send_request(method, url, body, headers, encode_chunked)
  46. File "/usr/local/lib/python3.6/http/client.py", line 1285, in _send_request
  47. self.endheaders(body, encode_chunked=encode_chunked)
  48. File "/usr/local/lib/python3.6/http/client.py", line 1234, in endheaders
  49. self._send_output(message_body, encode_chunked=encode_chunked)
  50. File "/usr/local/lib/python3.6/http/client.py", line 1026, in _send_output
  51. self.send(msg)
  52. File "/usr/local/lib/python3.6/http/client.py", line 964, in send
  53. self.connect()
  54. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 166, in connect
  55. conn = self._new_conn()
  56. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
  57. self, "Failed to establish a new connection: %s" % e)
  58. urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f34faa56278>: Failed to establish a new connection: [Errno -2] Name or service not known
  59. WARNING elasticsearch POST http://search:9200/_bulk?refresh=true [status:N/A request:0.001s] [PID:1:MainThread]
  60. Traceback (most recent call last):
  61. File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 502, in update_or_create
  62. obj = self.select_for_update().get(**lookup)
  63. File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 399, in get
  64. self.model._meta.object_name
  65. saleor.product.models.Product.DoesNotExist: Product matching query does not exist.
  66.  
  67. During handling of the above exception, another exception occurred:
  68.  
  69. Traceback (most recent call last):
  70. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
  71. (self.host, self.port), self.timeout, **extra_kw)
  72. File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 60, in create_connection
  73. for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  74. File "/usr/local/lib/python3.6/socket.py", line 745, in getaddrinfo
  75. for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
  76. socket.gaierror: [Errno -2] Name or service not known
  77.  
  78. During handling of the above exception, another exception occurred:
  79.  
  80. Traceback (most recent call last):
  81. File "/usr/local/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 147, in perform_request
  82. response = self.pool.urlopen(method, url, body, retries=False, headers=self.headers, **kw)
  83. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
  84. _stacktrace=sys.exc_info()[2])
  85. File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 333, in increment
  86. raise six.reraise(type(error), error, _stacktrace)
  87. File "/usr/local/lib/python3.6/site-packages/urllib3/packages/six.py", line 686, in reraise
  88. raise value
  89. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
  90. chunked=chunked)
  91. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 357, in _make_request
  92. conn.request(method, url, **httplib_request_kw)
  93. File "/usr/local/lib/python3.6/http/client.py", line 1239, in request
  94. self._send_request(method, url, body, headers, encode_chunked)
  95. File "/usr/local/lib/python3.6/http/client.py", line 1285, in _send_request
  96. self.endheaders(body, encode_chunked=encode_chunked)
  97. File "/usr/local/lib/python3.6/http/client.py", line 1234, in endheaders
  98. self._send_output(message_body, encode_chunked=encode_chunked)
  99. File "/usr/local/lib/python3.6/http/client.py", line 1026, in _send_output
  100. self.send(msg)
  101. File "/usr/local/lib/python3.6/http/client.py", line 964, in send
  102. self.connect()
  103. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 166, in connect
  104. conn = self._new_conn()
  105. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
  106. self, "Failed to establish a new connection: %s" % e)
  107. urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f34faa563c8>: Failed to establish a new connection: [Errno -2] Name or service not known
  108. WARNING elasticsearch POST http://search:9200/_bulk?refresh=true [status:N/A request:0.001s] [PID:1:MainThread]
  109. Traceback (most recent call last):
  110. File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 502, in update_or_create
  111. obj = self.select_for_update().get(**lookup)
  112. File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 399, in get
  113. self.model._meta.object_name
  114. saleor.product.models.Product.DoesNotExist: Product matching query does not exist.
  115.  
  116. During handling of the above exception, another exception occurred:
  117.  
  118. Traceback (most recent call last):
  119. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
  120. (self.host, self.port), self.timeout, **extra_kw)
  121. File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 60, in create_connection
  122. for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  123. File "/usr/local/lib/python3.6/socket.py", line 745, in getaddrinfo
  124. for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
  125. socket.gaierror: [Errno -2] Name or service not known
  126.  
  127. During handling of the above exception, another exception occurred:
  128.  
  129. Traceback (most recent call last):
  130. File "/usr/local/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 147, in perform_request
  131. response = self.pool.urlopen(method, url, body, retries=False, headers=self.headers, **kw)
  132. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
  133. _stacktrace=sys.exc_info()[2])
  134. File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 333, in increment
  135. raise six.reraise(type(error), error, _stacktrace)
  136. File "/usr/local/lib/python3.6/site-packages/urllib3/packages/six.py", line 686, in reraise
  137. raise value
  138. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
  139. chunked=chunked)
  140. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 357, in _make_request
  141. conn.request(method, url, **httplib_request_kw)
  142. File "/usr/local/lib/python3.6/http/client.py", line 1239, in request
  143. self._send_request(method, url, body, headers, encode_chunked)
  144. File "/usr/local/lib/python3.6/http/client.py", line 1285, in _send_request
  145. self.endheaders(body, encode_chunked=encode_chunked)
  146. File "/usr/local/lib/python3.6/http/client.py", line 1234, in endheaders
  147. self._send_output(message_body, encode_chunked=encode_chunked)
  148. File "/usr/local/lib/python3.6/http/client.py", line 1026, in _send_output
  149. self.send(msg)
  150. File "/usr/local/lib/python3.6/http/client.py", line 964, in send
  151. self.connect()
  152. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 166, in connect
  153. conn = self._new_conn()
  154. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
  155. self, "Failed to establish a new connection: %s" % e)
  156. urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f34fc47a0b8>: Failed to establish a new connection: [Errno -2] Name or service not known
  157. WARNING elasticsearch POST http://search:9200/_bulk?refresh=true [status:N/A request:0.001s] [PID:1:MainThread]
  158. Traceback (most recent call last):
  159. File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 502, in update_or_create
  160. obj = self.select_for_update().get(**lookup)
  161. File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 399, in get
  162. self.model._meta.object_name
  163. saleor.product.models.Product.DoesNotExist: Product matching query does not exist.
  164.  
  165. During handling of the above exception, another exception occurred:
  166.  
  167. Traceback (most recent call last):
  168. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
  169. (self.host, self.port), self.timeout, **extra_kw)
  170. File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 60, in create_connection
  171. for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  172. File "/usr/local/lib/python3.6/socket.py", line 745, in getaddrinfo
  173. for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
  174. socket.gaierror: [Errno -2] Name or service not known
  175.  
  176. During handling of the above exception, another exception occurred:
  177.  
  178. Traceback (most recent call last):
  179. File "/usr/local/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 147, in perform_request
  180. response = self.pool.urlopen(method, url, body, retries=False, headers=self.headers, **kw)
  181. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
  182. _stacktrace=sys.exc_info()[2])
  183. File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 333, in increment
  184. raise six.reraise(type(error), error, _stacktrace)
  185. File "/usr/local/lib/python3.6/site-packages/urllib3/packages/six.py", line 686, in reraise
  186. raise value
  187. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
  188. chunked=chunked)
  189. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 357, in _make_request
  190. conn.request(method, url, **httplib_request_kw)
  191. File "/usr/local/lib/python3.6/http/client.py", line 1239, in request
  192. self._send_request(method, url, body, headers, encode_chunked)
  193. File "/usr/local/lib/python3.6/http/client.py", line 1285, in _send_request
  194. self.endheaders(body, encode_chunked=encode_chunked)
  195. File "/usr/local/lib/python3.6/http/client.py", line 1234, in endheaders
  196. self._send_output(message_body, encode_chunked=encode_chunked)
  197. File "/usr/local/lib/python3.6/http/client.py", line 1026, in _send_output
  198. self.send(msg)
  199. File "/usr/local/lib/python3.6/http/client.py", line 964, in send
  200. self.connect()
  201. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 166, in connect
  202. conn = self._new_conn()
  203. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
  204. self, "Failed to establish a new connection: %s" % e)
  205. urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f34faa56438>: Failed to establish a new connection: [Errno -2] Name or service not known
  206. Traceback (most recent call last):
  207. File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 502, in update_or_create
  208. obj = self.select_for_update().get(**lookup)
  209. File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 399, in get
  210. self.model._meta.object_name
  211. saleor.product.models.DoesNotExist: Product matching query does not exist.
  212.  
  213. During handling of the above exception, another exception occurred:
  214.  
  215. Traceback (most recent call last):
  216. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
  217. (self.host, self.port), self.timeout, **extra_kw)
  218. File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 60, in create_connection
  219. for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  220. File "/usr/local/lib/python3.6/socket.py", line 745, in getaddrinfo
  221. for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
  222. socket.gaierror: [Errno -2] Name or service not known
  223.  
  224. During handling of the above exception, another exception occurred:
  225.  
  226. Traceback (most recent call last):
  227. File "/usr/local/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 147, in perform_request
  228. response = self.pool.urlopen(method, url, body, retries=False, headers=self.headers, **kw)
  229. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
  230. _stacktrace=sys.exc_info()[2])
  231. File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 333, in increment
  232. raise six.reraise(type(error), error, _stacktrace)
  233. File "/usr/local/lib/python3.6/site-packages/urllib3/packages/six.py", line 686, in reraise
  234. raise value
  235. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
  236. chunked=chunked)
  237. File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 357, in _make_request
  238. conn.request(method, url, **httplib_request_kw)
  239. File "/usr/local/lib/python3.6/http/client.py", line 1239, in request
  240. self._send_request(method, url, body, headers, encode_chunked)
  241. File "/usr/local/lib/python3.6/http/client.py", line 1285, in _send_request
  242. self.endheaders(body, encode_chunked=encode_chunked)
  243. File "/usr/local/lib/python3.6/http/client.py", line 1234, in endheaders
  244. self._send_output(message_body, encode_chunked=encode_chunked)
  245. File "/usr/local/lib/python3.6/http/client.py", line 1026, in _send_output
  246. self.send(msg)
  247. File "/usr/local/lib/python3.6/http/client.py", line 964, in send
  248. self.connect()
  249. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 166, in connect
  250. conn = self._new_conn()
  251. File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
  252. self, "Failed to establish a new connection: %s" % e)
  253. urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f34faa56438>: Failed to establish a new connection: [Errno -2] Name or service not known
  254.  
  255. During handling of the above exception, another exception occurred:
  256.  
  257. Traceback (most recent call last):
  258. File "manage.py", line 10, in <module>
  259. execute_from_command_line(sys.argv)
  260. File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
  261. utility.execute()
  262. File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
  263. self.fetch_command(subcommand).run_from_argv(self.argv)
  264. File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 316, in run_from_argv
  265. self.execute(*args, **cmd_options)
  266. File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 353, in execute
  267. output = self.handle(*args, **options)
  268. File "/app/saleor/core/management/commands/populatedb.py", line 83, in handle
  269. create_products_by_schema(self.placeholders_dir, create_images)
  270. File "/app/saleor/core/utils/random_data.py", line 227, in create_products_by_schema
  271. placeholder_dir=placeholder_dir, create_images=create_images)
  272. File "/app/saleor/core/utils/random_data.py", line 187, in create_products
  273. product, _ = Product.objects.update_or_create(pk=pk, defaults=defaults)
  274. File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
  275. return getattr(self.get_queryset(), name)(*args, **kwargs)
  276. File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 506, in update_or_create
  277. obj, created = self._create_object_from_params(lookup, params, lock=True)
  278. File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 522, in _create_object_from_params
  279. obj = self.create(**params)
  280. File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 413, in create
  281. obj.save(force_insert=True, using=self.db)
  282. File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 718, in save
  283. force_update=force_update, update_fields=update_fields)
  284. File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 758, in save_base
  285. update_fields=update_fields, raw=raw, using=using,
  286. File "/usr/local/lib/python3.6/site-packages/django/dispatch/dispatcher.py", line 175, in send
  287. for receiver in self._live_receivers(sender)
  288. File "/usr/local/lib/python3.6/site-packages/django/dispatch/dispatcher.py", line 175, in <listcomp>
  289. for receiver in self._live_receivers(sender)
  290. File "/usr/local/lib/python3.6/site-packages/django_elasticsearch_dsl/signals.py", line 57, in handle_save
  291. registry.update(instance)
  292. File "/usr/local/lib/python3.6/site-packages/django_elasticsearch_dsl/registries.py", line 75, in update
  293. doc().update(instance, **kwargs)
  294. File "/usr/local/lib/python3.6/site-packages/django_elasticsearch_dsl/documents.py", line 231, in update
  295. self._get_actions(object_list, action), **kwargs
  296. File "/usr/local/lib/python3.6/site-packages/django_elasticsearch_dsl/documents.py", line 191, in bulk
  297. return bulk(client=self.connection, actions=actions, **kwargs)
  298. File "/usr/local/lib/python3.6/site-packages/elasticsearch/helpers/__init__.py", line 257, in bulk
  299. for ok, item in streaming_bulk(client, actions, **kwargs):
  300. File "/usr/local/lib/python3.6/site-packages/elasticsearch/helpers/__init__.py", line 192, in streaming_bulk
  301. raise_on_error, **kwargs)
  302. File "/usr/local/lib/python3.6/site-packages/elasticsearch/helpers/__init__.py", line 99, in _process_bulk_chunk
  303. raise e
  304. File "/usr/local/lib/python3.6/site-packages/elasticsearch/helpers/__init__.py", line 95, in _process_bulk_chunk
  305. resp = client.bulk('\n'.join(bulk_actions) + '\n', **kwargs)
  306. File "/usr/local/lib/python3.6/site-packages/elasticsearch/client/utils.py", line 76, in _wrapped
  307. return func(*args, params=params, **kwargs)
  308. File "/usr/local/lib/python3.6/site-packages/elasticsearch/client/__init__.py", line 1131, in bulk
  309. headers={'content-type': 'application/x-ndjson'})
  310. File "/usr/local/lib/python3.6/site-packages/elasticsearch/transport.py", line 314, in perform_request
  311. status, headers, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout)
  312. File "/usr/local/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 156, in perform_request
  313. raise ConnectionError('N/A', str(e), e)
  314. elasticsearch.exceptions.ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f34faa56438>: Failed to establish a new connection: [Errno -2] Name or service not known) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f34faa56438>: Failed to establish a new connection: [Errno -2] Name or service not known)
  315. [ec2-user@ip-172-31-44-58 saleor]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement