pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/57120: Gerbera package fails to start and crashes out with a config error
>Number: 57120
>Category: pkg
>Synopsis: Gerbera package fails to start and crashes out with a config error
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Dec 19 00:30:00 +0000 2022
>Originator: Dave Tyson
>Release: NetBSD 9.99.108
>Organization:
Anduin
>Environment:
System: NetBSD test.anduin.org.uk 9.99.108 NetBSD 9.99.108 (HP) #0: Tue Dec 6 22:25:14 GMT 2022 root%test.anduin.org.uk@localhost:/usr/obj/sys/arch/amd64/compile/HP amd64
Architecture: x86_64
Machine: amd64
>Description:
Gerbera compiles and installs OK. Trying to run it from the standard rc setup fails
as the supplied gerbera startup file has a -g option to set a group id. Sadly the
package doesn't support this option. Removing the -g option means the package starts
but then it falls over after it has read the config.xml file with a missing tag 47 error.
>How-To-Repeat:
Install Gerbera, move the startup file from /usr/pkg/share/examples/rc.d/gerbera to /etc/rc.d/gerbera
put gerbera=YES in /etc/rc.conf and start the package. Note it complains about a superfluous -g option
Fix the startup file and try again. It fails after reading the config.xml file...
The /var/log/gerbera.log shows:
2022-12-18 22:02:36 info: Gerbera UPnP Server 1.11.0 - http://gerbera.io/
2022-12-18 22:02:36 info: Copyright 2016-2022 Gerbera Contributors.
2022-12-18 22:02:36 info: Gerbera is free software, covered by the GNU General Public License version 2
2022-12-18 22:02:36 info: Dropped to User: gerbera
2022-12-18 22:02:36 info: Loading configuration from: /usr/pkg/etc/gerbera/config.xml
2022-12-18 22:02:36 info: Checking configuration...
2022-12-18 22:02:36 error: [/usr/pkgsrc/multimedia/gerbera/work/gerbera-1.11.0/src/config/config_definition.cc:1380] static std::shared_ptr<ConfigSetup> ConfigDefinition::findConfigSetup(config_option_t, bool) Error: Error in config code: 47 tag not found. CFG_MAX=140
Notes: (1) The tags are part of an enum list which has conditional parts so it is not obvious which tag 47 is. However a bit of crude poking around shows it is CFG_SERVER_EXTOPTS_FFMPEGTHUMBNAILER_ENABLED. This
seems to be defined in the supplied config.xml file.
(2) The package can generate a config.xml file using gerbera --create-config however the generated file still causes the package to crash with the same error.
>Fix:
1. The gerbera startup file needs the -g option removing
2. I don't know what is wrong with the supplied or generated config.xml but the package complains about a missing tag. Could be config error or program error.
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index