Skip to content

Scanopy configure_daemon.sh does not work due to api-key mismatchΒ #10437

@durzo

Description

@durzo

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

yes

πŸ”Ž Did you run the script with verbose mode enabled?

Yes, verbose mode was enabled and the output is included below

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

scanopy

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

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

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

  • Default Settings
  • Advanced Settings

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

Debian 13

πŸ“ˆ Which Proxmox version are you on?

9.1.4

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

The included script /root/configure_daemon.sh pulls the API key from the database table api_keys and passes it as the value of --daemon-api-key in the created systemd file for scanopy-daemon

The problem is, the API key stored in the api_keys table is a hash of the key, not the key itself. this results in the daemon registration failing due to an invalid api key, and it getting stuck in a retry/restart loop.

it does not look like the api key is obtainable from the db table, so the script itself may have to be removed or altered to prompt for manual api key insertion

πŸ”„ Steps to reproduce the issue.

  1. create the lxc using the install script
  2. open the webui and create a new account, do nothing else.
  3. inside the lxc, run /root/configure_daemon.sh
  4. journalctl -fu scanopy-daemon shows the registration failure
  5. cat /etc/systemd/system/scanopy-daemon shows the api key hash taken from the DB.
  6. note its length (65 chars). api keys are 33 chars in length.
  7. in the web ui, create a new API key, note the key and its length (33 chars)
  8. select all rows from api_keys table, the api key is 65 chars and not the original key (its a hash)

❌ Paste the full error output (if available).

Dec 30 23:38:33 scanopy scanopy-daemon[18451]: 2025-12-30T23:38:33.177371Z  WARN scanopy::daemon::runtime::service: API key not yet active. This daemon was likely installed before account registration was completed. Waiting for account creation... Retrying in 16 seconds. daemon_id=6c5b6833-9163-405f-aaf4-ad20b796a6af attempt=6

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

No response

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