ThreatKB icon indicating copy to clipboard operation
ThreatKB copied to clipboard

Unable to start the container - using the docker compose

Open horialex opened this issue 5 years ago • 10 comments

I am unable to start the contiainer using the docker compse up command I followed the docker instalation guide Build the image and than docker compose up My OS is ubuntu 18.04 - fresh install - no other containers on pc

image

horialex avatar Apr 16 '20 17:04 horialex

@horialex first and foremost... thanks for your interest. Second, ThreatKB, while we use it in production today, is super ALPHA state. Caveats aside, if you want to give it a shot, try the staging branch (not master) and let us know if you experience the same issue.

pedramamini avatar Apr 16 '20 17:04 pedramamini

Thanks I appreciate the help, I hope it works I will try it next week

On Thu, 16 Apr 2020 at 20:40, Pedram Amini [email protected] wrote:

@horialex https://github.com/horialex first and foremost... thanks for your interest. Second, ThreatKB, while we use it in production today, is super ALPHA state. Caveats aside, if you want to give it a shot, try the staging branch (not master) and let us know if you experience the same issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/InQuest/ThreatKB/issues/378#issuecomment-614795750, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZVG5UKGQNLUHK2JSCGK6TRM47KBANCNFSM4MJ5MLZA .

horialex avatar Apr 18 '20 16:04 horialex

hello, I tried with staging branch but still not working

horialex avatar Apr 23 '20 12:04 horialex

Could you describe what problem you had? Share any relevant screenshots and error messages.

pedramamini avatar Apr 23 '20 13:04 pedramamini

So i followed the steps from docker installation steps and the outcome was the following: I will put a few screenshots with the steps that i took and with the output:

Branch used Branch

**docker install Install1 **

install problems

Prob1

Prob2

Prob3

Prob4

finish install finish install

composer up composer start

composer error

composer error

composer output -I have attached a zip containing the output of the composer step it is archived because it didn't allowed me to put a text file in the comments

Composert command line output.zip

URL error when opening the suggested link

URL error

horialex avatar Apr 24 '20 06:04 horialex

can you please help me on this?

horialex avatar Apr 24 '20 06:04 horialex

@danny248 Fixed...please review as there changes to Dockerfile like Ubuntu version, etc. https://github.com/InQuest/ThreatKB/pull/386

dcuellar322 avatar Jul 30 '20 03:07 dcuellar322

I will try it, but at the moment I am very sick and I can't work on it. Thanks for the effort anyway I appreciate it.

On Thu, 30 Jul 2020 at 06:48, David Cuellar [email protected] wrote:

@danny248 https://github.com/danny248 Fixed...please review as there changes to Dockerfile like Ubuntu version, etc. #386 https://github.com/InQuest/ThreatKB/pull/386

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/InQuest/ThreatKB/issues/378#issuecomment-666080467, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZVG5S325HQQOCGWEXA4X3R6DUQBANCNFSM4MJ5MLZA .

horialex avatar Jul 30 '20 16:07 horialex

Hello, I tried using it on the issue branch and i managed to start the containers but I have an UI problem: Here are the logs, it seems that some bootstrap files are not loaded

pid: 66|app: 0|req: 1/1] 172.20.0.1 () {36 vars in 570 bytes} [Sun Nov 8 07:45:53 2020] GET / => generated 12635 bytes in 16 msecs via sendfile() (HTTP/1.1 200) 8 headers in 304 bytes (0 switches on core 0) [pid: 63|app: 0|req: 1/2] 172.20.0.1 () {36 vars in 587 bytes} [Sun Nov 8 07:45:54 2020] GET /lib/bootstrap-css/css/bootstrap.css => generated 146010 bytes in 18 msecs via sendfile() (HTTP/1.1 200) 8 headers in 305 bytes (0 switches on core 0) [2020-11-08 07:45:54,136] ERROR in error_handling: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1935, in dispatch_request return self.view_functionsrule.endpoint File "/usr/local/lib/python2.7/dist-packages/flask/helpers.py", line 1082, in send_static_file self.static_folder, filename, cache_timeout=cache_timeout File "/usr/local/lib/python2.7/dist-packages/flask/helpers.py", line 767, in send_from_directory raise NotFound() NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1935, in dispatch_request return self.view_functionsrule.endpoint File "/usr/local/lib/python2.7/dist-packages/flask/helpers.py", line 1082, in send_static_file self.static_folder, filename, cache_timeout=cache_timeout File "/usr/local/lib/python2.7/dist-packages/flask/helpers.py", line 767, in send_from_directory raise NotFound() NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. [2020-11-08 07:45:54,215] ERROR in app: Exception on /lib/angular-bootstrap/ui-bootstrap-csp.css [GET] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1815, in handle_user_exception return self.handle_http_exception(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1743, in handle_http_exception return handler(e) File "/opt/threatkb/app/routes/error_handling.py", line 31, in handle_exception user_id=current_user.id, File "/usr/local/lib/python2.7/dist-packages/werkzeug/local.py", line 348, in getattr return getattr(self._get_current_object(), name) AttributeError: 'AnonymousUserMixin' object has no attribute 'id' Exception on /lib/angular-bootstrap/ui-bootstrap-csp.css [GET] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1815, in handle_user_exception return self.handle_http_exception(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1743, in handle_http_exception return handler(e) File "/opt/threatkb/app/routes/error_handling.py", line 31, in handle_exception user_id=current_user.id, File "/usr/local/lib/python2.7/dist-packages/werkzeug/local.py", line 348, in getattr return getattr(self._get_current_object(), name) AttributeError: 'AnonymousUserMixin' object has no attribute 'id' [2020-11-08 07:45:54,228] ERROR in error_handling: 500 error message '500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.' 500 error message '500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.'

horialex avatar Nov 08 '20 07:11 horialex

It seems that I can't access this file : http://127.0.0.1:5000/lib/angular-bootstrap/ui-bootstrap-csp.css

500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

horialex avatar Nov 08 '20 08:11 horialex

This issue should now be resolved under the rc branch.

battleoverflow avatar Aug 01 '23 20:08 battleoverflow