Cloak icon indicating copy to clipboard operation
Cloak copied to clipboard

Configuration file error: failed to read configuration file: illegal base64 data at input byte 8

Open santarinto opened this issue 3 months ago • 1 comments

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.

santarinto avatar Nov 17 '25 23:11 santarinto

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

psydvl avatar Dec 02 '25 16:12 psydvl