New to Grommunio and looking forward to giving it a spin.
I am installing on RHEL9 and have encountered a couple of issues that appear to be caused by packaging errors in the EL9 Community repo. If there is a more appropriate place to feed this back, just let me know.
Issue 1: Installing grommunio-index
Possible cause: Google suggests the RPM macro %service_add_pre is specific to SUSE and does not exist on EL9
[user@host ~]$ sudo dnf install grommunio-index
Updating Subscription Management repositories.
Last metadata expiration check: 0:10:11 ago on Wed 29 Nov 2023 08:32:53 GMT.
Dependencies resolved.
Package Architecture Version Repository Size
Installing:
grommunio-index x86_64 0.1.37.74e396b-40.6 grommunio 53 k
Transaction Summary
Install 1 Package
Total download size: 53 k
Installed size: 118 k
Is this ok [y/N]: y
Downloading Packages:
grommunio-index-0.1.37.74e396b-40.6.x86_64.rpm 170 kB/s | 53 kB 00:00
Total 168 kB/s | 53 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: grommunio-index-0.1.37.74e396b-40.6.x86_64 1/1
/var/tmp/rpm-tmp.gBMBBp: line 1: fg: no job control
error: %prein(grommunio-index-0.1.37.74e396b-40.6.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package grommunio-index
Verifying : grommunio-index-0.1.37.74e396b-40.6.x86_64 1/1
Installed products updated.
Failed:
grommunio-index-0.1.37.74e396b-40.6.x86_64
Error: Transaction failed
[user@host ~]$ curl https://download.grommunio.com/community/EL9/grommunio-index-0.1.37.74e396b-40.6.x86_64.rpm -o grommunio-index-0.1.37.74e396b-40.6.x86_64.rpm
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 54548 100 54548 0 0 153k 0 --:--:-- --:--:-- --:--:-- 153k
[user@host ~]$ rpm -qp --scripts grommunio-index-0.1.37.74e396b-40.6.x86_64.rpm
preinstall scriptlet (using /bin/sh):
%service_add_pre grommunio-index.service grommunio-index.timer
postinstall scriptlet (using /bin/sh):
usermod grommunio -aG groweb | | :
find /var/lib/grommunio-web/sqlite-index/ -mindepth 1 "(" -type d -o -type f ")" -exec chmod g+w,o-w {} + | | :
find /var/lib/grommunio-web/sqlite-index/ -mindepth 1 "(" -type d -o -type f ")" -exec chgrp -h groweb {} + | | :
%service_add_post grommunio-index.service grommunio-index.timer
if test -x /bin/systemctl; then
systemctl enable --now grommunio-index.timer || :
fi
preuninstall scriptlet (using /bin/sh):
%service_del_preun grommunio-index.service grommunio-index.timer
postuninstall scriptlet (using /bin/sh):
%service_del_postun grommunio-index.service grommunio-index.timer
Issue 2: Installing grommunio-antispam
Possible cause: Looking at available packages I think the dependency lua51-LPeg should be lua5.1-lpeg
[user@host ~]$ sudo dnf install grommunio-antispam
Updating Subscription Management repositories.
Last metadata expiration check: 0:13:12 ago on Wed 29 Nov 2023 08:32:53 GMT.
Error:
Problem: cannot install the best candidate for the job
-nothing provides lua51-LPeg needed by grommunio-antispam-3.7.3-6.2.x86_64 from grommunio
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[user@host ~]$ sudo dnf list lua*lpeg
Updating Subscription Management repositories.
Last metadata expiration check: 0:13:42 ago on Wed 29 Nov 2023 08:32:53 GMT.
Available Packages
lua-lpeg.x86_64 1.0.2-7.el9 epel
lua5.1-lpeg.x86_64 1.0.2-7.el9 epel