Error after installing Statistics module

NethServer Version: 7.5
Module: statistics

Hi,

I installed the statistics module but when I click on graphs I get this error in the broswer

We can’t connect to the server at autoconfig.***.co.ukb7f41ae81460b205e4a79e3d9ef02656548c5b82.

I have redacted part of my domain.

Don’t know where to start with this?

Thanks

John

The URL is missing a slash. It’d be:
autoconfig.***.co.uk/b7f41ae81460b205e4a79e3d9ef02656548c5b82

Try with a different browser, please.

Same in Firefox/Edge/IE

Why your browsers should remove the slash? It may be some other software running on your pc.
Without details it’s impossible to guess the problem.

Its not software on my computer causing this, the same problem occurs on 3 different computers.

Try with:
signal-event nethserver-cgp-update
And please, again, show some screenshots, log, errors. As much details as you can.

Seems to be an issue with the collectd service itself?

Jul 30 10:28:18 remote collectd[26860]: plugin_load: plugin “threshold” successfully loaded.
Jul 30 10:28:18 remote collectd[26860]: plugin_load: plugin “unixsock” successfully loaded.
Jul 30 10:28:18 remote systemd: collectd.service: main process exited, code=exited, status=1/FAILURE
Jul 30 10:28:18 remote systemd: Failed to start Collectd statistics daemon.
Jul 30 10:28:18 remote systemd: Unit collectd.service entered failed state.
Jul 30 10:28:18 remote systemd: collectd.service failed.
Jul 30 10:28:18 remote systemd: collectd.service holdoff time over, scheduling restart.
Jul 30 10:28:18 remote systemd: Starting Collectd statistics daemon…
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “syslog” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “rrdtool” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “cpu” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “processes” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “uptime” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “match_regex” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “md” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “load” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “df” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “memory” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “swap” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “interface” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “disk” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “ping” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: ping plugin: MaxMissed < 0, disabled re-resolving of hosts
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “python” successfully loaded.
Jul 30 10:28:18 remote collectd[26863]: python plugin: Error importing module “nethserver_alerts”.
Jul 30 10:28:18 remote collectd[26863]: Unhandled python exception in importing module: ImportError: No module named nethserver_alerts
Jul 30 10:28:18 remote collectd[26863]: python plugin: Found a configuration for the “nethserver_alerts” plugin, but the plugin isn’t loaded or didn’t register a configuration callback.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “threshold” successfully loaded.
Jul 30 10:28:18 remote collectd: Error: Reading the config file failed!
Jul 30 10:28:18 remote collectd: Read the logs for details.
Jul 30 10:28:18 remote collectd[26863]: plugin_load: plugin “unixsock” successfully loaded.
Jul 30 10:28:18 remote systemd: collectd.service: main process exited, code=exited, status=1/FAILURE
Jul 30 10:28:18 remote systemd: Failed to start Collectd statistics daemon.
Jul 30 10:28:18 remote systemd: Unit collectd.service entered failed state.
Jul 30 10:28:18 remote systemd: collectd.service failed.
Jul 30 10:28:18 remote systemd: collectd.service holdoff time over, scheduling restart.
Jul 30 10:28:18 remote systemd: Starting Collectd statistics daemon…
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “syslog” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “rrdtool” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “cpu” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “processes” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “uptime” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “match_regex” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “md” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “load” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “df” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “memory” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “swap” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “interface” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “disk” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “ping” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: ping plugin: MaxMissed < 0, disabled re-resolving of hosts
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “python” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: python plugin: Error importing module “nethserver_alerts”.
Jul 30 10:28:18 remote collectd[26865]: Unhandled python exception in importing module: ImportError: No module named nethserver_alerts
Jul 30 10:28:18 remote collectd[26865]: python plugin: Found a configuration for the “nethserver_alerts” plugin, but the plugin isn’t loaded or didn’t register a configuration callback.
Jul 30 10:28:18 remote collectd: Error: Reading the config file failed!
Jul 30 10:28:18 remote collectd: Read the logs for details.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “threshold” successfully loaded.
Jul 30 10:28:18 remote collectd[26865]: plugin_load: plugin “unixsock” successfully loaded.
Jul 30 10:28:18 remote systemd: collectd.service: main process exited, code=exited, status=1/FAILURE
Jul 30 10:28:18 remote systemd: Failed to start Collectd statistics daemon.
Jul 30 10:28:18 remote systemd: Unit collectd.service entered failed state.
Jul 30 10:28:18 remote systemd: collectd.service failed.
Jul 30 10:28:18 remote systemd: collectd.service holdoff time over, scheduling restart.
Jul 30 10:28:18 remote systemd: Starting Collectd statistics daemon…
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “syslog” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “rrdtool” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “cpu” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “processes” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “uptime” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “match_regex” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “md” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “load” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “df” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “memory” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “swap” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “interface” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “disk” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “ping” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: ping plugin: MaxMissed < 0, disabled re-resolving of hosts
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “python” successfully loaded.
Jul 30 10:28:18 remote collectd[26866]: python plugin: Error importing module “nethserver_alerts”.
Jul 30 10:28:18 remote collectd[26866]: Unhandled python exception in importing module: ImportError: No module named nethserver_alerts
Jul 30 10:28:18 remote collectd[26866]: python plugin: Found a configuration for the “nethserver_alerts” plugin, but the plugin isn’t loaded or didn’t register a configuration callback.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “threshold” successfully loaded.
Jul 30 10:28:18 remote collectd: Error: Reading the config file failed!
Jul 30 10:28:18 remote collectd: Read the logs for details.
Jul 30 10:28:18 remote collectd[26866]: plugin_load: plugin “unixsock” successfully loaded.
Jul 30 10:28:18 remote systemd: collectd.service: main process exited, code=exited, status=1/FAILURE
Jul 30 10:28:18 remote systemd: Failed to start Collectd statistics daemon.
Jul 30 10:28:18 remote systemd: Unit collectd.service entered failed state.
Jul 30 10:28:18 remote systemd: collectd.service failed.
Jul 30 10:28:19 remote systemd: collectd.service holdoff time over, scheduling restart.
Jul 30 10:28:19 remote systemd: Starting Collectd statistics daemon…
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “syslog” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “rrdtool” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “cpu” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “processes” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “uptime” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “match_regex” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “md” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “load” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “df” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “memory” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “swap” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “interface” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “disk” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “ping” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: ping plugin: MaxMissed < 0, disabled re-resolving of hosts
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “python” successfully loaded.
Jul 30 10:28:19 remote collectd[26876]: python plugin: Error importing module “nethserver_alerts”.
Jul 30 10:28:19 remote collectd[26876]: Unhandled python exception in importing module: ImportError: No module named nethserver_alerts
Jul 30 10:28:19 remote collectd[26876]: python plugin: Found a configuration for the “nethserver_alerts” plugin, but the plugin isn’t loaded or didn’t register a configuration callback.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “threshold” successfully loaded.
Jul 30 10:28:19 remote collectd: Error: Reading the config file failed!
Jul 30 10:28:19 remote collectd: Read the logs for details.
Jul 30 10:28:19 remote collectd[26876]: plugin_load: plugin “unixsock” successfully loaded.
Jul 30 10:28:19 remote systemd: collectd.service: main process exited, code=exited, status=1/FAILURE
Jul 30 10:28:19 remote systemd: Failed to start Collectd statistics daemon.
Jul 30 10:28:19 remote systemd: Unit collectd.service entered failed state.
Jul 30 10:28:19 remote systemd: collectd.service failed.
Jul 30 10:28:19 remote systemd: collectd.service holdoff time over, scheduling restart.
Jul 30 10:28:19 remote systemd: start request repeated too quickly for collectd.service
Jul 30 10:28:19 remote systemd: Failed to start Collectd statistics daemon.
Jul 30 10:28:19 remote systemd: Unit collectd.service entered failed state.
Jul 30 10:28:19 remote systemd: collectd.service failed.

