When you install sogo, you force to install the former nethserver-mail-* stack. You have to swap your email server to nethserver-mail2-*.
On a fresh install, do nethserver-mail2-* first and after the groupware
When you install sogo, you force to install the former nethserver-mail-* stack. You have to swap your email server to nethserver-mail2-*.
On a fresh install, do nethserver-mail2-* first and after the groupware
If you just install SOGo or Webtop (without the email module from software center), there is no filtering installed at all. That is what I had.
If you want to have filtering, you can install the email module without any problem, since the default mail server is installed as dependency when you install SOGo or Webtop.
However, if you want to try rspamd, you need to follow the instruction to swap the email module for email 2 module. This is described in the docs: http://docs.nethserver.org/en/v7/mail2.html#upgrade-procedures
this works also for me, now i am able to get the webgui
Just installed this. Looks awesome.
Should I be worried about these messages:
|Time|Worker type|PID|Module|Internal ID|Message|
|---|---|---|---|---|---|
|3/9/2018, 5:17:17 PM|controller|9612|csession|eeb081|cannot connect to redis: unknown error|
|3/9/2018, 5:17:17 PM|controller|9612|||cannot connect to redis: No such file or directory|
|3/9/2018, 5:16:55 PM|fuzzy|9610|||cannot connect to redis: No such file or directory|
|3/9/2018, 5:15:55 PM|fuzzy|9610|||cannot connect to redis: No such file or directory|
|3/9/2018, 5:15:50 PM|controller|9612|csession|ccc358|cannot connect to redis: unknown error|
|3/9/2018, 5:15:50 PM|controller|9612|||cannot connect to redis: No such file or directory|
|3/9/2018, 5:15:50 PM|controller|9612|csession|ccc358|error getting reply from redis server /var/run/redis-rspamd/rspamd: No such file or directory|
|3/9/2018, 5:15:50 PM|controller|9612|csession|ccc358|error getting reply from redis server /var/run/redis-rspamd/rspamd: No such file or directory|
|3/9/2018, 5:15:50 PM|controller|9612|csession|ccc358|connection to redis server /var/run/redis-rspamd/rspamd timed out|
|3/9/2018, 5:15:50 PM|controller|9612|csession|ccc358|error getting reply from redis server /var/run/redis-rspamd/rspamd: No such file or directory|
Cheers.
Hi @EddieA,
I don’t have such messages in my log. Is the redis service running?
systemctl status redis
Looks like no:
[root@Nethserver ~]# systemctl status redis
● redis.service - Redis persistent key-value database
Loaded: loaded (/usr/lib/systemd/system/redis.service; disabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/redis.service.d
└─limit.conf
Active: inactive (dead)
[root@Nethserver ~]#
Looking in the log, I see this:
Mar 9 16:36:21 Nethserver redis-server: /usr/bin/redis-server: error while loading shared libraries: libjemalloc.so.1: cannot open shared object file: No such file or directory
Mar 9 16:36:21 Nethserver systemd: redis-rspamd.service: main process exited, code=exited, status=127/n/a
Looks like a pre-req was possibly missed.
Cheers.
OK, installing “jemalloc” allows redis to start, but I’m not sure what other services now need to be restarted to pick this up.
All I’ve done so far is “rspamd” via the services UI. Is that sufficient.
Cheers.
It should be enough, rspamd uses redis.
If there are no errors anymore it should be OK.
Do you have nethserver-redis installed? If not it may be the reason for the missing dependency.
Nope, not there. Which NS feature is that part of.
Update It’s Bandwidth Monitor (ntopng), which I don’t have installed.
Cheers.
we simply use redis, because we bring our customisations
jemalloc is a dependency of redis
Installing:
redis x86_64 3.2.10-2.el7 epel 545 k
Installing for dependencies:
jemalloc x86_64 3.6.0-1.el7 epel 105 k
I recall sometime with certain (not predictable) servers some problem of dependency for transmission, we could call ourself jemalloc to be sure it never happen more. @davidep ???
to check if redis work
redis-cli -s /var/run/redis-rspamd/rspamd
then do at the prompt, and wait one minute
monitor
Could you share the contents of /var/log/messages* around that time? Maybe it’s a race condition on service (re)startup…
As redis already pulls in jemalloc it shouldn’t be required
yes but it seems the jemalloc was not installed
If so, where’s the RPM transaction error? Why it occurred for certain installs and not for others?
Could you check your log to understand why jemalloc was not installed.
I solved my transmission issue by adding all depencies to nethserver-transmission @davidep
As luck would have it, the yum install was still in the PuTTY scrollback buffer:
[root@Nethserver ~]# yum swap \
> -- remove nethserver-mail-{common,filter} nethserver-p3scan nethserver-spamd \
> -- install nethserver-mail2-{common,filter,p3scan}
Loaded plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile
* base: mirror.riverfrontnetworks.com
* epel: mirrors.develooper.com
* extras: mirrors.ocf.berkeley.edu
* nethforge: mirror.framassa.org
* nethserver-base: mirror.framassa.org
* nethserver-updates: mirror.framassa.org
* updates: repo1.dal.innoscale.net
Resolving Dependencies
--> Running transaction check
---> Package nethserver-mail-common.noarch 0:1.6.6-1.ns7 will be erased
---> Package nethserver-mail-filter.noarch 0:1.4.5-1.ns7 will be erased
---> Package nethserver-mail2-common.noarch 0:2.0.0-1.ns7 will be installed
---> Package nethserver-mail2-filter.noarch 0:2.0.0-1.ns7 will be installed
--> Processing Dependency: zstd for package: nethserver-mail2-filter-2.0.0-1.ns7.noarch
--> Processing Dependency: rspamd for package: nethserver-mail2-filter-2.0.0-1.ns7.noarch
--> Processing Dependency: redis for package: nethserver-mail2-filter-2.0.0-1.ns7.noarch
--> Processing Dependency: mod_authnz_pam for package: nethserver-mail2-filter-2.0.0-1.ns7.noarch
---> Package nethserver-mail2-p3scan.noarch 0:2.0.0-1.ns7 will be installed
---> Package nethserver-p3scan.noarch 0:1.1.3-1.ns7 will be erased
---> Package nethserver-spamd.noarch 0:1.0.1-1.ns7 will be erased
--> Running transaction check
---> Package mod_authnz_pam.x86_64 0:1.1.0-1.el7 will be installed
---> Package redis.x86_64 0:3.2.10-2.el7 will be installed
---> Package rspamd.x86_64 0:1.6.6-4 will be installed
--> Processing Dependency: libfann.so.2()(64bit) for package: rspamd-1.6.6-4.x86_64
---> Package zstd.x86_64 0:1.3.3-1.el7 will be installed
--> Running transaction check
---> Package fann.x86_64 0:2.2.0-6.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
nethserver-mail2-common noarch 2.0.0-1.ns7 nethserver-updates 56 k
nethserver-mail2-filter noarch 2.0.0-1.ns7 nethserver-updates 64 k
nethserver-mail2-p3scan noarch 2.0.0-1.ns7 nethserver-updates 36 k
Removing:
nethserver-mail-common noarch 1.6.6-1.ns7 @nethserver-updates 103 k
nethserver-mail-filter noarch 1.4.5-1.ns7 @nethserver-updates 399 k
nethserver-p3scan noarch 1.1.3-1.ns7 @nethserver-updates 47 k
nethserver-spamd noarch 1.0.1-1.ns7 @nethserver-updates 35 k
Installing for dependencies:
fann x86_64 2.2.0-6.el7 epel 81 k
mod_authnz_pam x86_64 1.1.0-1.el7 base 15 k
redis x86_64 3.2.10-2.el7 epel 545 k
rspamd x86_64 1.6.6-4 nethserver-updates 10 M
zstd x86_64 1.3.3-1.el7 epel 287 k
Transaction Summary
================================================================================
Install 3 Packages (+5 Dependent packages)
Remove 4 Packages
Total download size: 11 M
Is this ok [y/d/N]: y
Downloading packages:
(1/8): fann-2.2.0-6.el7.x86_64.rpm | 81 kB 00:00
(2/8): redis-3.2.10-2.el7.x86_64.rpm | 545 kB 00:00
(3/8): mod_authnz_pam-1.1.0-1.el7.x86_64.rpm | 15 kB 00:00
(4/8): zstd-1.3.3-1.el7.x86_64.rpm | 287 kB 00:00
(5/8): nethserver-mail2-common-2.0.0-1.ns7.noarch.rpm | 56 kB 00:01
(6/8): nethserver-mail2-filter-2.0.0-1.ns7.noarch.rpm | 64 kB 00:01
(7/8): nethserver-mail2-p3scan-2.0.0-1.ns7.noarch.rpm | 36 kB 00:01
(8/8): rspamd-1.6.6-4.x86_64.rpm | 10 MB 00:10
--------------------------------------------------------------------------------
Total 1.1 MB/s | 11 MB 00:10
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : zstd-1.3.3-1.el7.x86_64 1/12
Installing : redis-3.2.10-2.el7.x86_64 2/12
Installing : nethserver-mail2-common-2.0.0-1.ns7.noarch 3/12
Installing : fann-2.2.0-6.el7.x86_64 4/12
Installing : rspamd-1.6.6-4.x86_64 5/12
Installing : mod_authnz_pam-1.1.0-1.el7.x86_64 6/12
Installing : nethserver-mail2-filter-2.0.0-1.ns7.noarch 7/12
Installing : nethserver-mail2-p3scan-2.0.0-1.ns7.noarch 8/12
Erasing : nethserver-p3scan-1.1.3-1.ns7.noarch 9/12
Erasing : nethserver-mail-filter-1.4.5-1.ns7.noarch 10/12
Erasing : nethserver-mail-common-1.6.6-1.ns7.noarch 11/12
Erasing : nethserver-spamd-1.0.1-1.ns7.noarch 12/12
Verifying : nethserver-mail2-p3scan-2.0.0-1.ns7.noarch 1/12
Verifying : mod_authnz_pam-1.1.0-1.el7.x86_64 2/12
Verifying : fann-2.2.0-6.el7.x86_64 3/12
Verifying : nethserver-mail2-common-2.0.0-1.ns7.noarch 4/12
Verifying : redis-3.2.10-2.el7.x86_64 5/12
Verifying : rspamd-1.6.6-4.x86_64 6/12
Verifying : nethserver-mail2-filter-2.0.0-1.ns7.noarch 7/12
Verifying : zstd-1.3.3-1.el7.x86_64 8/12
Verifying : nethserver-p3scan-1.1.3-1.ns7.noarch 9/12
Verifying : nethserver-spamd-1.0.1-1.ns7.noarch 10/12
Verifying : nethserver-mail-common-1.6.6-1.ns7.noarch 11/12
Verifying : nethserver-mail-filter-1.4.5-1.ns7.noarch 12/12
Broadcast message from nut@Nethserver.BogoLinux.net (Fri Mar 9 16:35:57 2018):
Communications with UPS UPS@127.0.0.1 lost
Broadcast message from nut@Nethserver.BogoLinux.net (Fri Mar 9 16:36:02 2018):
Communications with UPS UPS@127.0.0.1 established
Removed:
nethserver-mail-common.noarch 0:1.6.6-1.ns7
nethserver-mail-filter.noarch 0:1.4.5-1.ns7
nethserver-p3scan.noarch 0:1.1.3-1.ns7
nethserver-spamd.noarch 0:1.0.1-1.ns7
Installed:
nethserver-mail2-common.noarch 0:2.0.0-1.ns7
nethserver-mail2-filter.noarch 0:2.0.0-1.ns7
nethserver-mail2-p3scan.noarch 0:2.0.0-1.ns7
Dependency Installed:
fann.x86_64 0:2.2.0-6.el7 mod_authnz_pam.x86_64 0:1.1.0-1.el7
redis.x86_64 0:3.2.10-2.el7 rspamd.x86_64 0:1.6.6-4
zstd.x86_64 0:1.3.3-1.el7
Complete!
[root@Nethserver ~]#
No jemalloc.
Cheers.
Could you attach the output of
yum history pkg-info jemalloc
[root@Nethserver ~]# yum history pkg-info jemalloc
Loaded plugins: changelog, fastestmirror, nethserver_events
Transaction ID : 127
Begin time : Fri Mar 9 17:52:52 2018
Package : jemalloc-3.6.0-1.el7.x86_64
State : Install
Size : 324,797
Build host : buildvm-24.phx2.fedoraproject.org
Build time : Mon Mar 31 15:33:02 2014
Packager : Fedora Project
Vendor : Fedora Project
License : BSD
URL : http://www.canonware.com/jemalloc/
Source RPM : jemalloc-3.6.0-1.el7.src.rpm
Commit Time : Mon Mar 31 05:00:00 2014
Committer : Ingvar Hagelund <ingvar@redpill-linpro.com>
Reason : user
Command Line : install jemalloc
From repo : epel
Installed by : eddie <xxxx@xxxxxxxx.xxx>
history pkg-info
[root@Nethserver ~]#
Which is when I installed it manually, over an hour after the upgrade to email.
Cheers.
This is mine, spot the difference
Begin time : Thu Feb 8 18:01:16 2018
Package : jemalloc-3.6.0-1.el7.x86_64
State : Dep-Install
Size : 324,797
Build host : buildvm-24.phx2.fedoraproject.org
Build time : Tue Apr 1 00:33:02 2014
Packager : Fedora Project
Vendor : Fedora Project
License : BSD
URL : http://www.canonware.com/jemalloc/
Source RPM : jemalloc-3.6.0-1.el7.src.rpm
Commit Time : Mon Mar 31 14:00:00 2014
Committer : Ingvar Hagelund <ingvar@redpill-linpro.com>
Reason : dep
Command Line : --enablerepo=nethserver-testing swap -- remove nethserver-mail-co
mon nethserver-mail-filter nethserver-mail-server -- install nethserver-mail2-comm
n nethserver-mail2-filter nethserver-mail2-server
From repo : nh-epel
Installed by : davidep <davidep@nethesis.it>
Yep, yours installed as part of the email upgrade, but from a different repo. Obviously mine didn’t, based on what I pasted.
Should I have activated the testing repo. If so, that wasn’t mentioned either in this thread or the doc.
Any further information I can provide ?
Cheers.
It’s an epel mirror, it does not differ from yours.
At that time rspamd was still from testing.
In the end I still don’t understand what happened neither know how to reproduce the service startup issue. Let’s see if someone else is hit.