Can't view logs

Running fly logs doesn’t show anything. Can’t even view logs from the web dashboard. There’s an error in the console.

They weird part is that error in the browser should not have anything to do with not being able to get logs from fly logs

What errors if any does it dow when you do ur fly logs command ?

Yes right. But the logs didn’t show any error messages. It just stays there.

can u paste the exact command ur running? … just change the name of the apps if you dont want to show

It’s just fly logs inside a directory that has a fly.toml.

what happens if you do something like:

LOG_LEVEL=debug fly logs -a specific-app-name

?

The issue still persists. Here’s the output.

DEBUG Loaded flyctl config from/home/snehanshu/.fly/config.yml
DEBUG determined hostname: "snehanshu-Aspire-A515-54G"
DEBUG determined working directory: "/home/snehanshu/Desktop/griden-power/demo-server/ocpp"
DEBUG determined user home directory: "/home/snehanshu"
DEBUG determined config directory: "/home/snehanshu/.fly"
DEBUG ensured config directory exists.
DEBUG ensured config directory perms.
DEBUG cache loaded.
DEBUG config initialized.
DEBUG initialized task manager.
DEBUG started querying for new release
DEBUG client initialized.
DEBUG app config loaded from /home/snehanshu/Desktop/griden-power/demo-server/ocpp/fly.toml
DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!) { app(name: $appName) { id name hostname deployed status version appUrl platformVersion currentRelease { evaluationId status inProgress version } config { definition } organization { id slug } services { description protocol internalPort ports { port handlers } } ipAddresses { nodes { id address type createdAt } } imageDetails { repository version } machines{ nodes { id name config state region createdAt app { name } ips { nodes { family kind ip maskSize } } host { id } } } postgresAppRole: role { name } } }","variables":{"appName":"jitesh-ocpp"}}
}
DEBUG querying for release resulted to v0.0.325
DEBUG <-- 200 https://api.fly.io/graphql (880.33ms) {"data":{"app":{"id":"jitesh-ocpp","name":"jitesh-ocpp","hostname":"jitesh-ocpp.fly.dev","deployed":true,"version":0,"appUrl":"https://213.188.214.168","platformVersion":"nomad","currentRelease":{"evaluationId":null,"status":"succeeded","inProgress":false,"version":0},"config":{"definition":{"kill_timeout":5,"kill_signal":"SIGINT","processes":[],"experimental":{"allowed_public_ports":[],"entrypoint":[],"cmd":[],"exec":[],"auto_rollback":true},"services":[{"processes":["app"],"protocol":"tcp","internal_port":9000,"concurrency":{"soft_limit":20,"hard_limit":25,"type":"connections"},"ports":[{"port":80,"handlers":["http"],"force_https":true},{"port":443,"handlers":["tls","http"]}],"tcp_checks":[{"interval":"15s","timeout":"2s","grace_period":"1s","restart_limit":0}],"http_checks":[],"script_checks":[]}],"env":{"CSMS_ID":"cs1","MYSQL_DB":"ocpp","MYSQL_HOST":"jitesh-mysql.internal","MYSQL_PASS":"xxxx","MYSQL_PORT":"3306","MYSQL_USER":"root","TOTP_SECERET":"xxxx"}}},"organization":{"id":"MA8702JP9v8awFz5z67ep3b7eRTLZP","slug":"personal"},"services":[{"description":"TCP 80/443 ⇢ 9000","protocol":"TCP","internalPort":9000,"ports":[{"port":80,"handlers":["HTTP"]},{"port":443,"handlers":["TLS","HTTP"]}]}],"imageDetails":{"repository":"jitesh-ocpp","version":null},"postgresAppRole":null,"ipAddresses":{"nodes":[{"id":"zQV9q4nqAb5G7U610pRO3x6NO3TN7aP3a","address":"213.188.214.168","type":"v4","createdAt":"2022-05-03T07:30:20Z"},{"id":"P70jK5qKA1m23Hm1XQBynDmkynTwk1Y6Y","address":"2a09:8280:1::6:3746","type":"v6","createdAt":"2022-05-03T07:30:21Z"}]},"machines":{"nodes":[]},"status":"running"}}}
DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!) { app(name: $appName) { id name hostname deployed status version appUrl platformVersion currentRelease { evaluationId status inProgress version } config { definition } organization { id slug } services { description protocol internalPort ports { port handlers } } ipAddresses { nodes { id address type createdAt } } imageDetails { repository version } machines{ nodes { id name config state region createdAt app { name } ips { nodes { family kind ip maskSize } } host { id } } } postgresAppRole: role { name } } }","variables":{"appName":"jitesh-ocpp"}}
}
DEBUG <-- 200 https://api.fly.io/graphql (573.18ms) {"data":{"app":{"id":"jitesh-ocpp","name":"jitesh-ocpp","hostname":"jitesh-ocpp.fly.dev","deployed":true,"version":0,"appUrl":"https://213.188.214.168","platformVersion":"nomad","currentRelease":{"evaluationId":null,"status":"succeeded","inProgress":false,"version":0},"config":{"definition":{"kill_timeout":5,"kill_signal":"SIGINT","processes":[],"experimental":{"allowed_public_ports":[],"entrypoint":[],"cmd":[],"exec":[],"auto_rollback":true},"services":[{"processes":["app"],"protocol":"tcp","internal_port":9000,"concurrency":{"soft_limit":20,"hard_limit":25,"type":"connections"},"ports":[{"port":80,"handlers":["http"],"force_https":true},{"port":443,"handlers":["tls","http"]}],"tcp_checks":[{"interval":"15s","timeout":"2s","grace_period":"1s","restart_limit":0}],"http_checks":[],"script_checks":[]}],"env":{"CSMS_ID":"cs1","MYSQL_DB":"ocpp","MYSQL_HOST":"jitesh-mysql.internal","MYSQL_PASS":"xxxx","MYSQL_PORT":"3306","MYSQL_USER":"root","TOTP_SECERET":"xxxx"}}},"organization":{"id":"MA8702JP9v8awFz5z67ep3b7eRTLZP","slug":"personal"},"services":[{"description":"TCP 80/443 ⇢ 9000","protocol":"TCP","internalPort":9000,"ports":[{"port":80,"handlers":["HTTP"]},{"port":443,"handlers":["TLS","HTTP"]}]}],"imageDetails":{"repository":"jitesh-ocpp","version":null},"postgresAppRole":null,"ipAddresses":{"nodes":[{"id":"zQV9q4nqAb5G7U610pRO3x6NO3TN7aP3a","address":"213.188.214.168","type":"v4","createdAt":"2022-05-03T07:30:20Z"},{"id":"P70jK5qKA1m23Hm1XQBynDmkynTwk1Y6Y","address":"2a09:8280:1::6:3746","type":"v6","createdAt":"2022-05-03T07:30:21Z"}]},"machines":{"nodes":[]},"status":"running"}}}
DEBUG --> POST https://api.fly.io/graphql {{"query":"mutation($input: ValidateWireGuardPeersInput!) { validateWireGuardPeers(input: $input) { invalidPeerIps } }","variables":{"input":{"peerIps":["fdaa:0:5f40:a7b:1bfe:0:a:2"]}}}
}
DEBUG <-- 200 https://api.fly.io/graphql (388.5ms) {"data":{"validateWireGuardPeers":{"invalidPeerIps":[]}}}

I have masked sensitive data.