kiemosan
(John Savidge)
July 30, 2018, 9:32am
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
The URL is missing a slash. It’d be:
autoconfig.***.co.uk/b7f41ae81460b205e4a79e3d9ef02656548c5b82
Try with a different browser, please.
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.
kiemosan
(John Savidge)
July 30, 2018, 10:40am
5
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.
kiemosan
(John Savidge)
July 30, 2018, 11:01am
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.
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
kiemosan
(John Savidge)
July 30, 2018, 11:26am
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.
danb35
(Dan)
July 30, 2018, 12:01pm
10
I can confirm I’m seeing the same thing, but won’t be able to check this resolution until later.
1 Like
danb35
(Dan)
July 30, 2018, 12:33pm
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).
kiemosan
(John Savidge)
July 30, 2018, 12:35pm
12
Yes I did use the automx module you created.
danb35
(Dan)
July 30, 2018, 12:38pm
13
Thanks. I don’t know why it should cause any issues here, but good to know.
kiemosan
(John Savidge)
July 30, 2018, 1:03pm
14
No problem, hope we can find the problem.
danb35
(Dan)
July 30, 2018, 9:24pm
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
1 Like
kiemosan
(John Savidge)
July 31, 2018, 8:57am
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
danb35
(Dan)
July 31, 2018, 1:31pm
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.
kiemosan
(John Savidge)
July 31, 2018, 1:56pm
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 /]#
danb35
(Dan)
July 31, 2018, 2:06pm
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.
kiemosan
(John Savidge)
July 31, 2018, 2:08pm
20
Nope, this is everything I have installed.