Anthias only runs for 48-72 hours

Hello,
I have installed Anthias on 4 Raspberry 4.
Both directly and via the detour to start Raspberry OS first. After 48-72 hours the screens only show a black screen. Even a restart does nothing. What could be the reason for this or how can I determine the cause? Two websites are opened alternately every 10 seconds, nothing more is stored.

Best regards
Dane

Hi @dane ,

Welcome to the Anthias Community forum :wave:.

A few things you can check is

  • Check if Anthia’s dashboard can be accessed from the IP address - you can get the IP address from the Router/Modem and enter the IP into the browser URL.
  • Use a good quality/Branded SD card - Cheap SD card make the OS to difficult to boot with poor read and write speed.
  • Try to disable the network manager option while installing the Anthias if you are using with WiFi

When you are installing the Anthias wit the command, you might see the message in the CLI.

Do you want Anthias to manage your network? This is recommended for most users because this adds features to manage your network. (Y/n)

If you are using only WiFi, then Press N as the network manager will update on the go and it will interrupt the connection if you are connected via SSH. If you are using ethernet then Press Y .

So choose the N if you are using only WiFi and see.

Hi @salmanfarisvp,
thanks for your help, I have bought new Philips SD cards last week. Now I can at least always reach the interface with the IP, but after 4 days the system only shows 1 of 2 active slides and does not react to changes made to the slides even after restarting.

@dane, are you still able to access the web interface and check to see if the the asset that’s not being shown is enabled but not in the active assets section? You can provide screenshots for context. Thanks.

@nicomiguelino I had to restart the device because I no longer had access after your message. After that, everything worked again and I was able to install the offered update via SSH.

Here is a screenshot, the image was frozen and the animated GIF under the Google presentation link no longer moved:

However, I have noticed that the free RAM is getting smaller and smaller. At the beginning there was still over 1 GB free, now it is only 700 MB.

Is it possible to restart the device automatically every night, I think the screen would then no longer freeze.

Before Update:

After Update and 6,5 hours:

admin@raspberrypi-treppe-1l:~ $ free -h
total used free shared buff/cache available
Mem: 1.7Gi 1.0Gi 80Mi 109Mi 788Mi 693Mi
Swap: 0B 0B 0B
admin@raspberrypi-treppe-1l:~ $ ps aux --sort=-%mem | head
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
admin 1624 5.1 23.3 556184 414020 ? Sl 09:29 20:25 python3 viewer.py
admin 2095 66.7 11.5 435204 204192 pts/0 Sl+ 09:31 264:52 /usr/local/qt5pi/libexec/QtWebEngineProcess --type=renderer --disable-speech-api --enable-threaded-compositing --enable-viewport --disable-composited-antialiasing --enable-features=AllowContentInitiatedDataUrlNavigations,NetworkServiceInProcess,OverlayScrollbar,TracingServiceInProcess --disable-features=BackgroundFetch,ConsolidatedMovementXY,DnsOverHttpsUpgrade,FontSrcLocalMatching,InstalledApp,MojoVideoCapture,PictureInPicture,SmsReceiver,UseSkiaRenderer,WebPayments,WebUSB --disable-gpu-compositing --lang=en --webengine-schemes=qrc:sLV --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=4 --shared-files
admin 1763 48.3 6.5 435548 115988 pts/0 Ssl+ 09:30 192:31 /usr/local/bin/ScreenlyWebview
root 689 1.8 4.0 980044 70904 ? Ssl 09:29 7:18 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
root 1580 0.4 2.8 69488 50820 ? Sl 09:29 1:39 /usr/bin/python3 /usr/local/bin/celery -A celery_tasks.celery worker -B -n worker@anthias --loglevel=info --schedule /tmp/celerybeat-schedule
admin 2084 0.0 2.8 244892 50820 pts/0 Sl+ 09:31 0:00 /usr/local/qt5pi/libexec/QtWebEngineProcess --type=renderer --disable-speech-api --enable-threaded-compositing --enable-viewport --disable-composited-antialiasing --enable-features=AllowContentInitiatedDataUrlNavigations,NetworkServiceInProcess,OverlayScrollbar,TracingServiceInProcess --disable-features=BackgroundFetch,ConsolidatedMovementXY,DnsOverHttpsUpgrade,FontSrcLocalMatching,InstalledApp,MojoVideoCapture,PictureInPicture,SmsReceiver,UseSkiaRenderer,WebPayments,WebUSB --disable-gpu-compositing --lang=en --webengine-schemes=qrc:sLV --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=3 --shared-files
root 1623 0.0 2.6 65304 46764 ? Sl 09:29 0:13 python3 server.py
root 1752 0.0 2.6 70828 46428 ? S 09:30 0:00 /usr/bin/python3 /usr/local/bin/celery -A celery_tasks.celery worker -B -n worker@anthias --loglevel=info --schedule /tmp/celerybeat-schedule
root 1748 0.0 2.6 81064 46420 ? S 09:30 0:02 /usr/bin/python3 /usr/local/bin/celery -A celery_tasks.celery worker -B -n worker@anthias --loglevel=info --schedule /tmp/celerybeat-schedule

