Skip to content

Not loading #21

Open
Open
@Lawkss

Description

@Lawkss

When I click on visionatrix in NC at the top all I get is an empty screen.

In Portainer I see the container is up and running.

log:

2025-07-13T14:38:22.988951116Z HP_SHARED_KEY is not set. Skipping FRP configuration.
2025-07-13T14:38:22.999366801Z Added visionatrix to /etc/hosts
2025-07-13T14:38:23.007867113Z PostgreSQL binaries found.
2025-07-13T14:38:23.016535908Z Starting PostgreSQL...
2025-07-13T14:38:23.031368959Z pg_ctl: another server might be running; trying to start server anyway
2025-07-13T14:38:24.061026590Z waiting for server to start.... done
2025-07-13T14:38:24.061043966Z server started
2025-07-13T14:38:24.062060890Z Waiting for PostgreSQL to start...
2025-07-13T14:38:24.081894083Z PostgreSQL is up and running.
2025-07-13T14:38:24.123130437Z CREATE ROLE
2025-07-13T14:38:24.139565825Z ALTER ROLE
2025-07-13T14:38:25.028146140Z CREATE DATABASE
2025-07-13T14:38:25.029790009Z DATABASE_URI was not set. It is now set to: postgresql+psycopg://visionatrix:visionatrix@/visionatrix?host=/var/run/postgresql
2025-07-13T14:38:25.030132502Z Starting main command as a Python script: /ex_app/lib/main.py
2025-07-13T14:38:25.732550401Z [DEBUG]: PROJECT_ROOT_FOLDER= /
2025-07-13T14:38:25.732568657Z [DEBUG]: STATIC_FRONTEND_PRESENT= True
2025-07-13T14:38:25.738621389Z [DEBUG]: Launched Visionatrix server in background
2025-07-13T14:38:40.739321790Z [DEBUG]: Launched Visionatrix worker in background
2025-07-13T14:38:47.535501504Z [DEBUG]: PROJECT_ROOT_FOLDER= /
2025-07-13T14:38:47.535549526Z [DEBUG]: STATIC_FRONTEND_PRESENT= True
2025-07-13T14:38:47.538097214Z INFO:     Started server process [1]
2025-07-13T14:38:47.538116112Z INFO:     Waiting for application startup.
2025-07-13T14:38:47.538272248Z TRACE:    ASGI [1] Started scope={'type': 'lifespan', 'asgi': {'version': '3.0', 'spec_version': '2.0'}, 'state': {}}
2025-07-13T14:38:47.538318404Z TRACE:    ASGI [1] Receive {'type': 'lifespan.startup'}
2025-07-13T14:38:47.538378410Z Visionatrix
2025-07-13T14:38:47.538413795Z TRACE:    ASGI [1] Send {'type': 'lifespan.startup.complete'}
2025-07-13T14:38:47.540297970Z INFO:     Application startup complete.
2025-07-13T14:38:47.541148416Z INFO:     Uvicorn running on http://127.0.0.1:23000 (Press CTRL+C to quit)
2025-07-13T14:38:57.101548910Z HP_SHARED_KEY is not set. Skipping FRP configuration.
2025-07-13T14:38:57.104498652Z Added visionatrix to /etc/hosts
2025-07-13T14:38:57.106790916Z PostgreSQL binaries found.
2025-07-13T14:38:57.116350185Z Starting PostgreSQL...
2025-07-13T14:38:57.122751452Z pg_ctl: another server might be running; trying to start server anyway
2025-07-13T14:38:58.135527547Z waiting for server to start.... done
2025-07-13T14:38:58.135547949Z server started
2025-07-13T14:38:58.136698817Z Waiting for PostgreSQL to start...
2025-07-13T14:38:58.155214440Z PostgreSQL is up and running.
2025-07-13T14:38:58.186493291Z ALTER ROLE
2025-07-13T14:38:58.203435206Z DATABASE_URI is already set to: postgresql+psycopg://visionatrix:visionatrix@/visionatrix?host=/var/run/postgresql
2025-07-13T14:38:58.203764452Z Starting main command as a Python script: /ex_app/lib/main.py
2025-07-13T14:38:58.911345227Z [DEBUG]: PROJECT_ROOT_FOLDER= /
2025-07-13T14:38:58.911369815Z [DEBUG]: STATIC_FRONTEND_PRESENT= True
2025-07-13T14:38:58.917434099Z [DEBUG]: Launched Visionatrix server in background
2025-07-13T14:39:13.918143756Z [DEBUG]: Launched Visionatrix worker in background
2025-07-13T14:39:14.251940350Z [DEBUG]: PROJECT_ROOT_FOLDER= /
2025-07-13T14:39:14.251959942Z [DEBUG]: STATIC_FRONTEND_PRESENT= True
2025-07-13T14:39:14.256638809Z INFO:     Started server process [1]
2025-07-13T14:39:14.256660937Z INFO:     Waiting for application startup.
2025-07-13T14:39:14.256890034Z TRACE:    ASGI [1] Started scope={'type': 'lifespan', 'asgi': {'version': '3.0', 'spec_version': '2.0'}, 'state': {}}
2025-07-13T14:39:14.256961331Z TRACE:    ASGI [1] Receive {'type': 'lifespan.startup'}
2025-07-13T14:39:14.256979894Z Visionatrix
2025-07-13T14:39:14.257162580Z TRACE:    ASGI [1] Send {'type': 'lifespan.startup.complete'}
2025-07-13T14:39:14.258880469Z INFO:     Application startup complete.
2025-07-13T14:39:14.259485216Z INFO:     Uvicorn running on http://127.0.0.1:23000 (Press CTRL+C to quit)
2025-07-13T14:39:19.629816744Z TRACE:    127.0.0.1:58426 - HTTP connection made
2025-07-13T14:39:19.630166743Z TRACE:    127.0.0.1:58426 - ASGI [2] Started scope={'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 23000), 'client': ('127.0.0.1', 58426), 'scheme': 'http', 'root_path': '', 'headers': '<...>', 'state': {}, 'method': 'GET', 'path': '/heartbeat', 'raw_path': b'/heartbeat', 'query_string': b''}
2025-07-13T14:39:19.630586320Z TRACE:    127.0.0.1:58426 - ASGI [2] Send {'type': 'http.response.start', 'status': 200, 'headers': '<...>'}
2025-07-13T14:39:19.630721255Z INFO:     127.0.0.1:58426 - "GET /heartbeat HTTP/1.1" 200 OK
2025-07-13T14:39:19.630786225Z TRACE:    127.0.0.1:58426 - ASGI [2] Send {'type': 'http.response.body', 'body': '<15 bytes>'}
2025-07-13T14:39:19.630845584Z TRACE:    127.0.0.1:58426 - ASGI [2] Completed
2025-07-13T14:39:19.634855257Z TRACE:    127.0.0.1:58426 - ASGI [3] Started scope={'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 23000), 'client': ('127.0.0.1', 58426), 'scheme': 'http', 'root_path': '', 'headers': '<...>', 'state': {}, 'method': 'POST', 'path': '/init', 'raw_path': b'/init', 'query_string': b''}
2025-07-13T14:39:19.640922118Z TRACE:    127.0.0.1:58426 - ASGI [3] Send {'type': 'http.response.start', 'status': 200, 'headers': '<...>'}
2025-07-13T14:39:19.640959434Z INFO:     127.0.0.1:58426 - "POST /init HTTP/1.1" 200 OK
2025-07-13T14:39:19.641093530Z TRACE:    127.0.0.1:58426 - ASGI [3] Send {'type': 'http.response.body', 'body': '<2 bytes>'}
2025-07-13T14:39:19.642926185Z TRACE:    127.0.0.1:58426 - HTTP connection lost
2025-07-13T14:39:19.826369709Z TRACE:    127.0.0.1:58442 - HTTP connection made
2025-07-13T14:39:19.826572270Z TRACE:    127.0.0.1:58442 - ASGI [4] Started scope={'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 23000), 'client': ('127.0.0.1', 58442), 'scheme': 'http', 'root_path': '', 'headers': '<...>', 'state': {}, 'method': 'GET', 'path': '/heartbeat', 'raw_path': b'/heartbeat', 'query_string': b''}
2025-07-13T14:39:19.826740785Z TRACE:    127.0.0.1:58442 - ASGI [4] Send {'type': 'http.response.start', 'status': 200, 'headers': '<...>'}
2025-07-13T14:39:19.826818322Z INFO:     127.0.0.1:58442 - "GET /heartbeat HTTP/1.1" 200 OK
2025-07-13T14:39:19.826907480Z TRACE:    127.0.0.1:58442 - ASGI [4] Send {'type': 'http.response.body', 'body': '<15 bytes>'}
2025-07-13T14:39:19.826932942Z TRACE:    127.0.0.1:58442 - ASGI [4] Completed
2025-07-13T14:39:19.827721494Z TRACE:    127.0.0.1:58442 - ASGI [5] Started scope={'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 23000), 'client': ('127.0.0.1', 58442), 'scheme': 'http', 'root_path': '', 'headers': '<...>', 'state': {}, 'method': 'PUT', 'path': '/enabled', 'raw_path': b'/enabled', 'query_string': b'enabled=1'}
2025-07-13T14:39:19.829727134Z [enabled_handler]: Hello from visionatrix
2025-07-13T14:39:20.040415250Z TRACE:    127.0.0.1:58442 - ASGI [5] Send {'type': 'http.response.start', 'status': 200, 'headers': '<...>'}
2025-07-13T14:39:20.040677577Z INFO:     127.0.0.1:58442 - "PUT /enabled?enabled=1 HTTP/1.1" 200 OK
2025-07-13T14:39:20.040693806Z TRACE:    127.0.0.1:58442 - ASGI [5] Send {'type': 'http.response.body', 'body': '<12 bytes>'}
2025-07-13T14:39:20.040698350Z TRACE:    127.0.0.1:58442 - ASGI [5] Completed
2025-07-13T14:39:20.041474369Z TRACE:    127.0.0.1:58442 - HTTP connection lost
2025-07-13T14:39:20.043105764Z TRACE:    127.0.0.1:58426 - ASGI [3] Completed
2025-07-13T14:43:55.097923171Z TRACE:    127.0.0.1:39534 - HTTP connection made
2025-07-13T14:43:55.098275853Z TRACE:    127.0.0.1:39534 - ASGI [6] Started scope={'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 23000), 'client': ('127.0.0.1', 39534), 'scheme': 'http', 'root_path': '', 'headers': '<...>', 'state': {}, 'method': 'GET', 'path': '/ex_app/img/app.svg', 'raw_path': b'/ex_app/img/app.svg', 'query_string': b''}
2025-07-13T14:43:55.099188449Z [proxy_frontend_requests]: GET ex_app/img/app.svg
2025-07-13T14:43:55.099209077Z Cookies: REMOVED FOR PRIVACY
2025-07-13T14:43:55.099525926Z [proxy_frontend_requests]: proxy_FRONTEND_requests: <OK> Returning: /ex_app/img/app.svg
2025-07-13T14:43:55.106173871Z TRACE:    127.0.0.1:39534 - ASGI [6] Send {'type': 'http.response.start', 'status': 200, 'headers': '<...>'}
2025-07-13T14:43:55.106390788Z INFO:     127.0.0.1:39534 - "GET /ex_app/img/app.svg HTTP/1.1" 200 OK
2025-07-13T14:43:55.106985045Z TRACE:    127.0.0.1:39534 - ASGI [6] Send {'type': 'http.response.body', 'body': '<204 bytes>', 'more_body': False}
2025-07-13T14:43:55.107358471Z TRACE:    127.0.0.1:39534 - ASGI [6] Completed
2025-07-13T14:43:55.108371300Z TRACE:    127.0.0.1:39534 - HTTP connection lost
2025-07-13T14:53:25.282315901Z INFO:     Shutting down
2025-07-13T14:53:25.400723295Z INFO:     Waiting for application shutdown.
2025-07-13T14:53:25.400894047Z TRACE:    ASGI [1] Receive {'type': 'lifespan.shutdown'}
2025-07-13T14:53:25.400900038Z TRACE:    ASGI [1] Send {'type': 'lifespan.shutdown.complete'}
2025-07-13T14:53:25.400903586Z TRACE:    ASGI [1] Completed
2025-07-13T14:53:25.400906798Z INFO:     Application shutdown complete.
2025-07-13T14:53:25.400909758Z INFO:     Finished server process [1]
2025-07-13T14:53:26.155533943Z [background_tasks_polling]: Exception occurred
2025-07-13T14:53:26.155559784Z Traceback (most recent call last):
2025-07-13T14:53:26.155564035Z   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions
2025-07-13T14:53:26.155567469Z     yield
2025-07-13T14:53:26.155570705Z   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 250, in handle_request
2025-07-13T14:53:26.155573860Z     resp = self._pool.handle_request(req)
2025-07-13T14:53:26.155576889Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155579868Z   File "/usr/local/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request
2025-07-13T14:53:26.155583022Z     raise exc from None
2025-07-13T14:53:26.155586047Z   File "/usr/local/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request
2025-07-13T14:53:26.155589234Z     response = connection.handle_request(
2025-07-13T14:53:26.155592117Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155595263Z   File "/usr/local/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 101, in handle_request
2025-07-13T14:53:26.155598432Z     raise exc
2025-07-13T14:53:26.155601516Z   File "/usr/local/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 78, in handle_request
2025-07-13T14:53:26.155604558Z     stream = self._connect(request)
2025-07-13T14:53:26.155607442Z              ^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155610348Z   File "/usr/local/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 156, in _connect
2025-07-13T14:53:26.155621037Z     stream = stream.start_tls(**kwargs)
2025-07-13T14:53:26.155624207Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155627099Z   File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/sync.py", line 154, in start_tls
2025-07-13T14:53:26.155630196Z     with map_exceptions(exc_map):
2025-07-13T14:53:26.155633069Z          ^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155635957Z   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
2025-07-13T14:53:26.155638984Z     self.gen.throw(value)
2025-07-13T14:53:26.155641808Z   File "/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
2025-07-13T14:53:26.155644838Z     raise to_exc(exc) from exc
2025-07-13T14:53:26.155647684Z httpcore.ConnectError: [Errno 104] Connection reset by peer
2025-07-13T14:53:26.155650655Z 
2025-07-13T14:53:26.155653482Z The above exception was the direct cause of the following exception:
2025-07-13T14:53:26.155656554Z 
2025-07-13T14:53:26.155659320Z Traceback (most recent call last):
2025-07-13T14:53:26.155662240Z   File "/ex_app/lib/main.py", line 295, in background_tasks_polling
2025-07-13T14:53:26.155665263Z     if not poll_tasks(nc, basic_auth, webhook_url, webhook_headers):
2025-07-13T14:53:26.155668199Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155671130Z   File "/ex_app/lib/main.py", line 305, in poll_tasks
2025-07-13T14:53:26.155675362Z     reply_from_nc = nc.providers.task_processing.next_task([f"v_{i}" for i in INSTALLED_FLOWS], ["core:text2image"])
2025-07-13T14:53:26.155679081Z                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155682152Z   File "/usr/local/lib/python3.12/site-packages/nc_py_api/ex_app/providers/task_processing.py", line 137, in next_task
2025-07-13T14:53:26.155685244Z     if r := self._session.ocs(
2025-07-13T14:53:26.155688079Z             ^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155690937Z   File "/usr/local/lib/python3.12/site-packages/nc_py_api/_session.py", line 209, in ocs
2025-07-13T14:53:26.155694134Z     response = self.adapter.request(
2025-07-13T14:53:26.155697009Z                ^^^^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155699950Z   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 825, in request
2025-07-13T14:53:26.155703000Z     return self.send(request, auth=auth, follow_redirects=follow_redirects)
2025-07-13T14:53:26.155706022Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155708946Z   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 914, in send
2025-07-13T14:53:26.155711942Z     response = self._send_handling_auth(
2025-07-13T14:53:26.155717581Z                ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155720564Z   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 942, in _send_handling_auth
2025-07-13T14:53:26.155723647Z     response = self._send_handling_redirects(
2025-07-13T14:53:26.155726553Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155729443Z   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 979, in _send_handling_redirects
2025-07-13T14:53:26.155732468Z     response = self._send_single_request(request)
2025-07-13T14:53:26.155735410Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155738383Z   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1014, in _send_single_request
2025-07-13T14:53:26.155741430Z     response = transport.handle_request(request)
2025-07-13T14:53:26.155744329Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155747189Z   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 249, in handle_request
2025-07-13T14:53:26.155750298Z     with map_httpcore_exceptions():
2025-07-13T14:53:26.155753200Z          ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T14:53:26.155756097Z   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
2025-07-13T14:53:26.155759053Z     self.gen.throw(value)
2025-07-13T14:53:26.155761910Z   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
2025-07-13T14:53:26.155764956Z     raise mapped_exc(message) from exc
2025-07-13T14:53:26.155768401Z httpx.ConnectError: [Errno 104] Connection reset by peer
2025-07-13T14:53:26.155771446Z Stack (most recent call last):
2025-07-13T14:53:26.155774345Z   File "/usr/local/lib/python3.12/threading.py", line 1032, in _bootstrap
2025-07-13T14:53:26.155777325Z     self._bootstrap_inner()
2025-07-13T14:53:26.155780520Z   File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
2025-07-13T14:53:26.155783664Z     self.run()
2025-07-13T14:53:26.155786624Z   File "/usr/local/lib/python3.12/threading.py", line 1012, in run
2025-07-13T14:53:26.155789588Z     self._target(*self._args, **self._kwargs)
2025-07-13T14:53:26.155792596Z   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 93, in _worker
2025-07-13T14:53:26.155795715Z     work_item.run()
2025-07-13T14:53:26.155798588Z   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 59, in run
2025-07-13T14:53:26.155801673Z     result = self.fn(*self.args, **self.kwargs)
2025-07-13T14:53:26.155804765Z   File "/ex_app/lib/main.py", line 298, in background_tasks_polling
2025-07-13T14:53:26.155807881Z     LOGGER.exception("Exception occurred", stack_info=True)
2025-07-13T14:54:05.454298834Z HP_SHARED_KEY is not set. Skipping FRP configuration.
2025-07-13T14:54:05.464083465Z Added visionatrix to /etc/hosts
2025-07-13T14:54:05.481113034Z PostgreSQL binaries found.
2025-07-13T14:54:05.506789102Z Starting PostgreSQL...
2025-07-13T14:54:05.555996718Z pg_ctl: another server might be running; trying to start server anyway
2025-07-13T14:54:07.997310249Z waiting for server to start...... done
2025-07-13T14:54:07.997332577Z server started
2025-07-13T14:54:07.998378441Z Waiting for PostgreSQL to start...
2025-07-13T14:54:08.036771881Z PostgreSQL is up and running.
2025-07-13T14:54:08.083908658Z ALTER ROLE
2025-07-13T14:54:08.104319017Z DATABASE_URI is already set to: postgresql+psycopg://visionatrix:visionatrix@/visionatrix?host=/var/run/postgresql
2025-07-13T14:54:08.104777323Z Starting main command as a Python script: /ex_app/lib/main.py
2025-07-13T14:54:09.334486702Z [DEBUG]: PROJECT_ROOT_FOLDER= /
2025-07-13T14:54:09.334510837Z [DEBUG]: STATIC_FRONTEND_PRESENT= True
2025-07-13T14:54:09.340057904Z [DEBUG]: Launched Visionatrix server in background
2025-07-13T14:54:24.340895394Z [DEBUG]: Launched Visionatrix worker in background
2025-07-13T14:54:28.611026885Z [DEBUG]: PROJECT_ROOT_FOLDER= /
2025-07-13T14:54:28.611100424Z [DEBUG]: STATIC_FRONTEND_PRESENT= True
2025-07-13T14:54:28.615466186Z INFO:     Started server process [1]
2025-07-13T14:54:28.615693461Z INFO:     Waiting for application startup.
2025-07-13T14:54:28.615929139Z TRACE:    ASGI [1] Started scope={'type': 'lifespan', 'asgi': {'version': '3.0', 'spec_version': '2.0'}, 'state': {}}
2025-07-13T14:54:28.615991554Z TRACE:    ASGI [1] Receive {'type': 'lifespan.startup'}
2025-07-13T14:54:28.616069786Z Visionatrix
2025-07-13T14:54:28.616160041Z TRACE:    ASGI [1] Send {'type': 'lifespan.startup.complete'}
2025-07-13T14:54:28.618353176Z INFO:     Application startup complete.
2025-07-13T14:54:28.624100697Z INFO:     Uvicorn running on http://127.0.0.1:23000 (Press CTRL+C to quit)
2025-07-13T14:54:52.571341852Z TRACE:    127.0.0.1:53758 - HTTP connection made
2025-07-13T14:54:52.571699336Z TRACE:    127.0.0.1:53758 - ASGI [2] Started scope={'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 23000), 'client': ('127.0.0.1', 53758), 'scheme': 'http', 'root_path': '', 'headers': '<...>', 'state': {}, 'method': 'GET', 'path': '/ex_app/img/app.svg', 'raw_path': b'/ex_app/img/app.svg', 'query_string': b''}
2025-07-13T14:54:52.572683444Z [proxy_frontend_requests]: GET ex_app/img/app.svg
2025-07-13T14:54:52.572699879Z Cookies: REMOVED FOR PRIVACY
2025-07-13T14:54:52.572777777Z [proxy_frontend_requests]: proxy_FRONTEND_requests: <OK> Returning: /ex_app/img/app.svg
2025-07-13T14:54:52.584092492Z TRACE:    127.0.0.1:53758 - ASGI [2] Send {'type': 'http.response.start', 'status': 200, 'headers': '<...>'}
2025-07-13T14:54:52.584313116Z INFO:     127.0.0.1:53758 - "GET /ex_app/img/app.svg HTTP/1.1" 200 OK
2025-07-13T14:54:52.585014975Z TRACE:    127.0.0.1:53758 - ASGI [2] Send {'type': 'http.response.body', 'body': '<204 bytes>', 'more_body': False}
2025-07-13T14:54:52.585404338Z TRACE:    127.0.0.1:53758 - ASGI [2] Completed
2025-07-13T14:54:52.590591895Z TRACE:    127.0.0.1:53758 - HTTP connection lost
2025-07-13T15:02:37.558981470Z INFO:     Shutting down
2025-07-13T15:02:37.659738992Z INFO:     Waiting for application shutdown.
2025-07-13T15:02:37.659798051Z TRACE:    ASGI [1] Receive {'type': 'lifespan.shutdown'}
2025-07-13T15:02:37.659925503Z TRACE:    ASGI [1] Send {'type': 'lifespan.shutdown.complete'}
2025-07-13T15:02:37.659991530Z TRACE:    ASGI [1] Completed
2025-07-13T15:02:37.660122588Z INFO:     Application shutdown complete.
2025-07-13T15:02:37.660192720Z INFO:     Finished server process [1]
2025-07-13T15:02:47.679751544Z HP_SHARED_KEY is not set. Skipping FRP configuration.
2025-07-13T15:02:47.682351005Z Added visionatrix to /etc/hosts
2025-07-13T15:02:47.684508277Z PostgreSQL binaries found.
2025-07-13T15:02:47.694301662Z Starting PostgreSQL...
2025-07-13T15:02:47.700434620Z pg_ctl: another server might be running; trying to start server anyway
2025-07-13T15:02:48.413758511Z waiting for server to start.... done
2025-07-13T15:02:48.413798816Z server started
2025-07-13T15:02:48.414826820Z Waiting for PostgreSQL to start...
2025-07-13T15:02:48.432770193Z PostgreSQL is up and running.
2025-07-13T15:02:48.463908162Z ALTER ROLE
2025-07-13T15:02:48.480593314Z DATABASE_URI is already set to: postgresql+psycopg://visionatrix:visionatrix@/visionatrix?host=/var/run/postgresql
2025-07-13T15:02:48.480896175Z Starting main command as a Python script: /ex_app/lib/main.py
2025-07-13T15:02:49.167891687Z [DEBUG]: PROJECT_ROOT_FOLDER= /
2025-07-13T15:02:49.167911425Z [DEBUG]: STATIC_FRONTEND_PRESENT= True
2025-07-13T15:02:49.173896913Z [DEBUG]: Launched Visionatrix server in background
2025-07-13T15:03:04.174482458Z [DEBUG]: Launched Visionatrix worker in background
2025-07-13T15:03:04.494479664Z [DEBUG]: PROJECT_ROOT_FOLDER= /
2025-07-13T15:03:04.494505775Z [DEBUG]: STATIC_FRONTEND_PRESENT= True
2025-07-13T15:03:04.498773845Z Visionatrix
2025-07-13T15:03:04.498789312Z INFO:     Started server process [1]
2025-07-13T15:03:04.498815546Z INFO:     Waiting for application startup.
2025-07-13T15:03:04.498819790Z TRACE:    ASGI [1] Started scope={'type': 'lifespan', 'asgi': {'version': '3.0', 'spec_version': '2.0'}, 'state': {}}
2025-07-13T15:03:04.498823273Z TRACE:    ASGI [1] Receive {'type': 'lifespan.startup'}
2025-07-13T15:03:04.498826419Z TRACE:    ASGI [1] Send {'type': 'lifespan.startup.complete'}
2025-07-13T15:03:04.500883207Z INFO:     Application startup complete.
2025-07-13T15:03:04.501683789Z INFO:     Uvicorn running on http://127.0.0.1:23000 (Press CTRL+C to quit)
2025-07-13T15:09:20.807472694Z TRACE:    127.0.0.1:49086 - HTTP connection made
2025-07-13T15:09:20.807651904Z TRACE:    127.0.0.1:49086 - ASGI [2] Started scope={'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 23000), 'client': ('127.0.0.1', 49086), 'scheme': 'http', 'root_path': '', 'headers': '<...>', 'state': {}, 'method': 'GET', 'path': '/ex_app/img/app.svg', 'raw_path': b'/ex_app/img/app.svg', 'query_string': b''}
2025-07-13T15:09:20.809770368Z [proxy_frontend_requests]: GET ex_app/img/app.svg
2025-07-13T15:09:20.809791752Z Cookies: REMOVED FOR PRIVACY
2025-07-13T15:09:20.809854448Z [proxy_frontend_requests]: proxy_FRONTEND_requests: <OK> Returning: /ex_app/img/app.svg
2025-07-13T15:09:20.818014549Z TRACE:    127.0.0.1:49086 - ASGI [2] Send {'type': 'http.response.start', 'status': 200, 'headers': '<...>'}
2025-07-13T15:09:20.818071201Z INFO:     127.0.0.1:49086 - "GET /ex_app/img/app.svg HTTP/1.1" 200 OK
2025-07-13T15:09:20.818663718Z TRACE:    127.0.0.1:49086 - ASGI [2] Send {'type': 'http.response.body', 'body': '<204 bytes>', 'more_body': False}
2025-07-13T15:09:20.819003585Z TRACE:    127.0.0.1:49086 - ASGI [2] Completed
2025-07-13T15:09:20.819702729Z TRACE:    127.0.0.1:49086 - HTTP connection lost
2025-07-13T15:12:15.501561897Z INFO:     Shutting down
2025-07-13T15:12:15.602512692Z INFO:     Waiting for application shutdown.
2025-07-13T15:12:15.602537408Z TRACE:    ASGI [1] Receive {'type': 'lifespan.shutdown'}
2025-07-13T15:12:15.603455479Z TRACE:    ASGI [1] Send {'type': 'lifespan.shutdown.complete'}
2025-07-13T15:12:15.603472499Z TRACE:    ASGI [1] Completed
2025-07-13T15:12:15.603476398Z INFO:     Application shutdown complete.
2025-07-13T15:12:15.603479571Z INFO:     Finished server process [1]
2025-07-13T15:12:20.388712482Z [background_tasks_polling]: Exception occurred
2025-07-13T15:12:20.388736144Z Traceback (most recent call last):
2025-07-13T15:12:20.388740446Z   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions
2025-07-13T15:12:20.388764356Z     yield
2025-07-13T15:12:20.388767715Z   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 250, in handle_request
2025-07-13T15:12:20.388770934Z     resp = self._pool.handle_request(req)
2025-07-13T15:12:20.388786556Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388789526Z   File "/usr/local/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request
2025-07-13T15:12:20.388792750Z     raise exc from None
2025-07-13T15:12:20.388808402Z   File "/usr/local/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request
2025-07-13T15:12:20.388811365Z     response = connection.handle_request(
2025-07-13T15:12:20.388814119Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388816875Z   File "/usr/local/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 101, in handle_request
2025-07-13T15:12:20.388819782Z     raise exc
2025-07-13T15:12:20.388822763Z   File "/usr/local/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 78, in handle_request
2025-07-13T15:12:20.388825731Z     stream = self._connect(request)
2025-07-13T15:12:20.388828470Z              ^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388831223Z   File "/usr/local/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 156, in _connect
2025-07-13T15:12:20.388834115Z     stream = stream.start_tls(**kwargs)
2025-07-13T15:12:20.388836870Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388839623Z   File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/sync.py", line 154, in start_tls
2025-07-13T15:12:20.388842528Z     with map_exceptions(exc_map):
2025-07-13T15:12:20.388845268Z          ^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388848057Z   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
2025-07-13T15:12:20.388850960Z     self.gen.throw(value)
2025-07-13T15:12:20.388853717Z   File "/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
2025-07-13T15:12:20.388856655Z     raise to_exc(exc) from exc
2025-07-13T15:12:20.388859406Z httpcore.ConnectError: [Errno 104] Connection reset by peer
2025-07-13T15:12:20.388862245Z 
2025-07-13T15:12:20.388865051Z The above exception was the direct cause of the following exception:
2025-07-13T15:12:20.388868136Z 
2025-07-13T15:12:20.388870822Z Traceback (most recent call last):
2025-07-13T15:12:20.388873576Z   File "/ex_app/lib/main.py", line 295, in background_tasks_polling
2025-07-13T15:12:20.388876516Z     if not poll_tasks(nc, basic_auth, webhook_url, webhook_headers):
2025-07-13T15:12:20.388879354Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388884884Z   File "/ex_app/lib/main.py", line 305, in poll_tasks
2025-07-13T15:12:20.388888755Z     reply_from_nc = nc.providers.task_processing.next_task([f"v_{i}" for i in INSTALLED_FLOWS], ["core:text2image"])
2025-07-13T15:12:20.388891965Z                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388894899Z   File "/usr/local/lib/python3.12/site-packages/nc_py_api/ex_app/providers/task_processing.py", line 137, in next_task
2025-07-13T15:12:20.388897878Z     if r := self._session.ocs(
2025-07-13T15:12:20.388900616Z             ^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388903359Z   File "/usr/local/lib/python3.12/site-packages/nc_py_api/_session.py", line 209, in ocs
2025-07-13T15:12:20.388906246Z     response = self.adapter.request(
2025-07-13T15:12:20.388909000Z                ^^^^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388911770Z   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 825, in request
2025-07-13T15:12:20.388914682Z     return self.send(request, auth=auth, follow_redirects=follow_redirects)
2025-07-13T15:12:20.388917538Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388920347Z   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 914, in send
2025-07-13T15:12:20.388923207Z     response = self._send_handling_auth(
2025-07-13T15:12:20.388926005Z                ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388928766Z   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 942, in _send_handling_auth
2025-07-13T15:12:20.388931676Z     response = self._send_handling_redirects(
2025-07-13T15:12:20.388934442Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388937238Z   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 979, in _send_handling_redirects
2025-07-13T15:12:20.388953146Z     response = self._send_single_request(request)
2025-07-13T15:12:20.388955938Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388958767Z   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1014, in _send_single_request
2025-07-13T15:12:20.388961716Z     response = transport.handle_request(request)
2025-07-13T15:12:20.388964472Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388967254Z   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 249, in handle_request
2025-07-13T15:12:20.388970173Z     with map_httpcore_exceptions():
2025-07-13T15:12:20.388972909Z          ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-13T15:12:20.388975663Z   File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
2025-07-13T15:12:20.388978519Z     self.gen.throw(value)
2025-07-13T15:12:20.388981267Z   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
2025-07-13T15:12:20.388986360Z     raise mapped_exc(message) from exc
2025-07-13T15:12:20.388989438Z httpx.ConnectError: [Errno 104] Connection reset by peer
2025-07-13T15:12:20.389005293Z Stack (most recent call last):
2025-07-13T15:12:20.389008016Z   File "/usr/local/lib/python3.12/threading.py", line 1032, in _bootstrap
2025-07-13T15:12:20.389010918Z     self._bootstrap_inner()
2025-07-13T15:12:20.389013654Z   File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
2025-07-13T15:12:20.389016542Z     self.run()
2025-07-13T15:12:20.389019245Z   File "/usr/local/lib/python3.12/threading.py", line 1012, in run
2025-07-13T15:12:20.389022078Z     self._target(*self._args, **self._kwargs)
2025-07-13T15:12:20.389024859Z   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 93, in _worker
2025-07-13T15:12:20.389027759Z     work_item.run()
2025-07-13T15:12:20.389030450Z   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 59, in run
2025-07-13T15:12:20.389033334Z     result = self.fn(*self.args, **self.kwargs)
2025-07-13T15:12:20.389036137Z   File "/ex_app/lib/main.py", line 298, in background_tasks_polling
2025-07-13T15:12:20.389039139Z     LOGGER.exception("Exception occurred", stack_info=True)
2025-07-13T15:13:01.865581290Z HP_SHARED_KEY is not set. Skipping FRP configuration.
2025-07-13T15:13:01.879095474Z Added visionatrix to /etc/hosts
2025-07-13T15:13:02.106029628Z PostgreSQL binaries found.
2025-07-13T15:13:02.368203039Z Starting PostgreSQL...
2025-07-13T15:13:02.651523765Z pg_ctl: another server might be running; trying to start server anyway
2025-07-13T15:13:06.142976035Z waiting for server to start...... done
2025-07-13T15:13:06.142995364Z server started
2025-07-13T15:13:06.143727998Z Waiting for PostgreSQL to start...
2025-07-13T15:13:06.207830375Z PostgreSQL is up and running.
2025-07-13T15:13:06.275816489Z ALTER ROLE
2025-07-13T15:13:06.317287584Z DATABASE_URI is already set to: postgresql+psycopg://visionatrix:visionatrix@/visionatrix?host=/var/run/postgresql
2025-07-13T15:13:06.317887024Z Starting main command as a Python script: /ex_app/lib/main.py
2025-07-13T15:13:08.097435491Z [DEBUG]: PROJECT_ROOT_FOLDER= /
2025-07-13T15:13:08.097462627Z [DEBUG]: STATIC_FRONTEND_PRESENT= True
2025-07-13T15:13:08.105540771Z [DEBUG]: Launched Visionatrix server in background
2025-07-13T15:13:23.106328419Z [DEBUG]: Launched Visionatrix worker in background
2025-07-13T15:13:29.155245151Z [DEBUG]: PROJECT_ROOT_FOLDER= /
2025-07-13T15:13:29.155272348Z [DEBUG]: STATIC_FRONTEND_PRESENT= True
2025-07-13T15:13:29.159962096Z INFO:     Started server process [1]
2025-07-13T15:13:29.159993348Z INFO:     Waiting for application startup.
2025-07-13T15:13:29.160084093Z TRACE:    ASGI [1] Started scope={'type': 'lifespan', 'asgi': {'version': '3.0', 'spec_version': '2.0'}, 'state': {}}
2025-07-13T15:13:29.160199869Z TRACE:    ASGI [1] Receive {'type': 'lifespan.startup'}
2025-07-13T15:13:29.160212647Z Visionatrix
2025-07-13T15:13:29.160300610Z TRACE:    ASGI [1] Send {'type': 'lifespan.startup.complete'}
2025-07-13T15:13:29.162798603Z INFO:     Application startup complete.
2025-07-13T15:13:29.165441838Z INFO:     Uvicorn running on http://127.0.0.1:23000 (Press CTRL+C to quit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions