You are not logged in.

#1 2021-05-10 21:43:16

stueja
Member
Registered: 2015-10-18
Posts: 47

[SOLVED] Can't login to headless system after timed ffmpeg recording

Hello!

The Arch system in question has been running smoothly for the past years. It is manually installed, not using the guided installer. It had been running docker and one container (nthumann/iptv-restream:latest). The container allows me to stream my IPTV to any of my computers.

Recently, I started actually "using" the container. I wrote a quick bash script to use ffmpeg to record a timeslot of 30 minutes. The bash script is called by a service which is called by a timer. The timer goes off once every weekday. The bash script should create a logfile, and also of course the recording output.

During weekends, no problem with the system. Also, using the ffmpeg command from the shell script manually does not crash the system. But during or after every second, third day or recording during the week, there is no recording, and I cannot login via SSH any more.

What have I tried so far?
First versions of the script recorded to a mounted nfs file share. Changed that to record to local SSD and copy it over afterwards because I thought ffmpeg locked up while the mounted nfs hard disks spun up.
I rewrote the shell script to create log output, but after a hang, there is neither a log file, nor does the journal give a helpful hint why all that happens.

I'd really appreciate any hint in any direction pointing towards a solution of those hangs.

The system:
Arch 5.10.32-1-lts on Intel Celeron N3150 (4) @ 2.080GHz. 8GB RAM, 250GB SSD, 17% full.

The memory:

[root@trick ~]# free -h
               total        used        free      shared  buff/cache   available
Mem:           7.6Gi       259Mi       6.9Gi       2.0Mi       451Mi       7.1Gi
Swap:             0B          0B          0B

The timer:

[Unit]
Description=Timer to record AWZ

[Timer]
OnCalendar=Mon,Tue,Wed,Thu,Fri *-*-* 19:04:00
Persistent=false

[Install]
WantedBy=timers.target

The service:

[Unit]
Description=Service to record AWZ

[Service]
Type=oneshot
ExecStart=/usr/local/bin/iptv-record-awz.sh
Restart=no

The shell script:
https://pastebin.com/u2YmPwh7

The journal, journalctl -b -1: (it begins on May 5; recordings on May 6 and 7 were OK. The weekend on May 8 and 9 was OK. Unresponsive without logs on May 10.)
http://ix.io/3mrt

Sample log output of a working recording of May 7:
http://ix.io/3mrv

Last edited by stueja (2021-05-19 20:11:26)

Offline

#2 2021-05-19 20:12:29

stueja
Member
Registered: 2015-10-18
Posts: 47

Re: [SOLVED] Can't login to headless system after timed ffmpeg recording

Apparently, using vaapi crashed the system. Using ffmpeg without vaapi now, has been working for 10 days now.

Offline

Board footer

Powered by FluxBB