v2 icon indicating copy to clipboard operation
v2 copied to clipboard

Docker - server stops responding when accessing UI or API after a while, but shows no errors in the logs

Open ad-on-is opened this issue 1 year ago • 4 comments

I'm experiencing a strange issue, where the server would stop working, and I'd have to restart it manually to get it working again.

It's sporadic, and I cannot pinpoint the issue. The only lines I see in the log files are a bunch of those

...
level=INFO msg="[API] User authenticated successfully with the Basic HTTP Authentication" authentication_successful=true client_ip=xxxx user_agent="Dart/3.4 (dart:io)" username=xxxx
...

I've switched to log level debug to see what other messages appear when it crashes.

ad-on-is avatar Jun 01 '24 13:06 ad-on-is

It's gonna be tough to figure out what's going on with so little information. Enable Miniflux debug logs, check your Docker logs, etc... are you sure the problem is coming from Miniflux?

fguillot avatar Jun 01 '24 18:06 fguillot

Yeah, I know its tough and no info at all... I thought maybe someone else is experiencing the same issue.

I have miniflux and postgres in the same compose file, and restarting miniflux makes it work again for a day or two. So, I guess it's coming from miniflux.

I'm gonna wait for it to crash again, and report back with more verbose debug logs.

ad-on-is avatar Jun 01 '24 18:06 ad-on-is

i faced something similar, but not quite the same ages ago. i narrowed it down to needing Postgress to start before. so I just made sure it did, in the systemd script for Miniflux.

[Unit]
Description=Miniflux Service
Requires=postgresql.service
After=network-online.target postgresql.service
...

it may well not be the same problem. i just put this in here , in case it helps

jasonbraganza avatar Jun 03 '24 04:06 jasonbraganza

@jasonbraganza Thx for the input, but I'm running both services in docker containers, and they are both up and running. It's just occasionally, that miniflux keeps loading when trying to reach the UI or API.

ad-on-is avatar Jun 05 '24 09:06 ad-on-is

If you could exec miniflux container and requesting endpoint within to see if it worked or no, you could make docker healtcheck which restarts container if check exits with an error..

pentago avatar Aug 27 '24 17:08 pentago

Since it never happened again, closing it.

ad-on-is avatar Aug 27 '24 18:08 ad-on-is