mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4294] FRPC unmarshal ProxyConfig error #3388
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3388
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JmmyGun on GitHub (Jun 22, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4294
Bug Description
sudo frpc -c /etc/frpc/frpc.toml
unmarshal ProxyConfig error: json: unknown field "webServer"
sudo frpc -c /etc/frpc/frpc.toml
unmarshal ProxyConfig error: json: unknown field "log"
frpc Version
0.58.1 armhf
frps Version
0.58.1 amd64
System Architecture
frps_linux/amd64 frpc_linux/armv7l
Configurations
#* Configurazione del client test2
#* il tuo nome user proxy {user}.{proxy}
user = "test2"
#* Indirizzo e porta server
serverAddr = "test.com"
serverPort = 7000
#* Metodo di autenticazione
auth.method = "token"
#* Token di autenticazione
auth.token = "eh!volevi"
proxies
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 20222
proxies
name = "web"
type = "https"
localIP = "127.0.0.1"
localPort = 1880
subdomain = "test2"
#* console or real logFile path like ./frpc.log
log.to = "/home/test2/data_store/resource/frpc.log"
#* trace, debug, info, warn, error
log.level = "info"
log.maxDays = 3
#* disable log colors when log.to is console, default is false
log.disablePrintColor = false
webServer.addr = "127.0.0.1"
webServer.port = 7400
webServer.user = "admin"
webServer.password = "admin"
Logs
when I enable the logging options
#console or real logFile path like ./frpc.log
log.to = "/home/test2/data_store/resource/frpc.log"
#* trace, debug, info, warn, error
log.level = "info"
log.maxDays = 3
#* disable log colors when log.to is console, default is false
log.disablePrintColor = false
$ sudo frpc -c /etc/frpc/frpc.toml
unmarshal ProxyConfig error: json: unknown field "log"
when I enable Client Admin UI
webServer.addr = "127.0.0.1"
webServer.port = 7400
webServer.user = "admin"
webServer.password = "admin"
$ sudo frpc -c /etc/frpc/frpc.toml
unmarshal ProxyConfig error: json: unknown field "webServer"
Steps to reproduce
...
Affected area
@fatedier commented on GitHub (Jun 25, 2024):
You need to follow the syntax rules of YAML.