[10:33:05] thanks arturo [10:33:40] sDrewth: you are welcome :-) [10:35:12] has been all good since, and just my home connection that has had its flaky moments o_O [10:38:51] * dcaro gets a bunch of those lately too xd [15:02:19] Hey folks, I wondering how to retrieve webservice logs for a flask app. Here's the code: https://github.com/QEDK/goodbot/blob/master/app.py where I use the app logger to log certain messages but they don't seem to appear in uwsgi.log Any idea how to retrieve those logs? [15:06:43] qedk: did you try kubectl logs? [15:07:43] trying to get the logs for a webservice gives me "Error from server (BadRequest): previous terminated container "webservice" in pod "goodbot-57f446ddb5-jjmx8" not found" is this intended? [15:07:55] works with other pods (deployments) tho [18:44:32] @bd808 if you're around :D [18:55:11] qedk: If the pod is gone, it will say that [18:55:18] Like if it has failed and been cleaned up [18:55:46] the webservice is still up - https://goodbot.toolforge.org [18:56:02] Yes, but is that pod? [18:56:04] yep [18:57:35] I got: [18:57:35] and it shows up in the pod list when i do kubectl get pods as "running" (still) [18:57:39] https://www.irccloud.com/pastebin/oayQHPgI/ [18:57:57] kubectl logs is working [18:58:15] The kubectl logs are only from stdout [18:58:22] super weird [18:58:23] So, the logs you want are likely on the filesystem [18:58:40] i just logged in and can see it now [18:58:55] unfortunately it's not logged in uwsgi :( [18:58:59] let me grep it anyway and see [18:59:06] `/data/project/goodbot/uwsgi.log` [18:59:39] So far, we have it set up to log to the filesystem still vs. to stdout/stderr (which is what kubectl would see). [18:59:49] qedk: ^^ [19:01:04] The logs from kubectl are not likely to be useful to you because of that [19:02:11] right... it seems that the last useful logs are from 2020 [19:02:19] any suggestion on how to do this? i'd appreciate some. [19:04:36] but it was logging before? probably when flask was still set to development mode, but cannot really do that in production :/ [19:16:50] Ah, then you might need to set up some additional logging config for flask [19:17:33] Don't have the docs in front of me right now, but I'm sure there's stuff floating around? If you log to stdout it *should* hit kubectl logs anyway. [19:29:41] rip let me try that [19:30:00] thanks a lot for the help @bstorm [19:30:14] 👍🏻 good luck