@dane, out of the box, Anthias doesn’t support automatic restarts, but it’s possible to do it in various ways when Anthias runs on Raspberry Pi OS Lite:

  • You can write a cron job that reboots the system periodically.
  • Alternatively, you can write a cron job that restarts the anthias-viewer container, if restarting only the container frees up memory. To restart the container, you can do:
cd ~/screenly
docker compose restart anthias-viewer

or

docker restart screenly-anthias-viewer-1

@nicomiguelino Thanks for the help, but what is the reason that the memory is always full? Now there are only 60 MB free and the device reacts very slowly, the gif sometimes hangs. You can find the link here: Officecenter Steinriedendamm 1L - Google Slides

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
admin 1624 4.8 64.4 1306260 1141580 ? Sl Aug05 67:56 python3 viewer.py
admin 2095 61.5 4.9 376312 87172 pts/0 Dl+ Aug05 857:42 /usr/local/qt5pi/libexec/QtWebEngineProcess --type=renderer --disable-speech-api --enable-threaded-compositing --enable-viewport --disable-composited-antialiasing --enable-features=AllowContentInitiatedDataUrlNavigations,NetworkServiceInProcess,OverlayScrollbar,TracingServiceInProcess --disable-features=BackgroundFetch,ConsolidatedMovementXY,DnsOverHttpsUpgrade,FontSrcLocalMatching,InstalledApp,MojoVideoCapture,PictureInPicture,SmsReceiver,UseSkiaRenderer,WebPayments,WebUSB --disable-gpu-compositing --lang=en --webengine-schemes=qrc:sLV --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=4 --shared-files
admin 1763 44.4 3.9 384428 69712 pts/0 Dsl+ Aug05 620:07 /usr/local/bin/ScreenlyWebview
root 1580 0.4 2.1 69488 38916 ? Sl Aug05 6:13 /usr/bin/python3 /usr/local/bin/celery -A celery_tasks.celery worker -B -n worker@anthias --loglevel=info --schedule /tmp/celerybeat-schedule
root 1751 0.0 2.1 70824 38484 ? S Aug05 0:00 /usr/bin/python3 /usr/local/bin/celery -A celery_tasks.celery worker -B -n worker@anthias --loglevel=info --schedule /tmp/celerybeat-schedule
root 1752 0.0 2.1 70828 38364 ? S Aug05 0:00 /usr/bin/python3 /usr/local/bin/celery -A celery_tasks.celery worker -B -n worker@anthias --loglevel=info --schedule /tmp/celerybeat-schedule
root 1748 0.0 2.1 81064 38356 ? S Aug05 0:11 /usr/bin/python3 /usr/local/bin/celery -A celery_tasks.celery worker -B -n worker@anthias --loglevel=info --schedule /tmp/celerybeat-schedule
root 1753 0.0 2.1 70832 38236 ? S Aug05 0:00 /usr/bin/python3 /usr/local/bin/celery -A celery_tasks.celery worker -B -n worker@anthias --loglevel=info --schedule /tmp/celerybeat-schedule
root 1747 0.0 2.0 70312 36972 ? S Aug05 0:10 /usr/bin/python3 /usr/local/bin/celery -A celery_tasks.celery worker -B -n worker@anthias --loglevel=info --schedule /tmp/celerybeat-schedule

Thank you for sharing the link to your slides. I’ll add that asset in my Pi 3 and see what I can do.
From what you’ve provided earlier, the viewer services consumes the most memory. It looks like viewer needs fixing and/or optimization.

I have also tested it again on a device only with images saved on the SD card. It is generally due to the use of GIF images. These cause the working memory to overflow.