Audio-Probleme

  • Seit Kurzem haben wir auf DB0TEN das folgende Problem beim Neustart von svxlink:

    root@voyage:/etc/init.d# svxlink restart
    SvxLink v1.3.0 (Feb 2 2014) Copyright (C) 2003-2013 Tobias Blomberg / SM0SVX

    SvxLink comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
    welcome to redistribute it in accordance with the terms and conditions in the
    GNU GPL (General Public License) version 2 or later.

    Using configuration file: /etc/svxlink/svxlink.conf
    --- Using sample rate 48000Hz

    Starting logic: RepeaterLogic
    Loading RX: RxTen
    *** ERROR: Open capture audio device failed: Device or resource busy
    *** ERROR: Could not open audio device for receiver "RxTen"
    *** ERROR: Could not initialize RX "RxTen"
    *** ERROR: Could not initialize Logic object "RepeaterLogic". Skipping...
    *** ERROR: No logics available. Bailing out...

    Danach bleibt der Sender permanent aufgetastet.
    Mit kill „Prozess id“ beende ich Svxlink.
    Watchdog startet svxlink nach 1 Minute automatisch neu. Danach funktioniert alles ganz normal!
    Der Watchdog ist hier beschrieben:
    http://forum.svxlink.de/viewtopic.php?f=2&t=172

    Was geht da vor?

  • Ich glaube ich habs raus:

    Unser konkretes Szenario wurde hier schon mal beschrieben:

    http://sourceforge.net/p/svxlink/mailman/message/32240649/
    Im Text steht u.a.:
    Change that. I only get that error when I am not running as root.

    Das erinnert mich daran, dass der svxlink Dämon nicht als „root", sondern als User „svxlink“ läuft, ich den „restart" aber als User „root“ ausführe.

    Nach Eingabe von ps ax bekomme ich u.a.:
    3615 ? Ssl 112:03 /usr/bin/svxlink --daemon --runasuser=svxlink —pidfi

    So langsam dämmert es mir. Ich vermute mal, dass ich das falsche svxlink restarten wollte.

    Folgende zwei Tests habe ich durchgeführt:

    1.
    cd /etc/init.d
    svxlink restart
    Fehlermeldungen, svxlink hängt

    2.
    cd /etc/init.d
    ./svxlink restart
    Keine Fehler

    Im 1. Fall habe ich versucht, das Programm svxlink zu starten. Aber der Dämon svxlink lief noch. Deshalb stimmt auch die Fehlermeldung “device or resource busy“.
    Im 2. Fall habe ich den Dämon svxlink neu gestartet. Und das funktioniert.

    Das Problem sass in diesem Fall also zwischen Rückenlehne und Tastatur.
    :oops: