Jump to content

[Support] FoxxMD - fr24feed-piaware


Recommended Posts

On 7/18/2023 at 1:13 PM, MrAndyBurns said:

I have had a reoccurring issue where the container will just stop.

logs says

"send - failed to send 12 + 88 bytes in mode 0, code -1: Broken pipe"

" *** buffer overflow detected ***: terminated\n","stream":"stdout","time":"2023-07-17T12:16:03.9714032Z"

Got the same thing happen to my container like 1 or 2 times per month. Was to lazy (until now, see below) to get a workaround for that could be a shell script that once per day scrambles the docker log of the container and if the word terminated is found it restarts the container.

Until now (if thats enough for your problem solving): I've setup an offline notification (within flightradar24.com click on "My datasharing" and "Show statistics" where you can find a little switch to turn on "OFFLINE EMAIL". At least this way I get noticed that my fr24feed needs a restart.

Here is my shell script:
 

#!/bin/bash

# Define the name of your Docker container
CONTAINER_NAME="FR24FEED"

# Run the 'docker logs' command to fetch the container's logs
LOGS=$(docker logs "$CONTAINER_NAME" 2>&1)

# Define the regex pattern to search for
SEARCH_PATTERN="terminated"

# Use grep to search for the pattern in the logs
if [[ $LOGS =~ $SEARCH_PATTERN ]]; then
    echo "The word 'terminated' was found in the logs."

    # Restart the Docker container
    echo "Restarting the container..."
    docker restart "$CONTAINER_NAME"

    # You can also add additional actions or notifications here if needed
else
    echo "The word 'terminated' was not found in the logs."
fi


Don't forget to make it executable: chmod +x yourscript.sh
That could be run nightly with cronjob (crontab -e) or more modern with systemd timers.

 

Edited by HackHome
Link to comment
  • 8 months later...

Well I switched to Proxmox in the meantime. Using another docker container that you UnRaid Guys could use of course too. Here is my docker-compose.yml
I am using an DVB-T stick connected to usb:

services:
    fr24feed:
        container_name: fr24feed
        restart: always
        devices:
            - /dev/bus/usb:/dev/bus/usb
        ports:
            - 8754:8754
        image: liggy1/fr24feed
        command: --fr24key=abcdefgh1234566



It can be that simple. Works like a charm
 

Link to comment
4 minutes ago, CyberMew said:

New to this and would like to use it to contribute FR24. Will this work or is there a newer one that would be compatible this docker image? I prefer plug and play type. I see that this was manufactured in 2014 and recommended earlier in this post in 2019..: 

https://www.nooelec.com/store/sdr/sdr-receivers/nesdr-mini-2.html

i have a rtl sdr v3, it works right away, i needed to have the official drivers so to enable bias tee, i did it by following a guide to clone a docker and create your custom one. so far it is perfect.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...