Skip to content

Die KW 09/2022 im Link-Rückblick

Error: "core.db not found" - Reason: archlinuxarm had stopped support for rasperry pi model 1

I totally missed that this was happening. While I had a big to do list in the real life, the archlinuxarm-team decided to drop the support for armv6 models like the Raspberry Pi Model 1.

I just started a pi a few days ago and while I wanted to run a pacman -Syyu, I just got strange error messages like core.db not found.

The error is something like error: failed retrieving file 'core.db' from mirror.archlinuxarm.org : Resolving timed out after 10000 milliseconds.
If you run pacman -Syyu --debug, you get an output like mentioned in this thread.

The reason for all of this is mentioned in this thread. On the sixth of Januar 2022, cablespaghetti wrote This is in response to the announcement that ARMv6 support is being dropped next month.

There is an archive mirror available but this tends to have outdated packages from day one.

What can you do from now?

I didn't made my mind up yet. Personally, the one device that is most important will be used as scan- and printserver until I will have some time to migrate to something else.

Die KW 08/2022 im Link-Rückblick

OpenWRT cronjob to check connection status and restart OpenVPN if needed

I am currently using my Raspberry PI travel router in a really unstable internet connection environment.

The connection is that unstable that my vpn is loosing contact to the server multiple times per day.

To fix that, I've just create a dead simple cronjob that checks the connection by running a ping. If the ping fails, the openvpn service is restarted.

You can find the always up to date source here. My initial working cronjob is paste below.

mkdir /root/cronjob

cat > /root/cronjob/test_connection_and_restart_openvpn.sh <<DELIM
#!/bin/sh
####
# Restarts openvpn service if non of the "well known" ip address are pingable
# You have to enable a vpn client config so the restart of the service makes any sense.
####
# @see
#   https://github.com/stevleibelt/General_Howtos/blob/master/operation_system/linux/openwrt/howto/openvpn.md
#   https://openwrt.org/docs/guide-user/base-system/cron
#   https://forum.openwrt.org/t/lede-service-openvpn-start-and-stop-with-uci/20449
#   https://openwrt.org/docs/guide-user/base-system/log.essentials
# @since 2022-02-22
# @author stev leibelt <artodeto@bazzline.net>
####

function _main ()
{
    local RESTART_OPENVPN=0

    logger -p debug -t test_connection_restart_openvpn "   starting pinging google"
    #ping google, feel free to ping something else
    ping -c 1 8.8.8.8 &> /dev/null

    if [ \$? -ne 0 ];
    then
        logger -p debug -t test_connection_restart_openvpn "   starting pinging cloudflare"
        #ping cloudflare, feel free to ping something else
        ping -c 1 1.1.1.1 &> /dev/null

        if [ \$? -ne 0 ];
        then
            logger -p info -t test_connection_restart_openvpn "   connection test failed"
            RESTART_OPENVPN=1
        fi
    fi

    if [ \$RESTART_OPENVPN -eq 1 ];
    then
        logger -p notice -t test_connection_restart_openvpn "   starting openvpn restart"

        /etc/init.d/openvpn stop
        /etc/init.d/openvpn start

        logger -p notice -t test_connection_restart_openvpn "   finished openvpn restart"
    else
        logger -p debug -t test_connection_restart_openvpn "   connection is still ok"
    fi
}

_main

DELIM

chmod +x /root/cronjob/test_connection_and_restart_openvpn.sh

cat >> /etc/crontabs/root <<DELIM
*/5 * * * * /root/cronjob/test_connection_and_restart_openvpn.sh

DELIM

/etc/init.d/cron restart

crontab -l

Enjoy it.