Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flask is continuing to restart #4

Closed
jgomez177 opened this issue Feb 1, 2023 · 15 comments
Closed

flask is continuing to restart #4

jgomez177 opened this issue Feb 1, 2023 · 15 comments

Comments

@jgomez177
Copy link

2023-02-01 13:49:47 Traceback (most recent call last):
2023-02-01 13:49:47 File "/usr/local/bin/gunicorn", line 8, in
2023-02-01 13:49:47 sys.exit(run())
2023-02-01 13:49:47 File "/usr/local/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 58, in run
2023-02-01 13:49:47 WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
2023-02-01 13:49:47 File "/usr/local/lib/python3.9/site-packages/gunicorn/app/base.py", line 228, in run
2023-02-01 13:49:47 super().run()
2023-02-01 13:49:47 File "/usr/local/lib/python3.9/site-packages/gunicorn/app/base.py", line 72, in run
2023-02-01 13:49:47 Arbiter(self).run()
2023-02-01 13:49:47 File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 229, in run
2023-02-01 13:49:47 self.halt(reason=inst.reason, exit_status=inst.exit_status)
2023-02-01 13:49:47 File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 342, in halt
2023-02-01 13:49:47 self.stop()
2023-02-01 13:49:47 File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 393, in stop
2023-02-01 13:49:47 time.sleep(0.1)
2023-02-01 13:49:47 File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
2023-02-01 13:49:47 self.reap_workers()
2023-02-01 13:49:47 File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2023-02-01 13:49:47 raise HaltServer(reason, self.WORKER_BOOT_ERROR)
2023-02-01 13:49:47 gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2023-02-01 13:49:47 Helpers
2023-02-01 13:49:47 ['system.users', 'system.version']

@Vadims06
Copy link
Owner

Vadims06 commented Feb 2, 2023

Hi @jgomez177 , acknowledge, v2.29 constantly rebooting, v2.28 works fine. I will have a look at it. Thank you.

@Vadims06
Copy link
Owner

Vadims06 commented Feb 4, 2023

it happens because of python-openapi/openapi-spec-validator#173

@BrianDavisson
Copy link

@Vadims06 Thanks for the fix how do I down level to v2.28? @jgomez177 kudo's to you for reporting the issue.

@Vadims06
Copy link
Owner

Vadims06 commented Feb 8, 2023

Hi @BrianDavisson, you can set exact version in docker-compose.yml file in this line image: vadims06/topolograph:2.28 or leave it as is image: vadims06/topolograph:latest. I think I fix the issue in 2.29, 2.29.1 and latest. Please check and give me an update.

@Mustafa-A-Jasim
Copy link

If it's not too much trouble, could you assist me with the vadims06/topolograph? I have downloaded it, but whenever I try to create a container,

PS C:\ docker run --name topolograph -p 8080:80 -d vadims06/topolograph
e065a8b837e37880aebc594dbd4effa02d639cc6565fc5fffe611a7eff81a710

I receive the following message in my terminal:
log.
2023-02-19 19:22:03 [2023-02-19 16:22:03 +0000] [1] [INFO] Starting gunicorn 20.0.4
2023-02-19 19:22:03 [2023-02-19 16:22:03 +0000] [1] [INFO] Listening at: http://0.0.0.0:5000 (1)
2023-02-19 19:22:03 [2023-02-19 16:22:03 +0000] [1] [INFO] Using worker: sync
2023-02-19 19:22:03 [2023-02-19 16:22:03 +0000] [7] [INFO] Booting worker with pid: 7
2023-02-19 19:22:03 [2023-02-19 16:22:03 +0000] [8] [INFO] Booting worker with pid: 8
2023-02-19 19:22:04 [2023-02-19 16:22:04 +0000] [9] [INFO] Booting worker with pid: 9
2023-02-19 19:22:04 [2023-02-19 16:22:04 +0000] [10] [INFO] Booting worker with pid: 10
2023-02-19 19:22:34 [2023-02-19 16:22:34 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:7)
2023-02-19 19:22:34 [2023-02-19 16:22:34 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:8)
2023-02-19 19:22:34 [2023-02-19 16:22:34 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:9)
2023-02-19 19:22:34 [2023-02-19 16:22:34 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:10)
2023-02-19 19:22:34 [2023-02-19 16:22:34 +0000] [7] [INFO] Worker exiting (pid: 7)
2023-02-19 19:22:34 [2023-02-19 16:22:34 +0000] [8] [INFO] Worker exiting (pid: 8)
2023-02-19 19:22:34 [2023-02-19 16:22:34 +0000] [9] [INFO] Worker exiting (pid: 9)
2023-02-19 19:22:34 [2023-02-19 16:22:34 +0000] [10] [INFO] Worker exiting (pid: 10)
2023-02-19 19:22:34 config

