Skip to content

When print starts from printer - openspoolman throws errors #78

@leutnantlurch

Description

@leutnantlurch

Hello,

First of all - i'm gratefull for this application, it would solve my problem with filamentmanagment but... unfortunately I got problems running the setup smoothly.

The Printer i use: Bambu Lab X1 Carbon with AMS 1 and AMS HT
Firmware: 01.11.02.00

When i start a print from the printers display, the following errors appears in the dockerlog:

`KeyError: 'file'
Traceback (most recent call last):
  File "/home/app/mqtt_bambulab.py", line 425, in on_message
    processMessage(data)
  File "/home/app/mqtt_bambulab.py", line 283, in processMessage
    print_id = insert_print(PENDING_PRINT_METADATA["file"], PRINTER_STATE["print"]["print_type"], PENDING_PRINT_METADATA["image"])
                            ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^`

My printer throws this error:

 MQTT Command verification failed. Please update Studio (including the network plugin) or Handy to the latest version,
 then restart the software and try again.

And in openspoolman it wouldnt show the print job in the print history.

Attached are my mqtt and spoolman log.

logs.zip

My docker-compose and env file looks like this:

services:
  openspoolman:
    container_name: openspoolman-kaguya
    image: ghcr.io/drndos/openspoolman:dev
    env_file:
      - /boot/config/plugins/compose.manager/projects/Openspoolman/.env
    ports:
      - "8001:8000"
    volumes:
      - /mnt/user/appdata/openspoolman-kaguya/logs:/home/app/logs
      - /mnt/user/appdata/openspoolman-kaguya/data:/home/app/data
      - /mnt/user/appdata/openspoolman-kaguya/prints:/home/app/static/prints
    restart: unless-stopped

Yes, my printer is called Kaguya... ;)

TZ=Europe/Berlin
OPENSPOOLMAN_BASE_URL=http://192.168.1.52:8001
PRINTER_ACCESS_CODE=557******
PRINTER_ID=00M09****************
PRINTER_IP=192.168.1.172
PRINTER_NAME=KAGUYA - Bambu Lab X1 Carbon
SPOOLMAN_BASE_URL=http://192.168.1.52:7912
AUTO_SPEND=True
TRACK_LAYER_USAGE=True
SPOOL_SORTING=filament.material:asc,filament.vendor.name:asc,filament.name:asc
CLEAR_ASSIGNMENT_WHEN_EMPTY=True
COLOR_DISTANCE_TOLERANCE=40

The fields are correct in spoolman and when i start a print via bambu studio, it shows in the print history and it should consume it properly.

So my question is: is it a problem on my side or is it maybe a bug? I'm happy to help and to provide more information, if necessary.

Greetings from switzerland!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions