Skip to content

Instantly share code, notes, and snippets.

View dLobatog's full-sized avatar
🤗

Daniel Lobato García dLobatog

🤗
View GitHub Profile
This file has been truncated, but you can view the full file.
D, [2018-11-29T16:57:47.136661 #27718] DEBUG -- : Sending join_group API request 2 to kafka:29092
D, [2018-11-29T16:57:47.136910 #27718] DEBUG -- : Waiting for response 2 from kafka:29092
D, [2018-11-29T16:57:48.136611 #27718] DEBUG -- : Fetching batches
I, [2018-11-29T16:57:48.136837 #27718] INFO -- : There are no partitions to fetch from, sleeping for 1.0s
D, [2018-11-29T16:57:49.137060 #27718] DEBUG -- : Fetching batches
I, [2018-11-29T16:57:49.137269 #27718] INFO -- : There are no partitions to fetch from, sleeping for 1.0s
D, [2018-11-29T16:57:50.137526 #27718] DEBUG -- : Fetching batches
I, [2018-11-29T16:57:50.137828 #27718] INFO -- : There are no partitions to fetch from, sleeping for 1.0s
D, [2018-11-29T16:57:50.145452 #27718] DEBUG -- : Received response 2 from kafka:29092
I, [2018-11-29T16:57:50.147810 #27718] INFO -- : Joined group `compliance-reports-consumer` with member id `compliance_backend-e49ae503-d885-4b11-bd3d-c2215c9079c3`
travis encrypt-file compliance_frontend_key --debug
** Loading "/home/dlobatog/.travis/config.yml"
** Loading gh
** GET "config"
** took 0.13 seconds
** GitHub API: HEAD /repos/RedHatInsights/compliance-frontend-build
** took 0.67 seconds
** GET "repos/RedHatInsights/compliance-frontend-build"
** took 0.15 seconds
encrypting compliance_frontend_key for RedHatInsights/compliance-frontend-build
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC77L4DI+FmE3umw+IIajVz48KQ0PbTpGuxSMP9w9RoKVjdR3QjpTMWkXIcNUqnDajx/e3FKfvPMOSUYPRKIvz1rv+PjxHIEpY+eW43yaHa+nLW6VAbjjCND7E178+ui1rpsE+USPxgo1kav89okBMfmHunZP7sasJH+RiIyTQovHlO8QIZmoBMPvn9oQgxyFsg5RFAF0aSaE1m4AfT82rgf3o7JCpBOlkHZHerEwL/Yos497uOAK5bHyLNMxPdVXAg9iigu3nBn1SHmRqEiST7Lh46L4cUR0mxX26CzD2AyYxFlAS/ExlKf2JwsfO7m95m2di6Q3lrf/X7wm3yGnbdQfJpAQal4A9tYz+bO71H6TVWrvr0qCdaF+2AAUWzG96jd5Q2go9ZJ4uC8TjCiq75u943WMYA7n6/o5EutanBSATV84auTM+zp3C/qvtlPAbjcbAjKKda3drCiS3gE0fQGsOjxTIwKcYU032lAJ9d6x/Ixt0elH0PsSUFmx7lcu0nkWrT8070N3Q/A4n5B/ZG4GpuqOpp5ITke7o1pQbLhBLwwfrk6Up5GBvZBgSPBoN0tfNU8R5PXQAKuOKszMt4KX3a9v7sTRrvetofLp5ktiRBEY8PHuAy+moT5MIX6P+wkFofT8xWEAzKAjsg3rtiHC8HusPrJfXXlv998UeRNw== Insights Compliance Frontend Key
(byebug) Base64.decode64 identity_header
"{\"identity\":{\"account_number\":\"1234\",\"id\":\"12\x9C\xCC\xD0\x88\xB0\x89\xBD\xC9\x9D}\xA5\x90\x88\xE8\x88\xC8\xE4\xCC\xC8\xE4\x88\xB0\x89\x95\xB5\x85\xA5\xB0\x88\xE8\x89\x85\x01\x88\xB9\x8D\xBD\xB4\x88\xB0\x89\xD5\xCD\x95\xC9\xBAv\x16\xD6R#\xA2&\x14\x06\"\xE66\xF6\xD2\"\xC2&f\x97'7E\xF6\xE6\x16\xD6R#\xA2&\x12\"\xC2&\xC6\x177E\xF6\xE6\x16\xD6R#\xA2)\xD8\x88\x8B\b\x9A\\\xD7\xD8X\xDD\x1A]\x99H\x8E\x9D\x1C\x9DYK\b\x9B\e\xD8\xD8[\x19H\x8E\x88\x99[\x97\xD5T\xC8\x9F_"
(byebug) identity_header
"eyJpZGVudGl0eSI6eyJhY2NvdW50X251bWJlciI6IjEyMzQiLCJpZCI6IjEy\\nMzQiLCJvcmdfaWQiOiIyOTMyOSIsImVtYWlsIjoiYUBiLmNvbSIsInVzZXJu\\nYW1lIjoiYUBiLmNvbSIsImZpcnN0X25hbWUiOiJhIiwibGFzdF9uYW1lIjoi\\nYiIsImlzX2FjdGl2ZSI6dHJ1ZSwibG9jYWxlIjoiZW5fVVMifX0=\\n"
web_1 | Warning: Your Pipfile requires python_version 3.6, but you are using 3.7.1 (/root/.local/share/v/c/bin/python).
web_1 | $ pipenv --rm and rebuilding the virtual environment may resolve the issue.
web_1 | $ pipenv check will surely fail.
web_1 | /root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
web_1 | """)
web_1 | INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
web_1 | INFO [alembic.runtime.migration] Will assume transactional DDL.
web_1 | ERROR [root] Error: Target database is not up to date.
web_1 | Warning: Your Pipfile requires python_version 3.6, but you are using 3.7.1 (/root/.local/share/v/c/bin/python).
web_1 | Warning: Your Pipfile requires python_version 3.6, but you are using 3.7.1 (/root/.local/share/v/c/bin/python).
web_1 | $ pipenv --rm and rebuilding the virtual environment may resolve the issue.
web_1 | $ pipenv check will surely fail.
web_1 | Traceback (most recent call last):
web_1 | File "/usr/local/bin/pipenv", line 11, in <module>
web_1 | sys.exit(cli())
web_1 | File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 764, in __call__
web_1 | Warning: Your Pipfile requires python_version 3.6, but you are using 3.7.1 (/root/.local/share/v/c/bin/python).
web_1 | $ pipenv --rm and rebuilding the virtual environment may resolve the issue.
web_1 | $ pipenv check will surely fail.
web_1 | Traceback (most recent call last):
web_1 | File "/usr/local/bin/pipenv", line 11, in <module>
web_1 | sys.exit(cli())
web_1 | File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 764, in __call__
web_1 | return self.main(*args, **kwargs)
web_1 | File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 717, in main
{ TokenExpiredError: jwt expired
at /node_modules/jsonwebtoken/verify.js:141:21
at getSecret (/node_modules/jsonwebtoken/verify.js:76:14)
at Object.module.exports [as verify] (/node_modules/jsonwebtoken/verify.js:80:10)
at /spandx.config.js:48:13
at new Promise (<anonymous>)
at Object.authPlugin [as plugin] (/spandx.config.js:47:12)
at /node_modules/spandx/app/router.js:103:18
at call (/node_modules/connect/index.js:239:7)
at next (/node_modules/connect/index.js:183:5)
upload-service_1 | 2018-10-02 15:34:40,481 MainThread INFO -- Consumer client connected!
upload-service_1 | 2018-10-02 15:37:29,734 MainThread INFO -- identity - None
upload-service_1 | 2018-10-02 15:37:29,734 MainThread INFO -- tracking id [null] hash [51f5cc56222c4fcf99bdc190432dab9a] attempting upload
upload-service_1 | 2018-10-02 15:37:29,735 MainThread INFO -- 202 POST /api/v1/upload (172.18.0.1) 2.53ms
upload-service_1 | 2018-10-02 15:37:29,750 MainThread INFO -- tracking id [null] hash [51f5cc56222c4fcf99bdc190432dab9a] uploaded! elapsed [0.013249sec] url [http://minio:9000/insights-upload-quarantine/51f5cc56222c4fcf99bdc190432dab9a?AWSAccessKeyId=BQA2GEXO711FVBVXDWKM&Signature=D3zjNP5fXjoslHF31ZIfvSdSvt8%3D&Expires=1538494749]
upload-service_1 | 2018-10-02 15:37:29,750 MainThread INFO -- Data for hash [51f5cc56222c4fcf99bdc190432dab9a] put on produce queue (qsize: 1)
upload-service_1 | 2018-10-02 15:37:29,774 MainThread INFO -- Popped item from produce queue (qsize: 0): topic compliance: {'rh_
@dLobatog
dLobatog / -
Created September 28, 2018 17:26
upload-service_1 | 2018-09-28 17:20:04,392 MainThread ERROR -- upload id: e77b8ff3e36d4e62affd9065edd82539 upload failed or timed out after 60sec!
upload-service_1 | 2018-09-28 17:20:09,947 MainThread INFO -- identity - False
upload-service_1 | 2018-09-28 17:20:09,947 MainThread INFO -- tracking id [null] hash [1ce698cb12c54ca79ad90e0380f69cfd] attempting upload
upload-service_1 | 2018-09-28 17:20:09,949 MainThread INFO -- 202 POST /api/v1/upload (172.18.0.1) 5.26ms
upload-service_1 | 2018-09-28 17:20:09,950 MainThread ERROR -- Exception hit uploading: tracking id [null] hash [1ce698cb12c54ca79ad90e0380f69cfd]
upload-service_1 | Traceback (most recent call last):
upload-service_1 | File "./app.py", line 270, in upload
upload-service_1 | None, storage.write, filename, storage.QUARANTINE, hash_value
upload-service_1 | ValueError: too many values to unpack (expected 2)