Solr dashboard with the following error

Platform: Ubuntu: 19.10.3, Hue: 4.6.0
When I log into hue and click on dashboard or rebuild hue, I get the following error,

exceptions_renderable ERROR Potential trace: [(’/home/brandon/hue/desktop/libs/libsolr/src/libsolr/api.py’, 776, ‘info_system’, “response = self._root.get(‘admin/info/system’, params=params)”), (’/home/brandon/hue/desktop/core/src/desktop/lib/rest/resource.py’, 155, ‘get’, ‘return self.invoke(“GET”, relpath, params, headers=headers, allow_redirects=True, clear_cookies=clear_cookies)’), (’/home/brandon/hue/desktop/core/src/desktop/lib/rest/resource.py’, 87, ‘invoke’, ‘log_response=log_response’), (’/home/brandon/hue/desktop/core/src/desktop/lib/rest/resource.py’, 114, ‘_invoke’, ‘clear_cookies=clear_cookies’), (’/home/brandon/hue/desktop/core/src/desktop/lib/rest/http_client.py’, 229, ‘execute’, ‘raise self._exc_class(ex)’)]
[28/Feb/2020 13:12:54 +0000] middleware INFO Processing exception: HTTPConnectionPool(host=‘localhost’, port=8983): Max retries exceeded with url: /solr/admin/info/system?user.name=hue&doAs=maximuslee&wt=json (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7fb9b5e1b910>: Failed to establish a new connection: [Errno 111] Connection refused’,)): Traceback (most recent call last):
File “/home/brandon/hue/build/env/local/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/handlers/base.py”, line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/home/brandon/hue/desktop/libs/dashboard/src/dashboard/views.py”, line 145, in new_search
collections = get_engine(request.user, engine, cluster=cluster).datasets() if engine != ‘report’ else [‘default’]
File “/home/brandon/hue/apps/search/src/search/dashboard_api.py”, line 46, in datasets
show_all = show_all or not client.is_solr_cloud_mode()
File “/home/brandon/hue/desktop/libs/indexer/src/indexer/solr_client.py”, line 224, in is_solr_cloud_mode
self._fillup_properties()
File “/home/brandon/hue/desktop/libs/indexer/src/indexer/solr_client.py”, line 323, in fillup_properties
properties = self.api.info_system()
File “/home/brandon/hue/desktop/libs/libsolr/src/libsolr/api.py”, line 779, in info_system
raise PopupException(e, title=
(‘Error while accessing Solr’))
PopupException: HTTPConnectionPool(host=‘localhost’, port=8983): Max retries exceeded with url: /solr/admin/info/system?user.name=hue&doAs=maximuslee&wt=json (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7fb9b5e1b910>: Failed to establish a new connection: [Errno 111] Connection refused’,))

If Solr is not on the same machine as Hue and on port 8983, you need to configure Hue to point to the correct Solr server URL: https://docs.gethue.com/administrator/configuration/connectors/#apache-solr