[GH-ISSUE #320] Configuration file error: failed to read configuration file: illegal base64 data at input byte 8 #247

Open
opened 2026-02-26 12:34:21 +03:00 by kerem · 1 comment
Owner

Originally created by @santarinto on GitHub (Nov 17, 2025).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/320

I do everything according to the instructions and get an error at the very beginning, in the most unexpected place.

root@v649741077:/usr/local/bin# ck-server -key
Your PUBLIC key is:                      aWrIpK151cW4NSRbvSobvmRkcnUcmXynws9voOUypXk=
Your PRIVATE key is (keep it secret):    GG6m6QU+L5iQ3R7tUMTle6YjeJxG3yyF63yaFSGbX38=

After generating the keys, I compile a standard config for the server and check its syntax.

root@v649741077:/usr/local/bin#  python3 -m json.tool /etc/cloak/ck-server.json
{
    "ProxyBook": {
        "shadowsocks": [
            "tcp",
            "127.0.0.1:8388"
        ]
    },
    "BindAddr": [
        "0.0.0.0:8443"
    ],
    "RedirAddr": "tile.openstreetmap.org",
    "PrivateKey": "GG6m6QU+L5iQ3R7tUMTle6YjeJxG3yyF63yaFSGbX38=",
    "AdminUID": "00000000-0000-0000-0000-000000000000",
    "EncryptionMethod": "aes-gcm",
    "NumConn": 4,
    "Transport": "direct",
    "BrowserSig": "chrome"
}

and when I try to start the server, I get a syntax error

root@v649741077:/usr/local/bin# /usr/local/bin/ck-server -c /etc/cloak/ck-server.json
INFO[2025-11-17T23:17:47Z] Starting standalone mode
FATA[2025-11-17T23:17:47Z] Configuration file error: failed to read configuration file: illegal base64 data at input byte 8

I tried decoding the key in base64 and still get a similar error, but the symbol in the configuration is not valid.

Originally created by @santarinto on GitHub (Nov 17, 2025). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/320 I do everything according to the instructions and get an error at the very beginning, in the most unexpected place. ```shell root@v649741077:/usr/local/bin# ck-server -key Your PUBLIC key is: aWrIpK151cW4NSRbvSobvmRkcnUcmXynws9voOUypXk= Your PRIVATE key is (keep it secret): GG6m6QU+L5iQ3R7tUMTle6YjeJxG3yyF63yaFSGbX38= ``` After generating the keys, I compile a standard config for the server and check its syntax. ```shell root@v649741077:/usr/local/bin# python3 -m json.tool /etc/cloak/ck-server.json { "ProxyBook": { "shadowsocks": [ "tcp", "127.0.0.1:8388" ] }, "BindAddr": [ "0.0.0.0:8443" ], "RedirAddr": "tile.openstreetmap.org", "PrivateKey": "GG6m6QU+L5iQ3R7tUMTle6YjeJxG3yyF63yaFSGbX38=", "AdminUID": "00000000-0000-0000-0000-000000000000", "EncryptionMethod": "aes-gcm", "NumConn": 4, "Transport": "direct", "BrowserSig": "chrome" } ``` and when I try to start the server, I get a syntax error ```shell root@v649741077:/usr/local/bin# /usr/local/bin/ck-server -c /etc/cloak/ck-server.json INFO[2025-11-17T23:17:47Z] Starting standalone mode FATA[2025-11-17T23:17:47Z] Configuration file error: failed to read configuration file: illegal base64 data at input byte 8 ``` I tried decoding the key in base64 and still get a similar error, but the symbol in the configuration is not valid.
Author
Owner

@psydvl commented on GitHub (Dec 2, 2025):

You filled AdminUID with invalid value
Left in it empty string or reread documentation

<!-- gh-comment-id:3602908191 --> @psydvl commented on GitHub (Dec 2, 2025): You filled `AdminUID` with invalid value Left in it empty string or reread documentation
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#247
No description provided.