Dear all,
first, as being new here: Many thanks to all the work that went into this!
Now, here's my problem on Le Potato, which I have with armbian and LibreELEC: As soon as I copy anything large to any media, some services (SSH, Samba, Kodi, tvheadend - all of them network dependent) crash after writing something between 200 and 700 MB - not always at the same point. So anything like
cp /some/huge/file /home/me
crashes the services. Something like this:
cp /some/huge/file /dev/null
is no problem. I tried writing to SD as well as to USB, and I tried via network (scp from another machine into Le Potato) and locally (copying fom USB to SD, but still using ssh to run the command). Always crash. To make sure it's not an issue of LibreELEC, I now picked armbian (Ubuntu from here: https://www.armbian.com/lepotato/). And I did this instead of copy:
#!/bin/bash
LARGEFILE="/home/potato/largefile.txt"
# Clean up any old file
rm $LARGEFILE
# Create a string of 4096 bytes
MAKE4K=""
for i in `seq 1 4096`;
do
MAKE4K="${MAKE4K}A"
done
# Write the 4096 byte string a million times --> 4G file
for j in `seq 1 1000000`;
do
echo $MAKE4K >> $LARGEFILE
done
I SSH'd into the machine, started the script, and *boom* SSH down and out at about 250 MB written - all three sessions I had open. BUT: Script seems to keep running: Local console login survived, and file keeps growing, until it finally reached the target 4 GB. Closer inspection showed:
ping 192.168.1.1 --> destination unreachable
ifdown eth0
ifup eth0
ping 192.168.1.1 --> Success
And ssh is possible again. So my conclusion would be: network stack somehow gets corrupted.
/var/log/syslog does not show anything helpful.
Any idea? Is this reproducible by others?
Cheers