Open ramosisw opened 4 years ago
have kind the same issue on RPI 4b:
ebat@netm:~/tempo $ cat /etc/debian_version
10.10
ebat@netm:~/tempo $ uname -a
Linux netm 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l GNU/Linux
Managed to build everything for arm v71, but it can't run properly. DB seems on the place, instances and users were created, but it throws following, when I run it:
2021/10/01 12:12:56 [D] [models.go:88] {1 default openvpn:2080 tcp /etc/openvpn/ 127.0.0.1 2021-10-01 09:26:49.944566004 +0000 UTC 2021-10-01 09:26:49.944570911 +0000 UTC}
[ORM]2021/10/01 12:12:56 -[Queries/default] - [ OK / db.QueryRow / 0.1ms] - [SELECT `id`, `profile`, `port`, `proto`, `ca`, `cert`, `key`, `cipher`, `keysize`, `auth`, `dh`, `server`, `ifconfig_pool_persist`, `keepalive`, `max_clients`, `management` FROM `o_v_config` WHERE `profile` = ? ] - `default`
panic: reflect: call of reflect.Value.Int on string Value
goroutine 1 [running]:
reflect.Value.Int(...)
/usr/local/go/src/reflect/value.go:1334
Update:
As a WA you can disable default profile configuration submit to o_v_config
table by commenting out createDefaultOVConfig()
function as part of init()
in models.go
:
func init() {
initDB()
createDefaultUsers()
createDefaultSettings()
// createDefaultOVConfig()
}
This will skip createDefaultOVConfig and web server starts normally.
How can I solve this error? Environment Platform: Raspberry Pi 3 B + OS: linux Architecture: arm The source was compiled on the Raspberry Pi.
Action: Update the configuration of the
default
profile Initially I had to comment on that configuration in the code because it gave me the same error. Log