Skip to content

Unraid CSS_DEVICES variable results in “ERR: failed to parse IP” (solved) #153

@phillbailey

Description

@phillbailey

Hello,
Posting this here because I’m not sure if you published CastSponsorSkip to Unraid’s apps or not, and if not I hope this is helpful for someone else, because I’ve been scratching my head.

The Unraid template for this docker container configures the CSS_DEVICES environment variable and passes it to the container, even if you leave it blank. This results in CastSponsorSkip raising the error ERR: failed to parse IP. It wasn’t clear where this was coming from.

If you’re an Unraid user, edit the container from the Docker tab, switch to advanced edit mode and delete the CSS_DEVICES environment variable and the container starts auto discovery. If you find you need that environment variable, you can always re-add it.

The issue seems to stem from the test of c.DeviceAddrStrs on line 123 of internal/config/load.go - if it’s set by Unraid (even if blank!), it seemingly has a length greater than zero and CastSponsorSkip tries to parse the IPs 🤷

Hope this helps someone.

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