新鮮なガーベラが始まらない?

新鮮なガーベラが始まらない?

階下の Ubuntu Server に Gerbera をインストールし、 を使用して起動しようとしましたgerbera。最初に設定ファイルが生成され、次のエラーが発生しました。

sarah@scilab_comp_0:~$ gerbera 
2019-05-19 05:42:33    INFO: Gerbera UPnP Server version 1.1.0 - http://gerbera.io/
2019-05-19 05:42:33    INFO: ===============================================================================
2019-05-19 05:42:33    INFO: Gerbera is free software, covered by the GNU General Public License version 2
2019-05-19 05:42:33    INFO: Copyright 2016-2017 Gerbera Contributors.
2019-05-19 05:42:33    INFO: Gerbera is based on MediaTomb: Copyright 2005-2010 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
2019-05-19 05:42:33    INFO: ===============================================================================
2019-05-19 05:42:33    INFO: Loading configuration from: /home/sarah/.config/gerbera/config.xml
2019-05-19 05:42:33    INFO: Checking configuration...
2019-05-19 05:42:33    INFO: Setting filesystem import charset to UTF-8
2019-05-19 05:42:33    INFO: Setting metadata import charset to UTF-8
2019-05-19 05:42:33    INFO: Setting playlist charset to UTF-8
2019-05-19 05:42:33 WARNING: You enabled the YouTube feature, which allows you
                             to watch YouTube videos on your UPnP device!
                             Please check http://www.youtube.com/t/terms
                             By using this feature you may be violating YouTube
                             service terms and conditions!

2019-05-19 05:42:33    INFO: Configuration check succeeded.
Exception raised in [src/server.cc:123] upnp_init(): upnp_init: UpnpInit failed
2019-05-19 05:42:33   ERROR: main: upnp error -203
2019-05-19 05:42:33   ERROR: Could not bind to socket.
2019-05-19 05:42:33    INFO: Please check if another instance of Gerbera or
2019-05-19 05:42:33    INFO: another application is running on port 0.
2019-05-19 05:42:33   ERROR: upnp_cleanup: UpnpUnRegisterRootDevice failed
Exception raised in [src/server.cc:248] shutdown(): upnp_cleanup: UpnpUnRegisterRootDevice failed

理由は分かりません。

奇妙なことに、ガーベラ サービスは稼働しています。

● gerbera.service - Gerbera Media Server
   Loaded: loaded (/lib/systemd/system/gerbera.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2019-05-19 05:40:08 UTC; 6min ago
     Docs: man:gerbera(1)
           https://gerbera.io/
 Main PID: 28343 (gerbera)
    Tasks: 12 (limit: 4467)
   CGroup: /system.slice/gerbera.service
           └─28343 /usr/bin/gerbera -c /etc/gerbera/config.xml

May 19 05:40:08 scilab_comp_0 gerbera[28343]: 2019-05-19 05:40:08    INFO: Setting playlist charset to UTF-8
May 19 05:40:08 scilab_comp_0 gerbera[28343]: 2019-05-19 05:40:08 WARNING: You enabled the YouTube feature, which allows you
May 19 05:40:08 scilab_comp_0 gerbera[28343]:                              to watch YouTube videos on your UPnP device!
May 19 05:40:08 scilab_comp_0 gerbera[28343]:                              Please check http://www.youtube.com/t/terms
May 19 05:40:08 scilab_comp_0 gerbera[28343]:                              By using this feature you may be violating YouTube
May 19 05:40:08 scilab_comp_0 gerbera[28343]:                              service terms and conditions!
May 19 05:40:08 scilab_comp_0 gerbera[28343]: 2019-05-19 05:40:08    INFO: Configuration check succeeded.
May 19 05:40:08 scilab_comp_0 gerbera[28343]: 2019-05-19 05:40:08    INFO: Initialized port: 49152
May 19 05:40:08 scilab_comp_0 gerbera[28343]: 2019-05-19 05:40:08    INFO: Server bound to: 192.168.1.222
May 19 05:40:08 scilab_comp_0 gerbera[28343]: 2019-05-19 05:40:08    INFO: The Web UI can be reached by following this link: http://192.168.1.222:49152/

ガーベラの使い方が間違っているのでしょうか? どうすればガーベラを動作させてメディアのフォルダーを監視できるのでしょうか?

答え1

Ubuntuにインストールすると、Gerberaは自動的にデーモンプロセスとして起動されます(ユーザー経由gerbera)。手動で起動するには、デーモンプロセスを強制終了する必要があります。例:

ps aux | grep gerbera
sudo kill <pid>

関連情報