firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Bug]: Dockerfile: --hwid: (PROGRAM ERROR) Option should have been recognized!?

Open micheljung opened this issue 10 months ago • 3 comments

Category

Other

Hardware

Not Applicable

Firmware Version

n/a

Description

If you follow Usage with Docker and execute:

docker run --rm -p 4403:4403 meshtastic/device

You get:

meshtasticd: --hwid: (PROGRAM ERROR) Option should have been recognized!?

Because of this in the Dockerfile:

--hwid=${HWID:-$RANDOM}

But neither of these variables are set and I'm not sure how this is supposed to work. I assume HWID should be a build argument but what about RANDOM?

Relevant log output

No response

micheljung avatar Apr 14 '24 12:04 micheljung

Ran into the same issue. How do I go about fixing this?

ymilord avatar Apr 17 '24 13:04 ymilord

@ymilord remove --hwid=${HWID:-$RANDOM} from the Dockerfile and build the image again

micheljung avatar Apr 17 '24 15:04 micheljung

Thanks

ymilord avatar Apr 17 '24 17:04 ymilord