Troubleshooting
Problems Starting ConfD
If you have problems starting ConfD after the upgrade, please contact your Juniper partner or your local Juniper account manager or sales representative in order to get a new subscription.
Problems Starting callexecuter
Check the callexecuter logs with the command
sudo journalctl -xeu netrounds-callexecuter
You may see an error like the following:
Jun 03 09:53:27 myhost django-admin[6290]: ERROR netrounds.manager.callexecuter Unhandled exception in CallExecuter.run [name=netrounds.manager.callexecuter, thread=140364632504128, process=8238, funcName=handle, le Jun 03 09:53:27 myhost django-admin[6290]: Traceback (most recent call last): Jun 03 09:53:27 myhost django-admin[6290]: File "debian/tmp/usr/lib/python2.7/dist-packages/netrounds/manager/management/commands/runcallexecuter.py", line 65, in handle Jun 03 09:53:27 myhost django-admin[6290]: File "debian/tmp/usr/lib/python2.7/dist-packages/netrounds/manager/calldispatcher.py", line 164, in run Jun 03 09:53:27 myhost django-admin[6290]: File "debian/tmp/usr/lib/python2.7/dist-packages/netrounds/manager/models.py", line 204, inwait Jun 03 09:53:27 myhost django-admin[6290]: File "debian/tmp/usr/lib/python2.7/dist-packages/netrounds/manager/models.py", line 42, in __unicode__ Jun 03 09:53:27 myhost django-admin[6290]: AttributeError: 'unicode' object has no attribute 'iteritems'
What has happened is that the netrounds-callexecuter*.deb
package was
upgraded without making sure the netrounds-callexecuter
systemd service was
stopped and disabled. The database is in the wrong state; it needs to be restored from
backup, and the upgrade needs to be repeated.
Do the following to disable and stop the netrounds-callexecuter
service:
sudo systemctl disable netrounds-callexecuter sudo systemctl stop netrounds-callexecuter
Web Server Does Not Respond
Check the apache logs with the command
tail -n 50 /var/log/apache2/netrounds_error.log
If you see the following error, it means that Control Center version 2.34 is running on Ubuntu 18.04, that is, Control Center has not been successfully upgraded. The solution is to upgrade Control Center to a later version as described in this document.
# Timestamps, pids, etc. stripped away below Target WSGI script '/usr/lib/python2.7/dist-packages/netrounds/wsgi.py' cannot be loaded as Python module. Exception occurred processing WSGI script '/usr/lib/python2.7/dist-packages/netrounds/wsgi.py'. Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/netrounds/wsgi.py", line 6, in<module> application = get_wsgi_application() File "/usr/lib/python2.7/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_application django.setup(set_prefix=False) File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/usr/lib/python2.7/dist-packages/django/apps/config.py", line 94, in create module = import_module(entry) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/lib/python2.7/dist-packages/grappelli/dashboard/__init__.py", line 1, in<module> from grappelli.dashboard.dashboards import * File "/usr/lib/python2.7/dist-packages/grappelli/dashboard/dashboards.py", line 14, in<module> from grappelli.dashboard import modules File "/usr/lib/python2.7/dist-packages/grappelli/dashboard/modules.py", line 9, in<module> from django.contrib.contenttypes.models import ContentType File "/usr/lib/python2.7/dist-packages/django/contrib/contenttypes/models.py", line 139, in<module> class ContentType(models.Model): File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 110, in __new__ app_config = apps.get_containing_app_config(module) File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 247, in get_containing_app_config self.check_apps_ready() File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 125, in check_apps_ready raise AppRegistryNotReady("Apps aren't loaded yet.") AppRegistryNotReady: Apps aren't loaded yet.
Restarting of Paragon Active Assurance Services Fails
Restarting the netrounds-*
services with
sudo systemctl start --all "netrounds-*" apache2 openvpn@netrounds
produces the following message:
Failed to start netrounds-agent-ws-server.service: Unit netrounds-agent-ws-server.service is masked. Failed to start netrounds-agent-daemon.service: Unit netrounds-agent-daemon.service is masked.
This means that the services mentioned have been masked in the course of the package removal process and require manual cleanup. The cleanup procedure is shown below:
sudo apt-get purge netrounds-agent-login sudo find /etc/systemd/system -name "netrounds-agent-*.service" -delete sudo systemctl daemon-reload