d3vzer0 / reternal-quickstart

Repo containing docker-compose files and setup scripts without having to clone the individual reternal components
107 stars 24 forks source link

Payloads failing to build #10

Open mike-dt opened 5 years ago

mike-dt commented 5 years ago

I've built RE:Ternal via manual docker method and set it up. It appears to be working except for when it comes to building the payload to install on endpoints. There are no console errors in the browser but I get the below when checking the status. Failed builds

mike-dt commented 5 years ago

Saw that Ansible way is preferred install but when doing this I am unable to login to the ui with username/pass provided in the setup. I also am unable to create a user with the python script.

d3vzer0 commented 5 years ago

Hiya! The docker-compose method is deprecated so I'll remove it soon :) Do you happen to have any info/logs from your login request (ie. what error does the server respond with? And did you get the new user/pass during the Ansible install?

mike-dt commented 5 years ago

Hey, thanks for the reply! I've figured out that the docker method is deprecated from one of the other issue tickets. With the ansible method I am able to get through the entire build process, it asks for username/pass and then continues. When it finishes there are no errors from ansible. I can get to the login page but when I submit login creds, it throws the 500: internal error. Checking container logs in docker it throws a big trace back but looks like a mongo auth issue maybe? See log :

{"log":"172.18.0.8 - - [19/Sep/2019 14:49:27] \"POST /api/v1/login HTTP/1.1\" 500 48581 0.016662\n","stream":"stderr","time":"2019-09-19T14:49:30.334383472Z"} {"log":"(10) accepted ('172.18.0.8', 42632)\n","stream":"stderr","time":"2019-09-19T14:49:30.334387657Z"} {"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2019-09-19T14:49:30.33439144Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask/app.py\", line 2449, in wsgi_app\n","stream":"stderr","time":"2019-09-19T14:49:30.334395282Z"} {"log":" response = self.handle_exception(e)\n","stream":"stderr","time":"2019-09-19T14:49:30.334400241Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask_cors/extension.py\", line 161, in wrapped_function\n","stream":"stderr","time":"2019-09-19T14:49:30.334404328Z"} {"log":" return cors_after_request(app.make_response(f(*args, kwargs)))\n","stream":"stderr","time":"2019-09-19T14:49:30.334408506Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask_restful/init.py\", line 269, in error_router\n","stream":"stderr","time":"2019-09-19T14:49:30.334412524Z"} {"log":" return original_handler(e)\n","stream":"stderr","time":"2019-09-19T14:49:30.334416827Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask/app.py\", line 1866, in handle_exception\n","stream":"stderr","time":"2019-09-19T14:49:30.334420723Z"} {"log":" reraise(exc_type, exc_value, tb)\n","stream":"stderr","time":"2019-09-19T14:49:30.334424997Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask/_compat.py\", line 38, in reraise\n","stream":"stderr","time":"2019-09-19T14:49:30.334428904Z"} {"log":" raise value.with_traceback(tb)\n","stream":"stderr","time":"2019-09-19T14:49:30.334433128Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask/app.py\", line 2446, in wsgi_app\n","stream":"stderr","time":"2019-09-19T14:49:30.334437173Z"} {"log":" response = self.full_dispatch_request()\n","stream":"stderr","time":"2019-09-19T14:49:30.334441372Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask/app.py\", line 1951, in full_dispatch_request\n","stream":"stderr","time":"2019-09-19T14:49:30.334445544Z"} {"log":" rv = self.handle_user_exception(e)\n","stream":"stderr","time":"2019-09-19T14:49:30.334449884Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask_cors/extension.py\", line 161, in wrapped_function\n","stream":"stderr","time":"2019-09-19T14:49:30.334454024Z"} {"log":" return cors_after_request(app.make_response(f(args, kwargs)))\n","stream":"stderr","time":"2019-09-19T14:49:30.334458427Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask_restful/init.py\", line 269, in error_router\n","stream":"stderr","time":"2019-09-19T14:49:30.334462558Z"} {"log":" return original_handler(e)\n","stream":"stderr","time":"2019-09-19T14:49:30.334466768Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask/app.py\", line 1820, in handle_user_exception\n","stream":"stderr","time":"2019-09-19T14:49:30.334470846Z"} {"log":" reraise(exc_type, exc_value, tb)\n","stream":"stderr","time":"2019-09-19T14:49:30.334475014Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask/_compat.py\", line 38, in reraise\n","stream":"stderr","time":"2019-09-19T14:49:30.334478867Z"} {"log":" raise value.with_traceback(tb)\n","stream":"stderr","time":"2019-09-19T14:49:30.334483005Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask/app.py\", line 1949, in full_dispatch_request\n","stream":"stderr","time":"2019-09-19T14:49:30.334486915Z"} {"log":" rv = self.dispatch_request()\n","stream":"stderr","time":"2019-09-19T14:49:30.33449108Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask/app.py\", line 1935, in dispatch_request\n","stream":"stderr","time":"2019-09-19T14:49:30.334495196Z"} {"log":" return self.view_functions[rule.endpoint](req.view_args)\n","stream":"stderr","time":"2019-09-19T14:49:30.3344996Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask_restful/init.py\", line 458, in wrapper\n","stream":"stderr","time":"2019-09-19T14:49:30.334507402Z"} {"log":" resp = resource(args, kwargs)\n","stream":"stderr","time":"2019-09-19T14:49:30.334511698Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask/views.py\", line 89, in view\n","stream":"stderr","time":"2019-09-19T14:49:30.33451547Z"} {"log":" return self.dispatch_request(*args, *kwargs)\n","stream":"stderr","time":"2019-09-19T14:49:30.334519841Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/flask_restful/init.py\", line 573, in dispatch_request\n","stream":"stderr","time":"2019-09-19T14:49:30.33452465Z"} {"log":" resp = meth(args, **kwargs)\n","stream":"stderr","time":"2019-09-19T14:49:30.33452921Z"} {"log":" File \"/reternal-backend/app/api_generic.py\", line 53, in post\n","stream":"stderr","time":"2019-09-19T14:49:30.334533268Z"} {"log":" validate = User(args.username).login(args.password)\n","stream":"stderr","time":"2019-09-19T14:49:30.33453763Z"} {"log":" File \"/reternal-backend/app/operations/op_user.py\", line 13, in login\n","stream":"stderr","time":"2019-09-19T14:49:30.334542039Z"} {"log":" user_object = Users.objects.get(username=self.username)\n","stream":"stderr","time":"2019-09-19T14:49:30.334546775Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/mongoengine/queryset/base.py\", line 266, in get\n","stream":"stderr","time":"2019-09-19T14:49:30.334551517Z"} {"log":" result = six.next(queryset)\n","stream":"stderr","time":"2019-09-19T14:49:30.334556532Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/mongoengine/queryset/base.py\", line 1485, in next\n","stream":"stderr","time":"2019-09-19T14:49:30.33456097Z"} {"log":" raw_doc = six.next(self._cursor)\n","stream":"stderr","time":"2019-09-19T14:49:30.334566098Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/pymongo/cursor.py\", line 1156, in next\n","stream":"stderr","time":"2019-09-19T14:49:30.3345704Z"} {"log":" if len(self.data) or self._refresh():\n","stream":"stderr","time":"2019-09-19T14:49:30.33457552Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/pymongo/cursor.py\", line 1073, in _refresh\n","stream":"stderr","time":"2019-09-19T14:49:30.334580363Z"} {"log":" self.send_message(q)\n","stream":"stderr","time":"2019-09-19T14:49:30.334585174Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/pymongo/cursor.py\", line 955, in __send_message\n","stream":"stderr","time":"2019-09-19T14:49:30.334588994Z"} {"log":" address=self.__address)\n","stream":"stderr","time":"2019-09-19T14:49:30.334593097Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py\", line 1347, in _run_operation_with_response\n","stream":"stderr","time":"2019-09-19T14:49:30.337732304Z"} {"log":" exhaust=exhaust)\n","stream":"stderr","time":"2019-09-19T14:49:30.337748953Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py\", line 1465, in _retryable_read\n","stream":"stderr","time":"2019-09-19T14:49:30.337754342Z"} {"log":" return func(session, server, sock_info, slave_ok)\n","stream":"stderr","time":"2019-09-19T14:49:30.337758906Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py\", line 1341, in _cmd\n","stream":"stderr","time":"2019-09-19T14:49:30.337763221Z"} {"log":" unpack_res)\n","stream":"stderr","time":"2019-09-19T14:49:30.337767516Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/pymongo/server.py\", line 136, in run_operation_with_response\n","stream":"stderr","time":"2019-09-19T14:49:30.337771445Z"} {"log":" _check_command_response(first)\n","stream":"stderr","time":"2019-09-19T14:49:30.337775873Z"} {"log":" File \"/usr/local/lib/python3.6/site-packages/pymongo/helpers.py\", line 159, in _check_command_response\n","stream":"stderr","time":"2019-09-19T14:49:30.337779622Z"} {"log":" raise OperationFailure(msg % errmsg, code, response)\n","stream":"stderr","time":"2019-09-19T14:49:30.337796474Z"} {"log":"pymongo.errors.OperationFailure: command find requires authentication\n","stream":"stderr","time":"2019-09-19T14:49:30.3378016Z"}