Title
#fleet
Benjamin Edwards

Benjamin Edwards

09/26/2022, 6:09 PM
Maybe try reloading the daemon? systemctl daemon-reload
w

wennan.he

09/26/2022, 6:10 PM
i did it not working, but i will retry it again.
10:05 PM
not working. root@n121-011-134:# systemctl start fleet.service root@n121-011-134:# systemctl status fleet.service fleet.service - Fleet Loaded: loaded (/etc/systemd/system/fleet.service; disabled; vendor preset: enabled) Active: active (running) since Mon 2022-09-26 22:05:07 UTC; 2s ago Main PID: 224234 (fleet) Tasks: 22 (limit: 39321) Memory: 19.9M CGroup: /system.slice/fleet.service └─224234 /usr/bin/fleet serve \ Sep 26 22:05:07 n121-011-134 fleet[224234]: ts=2022-09-26T22:05:07.63953727Z mysql="could not connect to db: dial tcp 127.0.0.1:3306: connect: connection refused, sleeping 0s" Sep 26 22:05:07 n121-011-134 fleet[224234]: ts=2022-09-26T22:05:07.639753047Z mysql="could not connect to db: dial tcp 127.0.0.1:3306: connect: connection refused, sleeping 1s" Sep 26 22:05:08 n121-011-134 fleet[224234]: ts=2022-09-26T22:05:08.640153129Z mysql="could not connect to db: dial tcp 127.0.0.1:3306: connect: connection refused, sleeping 2s"
10:07 PM
I dump the cfg of fleet and it is showing fleet config_dump mysql: protocol: tcp address: localhost:3306 username: fleet password: "" password_path: "" database: fleet tls_cert: "" tls_key: "" tls_ca: "" tls_server_name: "" tls_config: "" max_open_conns: 50 max_idle_conns: 50 conn_max_lifetime: 0 sql_mode: ""
10:07 PM
i would like to where does it come?
Benjamin Edwards

Benjamin Edwards

09/26/2022, 10:11 PM
It's the default value
w

wennan.he

09/26/2022, 10:13 PM
but hey it is loading the default val?
10:14 PM
why doesn't it load my fleet.service?
10:30 PM
i resolved the problem by removing another file with same prefix.