[GH-ISSUE #254] [Bug]: Unable to start application with printer proxy #154

Closed
opened 2026-05-06 12:26:30 +02:00 by BreizhHardware · 10 comments

Originally created by @karaktaka on GitHub (Feb 3, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/254

Originally assigned to: @maziggy on GitHub.

Bug Description

I enabled the new printer proxy functionality and now bambuddy is unable to start.

Expected Behavior

Restart of Bambuddy is possible with printer proxy enabled.

Steps to Reproduce

  1. Enable printer proxy
  2. restart Bambuddy Container

Printer Model

P1S

Bambuddy Version

0.1.7

Printer Firmware Version

01.09.01.00

Installation Method

Docker

Operating System

Linux (Other)

Relevant Logs / Support Package

STDERR
2026-02-03 20:57:52,092 INFO [backend.app.main] Printer runtime tracking started
STDERR
ERROR:    Traceback (most recent call last):
STDERR
File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 694, in lifespan
STDERR
async with self.lifespan_context(app) as maybe_state:
STDERR
~~~~~~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/app/backend/app/main.py", line 2511, in lifespan
STDERR
result = await db.execute(select(Printer).where(Printer.id == int(vp_target_printer_id)))
STDERR
^^^^^^
STDERR
UnboundLocalError: cannot access local variable 'select' where it is not associated with a value
STDERR
STDERR
ERROR:    Application startup failed. Exiting.

Screenshots

No response

Additional Context

No response

Checklist

  • I have searched existing issues to ensure this bug hasn't already been reported
  • I am using the latest version of Bambuddy
  • My printer is set to LAN Only mode
Originally created by @karaktaka on GitHub (Feb 3, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/254 Originally assigned to: @maziggy on GitHub. ### Bug Description I enabled the new printer proxy functionality and now bambuddy is unable to start. ### Expected Behavior Restart of Bambuddy is possible with printer proxy enabled. ### Steps to Reproduce 1. Enable printer proxy 2. restart Bambuddy Container ### Printer Model P1S ### Bambuddy Version 0.1.7 ### Printer Firmware Version 01.09.01.00 ### Installation Method Docker ### Operating System Linux (Other) ### Relevant Logs / Support Package ```shell STDERR 2026-02-03 20:57:52,092 INFO [backend.app.main] Printer runtime tracking started STDERR ERROR: Traceback (most recent call last): STDERR File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 694, in lifespan STDERR async with self.lifespan_context(app) as maybe_state: STDERR ~~~~~~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/app/backend/app/main.py", line 2511, in lifespan STDERR result = await db.execute(select(Printer).where(Printer.id == int(vp_target_printer_id))) STDERR ^^^^^^ STDERR UnboundLocalError: cannot access local variable 'select' where it is not associated with a value STDERR STDERR ERROR: Application startup failed. Exiting. ``` ### Screenshots _No response_ ### Additional Context _No response_ ### Checklist - [x] I have searched existing issues to ensure this bug hasn't already been reported - [x] I am using the latest version of Bambuddy - [x] My printer is set to LAN Only mode
BreizhHardware 2026-05-06 12:26:30 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@maziggy commented on GitHub (Feb 3, 2026):

Just tested and cannot reproduce the error. Please do a "docker compose build --no-cache && docker compose up -d".

<!-- gh-comment-id:3843415246 --> @maziggy commented on GitHub (Feb 3, 2026): Just tested and cannot reproduce the error. Please do a "docker compose build --no-cache && docker compose up -d".
Author
Owner

@karaktaka commented on GitHub (Feb 3, 2026):

That was the first thing I tried. Removing the image and re-pulling. Also 'compose down' and 'up'. Still the same error.

<!-- gh-comment-id:3843422121 --> @karaktaka commented on GitHub (Feb 3, 2026): That was the first thing I tried. Removing the image and re-pulling. Also 'compose down' and 'up'. Still the same error.
Author
Owner

@karaktaka commented on GitHub (Feb 3, 2026):

Restoring a Backup without the printer proxy enabled brings back Bambuddy, but enabling it again and then restarting the container brings back the error message and prevents bambuddy from starting.

Image
<!-- gh-comment-id:3843449903 --> @karaktaka commented on GitHub (Feb 3, 2026): Restoring a Backup without the printer proxy enabled brings back Bambuddy, but enabling it again and then restarting the container brings back the error message and prevents bambuddy from starting. <img width="1213" height="911" alt="Image" src="https://github.com/user-attachments/assets/587016bc-2fdf-49a8-a394-28fd4adeb939" />
Author
Owner

@maziggy commented on GitHub (Feb 4, 2026):

Please check if the user running Bambuddy has full access to virtual_printer/ folder.

ls -al virtual_printer/ virtual_printer/certs/

<!-- gh-comment-id:3845565591 --> @maziggy commented on GitHub (Feb 4, 2026): Please check if the user running Bambuddy has full access to virtual_printer/ folder. ls -al virtual_printer/ virtual_printer/certs/
Author
Owner

@karaktaka commented on GitHub (Feb 4, 2026):

The container is running as root and the permissions are fine:

# ls -al virtual_printer/ virtual_printer/certs/
virtual_printer/:
total 0
drwxr-xr-x 1 root root  10 Feb  4 12:06 .
drwxr-xr-x 1 root root  46 Feb  4 12:05 ..
drwxr-xr-x 1 root root 116 Feb  4 12:06 certs

virtual_printer/certs/:
total 16
drwxr-xr-x 1 root root  116 Feb  4 12:06 .
drwxr-xr-x 1 root root   10 Feb  4 12:06 ..
-rw-r--r-- 1 root root 1078 Feb  4 12:06 bbl_ca.crt
-rw------- 1 root root 1675 Feb  4 12:06 bbl_ca.key
-rw-r--r-- 1 root root 2266 Feb  4 12:06 virtual_printer.crt
-rw------- 1 root root 1679 Feb  4 12:06 virtual_printer.key
<!-- gh-comment-id:3846902150 --> @karaktaka commented on GitHub (Feb 4, 2026): The container is running as root and the permissions are fine: ``` # ls -al virtual_printer/ virtual_printer/certs/ virtual_printer/: total 0 drwxr-xr-x 1 root root 10 Feb 4 12:06 . drwxr-xr-x 1 root root 46 Feb 4 12:05 .. drwxr-xr-x 1 root root 116 Feb 4 12:06 certs virtual_printer/certs/: total 16 drwxr-xr-x 1 root root 116 Feb 4 12:06 . drwxr-xr-x 1 root root 10 Feb 4 12:06 .. -rw-r--r-- 1 root root 1078 Feb 4 12:06 bbl_ca.crt -rw------- 1 root root 1675 Feb 4 12:06 bbl_ca.key -rw-r--r-- 1 root root 2266 Feb 4 12:06 virtual_printer.crt -rw------- 1 root root 1679 Feb 4 12:06 virtual_printer.key ```
Author
Owner

@maziggy commented on GitHub (Feb 4, 2026):

Just pushed an proxy update. If you wanna try use branch 0.1.8b.

<!-- gh-comment-id:3846909246 --> @maziggy commented on GitHub (Feb 4, 2026): Just pushed an proxy update. If you wanna try use branch 0.1.8b.
Author
Owner

@karaktaka commented on GitHub (Feb 4, 2026):

Looks like it did not solve the problem. Enabling the virtual printer and then restarting the container will result in a crashloop:

STDERR
2026-02-04 13:57:20,174 INFO [backend.app.main] Printer runtime tracking started
STDERR
2026-02-04 13:57:20,213 INFO [backend.app.services.virtual_printer.manager] Checking virtual printer directories in /app/data/virtual_printer
STDERR
ERROR:    Traceback (most recent call last):
STDERR
File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 694, in lifespan
STDERR
async with self.lifespan_context(app) as maybe_state:
STDERR
~~~~~~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/app/backend/app/main.py", line 2512, in lifespan
STDERR
result = await db.execute(select(Printer).where(Printer.id == int(vp_target_printer_id)))
STDERR
^^^^^^
STDERR
UnboundLocalError: cannot access local variable 'select' where it is not associated with a value
STDERR
STDERR
ERROR:    Application startup failed. Exiting.
<!-- gh-comment-id:3847302735 --> @karaktaka commented on GitHub (Feb 4, 2026): Looks like it did not solve the problem. Enabling the virtual printer and then restarting the container will result in a crashloop: ``` STDERR 2026-02-04 13:57:20,174 INFO [backend.app.main] Printer runtime tracking started STDERR 2026-02-04 13:57:20,213 INFO [backend.app.services.virtual_printer.manager] Checking virtual printer directories in /app/data/virtual_printer STDERR ERROR: Traceback (most recent call last): STDERR File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 694, in lifespan STDERR async with self.lifespan_context(app) as maybe_state: STDERR ~~~~~~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/app/backend/app/main.py", line 2512, in lifespan STDERR result = await db.execute(select(Printer).where(Printer.id == int(vp_target_printer_id))) STDERR ^^^^^^ STDERR UnboundLocalError: cannot access local variable 'select' where it is not associated with a value STDERR STDERR ERROR: Application startup failed. Exiting. ```
Author
Owner

@karaktaka commented on GitHub (Feb 4, 2026):

This is the same log, but with DEBUG enabled:

STDERR
2026-02-04 14:00:19,604 INFO [backend.app.services.virtual_printer.manager] Checking virtual printer directories in /app/data/virtual_printer
STDOUT
2026-02-04 14:00:19,606 INFO sqlalchemy.engine.Engine BEGIN (implicit)
STDERR
2026-02-04 14:00:19,606 INFO [sqlalchemy.engine.Engine] BEGIN (implicit)
STDOUT
2026-02-04 14:00:19,606 INFO sqlalchemy.engine.Engine SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at
STDOUT
FROM settings
STDOUT
WHERE settings."key" = ?
STDOUT
2026-02-04 14:00:19,606 INFO sqlalchemy.engine.Engine [cached since 1.163s ago] ('virtual_printer_enabled',)
STDERR
2026-02-04 14:00:19,606 INFO [sqlalchemy.engine.Engine] SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at
STDERR
FROM settings
STDERR
WHERE settings."key" = ?
STDERR
2026-02-04 14:00:19,606 INFO [sqlalchemy.engine.Engine] [cached since 1.163s ago] ('virtual_printer_enabled',)
STDERR
2026-02-04 14:00:19,608 DEBUG [aiosqlite] executing <function connect.<locals>.connector at 0x7fd54a50a980>
STDERR
2026-02-04 14:00:19,609 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b60bb40>)
STDERR
2026-02-04 14:00:19,609 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>)
STDERR
2026-02-04 14:00:19,609 DEBUG [aiosqlite] executing functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd17b0>)
STDERR
2026-02-04 14:00:19,610 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b60bb40>) completed
STDERR
2026-02-04 14:00:19,610 DEBUG [aiosqlite] operation <function connect.<locals>.connector at 0x7fd54a50a980> completed
STDERR
2026-02-04 14:00:19,610 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) completed
STDERR
2026-02-04 14:00:19,611 DEBUG [aiosqlite] operation functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd17b0>) completed
STDERR
2026-02-04 14:00:19,611 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683c40>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_enabled',))
STDERR
2026-02-04 14:00:19,612 DEBUG [aiosqlite] executing functools.partial(<built-in method create_function of sqlite3.Connection object at 0x7fd54bfd25c0>, 'regexp', 2, <function SQLiteDialect_pysqlite.on_connect.<locals>.regexp at 0x7fd55241f380>, deterministic=True)
STDERR
2026-02-04 14:00:19,612 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b60bb40>)
STDERR
2026-02-04 14:00:19,613 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b60bb40>) completed
STDOUT
2026-02-04 14:00:19,614 INFO sqlalchemy.engine.Engine COMMIT
STDERR
2026-02-04 14:00:19,613 DEBUG [aiosqlite] operation functools.partial(<built-in method create_function of sqlite3.Connection object at 0x7fd54bfd25c0>, 'regexp', 2, <function SQLiteDialect_pysqlite.on_connect.<locals>.regexp at 0x7fd55241f380>, deterministic=True) completed
STDERR
2026-02-04 14:00:19,613 DEBUG [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683c40>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_enabled',)) completed
STDERR
2026-02-04 14:00:19,614 INFO [sqlalchemy.engine.Engine] COMMIT
STDERR
2026-02-04 14:00:19,615 DEBUG [aiosqlite] executing functools.partial(<built-in method commit of sqlite3.Connection object at 0x7fd54bfd2110>)
STDERR
2026-02-04 14:00:19,615 DEBUG [aiosqlite] executing functools.partial(<built-in method create_function of sqlite3.Connection object at 0x7fd54bfd25c0>, 'floor', 1, <built-in function floor>, deterministic=True)
STDERR
2026-02-04 14:00:19,615 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683c40>)
STDERR
2026-02-04 14:00:19,616 DEBUG [aiosqlite] operation functools.partial(<built-in method commit of sqlite3.Connection object at 0x7fd54bfd2110>) completed
STDERR
2026-02-04 14:00:19,616 DEBUG [aiosqlite] operation functools.partial(<built-in method create_function of sqlite3.Connection object at 0x7fd54bfd25c0>, 'floor', 1, <built-in function floor>, deterministic=True) completed
STDOUT
2026-02-04 14:00:19,617 INFO sqlalchemy.engine.Engine BEGIN (implicit)
STDERR
2026-02-04 14:00:19,617 INFO [sqlalchemy.engine.Engine] BEGIN (implicit)
STDERR
2026-02-04 14:00:19,617 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683c40>) completed
STDERR
2026-02-04 14:00:19,617 DEBUG [aiosqlite] executing functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd2110>)
STDERR
2026-02-04 14:00:19,618 DEBUG [aiosqlite] operation functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd2110>) completed
STDOUT
2026-02-04 14:00:19,627 INFO sqlalchemy.engine.Engine SELECT notification_providers.id, notification_providers.name, notification_providers.provider_type, notification_providers.enabled, notification_providers.config, notification_providers.on_print_start, notification_providers.on_print_complete, notification_providers.on_print_failed, notification_providers.on_print_stopped, notification_providers.on_print_progress, notification_providers.on_printer_offline, notification_providers.on_printer_error, notification_providers.on_filament_low, notification_providers.on_maintenance_due, notification_providers.on_ams_humidity_high, notification_providers.on_ams_temperature_high, notification_providers.on_ams_ht_humidity_high, notification_providers.on_ams_ht_temperature_high, notification_providers.on_plate_not_empty, notification_providers.on_queue_job_added, notification_providers.on_queue_job_assigned, notification_providers.on_queue_job_started, notification_providers.on_queue_job_waiting, notification_providers.on_queue_job_skipped, notification_providers.on_queue_job_failed, notification_providers.on_queue_completed, notification_providers.quiet_hours_enabled, notification_providers.quiet_hours_start, notification_providers.quiet_hours_end, notification_providers.daily_digest_enabled, notification_providers.daily_digest_time, notification_providers.printer_id, notification_providers.last_success, notification_providers.last_error, notification_providers.last_error_at, notification_providers.created_at, notification_providers.updated_at
STDOUT
FROM notification_providers
STDOUT
WHERE notification_providers.enabled IS 1 AND notification_providers.daily_digest_enabled IS 1 AND notification_providers.daily_digest_time = ?
STDERR
2026-02-04 14:00:19,627 INFO [sqlalchemy.engine.Engine] SELECT notification_providers.id, notification_providers.name, notification_providers.provider_type, notification_providers.enabled, notification_providers.config, notification_providers.on_print_start, notification_providers.on_print_complete, notification_providers.on_print_failed, notification_providers.on_print_stopped, notification_providers.on_print_progress, notification_providers.on_printer_offline, notification_providers.on_printer_error, notification_providers.on_filament_low, notification_providers.on_maintenance_due, notification_providers.on_ams_humidity_high, notification_providers.on_ams_temperature_high, notification_providers.on_ams_ht_humidity_high, notification_providers.on_ams_ht_temperature_high, notification_providers.on_plate_not_empty, notification_providers.on_queue_job_added, notification_providers.on_queue_job_assigned, notification_providers.on_queue_job_started, notification_providers.on_queue_job_waiting, notification_providers.on_queue_job_skipped, notification_providers.on_queue_job_failed, notification_providers.on_queue_completed, notification_providers.quiet_hours_enabled, notification_providers.quiet_hours_start, notification_providers.quiet_hours_end, notification_providers.daily_digest_enabled, notification_providers.daily_digest_time, notification_providers.printer_id, notification_providers.last_success, notification_providers.last_error, notification_providers.last_error_at, notification_providers.created_at, notification_providers.updated_at
STDERR
FROM notification_providers
STDERR
WHERE notification_providers.enabled IS 1 AND notification_providers.daily_digest_enabled IS 1 AND notification_providers.daily_digest_time = ?
STDERR
2026-02-04 14:00:19,628 INFO [sqlalchemy.engine.Engine] [generated in 0.00082s] ('14:00',)
STDOUT
2026-02-04 14:00:19,628 INFO sqlalchemy.engine.Engine [generated in 0.00082s] ('14:00',)
STDERR
2026-02-04 14:00:19,629 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683c40>)
STDERR
2026-02-04 14:00:19,629 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd54bfd25c0>)
STDERR
2026-02-04 14:00:19,629 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683c40>) completed
STDERR
2026-02-04 14:00:19,629 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd54bfd25c0>) completed
STDOUT
2026-02-04 14:00:19,631 INFO sqlalchemy.engine.Engine SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at
STDOUT
FROM settings
STDOUT
WHERE settings."key" = ?
STDERR
2026-02-04 14:00:19,631 INFO [sqlalchemy.engine.Engine] SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at
STDERR
FROM settings
STDERR
WHERE settings."key" = ?
STDERR
2026-02-04 14:00:19,632 INFO [sqlalchemy.engine.Engine] [cached since 1.188s ago] ('virtual_printer_access_code',)
STDOUT
2026-02-04 14:00:19,632 INFO sqlalchemy.engine.Engine [cached since 1.188s ago] ('virtual_printer_access_code',)
STDERR
2026-02-04 14:00:19,632 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b622940>, 'SELECT notification_providers.id, notification_providers.name, notification_providers.provider_type, notification_providers.enabled, notification_providers.config, notification_providers.on_print_start, notification_providers.on_print_complete, notification_providers.on_print_failed, notification_providers.on_print_stopped, notification_providers.on_print_progress, notification_providers.on_printer_offline, notification_providers.on_printer_error, notification_providers.on_filament_low, notification_providers.on_maintenance_due, notification_providers.on_ams_humidity_high, notification_providers.on_ams_temperature_high, notification_providers.on_ams_ht_humidity_high, notification_providers.on_ams_ht_temperature_high, notification_providers.on_plate_not_empty, notification_providers.on_queue_job_added, notification_providers.on_queue_job_assigned, notification_providers.on_queue_job_started, notification_providers.on_queue_job_waiting, notification_providers.on_queue_job_skipped, notification_providers.on_queue_job_failed, notification_providers.on_queue_completed, notification_providers.quiet_hours_enabled, notification_providers.quiet_hours_start, notification_providers.quiet_hours_end, notification_providers.daily_digest_enabled, notification_providers.daily_digest_time, notification_providers.printer_id, notification_providers.last_success, notification_providers.last_error, notification_providers.last_error_at, notification_providers.created_at, notification_providers.updated_at \nFROM notification_providers \nWHERE notification_providers.enabled IS 1 AND notification_providers.daily_digest_enabled IS 1 AND notification_providers.daily_digest_time = ?', ('14:00',))
STDERR
2026-02-04 14:00:19,634 DEBUG [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b622940>, 'SELECT notification_providers.id, notification_providers.name, notification_providers.provider_type, notification_providers.enabled, notification_providers.config, notification_providers.on_print_start, notification_providers.on_print_complete, notification_providers.on_print_failed, notification_providers.on_print_stopped, notification_providers.on_print_progress, notification_providers.on_printer_offline, notification_providers.on_printer_error, notification_providers.on_filament_low, notification_providers.on_maintenance_due, notification_providers.on_ams_humidity_high, notification_providers.on_ams_temperature_high, notification_providers.on_ams_ht_humidity_high, notification_providers.on_ams_ht_temperature_high, notification_providers.on_plate_not_empty, notification_providers.on_queue_job_added, notification_providers.on_queue_job_assigned, notification_providers.on_queue_job_started, notification_providers.on_queue_job_waiting, notification_providers.on_queue_job_skipped, notification_providers.on_queue_job_failed, notification_providers.on_queue_completed, notification_providers.quiet_hours_enabled, notification_providers.quiet_hours_start, notification_providers.quiet_hours_end, notification_providers.daily_digest_enabled, notification_providers.daily_digest_time, notification_providers.printer_id, notification_providers.last_success, notification_providers.last_error, notification_providers.last_error_at, notification_providers.created_at, notification_providers.updated_at \nFROM notification_providers \nWHERE notification_providers.enabled IS 1 AND notification_providers.daily_digest_enabled IS 1 AND notification_providers.daily_digest_time = ?', ('14:00',)) completed
STDERR
2026-02-04 14:00:19,635 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b622940>)
STDERR
2026-02-04 14:00:19,635 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b622940>) completed
STDERR
2026-02-04 14:00:19,635 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b622940>)
STDERR
2026-02-04 14:00:19,635 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b622940>) completed
STDOUT
2026-02-04 14:00:19,637 INFO sqlalchemy.engine.Engine ROLLBACK
STDERR
2026-02-04 14:00:19,637 INFO [sqlalchemy.engine.Engine] ROLLBACK
STDERR
2026-02-04 14:00:19,637 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>)
STDERR
2026-02-04 14:00:19,637 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) completed
STDERR
2026-02-04 14:00:19,637 DEBUG [aiosqlite] executing functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd25c0>)
STDERR
2026-02-04 14:00:19,638 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_access_code',))
STDERR
2026-02-04 14:00:19,638 DEBUG [aiosqlite] operation functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd25c0>) completed
STDERR
2026-02-04 14:00:19,638 DEBUG [aiosqlite] executing functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd25c0>)
STDERR
2026-02-04 14:00:19,638 DEBUG [aiosqlite] operation functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd25c0>) completed
STDERR
2026-02-04 14:00:19,638 DEBUG [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_access_code',)) completed
STDERR
2026-02-04 14:00:19,639 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>)
STDERR
2026-02-04 14:00:19,639 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) completed
STDERR
2026-02-04 14:00:19,639 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>)
STDERR
2026-02-04 14:00:19,640 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) completed
STDOUT
2026-02-04 14:00:19,641 INFO sqlalchemy.engine.Engine SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at
STDOUT
FROM settings
STDOUT
WHERE settings."key" = ?
STDERR
2026-02-04 14:00:19,641 INFO [sqlalchemy.engine.Engine] SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at
STDERR
FROM settings
STDERR
WHERE settings."key" = ?
STDERR
2026-02-04 14:00:19,641 INFO [sqlalchemy.engine.Engine] [cached since 1.197s ago] ('virtual_printer_mode',)
STDOUT
2026-02-04 14:00:19,641 INFO sqlalchemy.engine.Engine [cached since 1.197s ago] ('virtual_printer_mode',)
STDERR
2026-02-04 14:00:19,641 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>)
STDERR
2026-02-04 14:00:19,642 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) completed
STDERR
2026-02-04 14:00:19,642 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_mode',))
STDERR
2026-02-04 14:00:19,642 DEBUG [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_mode',)) completed
STDERR
2026-02-04 14:00:19,643 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>)
STDERR
2026-02-04 14:00:19,643 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) completed
STDERR
2026-02-04 14:00:19,643 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>)
STDERR
2026-02-04 14:00:19,643 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) completed
STDOUT
2026-02-04 14:00:19,644 INFO sqlalchemy.engine.Engine SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at
STDOUT
FROM settings
STDOUT
WHERE settings."key" = ?
STDERR
2026-02-04 14:00:19,644 INFO [sqlalchemy.engine.Engine] SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at
STDERR
FROM settings
STDERR
WHERE settings."key" = ?
STDOUT
2026-02-04 14:00:19,645 INFO sqlalchemy.engine.Engine [cached since 1.201s ago] ('virtual_printer_model',)
STDERR
2026-02-04 14:00:19,645 INFO [sqlalchemy.engine.Engine] [cached since 1.201s ago] ('virtual_printer_model',)
STDERR
2026-02-04 14:00:19,646 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>)
STDERR
2026-02-04 14:00:19,646 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) completed
STDERR
2026-02-04 14:00:19,646 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_model',))
STDERR
2026-02-04 14:00:19,647 DEBUG [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_model',)) completed
STDERR
2026-02-04 14:00:19,647 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>)
STDERR
2026-02-04 14:00:19,647 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) completed
STDERR
2026-02-04 14:00:19,647 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>)
STDERR
2026-02-04 14:00:19,648 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) completed
STDOUT
2026-02-04 14:00:19,649 INFO sqlalchemy.engine.Engine SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at
STDOUT
FROM settings
STDOUT
WHERE settings."key" = ?
STDOUT
2026-02-04 14:00:19,649 INFO sqlalchemy.engine.Engine [cached since 1.205s ago] ('virtual_printer_target_printer_id',)
STDERR
2026-02-04 14:00:19,649 INFO [sqlalchemy.engine.Engine] SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at
STDERR
FROM settings
STDERR
WHERE settings."key" = ?
STDERR
2026-02-04 14:00:19,649 INFO [sqlalchemy.engine.Engine] [cached since 1.205s ago] ('virtual_printer_target_printer_id',)
STDERR
2026-02-04 14:00:19,649 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>)
STDERR
2026-02-04 14:00:19,650 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) completed
STDERR
2026-02-04 14:00:19,650 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_target_printer_id',))
STDERR
2026-02-04 14:00:19,650 DEBUG [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_target_printer_id',)) completed
STDERR
2026-02-04 14:00:19,650 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>)
STDERR
2026-02-04 14:00:19,651 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) completed
STDERR
2026-02-04 14:00:19,651 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>)
STDERR
2026-02-04 14:00:19,651 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) completed
STDOUT
2026-02-04 14:00:19,652 INFO sqlalchemy.engine.Engine SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at
STDOUT
FROM settings
STDOUT
WHERE settings."key" = ?
STDOUT
2026-02-04 14:00:19,653 INFO sqlalchemy.engine.Engine [cached since 1.209s ago] ('virtual_printer_remote_interface_ip',)
STDERR
2026-02-04 14:00:19,652 INFO [sqlalchemy.engine.Engine] SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at
STDERR
FROM settings
STDERR
WHERE settings."key" = ?
STDERR
2026-02-04 14:00:19,653 INFO [sqlalchemy.engine.Engine] [cached since 1.209s ago] ('virtual_printer_remote_interface_ip',)
STDERR
2026-02-04 14:00:19,653 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>)
STDERR
2026-02-04 14:00:19,653 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) completed
STDERR
2026-02-04 14:00:19,654 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_remote_interface_ip',))
STDERR
2026-02-04 14:00:19,654 DEBUG [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_remote_interface_ip',)) completed
STDERR
2026-02-04 14:00:19,654 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>)
STDERR
2026-02-04 14:00:19,654 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) completed
STDERR
2026-02-04 14:00:19,655 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>)
STDERR
2026-02-04 14:00:19,655 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) completed
STDOUT
2026-02-04 14:00:19,656 INFO sqlalchemy.engine.Engine ROLLBACK
STDERR
2026-02-04 14:00:19,656 INFO [sqlalchemy.engine.Engine] ROLLBACK
STDERR
2026-02-04 14:00:19,656 DEBUG [aiosqlite] executing functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd5510ca3e0>)
STDERR
2026-02-04 14:00:19,656 DEBUG [aiosqlite] operation functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd5510ca3e0>) completed
STDERR
2026-02-04 14:00:19,656 DEBUG [aiosqlite] executing functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd5510ca3e0>)
STDERR
2026-02-04 14:00:19,657 DEBUG [aiosqlite] operation functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd5510ca3e0>) completed
STDERR
ERROR:    Traceback (most recent call last):
STDERR
File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 694, in lifespan
STDERR
async with self.lifespan_context(app) as maybe_state:
STDERR
~~~~~~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan
STDERR
async with original_context(app) as maybe_original_state:
STDERR
~~~~~~~~~~~~~~~~^^^^^
STDERR
File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__
STDERR
return await anext(self.gen)
STDERR
^^^^^^^^^^^^^^^^^^^^^
STDERR
File "/app/backend/app/main.py", line 2512, in lifespan
STDERR
result = await db.execute(select(Printer).where(Printer.id == int(vp_target_printer_id)))
STDERR
^^^^^^
STDERR
UnboundLocalError: cannot access local variable 'select' where it is not associated with a value
STDERR
STDERR
ERROR:    Application startup failed. Exiting.
<!-- gh-comment-id:3847338342 --> @karaktaka commented on GitHub (Feb 4, 2026): This is the same log, but with DEBUG enabled: ``` STDERR 2026-02-04 14:00:19,604 INFO [backend.app.services.virtual_printer.manager] Checking virtual printer directories in /app/data/virtual_printer STDOUT 2026-02-04 14:00:19,606 INFO sqlalchemy.engine.Engine BEGIN (implicit) STDERR 2026-02-04 14:00:19,606 INFO [sqlalchemy.engine.Engine] BEGIN (implicit) STDOUT 2026-02-04 14:00:19,606 INFO sqlalchemy.engine.Engine SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at STDOUT FROM settings STDOUT WHERE settings."key" = ? STDOUT 2026-02-04 14:00:19,606 INFO sqlalchemy.engine.Engine [cached since 1.163s ago] ('virtual_printer_enabled',) STDERR 2026-02-04 14:00:19,606 INFO [sqlalchemy.engine.Engine] SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at STDERR FROM settings STDERR WHERE settings."key" = ? STDERR 2026-02-04 14:00:19,606 INFO [sqlalchemy.engine.Engine] [cached since 1.163s ago] ('virtual_printer_enabled',) STDERR 2026-02-04 14:00:19,608 DEBUG [aiosqlite] executing <function connect.<locals>.connector at 0x7fd54a50a980> STDERR 2026-02-04 14:00:19,609 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b60bb40>) STDERR 2026-02-04 14:00:19,609 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) STDERR 2026-02-04 14:00:19,609 DEBUG [aiosqlite] executing functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd17b0>) STDERR 2026-02-04 14:00:19,610 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b60bb40>) completed STDERR 2026-02-04 14:00:19,610 DEBUG [aiosqlite] operation <function connect.<locals>.connector at 0x7fd54a50a980> completed STDERR 2026-02-04 14:00:19,610 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) completed STDERR 2026-02-04 14:00:19,611 DEBUG [aiosqlite] operation functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd17b0>) completed STDERR 2026-02-04 14:00:19,611 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683c40>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_enabled',)) STDERR 2026-02-04 14:00:19,612 DEBUG [aiosqlite] executing functools.partial(<built-in method create_function of sqlite3.Connection object at 0x7fd54bfd25c0>, 'regexp', 2, <function SQLiteDialect_pysqlite.on_connect.<locals>.regexp at 0x7fd55241f380>, deterministic=True) STDERR 2026-02-04 14:00:19,612 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b60bb40>) STDERR 2026-02-04 14:00:19,613 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b60bb40>) completed STDOUT 2026-02-04 14:00:19,614 INFO sqlalchemy.engine.Engine COMMIT STDERR 2026-02-04 14:00:19,613 DEBUG [aiosqlite] operation functools.partial(<built-in method create_function of sqlite3.Connection object at 0x7fd54bfd25c0>, 'regexp', 2, <function SQLiteDialect_pysqlite.on_connect.<locals>.regexp at 0x7fd55241f380>, deterministic=True) completed STDERR 2026-02-04 14:00:19,613 DEBUG [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683c40>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_enabled',)) completed STDERR 2026-02-04 14:00:19,614 INFO [sqlalchemy.engine.Engine] COMMIT STDERR 2026-02-04 14:00:19,615 DEBUG [aiosqlite] executing functools.partial(<built-in method commit of sqlite3.Connection object at 0x7fd54bfd2110>) STDERR 2026-02-04 14:00:19,615 DEBUG [aiosqlite] executing functools.partial(<built-in method create_function of sqlite3.Connection object at 0x7fd54bfd25c0>, 'floor', 1, <built-in function floor>, deterministic=True) STDERR 2026-02-04 14:00:19,615 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683c40>) STDERR 2026-02-04 14:00:19,616 DEBUG [aiosqlite] operation functools.partial(<built-in method commit of sqlite3.Connection object at 0x7fd54bfd2110>) completed STDERR 2026-02-04 14:00:19,616 DEBUG [aiosqlite] operation functools.partial(<built-in method create_function of sqlite3.Connection object at 0x7fd54bfd25c0>, 'floor', 1, <built-in function floor>, deterministic=True) completed STDOUT 2026-02-04 14:00:19,617 INFO sqlalchemy.engine.Engine BEGIN (implicit) STDERR 2026-02-04 14:00:19,617 INFO [sqlalchemy.engine.Engine] BEGIN (implicit) STDERR 2026-02-04 14:00:19,617 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683c40>) completed STDERR 2026-02-04 14:00:19,617 DEBUG [aiosqlite] executing functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd2110>) STDERR 2026-02-04 14:00:19,618 DEBUG [aiosqlite] operation functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd2110>) completed STDOUT 2026-02-04 14:00:19,627 INFO sqlalchemy.engine.Engine SELECT notification_providers.id, notification_providers.name, notification_providers.provider_type, notification_providers.enabled, notification_providers.config, notification_providers.on_print_start, notification_providers.on_print_complete, notification_providers.on_print_failed, notification_providers.on_print_stopped, notification_providers.on_print_progress, notification_providers.on_printer_offline, notification_providers.on_printer_error, notification_providers.on_filament_low, notification_providers.on_maintenance_due, notification_providers.on_ams_humidity_high, notification_providers.on_ams_temperature_high, notification_providers.on_ams_ht_humidity_high, notification_providers.on_ams_ht_temperature_high, notification_providers.on_plate_not_empty, notification_providers.on_queue_job_added, notification_providers.on_queue_job_assigned, notification_providers.on_queue_job_started, notification_providers.on_queue_job_waiting, notification_providers.on_queue_job_skipped, notification_providers.on_queue_job_failed, notification_providers.on_queue_completed, notification_providers.quiet_hours_enabled, notification_providers.quiet_hours_start, notification_providers.quiet_hours_end, notification_providers.daily_digest_enabled, notification_providers.daily_digest_time, notification_providers.printer_id, notification_providers.last_success, notification_providers.last_error, notification_providers.last_error_at, notification_providers.created_at, notification_providers.updated_at STDOUT FROM notification_providers STDOUT WHERE notification_providers.enabled IS 1 AND notification_providers.daily_digest_enabled IS 1 AND notification_providers.daily_digest_time = ? STDERR 2026-02-04 14:00:19,627 INFO [sqlalchemy.engine.Engine] SELECT notification_providers.id, notification_providers.name, notification_providers.provider_type, notification_providers.enabled, notification_providers.config, notification_providers.on_print_start, notification_providers.on_print_complete, notification_providers.on_print_failed, notification_providers.on_print_stopped, notification_providers.on_print_progress, notification_providers.on_printer_offline, notification_providers.on_printer_error, notification_providers.on_filament_low, notification_providers.on_maintenance_due, notification_providers.on_ams_humidity_high, notification_providers.on_ams_temperature_high, notification_providers.on_ams_ht_humidity_high, notification_providers.on_ams_ht_temperature_high, notification_providers.on_plate_not_empty, notification_providers.on_queue_job_added, notification_providers.on_queue_job_assigned, notification_providers.on_queue_job_started, notification_providers.on_queue_job_waiting, notification_providers.on_queue_job_skipped, notification_providers.on_queue_job_failed, notification_providers.on_queue_completed, notification_providers.quiet_hours_enabled, notification_providers.quiet_hours_start, notification_providers.quiet_hours_end, notification_providers.daily_digest_enabled, notification_providers.daily_digest_time, notification_providers.printer_id, notification_providers.last_success, notification_providers.last_error, notification_providers.last_error_at, notification_providers.created_at, notification_providers.updated_at STDERR FROM notification_providers STDERR WHERE notification_providers.enabled IS 1 AND notification_providers.daily_digest_enabled IS 1 AND notification_providers.daily_digest_time = ? STDERR 2026-02-04 14:00:19,628 INFO [sqlalchemy.engine.Engine] [generated in 0.00082s] ('14:00',) STDOUT 2026-02-04 14:00:19,628 INFO sqlalchemy.engine.Engine [generated in 0.00082s] ('14:00',) STDERR 2026-02-04 14:00:19,629 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683c40>) STDERR 2026-02-04 14:00:19,629 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd54bfd25c0>) STDERR 2026-02-04 14:00:19,629 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683c40>) completed STDERR 2026-02-04 14:00:19,629 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd54bfd25c0>) completed STDOUT 2026-02-04 14:00:19,631 INFO sqlalchemy.engine.Engine SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at STDOUT FROM settings STDOUT WHERE settings."key" = ? STDERR 2026-02-04 14:00:19,631 INFO [sqlalchemy.engine.Engine] SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at STDERR FROM settings STDERR WHERE settings."key" = ? STDERR 2026-02-04 14:00:19,632 INFO [sqlalchemy.engine.Engine] [cached since 1.188s ago] ('virtual_printer_access_code',) STDOUT 2026-02-04 14:00:19,632 INFO sqlalchemy.engine.Engine [cached since 1.188s ago] ('virtual_printer_access_code',) STDERR 2026-02-04 14:00:19,632 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b622940>, 'SELECT notification_providers.id, notification_providers.name, notification_providers.provider_type, notification_providers.enabled, notification_providers.config, notification_providers.on_print_start, notification_providers.on_print_complete, notification_providers.on_print_failed, notification_providers.on_print_stopped, notification_providers.on_print_progress, notification_providers.on_printer_offline, notification_providers.on_printer_error, notification_providers.on_filament_low, notification_providers.on_maintenance_due, notification_providers.on_ams_humidity_high, notification_providers.on_ams_temperature_high, notification_providers.on_ams_ht_humidity_high, notification_providers.on_ams_ht_temperature_high, notification_providers.on_plate_not_empty, notification_providers.on_queue_job_added, notification_providers.on_queue_job_assigned, notification_providers.on_queue_job_started, notification_providers.on_queue_job_waiting, notification_providers.on_queue_job_skipped, notification_providers.on_queue_job_failed, notification_providers.on_queue_completed, notification_providers.quiet_hours_enabled, notification_providers.quiet_hours_start, notification_providers.quiet_hours_end, notification_providers.daily_digest_enabled, notification_providers.daily_digest_time, notification_providers.printer_id, notification_providers.last_success, notification_providers.last_error, notification_providers.last_error_at, notification_providers.created_at, notification_providers.updated_at \nFROM notification_providers \nWHERE notification_providers.enabled IS 1 AND notification_providers.daily_digest_enabled IS 1 AND notification_providers.daily_digest_time = ?', ('14:00',)) STDERR 2026-02-04 14:00:19,634 DEBUG [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b622940>, 'SELECT notification_providers.id, notification_providers.name, notification_providers.provider_type, notification_providers.enabled, notification_providers.config, notification_providers.on_print_start, notification_providers.on_print_complete, notification_providers.on_print_failed, notification_providers.on_print_stopped, notification_providers.on_print_progress, notification_providers.on_printer_offline, notification_providers.on_printer_error, notification_providers.on_filament_low, notification_providers.on_maintenance_due, notification_providers.on_ams_humidity_high, notification_providers.on_ams_temperature_high, notification_providers.on_ams_ht_humidity_high, notification_providers.on_ams_ht_temperature_high, notification_providers.on_plate_not_empty, notification_providers.on_queue_job_added, notification_providers.on_queue_job_assigned, notification_providers.on_queue_job_started, notification_providers.on_queue_job_waiting, notification_providers.on_queue_job_skipped, notification_providers.on_queue_job_failed, notification_providers.on_queue_completed, notification_providers.quiet_hours_enabled, notification_providers.quiet_hours_start, notification_providers.quiet_hours_end, notification_providers.daily_digest_enabled, notification_providers.daily_digest_time, notification_providers.printer_id, notification_providers.last_success, notification_providers.last_error, notification_providers.last_error_at, notification_providers.created_at, notification_providers.updated_at \nFROM notification_providers \nWHERE notification_providers.enabled IS 1 AND notification_providers.daily_digest_enabled IS 1 AND notification_providers.daily_digest_time = ?', ('14:00',)) completed STDERR 2026-02-04 14:00:19,635 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b622940>) STDERR 2026-02-04 14:00:19,635 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b622940>) completed STDERR 2026-02-04 14:00:19,635 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b622940>) STDERR 2026-02-04 14:00:19,635 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b622940>) completed STDOUT 2026-02-04 14:00:19,637 INFO sqlalchemy.engine.Engine ROLLBACK STDERR 2026-02-04 14:00:19,637 INFO [sqlalchemy.engine.Engine] ROLLBACK STDERR 2026-02-04 14:00:19,637 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) STDERR 2026-02-04 14:00:19,637 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) completed STDERR 2026-02-04 14:00:19,637 DEBUG [aiosqlite] executing functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd25c0>) STDERR 2026-02-04 14:00:19,638 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_access_code',)) STDERR 2026-02-04 14:00:19,638 DEBUG [aiosqlite] operation functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd25c0>) completed STDERR 2026-02-04 14:00:19,638 DEBUG [aiosqlite] executing functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd25c0>) STDERR 2026-02-04 14:00:19,638 DEBUG [aiosqlite] operation functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd54bfd25c0>) completed STDERR 2026-02-04 14:00:19,638 DEBUG [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_access_code',)) completed STDERR 2026-02-04 14:00:19,639 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) STDERR 2026-02-04 14:00:19,639 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) completed STDERR 2026-02-04 14:00:19,639 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) STDERR 2026-02-04 14:00:19,640 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) completed STDOUT 2026-02-04 14:00:19,641 INFO sqlalchemy.engine.Engine SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at STDOUT FROM settings STDOUT WHERE settings."key" = ? STDERR 2026-02-04 14:00:19,641 INFO [sqlalchemy.engine.Engine] SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at STDERR FROM settings STDERR WHERE settings."key" = ? STDERR 2026-02-04 14:00:19,641 INFO [sqlalchemy.engine.Engine] [cached since 1.197s ago] ('virtual_printer_mode',) STDOUT 2026-02-04 14:00:19,641 INFO sqlalchemy.engine.Engine [cached since 1.197s ago] ('virtual_printer_mode',) STDERR 2026-02-04 14:00:19,641 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) STDERR 2026-02-04 14:00:19,642 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) completed STDERR 2026-02-04 14:00:19,642 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_mode',)) STDERR 2026-02-04 14:00:19,642 DEBUG [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_mode',)) completed STDERR 2026-02-04 14:00:19,643 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) STDERR 2026-02-04 14:00:19,643 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) completed STDERR 2026-02-04 14:00:19,643 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) STDERR 2026-02-04 14:00:19,643 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) completed STDOUT 2026-02-04 14:00:19,644 INFO sqlalchemy.engine.Engine SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at STDOUT FROM settings STDOUT WHERE settings."key" = ? STDERR 2026-02-04 14:00:19,644 INFO [sqlalchemy.engine.Engine] SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at STDERR FROM settings STDERR WHERE settings."key" = ? STDOUT 2026-02-04 14:00:19,645 INFO sqlalchemy.engine.Engine [cached since 1.201s ago] ('virtual_printer_model',) STDERR 2026-02-04 14:00:19,645 INFO [sqlalchemy.engine.Engine] [cached since 1.201s ago] ('virtual_printer_model',) STDERR 2026-02-04 14:00:19,646 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) STDERR 2026-02-04 14:00:19,646 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) completed STDERR 2026-02-04 14:00:19,646 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_model',)) STDERR 2026-02-04 14:00:19,647 DEBUG [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_model',)) completed STDERR 2026-02-04 14:00:19,647 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) STDERR 2026-02-04 14:00:19,647 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) completed STDERR 2026-02-04 14:00:19,647 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) STDERR 2026-02-04 14:00:19,648 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) completed STDOUT 2026-02-04 14:00:19,649 INFO sqlalchemy.engine.Engine SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at STDOUT FROM settings STDOUT WHERE settings."key" = ? STDOUT 2026-02-04 14:00:19,649 INFO sqlalchemy.engine.Engine [cached since 1.205s ago] ('virtual_printer_target_printer_id',) STDERR 2026-02-04 14:00:19,649 INFO [sqlalchemy.engine.Engine] SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at STDERR FROM settings STDERR WHERE settings."key" = ? STDERR 2026-02-04 14:00:19,649 INFO [sqlalchemy.engine.Engine] [cached since 1.205s ago] ('virtual_printer_target_printer_id',) STDERR 2026-02-04 14:00:19,649 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) STDERR 2026-02-04 14:00:19,650 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) completed STDERR 2026-02-04 14:00:19,650 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_target_printer_id',)) STDERR 2026-02-04 14:00:19,650 DEBUG [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_target_printer_id',)) completed STDERR 2026-02-04 14:00:19,650 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) STDERR 2026-02-04 14:00:19,651 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) completed STDERR 2026-02-04 14:00:19,651 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) STDERR 2026-02-04 14:00:19,651 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) completed STDOUT 2026-02-04 14:00:19,652 INFO sqlalchemy.engine.Engine SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at STDOUT FROM settings STDOUT WHERE settings."key" = ? STDOUT 2026-02-04 14:00:19,653 INFO sqlalchemy.engine.Engine [cached since 1.209s ago] ('virtual_printer_remote_interface_ip',) STDERR 2026-02-04 14:00:19,652 INFO [sqlalchemy.engine.Engine] SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at STDERR FROM settings STDERR WHERE settings."key" = ? STDERR 2026-02-04 14:00:19,653 INFO [sqlalchemy.engine.Engine] [cached since 1.209s ago] ('virtual_printer_remote_interface_ip',) STDERR 2026-02-04 14:00:19,653 DEBUG [aiosqlite] executing functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) STDERR 2026-02-04 14:00:19,653 DEBUG [aiosqlite] operation functools.partial(<built-in method cursor of sqlite3.Connection object at 0x7fd5510ca3e0>) completed STDERR 2026-02-04 14:00:19,654 DEBUG [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_remote_interface_ip',)) STDERR 2026-02-04 14:00:19,654 DEBUG [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Cursor object at 0x7fd54b683740>, 'SELECT settings.id, settings."key", settings.value, settings.created_at, settings.updated_at \nFROM settings \nWHERE settings."key" = ?', ('virtual_printer_remote_interface_ip',)) completed STDERR 2026-02-04 14:00:19,654 DEBUG [aiosqlite] executing functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) STDERR 2026-02-04 14:00:19,654 DEBUG [aiosqlite] operation functools.partial(<built-in method fetchall of sqlite3.Cursor object at 0x7fd54b683740>) completed STDERR 2026-02-04 14:00:19,655 DEBUG [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) STDERR 2026-02-04 14:00:19,655 DEBUG [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Cursor object at 0x7fd54b683740>) completed STDOUT 2026-02-04 14:00:19,656 INFO sqlalchemy.engine.Engine ROLLBACK STDERR 2026-02-04 14:00:19,656 INFO [sqlalchemy.engine.Engine] ROLLBACK STDERR 2026-02-04 14:00:19,656 DEBUG [aiosqlite] executing functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd5510ca3e0>) STDERR 2026-02-04 14:00:19,656 DEBUG [aiosqlite] operation functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd5510ca3e0>) completed STDERR 2026-02-04 14:00:19,656 DEBUG [aiosqlite] executing functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd5510ca3e0>) STDERR 2026-02-04 14:00:19,657 DEBUG [aiosqlite] operation functools.partial(<built-in method rollback of sqlite3.Connection object at 0x7fd5510ca3e0>) completed STDERR ERROR: Traceback (most recent call last): STDERR File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 694, in lifespan STDERR async with self.lifespan_context(app) as maybe_state: STDERR ~~~~~~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 153, in merged_lifespan STDERR async with original_context(app) as maybe_original_state: STDERR ~~~~~~~~~~~~~~~~^^^^^ STDERR File "/usr/local/lib/python3.13/contextlib.py", line 214, in __aenter__ STDERR return await anext(self.gen) STDERR ^^^^^^^^^^^^^^^^^^^^^ STDERR File "/app/backend/app/main.py", line 2512, in lifespan STDERR result = await db.execute(select(Printer).where(Printer.id == int(vp_target_printer_id))) STDERR ^^^^^^ STDERR UnboundLocalError: cannot access local variable 'select' where it is not associated with a value STDERR STDERR ERROR: Application startup failed. Exiting. ```
Author
Owner

@karaktaka commented on GitHub (Feb 4, 2026):

I just rebuild the image with the latest merge to branch 0.1.8b and my changes. Looks good now.

<!-- gh-comment-id:3847570982 --> @karaktaka commented on GitHub (Feb 4, 2026): I just rebuild the image with the latest merge to branch 0.1.8b and my changes. Looks good now.
Author
Owner

@maziggy commented on GitHub (Feb 4, 2026):

Thanks!!!

If you find Bambuddy useful, please consider giving it a on GitHub — it helps others discover the project!

<!-- gh-comment-id:3847682739 --> @maziggy commented on GitHub (Feb 4, 2026): Thanks!!! If you find Bambuddy useful, please consider giving it a ⭐ on [GitHub](https://github.com/bambuman/bambuddy) — it helps others discover the project!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy#154
No description provided.