New lines in VM status report not logged properly
Please only report specific issues with flyctl behavior. Anything like a support request for your application should go to https://community.fly.io. More people watch that space and can help you faster!
Describe the bug Briefly, describe what broke and provide the following details:
- Operating system: Pop_OS! 20.04 (Ubuntu 20.04 LTS)
fly versionflyctl v0.0.306 linux/amd64 Commit: b5101f2 BuildDate: 2022-03-15T18:17:35Z
Paste your fly.toml
N/A I simply deployed a PostgreSQL cluster using fly postgres create.
Command output:
The newlines in the fly vm status output aren't rendered. Instead, they're just shown as "\n" within "" in the terminal output:
nchiang@eevee ~/repos $ fly vm status 0f49466f -a tweetscape-pg
Instance
ID = 0f49466f
Process =
Version = 5
Region = sjc
Desired = run
Status = running (replica)
Health Checks = 3 total, 3 passing
Restarts = 0
Created = 21m32s ago
Recent Events
TIMESTAMP TYPE MESSAGE
2022-03-22T02:08:43Z Received Task received by client
2022-03-22T02:09:01Z Task Setup Building Task Directory
2022-03-22T02:09:07Z Started Task started by client
Checks
ID SERVICE STATE OUTPUT
vm app passing HTTP GET http://172.19.1.106:5500/flycheck/vm: 200 OK Output: "[✓] checkDisk: 9.03 GB (92.3%) free space on /data/ (30.75µs)\n[✓] checkLoad: load averages: 0.00 0.01 0.01 (48.26µs)\n[✓] memory: system spent 0s of the last 60s waiting on memory (21.33µs)\n[✓] cpu: system spent 42ms of the last 60s waiting on cpu (15.19µs)\n[✓] io: system spent 0s of the last 60s waiting on io (14.23µs)"
pg app passing HTTP GET http://172.19.1.106:5500/flycheck/pg: 200 OK Output: "[✓] transactions: readonly (212.04µs)\n[✓] replication: syncing from fdaa:0:51c6:a7b:ad1:0:aa09:2 (83.56µs)\n[✓] connections: 6 used, 3 reserved, 300 max (3.12ms)"
role app passing replica
Recent Logs
That command output should, with the proper newlines, look like what's pictured in the docs:
$ flyctl vm status da8141e7
Instance
ID = da8141e7
Version = 6
Region = iad
Desired = run
Status = running (leader)
Health Checks = 3 total, 2 passing, 1 critical
Restarts = 0
Created = 2021-02-10T23:21:21Z
Recent Events
TIMESTAMP TYPE MESSAGE
2021-02-10T23:21:18Z Received Task received by client
2021-02-10T23:21:48Z Task Setup Building Task Directory
2021-02-10T23:21:49Z Started Task started by client
Checks
ID SERVICE STATE OUTPUT
vm app critical [✗] system spent 31.9 of the last 10 seconds waiting for cpu
[✓] 20.53 GB (83.9%) free space on /data/
[✓] load averages: 0.29 0.35 0.50
[✓] memory: 0.9s waiting over the last 60s
[✓] io: 0.0s waiting over the last 60s
pg app passing [✓] replication: currently leader
[✓] connections: 37 used, 3 reserved, 100 max
role app passing leader
Recent Logs
2021-02-19T22:53:35Z [info] [HEALTHCHECK] [vm: failing] [✗] system spent 6.3 of the last 10 seconds waiting for memory↩︎[✗] system spent 27.5 of the last 10 seconds waiting for cpu↩︎[✓] 20.53 GB (83.9%) free space on /data/↩︎[✓] load averages: 0.29 0.35 0.58↩︎[✓] io: 0.1s waiting over the last 60s↩︎
2021-02-19T22:54:35Z [info] [HEALTHCHECK] [vm: passing] [✓] 20.66 GB (84.4%) free space on /data/↩︎[✓] load averages: 0.28 0.31 0.28↩︎[✓] memory: 0.7s waiting over the last 60s↩︎[✓] cpu: 8.6s waiting over the last 60s↩︎[✓] io: 0.1s waiting over the last 60s↩︎
Hey @nicholaschiang, is this still happening for you?
Thanks for reporting this. The old Nomad fly vm status command was removed in #3253 and current apps use fly machine status, so I’m going to close this as obsolete. Please reopen if you see the same formatting problem with the current command.