gmnisrv: missing mime.types

DoneSubmitted by Christopher Howard.
Details
3 participants
  • Arun Isaac
  • Christopher Howard
  • Sarah Morgensen
Owner
unassigned
Severity
normal
C
C
Christopher Howard wrote on 26 Jun 16:02 +0200
(name . Guix Bug Reports)(address . bug-guix@gnu.org)
19db4e71220fe0f8de97a8e9f522c4009f27f7f0.camel@librehacker.com
Hi, I am trying to use the gmnisrv service as described in the Guixmanual, using the default configuration:
(services (append (list (service gmnisrv-service-type) (service openssh-service-type) (service network-manager-service-type) (service wpa-supplicant-service-type)) %base-services))
However, gmnisrv keeps dying with this error:
gmnisrv: src/mime.c:37: mime_init: Assertion `0' failed.Unable to open MIME database for reading: No such file or directoryIs /etc/mime.types installed?
Is the gmnisrv package or service missing a dependency that is supposed to provide the mime.types file, or am I supposed to copy one from somewhere?
My system information:
christopher@galadriel ~$ neofetch --stdoutchristopher@galadriel --------------------- OS: Guix System b36267b1d96ac344d2b42c9822ce04b4c3117f85 x86_64 Host: OptiPlex 7010 01 Kernel: 5.12.13-gnu Uptime: 24 mins Packages: 51 (guix-system), 35 (guix-user) Shell: bash 5.0.16 Terminal: /dev/pts/0 CPU: Intel i5-3570 (4) @ 3.800GHz GPU: Intel HD Graphics Memory: 93MiB / 15929MiB
-- Christopher Howardblog: https://librehacker.comsocial: https://gnusocial.club/librehacker
S
S
Sarah Morgensen wrote on 23 Jul 10:14 +0200
(name . Christopher Howard)(address . christopher@librehacker.com)(address . 49233@debbugs.gnu.org)
86a6mdqweo.fsf@mgsn.dev
Hello,
Christopher Howard <christopher@librehacker.com> writes:
Toggle quote (19 lines)> Hi, I am trying to use the gmnisrv service as described in the Guix> manual, using the default configuration:>> (services> (append> (list (service gmnisrv-service-type)> (service openssh-service-type)> (service network-manager-service-type)> (service wpa-supplicant-service-type))> %base-services))>> However, gmnisrv keeps dying with this error:>> gmnisrv: src/mime.c:37: mime_init: Assertion `0' failed.> Unable to open MIME database for reading: No such file or directory> Is /etc/mime.types installed?>> Is the gmnisrv package or service missing a dependency that is supposed to provide the mime.types file, or am I supposed to copy one from somewhere?
It turns out that the gmnisrv package was misconfigured so that it wasnecessary to have /etc/mime.types present. I've submitted a patch at
https://issues.guix.gnu.org/49705
to fix that (as well as not looking for /etc/gmnisrv.conf if present) ifyou would like to test it before it makes it into master.
Toggle quote (17 lines)>> My system information:>> christopher@galadriel ~$ neofetch --stdout> christopher@galadriel > --------------------- > OS: Guix System b36267b1d96ac344d2b42c9822ce04b4c3117f85 x86_64 > Host: OptiPlex 7010 01 > Kernel: 5.12.13-gnu > Uptime: 24 mins > Packages: 51 (guix-system), 35 (guix-user) > Shell: bash 5.0.16 > Terminal: /dev/pts/0 > CPU: Intel i5-3570 (4) @ 3.800GHz > GPU: Intel HD Graphics > Memory: 93MiB / 15929MiB
--Sarah
C
C
Christopher Howard wrote on 23 Jul 18:41 +0200
(name . Sarah Morgensen)(address . iskarian@mgsn.dev)(address . 49233@debbugs.gnu.org)
efaa733e9df8cbaab0876106d47f89af77893444.camel@librehacker.com
Thank you. I am currently use agate, but I might give gmnisrv anothertry after the patch makes it into master.
-----Original Message-----From: Sarah Morgensen <iskarian@mgsn.dev>To: Christopher Howard <christopher@librehacker.com>Cc: 49233@debbugs.gnu.orgSubject: Re: bug#49233: gmnisrv: missing mime.typesDate: Fri, 23 Jul 2021 01:14:39 -0700
Hello,
Christopher Howard <christopher@librehacker.com> writes:
Toggle quote (21 lines)> Hi, I am trying to use the gmnisrv service as described in the Guix> manual, using the default configuration:> > (services> (append> (list (service gmnisrv-service-type)> (service openssh-service-type)> (service network-manager-service-type)> (service wpa-supplicant-service-type))> %base-services))> > However, gmnisrv keeps dying with this error:> > gmnisrv: src/mime.c:37: mime_init: Assertion `0' failed.> Unable to open MIME database for reading: No such file or directory> Is /etc/mime.types installed?> > Is the gmnisrv package or service missing a dependency that is> supposed to provide the mime.types file, or am I supposed to copy one> from somewhere?
It turns out that the gmnisrv package was misconfigured so that it wasnecessary to have /etc/mime.types present. I've submitted a patch at
https://issues.guix.gnu.org/49705
to fix that (as well as not looking for /etc/gmnisrv.conf if present)ifyou would like to test it before it makes it into master.
Toggle quote (16 lines)> My system information:> > christopher@galadriel ~$ neofetch --stdout> christopher@galadriel > --------------------- > OS: Guix System b36267b1d96ac344d2b42c9822ce04b4c3117f85 x86_64 > Host: OptiPlex 7010 01 > Kernel: 5.12.13-gnu > Uptime: 24 mins > Packages: 51 (guix-system), 35 (guix-user) > Shell: bash 5.0.16 > Terminal: /dev/pts/0 > CPU: Intel i5-3570 (4) @ 3.800GHz > GPU: Intel HD Graphics > Memory: 93MiB / 15929MiB
--Sarah
A
A
Arun Isaac wrote on 26 Jul 23:21 +0200
(address . 49233-done@debbugs.gnu.org)
87y29sepq0.fsf@systemreboot.net
Hi,
I believe commits b459c39adb725822916a8e21ee250fb408d2e2f8 ande17f063627f826b4dd0dda77ede48fc7a535414b address this issue. So, closingthis issue.
Thanks,Arun
-----BEGIN PGP SIGNATURE-----
iQFPBAEBCAA5FiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAmD/J0cbHGFydW5pc2FhY0BzeXN0ZW1yZWJvb3QubmV0AAoJEC4l7othgCuz4EkH+wWiK0YUL0FRH0INOXphrSWFnRN/55DwFCNA0E66wxuol1tlit4vLt1Q0BQzUINbhMCqw7T8uHBosTIhpokC15df3wO2NQNIfcpg5nFztFMAB5OHzSQeAF+5KQux0/avMfQEelctbt9K/qCjsZidyymwT8VThqtkZAl/vZH9ZjH+OH3q++G0CkV2+JhDCXwDSX52h/O8u+iNZrONuL4iVZ5WX5cr4CUNfMNToqcY4m1hj6odesdeFToGM7kKcMyq8dR24tV5l051tamexYlPqLmNXtTDj18N0G/ZTSy2wGxuAPzqXHfBmMsg5c0YunmGn8VqiMyRMsWSfsi+HufJehs==AoDx-----END PGP SIGNATURE-----
Closed
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send email to 49233@debbugs.gnu.org