Thanks to visit codestin.com
Credit goes to github.com

Skip to content

UTF-16 generated by setup-docker-compose.ps1 prevents docker up from working on windows #971

@metatrot

Description

@metatrot

On windows, the setup guide windows script .\scripts\setup-docker-compose.ps1 produces a character encoding issue:

PS C:\Users\2\Desktop\vivaria> .\scripts\setup-docker-compose.ps1
PS C:\Users\2\Desktop\vivaria> docker compose up --pull always --detach --wait
line 1: unexpected character "�" in variable name "\xff\xfeA\x00C\x00C\x00E\x00S\x00S\x00_\x00T\x00O\x00K\x00E\x00N\x00_\x00S\x00E\x00C\x00R\x00E\x00T\x00_\x00K\x00E\x00Y\x00=\x00r\x00t\x00I\x00F\x00Z\x00e\x00f\x00X\x00K\x00h\x004\x00k\x00a\x00T\x00P\x00A\x00h\x006\x00i\x002\x00o\x00w\x001\x00g\x00q\x00H\x00o\x00A\x00j\x00X\x00T\x00a\x00w\x00T\x00w\x00D\x006\x008\x00V\x00X\x00c\x00+\x00Y\x00=\x00\r\x00"

Apparently it's trying to read the variable name ACCESS_TOKEN_SECRET_KEY from .env.server but can't because of the BOM.

Explicitly saving it as UTF-8 in notepad fixes it.

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