@Vadims06
Copy link
Owner

Hi @aliraqbachelor , sure I can help, but before this could you please clarify the intention to run Topolograph container only, because it doesn't work without mongoDB and nginx server. That's why they are combined on docker-compose file. To launch it - run docker-compose up -d.

@Mustafa-A-Jasim
Copy link

oh im new in docker community , but it seems that there is an issue with the installation of Docker Compose on my Windows system.
I am greatly appreciative of your hard work on this tool, as it has been extremely helpful for me. It might be worth considering including this tool with BGP and SRv6 in the next update. all the best

@Vadims06
Copy link
Owner

Thank you for your feedback, could you please describe more use cases of implementing BGP into Topolograph? Do you want to see the topology or track bgp changes?..

@Mustafa-A-Jasim
Copy link

Sure, in my case we use ISIS/IPv6 as an underlying protocol in combination with both , the Vander is huawei , where topo. Return empty for ipv6 lsdp

@Vadims06
Copy link
Owner

Great case, would you like to add Isis/ipv6 support for Topolograph? What do I need is the output of Isis lsdb...

@Mustafa-A-Jasim
Copy link

That Will be good, i have email u @admin topo , Thank you

@BrianDavisson
Copy link

BrianDavisson commented Feb 20, 2023 via email

@change48
Copy link

Hi @Vadims06 the latest version of flask has the problem of non-stop restarting again, web return error 502, test cannot be run in the ubuntu22 server and ubuntu18 desktop environments. It is known that 2.28 can run but lacks some features of the new version.is it possible that the recently updated version has reintroduced the bug? please help to check it when you have time.


docker logs flask -f

[2023-07-24 14:04:34 +0000] [8] [INFO] Worker exiting (pid: 8)
[2023-07-24 14:04:34 +0000] [9] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base.py", line 119, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
return self.load_wsgiapp()
File "/usr/local/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python3.9/site-packages/gunicorn/util.py", line 358, in import_app
mod = importlib.import_module(module)
File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 1181, in exec_module
File "", line 228, in _call_with_frames_removed
File "routes.pyx", line 8, in init routes
File "Helpers.pyx", line 1852, in init Helpers
TypeError: 'type' object is not subscriptable
[2023-07-24 14:04:34 +0000] [9] [INFO] Worker exiting (pid: 9)
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 209, in run
self.sleep()
File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 357, in sleep
ready = select.select([self.PIPE[0]], [], [], 1.0)
File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
self.reap_workers()
File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/gunicorn", line 8, in
sys.exit(run())
File "/usr/local/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 58, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File "/usr/local/lib/python3.9/site-packages/gunicorn/app/base.py", line 228, in run
super().run()
File "/usr/local/lib/python3.9/site-packages/gunicorn/app/base.py", line 72, in run
Arbiter(self).run()
File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 229, in run
self.halt(reason=inst.reason, exit_status=inst.exit_status)
File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 342, in halt
self.stop()
File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 393, in stop
time.sleep(0.1)
File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
self.reap_workers()
File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>


docker logs webserver

2023/07/24 12:27:34 [notice] 1#1: start worker process 34
172.18.0.1 - - [24/Jul/2023:12:28:01 +0000] "GET / HTTP/1.1" 502 157 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"
2023/07/24 12:28:01 [error] 34#34: *1 connect() failed (113: No route to host) while connecting to upstream, client: 172.18.0.1, server: _, request: "GET / HTTP/1.1", upstream: "http://172.18.0.2:5000/", host: "127.0.0.1:8080"

@Vadims06
Copy link
Owner

Hi @change48 , thank you for your feedback. I've just re-uploaded v2.34/latest version, please check.

@change48
Copy link

/

Hi @change48 , thank you for your feedback. I've just re-uploaded v2.34/latest version, please check.

Hi @Vadims06 ,test latest 2.34 works fine, thanks for your quick response.

@Vadims06 Vadims06 closed this as completed Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants