Skip to content

Spoolman Service Unit File doesn't use the host and port values from the .envΒ #6818

@darryn-bryant

Description

@darryn-bryant

βœ… Have you read and understood the above guidelines?

yes

πŸ“œ What is the name of the script you are using?

Spoolman

πŸ“‚ What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/spoolman.sh)"

βš™οΈ What settings are you using?

  • Default Settings
  • Advanced Settings

πŸ–₯️ Which Linux distribution are you using?

Debian 12

πŸ“ Provide a clear and concise description of the issue.

Service Unit File doesn't use the host and port values from the .env

πŸ”„ Steps to reproduce the issue.

Step 1: Install Spoolman
Step 2: Change .env file to set the SPOOLMAN_PORT to 80
Step 3: Restart service with "systemctl restart spoolman.service"

❌ Paste the full error output (if available).

service restarts, but it not accessable on port 80 as expected

πŸ–ΌοΈ Additional context (optional).

Suggest changing the service creation from:
ExecStart=uvicorn spoolman.main:app --host 0.0.0.0 --port 7912
to:
ExecStart=uvicorn spoolman.main:app --host "${SPOOLMAN_HOST}" --port "${SPOOLMAN_PORT}"
during install

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions