Ayuda :( Me sale este error cuando quiero correr el comando --bind
No se que mas pueda modificar
d@ubuntu-s-1vcpu-1gb-sfo3-01:~/TicketingSystem$ (env) mildred@ubuntu-s-1vcpu-1gb-sfo3-01:~/TicketingSystem$ gunicorn --bind 0.0.0.0:5000 wsgi:app
[2021-03-19 03:39:36 +0000] [22455] [INFO] Starting gunicorn 19.9.0
[2021-03-19 03:39:36 +0000] [22455] [INFO] Listening at: http://0.0.0.0:5000 (22455)
[2021-03-19 03:39:36 +0000] [22455] [INFO] Using worker: sync
/usr/lib/python3.8/os.py:1023: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
return io.open(fd, *args, **kwargs)
[2021-03-19 03:39:36 +0000] [22457] [INFO] Booting worker with pid: 22457
[2021-03-19 03:39:36 +0000] [22457] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/gunicorn/util.py", line 350, in import_app
__import__(module)
File "/home/mildred/TicketingSystem/wsgi.py", line 1, in <module>
from manage import app
File "/home/mildred/TicketingSystem/manage.py", line 28, in <module>
app = create_app(config_class)
File "/home/mildred/TicketingSystem/app/__init__.py", line 36, in create_app
bootstrap.init_app(app)
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/flask_bootstrap/__init__.py", line 154, in init_app
app.register_blueprint(blueprint, url_prefix='/bootstrap')
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/flask/app.py", line 66, in wrapper_func
return f(self, *args, **kwargs)
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/flask/app.py", line 1103, in register_blueprint
assert self.blueprints[blueprint.name] is blueprint, (
AssertionError: A name collision occurred between blueprints <flask.blueprints.Blueprint object at 0x7fbb8550da00> and <flask.blueprints.Blueprint object at 0x7fbb854f6bb0>. Both share the same name "bootstrap". Blueprints that are created on the fly need unique names.
[2021-03-19 03:39:36 +0000] [22457] [INFO] Worker exiting (pid: 22457)
[2021-03-19 03:39:37 +0000] [22455] [INFO] Shutting down: Master
[2021-03-19 03:39:37 +0000] [22455] [INFO] Reason: Worker failed to boot.
No se que mas pueda modificar
d@ubuntu-s-1vcpu-1gb-sfo3-01:~/TicketingSystem$ (env) mildred@ubuntu-s-1vcpu-1gb-sfo3-01:~/TicketingSystem$ gunicorn --bind 0.0.0.0:5000 wsgi:app
[2021-03-19 03:39:36 +0000] [22455] [INFO] Starting gunicorn 19.9.0
[2021-03-19 03:39:36 +0000] [22455] [INFO] Listening at: http://0.0.0.0:5000 (22455)
[2021-03-19 03:39:36 +0000] [22455] [INFO] Using worker: sync
/usr/lib/python3.8/os.py:1023: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
return io.open(fd, *args, **kwargs)
[2021-03-19 03:39:36 +0000] [22457] [INFO] Booting worker with pid: 22457
[2021-03-19 03:39:36 +0000] [22457] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/gunicorn/util.py", line 350, in import_app
__import__(module)
File "/home/mildred/TicketingSystem/wsgi.py", line 1, in <module>
from manage import app
File "/home/mildred/TicketingSystem/manage.py", line 28, in <module>
app = create_app(config_class)
File "/home/mildred/TicketingSystem/app/__init__.py", line 36, in create_app
bootstrap.init_app(app)
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/flask_bootstrap/__init__.py", line 154, in init_app
app.register_blueprint(blueprint, url_prefix='/bootstrap')
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/flask/app.py", line 66, in wrapper_func
return f(self, *args, **kwargs)
File "/home/mildred/TicketingSystem/env/lib/python3.8/site-packages/flask/app.py", line 1103, in register_blueprint
assert self.blueprints[blueprint.name] is blueprint, (
AssertionError: A name collision occurred between blueprints <flask.blueprints.Blueprint object at 0x7fbb8550da00> and <flask.blueprints.Blueprint object at 0x7fbb854f6bb0>. Both share the same name "bootstrap". Blueprints that are created on the fly need unique names.
[2021-03-19 03:39:36 +0000] [22457] [INFO] Worker exiting (pid: 22457)
[2021-03-19 03:39:37 +0000] [22455] [INFO] Shutting down: Master
[2021-03-19 03:39:37 +0000] [22455] [INFO] Reason: Worker failed to boot.