Comment 2 for bug 1847337

Revision history for this message
Jim Conner (snafuxnj) wrote : Re: MaaS 2.6.1 - Failed to retrieve curtin config: 'NoneType' object has no attribute 'url'

This is probably related and just noticed. When attempting to go to the settings page for MaaS the following occurs:

logs:
```
=> /var/log/maas/regiond.log <==
2019-10-08 22:41:51 regiond: [info] ::1 GET /MAAS/rpc/ HTTP/1.1 --> 200 OK (referrer: -; agent: provisioningserver.rpc.clusterservice.ClusterClientService)
2019-10-08 22:42:02 maasserver: [error] ################################ Exception: 'NoneType' object has no attribute 'url' ################################
2019-10-08 22:42:02 maasserver: [error] Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/maasserver/utils/views.py", line 277, in view_atomic_with_post_commit_savepoint
    return view_atomic(*args, **kwargs)
  File "/usr/lib/python3.6/contextlib.py", line 52, in inner
    return func(*args, **kwds)
  File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/maasserver/views/settings.py", line 277, in general
    "Configuration updated.")
  File "/usr/lib/python3/dist-packages/maasserver/views/__init__.py", line 215, in process_form
    form = form_class(prefix=prefix, **form_kwargs)
  File "/usr/lib/python3/dist-packages/maasserver/forms/__init__.py", line 1689, in __init__
    self._load_initials()
  File "/usr/lib/python3/dist-packages/maasserver/forms/__init__.py", line 1696, in _load_initials
    PackageRepository.get_ports_archive().url)
AttributeError: 'NoneType' object has no attribute 'url'

2019-10-08 22:42:02 regiond: [info] 105.210.153.254 GET /MAAS/settings/general/ HTTP/1.1 --> 500 INTERNAL_SERVER_ERROR (referrer: -; agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36)
2019-10-08 22:42:21 regiond: [info] ::1 GET /MAAS/rpc/ HTTP/1.1 --> 200 OK (referrer: -; agent: provisioningserver.rpc.clusterservice.ClusterClientService)
```

from URL: http://URL:5240/MAAS/settings/general/ and the page shows:
'NoneType' object has no attribute 'url'