Hi, thank you for the effort. Still not working...
I think the infludb is running on :8086 (and:8088) but the mycontroller connect fails with:
error: 404 Not Found: 404 page not found
, errorVerbose: 404 Not Found: 404 page not found
github.com/influxdata/influxdb-client-go/v2/domain.decodeError
/home/runner/go/pkg/mod/github.com/influxdata/influxdb-client-go/v2@v2.12.2/domain/client.gen.go:106
github.com/influxdata/influxdb-client-go/v2/domain.(*Client).GetHealth
/home/runner/go/pkg/mod/github.com/influxdata/influxdb-client-go/v2@v2.12.2/domain/client.gen.go:4509
github.com/influxdata/influxdb-client-go/v2.(*clientImpl).Health
/home/runner/go/pkg/mod/github.com/influxdata/influxdb-client-go/v2@v2.12.2/client.go:208
github.com/mycontroller-org/server/v2/plugin/database/metric/influxdb_v2.NewClient
/home/runner/work/server/server/plugin/database/metric/influxdb_v2/client.go:157
github.com/mycontroller-org/server/v2/plugin/database/metric.Create
/home/runner/work/server/server/plugin/database/metric/plugin.go:28
github.com/mycontroller-org/server/v2/pkg/database.GetMetric
/home/runner/work/server/server/pkg/database/metric.go:28
github.com/mycontroller-org/server/v2/cmd/helper.loadMetricDatabase
/home/runner/work/server/server/cmd/helper/helper.go:112
github.com/mycontroller-org/server/v2/cmd/helper.(*Server).Start
/home/runner/work/server/server/cmd/helper/server.go:110
github.com/mycontroller-org/server/v2/cmd/component/server/cmd.glob..func2
/home/runner/work/server/server/cmd/component/server/cmd/root.go:36
github.com/spf13/cobra.(*Command).execute
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:920
github.com/spf13/cobra.(*Command).ExecuteC
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044
github.com/spf13/cobra.(*Command).Execute
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
github.com/mycontroller-org/server/v2/cmd/component/server/cmd.Execute
/home/runner/work/server/server/cmd/component/server/cmd/root.go:44
main.main
/home/runner/work/server/server/cmd/component/server/main.go:8
runtime.main
/opt/hostedtoolcache/go/1.20.5/x64/src/runtime/proc.go:250
runtime.goexit
/opt/hostedtoolcache/go/1.20.5/x64/src/runtime/asm_amd64.s:1598
--- details ---
.a the influx is listening on my external IP
netstat -tna | less
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:9091 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:42385 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:60621 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:47195 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:51413 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:38277 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.102:8088 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.102:8086 0.0.0.0:* LISTEN
.b I can connect it manually
influx -host 192.168.1.102
Connected to http://192.168.1.102:8086 version 1.6.7~rc0
InfluxDB shell version: 1.6.7~rc0
>
.c the influx configuration
nano /etc/influxdb/influxdb.conf
reporting-enabled = false
bind-address = "192.168.1.102:8088"
...
[http]
enabled = true
bind-address = "192.168.1.102:8086"
auth-enabled = false
log-enabled = true
suppress-write-log = false
write-tracing = false
pprof-enabled = true
debug-pprof-enabled = false
https-enabled = false
https-certificate = "/etc/ssl/influxdb.pem"
https-private-key = ""
max-row-limit = 0
max-connection-limit = 0
shared-secret = ""
realm = "InfluxDB"
unix-socket-enabled = false
unix-socket-permissions = "0777"
bind-socket = "/var/run/influxdb.sock"
max-body-size = 25000000
access-log-path = ""
max-concurrent-write-limit = 0
max-enqueued-write-limit = 0
enqueued-write-timeout = "30s"
... the rest of the configuration file is default
.d mycontroller.yaml
web:
web_directory: web_console
enable_profiling: false
read_timeout: 60s
http:
enabled: true
bind_address: "192.168.1.102"
port: 8080
https_ssl:
enabled: false
bind_address: "0.0.0.0"
port: 8443
cert_dir: mc_home/certs/https_ssl
https_acme:
enabled: false
bind_address: "0.0.0.0"
port: 9443
cache_dir: mc_home/certs/https_acme
acme_directory:
email: hello@example.com
domains: ["mycontroller.example.com"]
...
database:
storage:
type: memory
dump_enabled: true
dump_interval: 10m
dump_dir: "memory_db"
dump_format: ["yaml","json"]
load_format: "yaml"
metric:
disabled: false
type: influxdb
uri: http://192.168.1.102:8086
token:
username:
password:
organization_name:
bucket_name: mycontroller
batch_size:
flush_interval: 5s
query_client_version:
.e start the service and start mycontroller
sudo systemctl restart influxdb.service
sudo ./mcctl.sh start
start command issued to the MyController server
f. mycontroller log
tail logs/mycontroller.log
2025-06-20T12:15:34.275+0200 info helper/helper.go:29 welcome to MyController server :)
2025-06-20T12:15:34.276+0200 info helper/helper.go:33 version information {"versionInfo": "{version:2.0.0, buildDate:2023-06-18T17:25:41+00:00, gitCommit:1e3e51e914ec115a2157630e081e95b29e8002fb, goVersion:go1.20.5, compiler:gc, platform:linux, arch:amd64, hostId:}", "loggerConfig": {"Mode":"record_all","Encoding":"console","Level":{"Core":"info","WebHandler":"info","Storage":"info","Metric":"warn"},"EnableStacktrace":false}}
2025-06-20T12:15:34.276+0200 error helper/server.go:112 error on getting metric database {"error": "404 Not Found: 404 page not found\n", "errorVerbose": "404 Not Found: 404 page not found\n\ngithub.com/influxdata/influxdb-client-go/v2/domain.decodeError\n\t/home/runner/go/pkg/mod/github.com/influxdata/influxdb-client-go/v2@v2.12.2/domain/client.gen.go:106\ngithub.com/influxdata/influxdb-client-go/v2/domain.(*Client).GetHealth\n\t/home/runner/go/pkg/mod/github.com/influxdata/influxdb-client-go/v2@v2.12.2/domain/client.gen.go:4509\ngithub.com/influxdata/influxdb-client-go/v2.(*clientImpl).Health\n\t/home/runner/go/pkg/mod/github.com/influxdata/influxdb-client-go/v2@v2.12.2/client.go:208\ngithub.com/mycontroller-org/server/v2/plugin/database/metric/influxdb_v2.NewClient\n\t/home/runner/work/server/server/plugin/database/metric/influxdb_v2/client.go:157\ngithub.com/mycontroller-org/server/v2/plugin/database/metric.Create\n\t/home/runner/work/server/server/plugin/database/metric/plugin.go:28\ngithub.com/mycontroller-org/server/v2/pkg/database.GetMetric\n\t/home/runner/work/server/server/pkg/database/metric.go:28\ngithub.com/mycontroller-org/server/v2/cmd/helper.loadMetricDatabase\n\t/home/runner/work/server/server/cmd/helper/helper.go:112\ngithub.com/mycontroller-org/server/v2/cmd/helper.(*Server).Start\n\t/home/runner/work/server/server/cmd/helper/server.go:110\ngithub.com/mycontroller-org/server/v2/cmd/component/server/cmd.glob..func2\n\t/home/runner/work/server/server/cmd/component/server/cmd/root.go:36\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:920\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968\ngithub.com/mycontroller-org/server/v2/cmd/component/server/cmd.Execute\n\t/home/runner/work/server/server/cmd/component/server/cmd/root.go:44\nmain.main\n\t/home/runner/work/server/server/cmd/component/server/main.go:8\nruntime.main\n\t/opt/hostedtoolcache/go/1.20.5/x64/src/runtime/proc.go:250\nruntime.goexit\n\t/opt/hostedtoolcache/go/1.20.5/x64/src/runtime/asm_amd64.s:1598"}
2025-06-20T12:15:34.276+0200 fatal cmd/root.go:38 error on starting server {"error": "404 Not Found: 404 page not found\n", "errorVerbose": "404 Not Found: 404 page not found\n\ngithub.com/influxdata/influxdb-client-go/v2/domain.decodeError\n\t/home/runner/go/pkg/mod/github.com/influxdata/influxdb-client-go/v2@v2.12.2/domain/client.gen.go:106\ngithub.com/influxdata/influxdb-client-go/v2/domain.(*Client).GetHealth\n\t/home/runner/go/pkg/mod/github.com/influxdata/influxdb-client-go/v2@v2.12.2/domain/client.gen.go:4509\ngithub.com/influxdata/influxdb-client-go/v2.(*clientImpl).Health\n\t/home/runner/go/pkg/mod/github.com/influxdata/influxdb-client-go/v2@v2.12.2/client.go:208\ngithub.com/mycontroller-org/server/v2/plugin/database/metric/influxdb_v2.NewClient\n\t/home/runner/work/server/server/plugin/database/metric/influxdb_v2/client.go:157\ngithub.com/mycontroller-org/server/v2/plugin/database/metric.Create\n\t/home/runner/work/server/server/plugin/database/metric/plugin.go:28\ngithub.com/mycontroller-org/server/v2/pkg/database.GetMetric\n\t/home/runner/work/server/server/pkg/database/metric.go:28\ngithub.com/mycontroller-org/server/v2/cmd/helper.loadMetricDatabase\n\t/home/runner/work/server/server/cmd/helper/helper.go:112\ngithub.com/mycontroller-org/server/v2/cmd/helper.(*Server).Start\n\t/home/runner/work/server/server/cmd/helper/server.go:110\ngithub.com/mycontroller-org/server/v2/cmd/component/server/cmd.glob..func2\n\t/home/runner/work/server/server/cmd/component/server/cmd/root.go:36\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:920\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968\ngithub.com/mycontroller-org/server/v2/cmd/component/server/cmd.Execute\n\t/home/runner/work/server/server/cmd/component/server/cmd/root.go:44\nmain.main\n\t/home/runner/work/server/server/cmd/component/server/main.go:8\nruntime.main\n\t/opt/hostedtoolcache/go/1.20.5/x64/src/runtime/proc.go:250\nruntime.goexit\n\t/opt/hostedtoolcache/go/1.20.5/x64/src/runtime/asm_amd64.s:1598"}
.g influxdb log
čen 20 12:15:30 fs (influxd)[728254]: influxdb.service: Referenced but unset environment variable evaluates to an empty string: INFLUXD_OPTS
čen 20 12:15:30 fs influxd[728254]: ts=2025-06-20T10:15:30.276932Z lvl=info msg="InfluxDB starting" log_id=0xFDDvu0000 version=1.6.7~rc0 branch=unknown commit=unknown
čen 20 12:15:30 fs influxd[728254]: ts=2025-06-20T10:15:30.276941Z lvl=info msg="Go runtime" log_id=0xFDDvu0000 version=go1.21.0 maxprocs=20
čen 20 12:15:30 fs influxd[728254]: ts=2025-06-20T10:15:30.289593Z lvl=info msg="Using data dir" log_id=0xFDDvu0000 service=store path=/var/lib/influxdb/data
čen 20 12:15:30 fs influxd[728254]: ts=2025-06-20T10:15:30.289604Z lvl=info msg="Compaction settings" log_id=0xFDDvu0000 service=store max_concurrent_compactions=10 throughput_bytes_per_second=50331648 throughput_burst_bytes=50331648
čen 20 12:15:30 fs influxd[728254]: ts=2025-06-20T10:15:30.289608Z lvl=info msg="Open store (start)" log_id=0xFDDvu0000 service=store trace_id=0xFDDvxG001 op_name=tsdb_open op_event=start
čen 20 12:15:30 fs influxd[728254]: ts=2025-06-20T10:15:30.290198Z lvl=info msg="Reading file" log_id=0xFDDvu0000 engine=tsm1 service=cacheloader path=/var/lib/influxdb/wal/_internal/monitor/4/_00001.wal size=10488225
čen 20 12:15:30 fs influxd[728254]: ts=2025-06-20T10:15:30.290624Z lvl=info msg="Opened file" log_id=0xFDDvu0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/_internal/monitor/2/000000001-000000001.tsm id=0 duration=0.394ms
čen 20 12:15:30 fs influxd[728254]: ts=2025-06-20T10:15:30.291335Z lvl=info msg="Opened file" log_id=0xFDDvu0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/_internal/monitor/1/000000001-000000001.tsm id=0 duration=0.411ms
čen 20 12:15:30 fs influxd[728254]: ts=2025-06-20T10:15:30.291434Z lvl=info msg="Opened file" log_id=0xFDDvu0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/_internal/monitor/3/000000002-000000002.tsm id=0 duration=0.074ms
čen 20 12:15:30 fs influxd[728254]: ts=2025-06-20T10:15:30.539335Z lvl=info msg="Reading file" log_id=0xFDDvu0000 engine=tsm1 service=cacheloader path=/var/lib/influxdb/wal/_internal/monitor/4/_00002.wal size=7232837
čen 20 12:15:30 fs influxd[728254]: ts=2025-06-20T10:15:30.712631Z lvl=info msg="Opened shard" log_id=0xFDDvu0000 service=store trace_id=0xFDDvxG001 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/_internal/monitor/2 duration=422.728ms
čen 20 12:15:30 fs influxd[728254]: ts=2025-06-20T10:15:30.712670Z lvl=info msg="Opened shard" log_id=0xFDDvu0000 service=store trace_id=0xFDDvxG001 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/_internal/monitor/1 duration=422.721ms
čen 20 12:15:30 fs influxd[728254]: ts=2025-06-20T10:15:30.800281Z lvl=info msg="Opened shard" log_id=0xFDDvu0000 service=store trace_id=0xFDDvxG001 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/_internal/monitor/3 duration=509.992ms
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088229Z lvl=info msg="Opened shard" log_id=0xFDDvu0000 service=store trace_id=0xFDDvxG001 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/_internal/monitor/4 duration=798.332ms
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088372Z lvl=info msg="Open store (end)" log_id=0xFDDvu0000 service=store trace_id=0xFDDvxG001 op_name=tsdb_open op_event=end op_elapsed=798.763ms
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088393Z lvl=info msg="Opened service" log_id=0xFDDvu0000 service=subscriber
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088397Z lvl=info msg="Starting monitor service" log_id=0xFDDvu0000 service=monitor
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088400Z lvl=info msg="Registered diagnostics client" log_id=0xFDDvu0000 service=monitor name=build
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088403Z lvl=info msg="Registered diagnostics client" log_id=0xFDDvu0000 service=monitor name=runtime
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088408Z lvl=info msg="Registered diagnostics client" log_id=0xFDDvu0000 service=monitor name=network
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088411Z lvl=info msg="Registered diagnostics client" log_id=0xFDDvu0000 service=monitor name=system
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088430Z lvl=info msg="Starting precreation service" log_id=0xFDDvu0000 service=shard-precreation check_interval=10m advance_period=30m
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088435Z lvl=info msg="Starting snapshot service" log_id=0xFDDvu0000 service=snapshot
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088440Z lvl=info msg="Starting continuous query service" log_id=0xFDDvu0000 service=continuous_querier
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088448Z lvl=info msg="Starting HTTP service" log_id=0xFDDvu0000 service=httpd authentication=false
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088451Z lvl=info msg="opened HTTP access log" log_id=0xFDDvu0000 service=httpd path=stderr
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088452Z lvl=info msg="Storing statistics" log_id=0xFDDvu0000 service=monitor db_instance=_internal db_rp=monitor interval=10s
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088488Z lvl=info msg="Listening on HTTP" log_id=0xFDDvu0000 service=httpd addr=192.168.1.102:8086 https=false
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088496Z lvl=info msg="Starting retention policy enforcement service" log_id=0xFDDvu0000 service=retention check_interval=30m
čen 20 12:15:31 fs influxd[728254]: ts=2025-06-20T10:15:31.088530Z lvl=info msg="Listening for signals" log_id=0xFDDvu0000
čen 20 12:15:34 fs influxd[728254]: [httpd] 192.168.1.102 - - [20/Jun/2025:12:15:34 +0200] "GET /ping HTTP/1.1" 204 0 "-" "influxdb-client-go/2.12.2 (linux; amd64) MyController.org" 80c1dc67-4dbf-11f0-8001-000000000000 14