This modules come from the nethserver-subscription package, it can’t be missing.
Check it is sane with:
rpm -V nethserver-subscription
which should give no output. If you see output, please reinstall it with:
yum reinstall nethserver-subscription
You could try to reconfigure it with:
signal-event nethserver-collectd-update

Ok thank you. When you install the Statistics Package the Subscription Module is not a dependancy.

Removing the Statistics module, installing the subscription module, then the statistics module has allowed the collectd Service to run correctly but the URL issue still remains.

Jul 30 12:23:54 remote systemd: Started Collectd statistics daemon. Jul 30 12:23:54 remote collectd[13731]: Initialization complete, entering read-loop.

I can confirm I’m seeing the same thing, but won’t be able to check this resolution until later.

1 Like

@kiemosan, do you have anything set up for e-mail auto-configuration? My nethserver-automx RPM or my previous instructions, for example? I’m asking because of the autoconfig. hostname that’s coming up (as it also is for me).

Yes I did use the automx module you created.

Thanks. I don’t know why it should cause any issues here, but good to know.

No problem, hope we can find the problem.

It looks like it could be the template fragment I’ve added for the autoconfig virtualhost. Try renaming /etc/e-smith/templates/etc/httpd/conf.d/virtualhosts.conf/05autoconfig_vhost to /etc/e-smith/templates/etc/httpd/conf.d/virtualhosts.conf/15autoconfig_vhost. Then
expand-template /etc/httpd/conf.d/virtualhosts.conf
and
systemctl reload httpd

1 Like

Hi Dan,

Sorry but that doesn’t seem to have worked.

This is what is did, FYI.

[root@remote virtualhosts.conf]# mv 05autoconfig_vhost 15autoconfig_vhost
[root@remote virtualhosts.conf]# dir
15autoconfig_vhost 30ReverseProxyVhost
[root@remote virtualhosts.conf]# expand-template /etc/httpd/conf.d/virtualhosts.conf
[root@remote virtualhosts.conf]# systemctl reload httpd

Which directory were you in when doing this? /etc/e-smith/templates/etc/httpd/conf.d/virtualhosts.conf/? /etc/e-smith/templates-custom/etc/httpd/conf.d/virtualhosts.conf/? Somewhere else? Because your directory listing should show more than just those two files in the first directory, and autoconfig_vhost shouldn’t have been in the second.

100% in /etc/e-smith/templates/etc/httpd/conf.d/virtualhosts.conf/ the other doesn’t exist.

[root@remote /]# cd /etc/e-smith/templates/etc/httpd/conf.d/virtualhosts.conf/
[root@remote virtualhosts.conf]# dir
15autoconfig_vhost 30ReverseProxyVhost
[root@remote virtualhosts.conf]#

[root@remote virtualhosts.conf]# cd /
[root@remote /]# cd /etc/e-smith/templates-custom/etc/httpd/conf.d/virtualhosts.conf/
-bash: cd: /etc/e-smith/templates-custom/etc/httpd/conf.d/virtualhosts.conf/: No such file or directory
[root@remote /]#

Do you have the web server module installed from the software center? That might explain the other files I’m seeing there on my system.

Nope, this is everything I have installed.