Error after installing Statistics module


(John Savidge) #1

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


(Filippo Carletti) #2

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

Try with a different browser, please.


(John Savidge) #3

Same in Firefox/Edge/IE


(Filippo Carletti) #4

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.


(John Savidge) #5

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


(Filippo Carletti) #6

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


(John Savidge) #7

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.


(Filippo Carletti) #8

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


(John Savidge) #9

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.


(Dan) #10

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


(Dan) #11

@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).


(John Savidge) #12

Yes I did use the automx module you created.


(Dan) #13

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


(John Savidge) #14

No problem, hope we can find the problem.


(Dan) #15

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


(John Savidge) #16

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


(Dan) #17

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.


(John Savidge) #18

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 /]#


(Dan) #19

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.


(John Savidge) #20

Nope, this is everything I have installed.