Hi Federico,
the empty hostname is strange, but I notice it few month ago. I remember that the version that you can download from the main site contains "OpenWrt" as the hostname. But there is no default in the Image builder.
This is the app log:
[ERROR 2016-06-21 12:03:18,893] module: base, process: 18863, thread: 140639168608000
Internal Server Error: /controller/checksum/fc3a06bf-0b88-44c1-aade-e8e93758bac4/
Traceback (most recent call last):
File "/opt/openwisp2/env/lib/python3.4/site-packages/netjsonconfig/backends/openwrt/openwrt.py", line 133, in validate
validate(self.config, self.schema, format_checker=FormatChecker())
File "/opt/openwisp2/env/lib/python3.4/site-packages/jsonschema/validators.py", line 478, in validate
cls(schema, *args, **kwargs).validate(instance)
File "/opt/openwisp2/env/lib/python3.4/site-packages/jsonschema/validators.py", line 123, in validate
raise error
jsonschema.exceptions.ValidationError: '5E:48:00:60:E0:5E' is not a 'hostname'
Failed validating 'format' in schema['properties']['general']['properties']['hostname']:
{'format': 'hostname',
'maxLength': 63,
'minLength': 1,
'propertyOrder': 1,
'type': 'string'}
On instance['general']['hostname']:
'5E:48:00:60:E0:5E'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/openwisp2/env/lib/python3.4/site-packages/django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "/opt/openwisp2/env/lib/python3.4/site-packages/django/core/handlers/base.py", line 147, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/openwisp2/env/lib/python3.4/site-packages/django/views/decorators/http.py", line 42, in inner
return func(request, *args, **kwargs)
File "/opt/openwisp2/env/lib/python3.4/site-packages/django_netjsonconfig/controller/views.py", line 20, in checksum
return ControllerResponse(config.checksum, content_type='text/plain')
File "/opt/openwisp2/env/lib/python3.4/site-packages/django_netjsonconfig/models/config.py", line 147, in checksum
config = self.generate().getvalue()
File "/opt/openwisp2/env/lib/python3.4/site-packages/django_netjsonconfig/models/config.py", line 142, in generate
return self.backend_instance.generate()
File "/opt/openwisp2/env/lib/python3.4/site-packages/netjsonconfig/backends/openwrt/openwrt.py", line 170, in generate
self._generate_contents(tar)
File "/opt/openwisp2/env/lib/python3.4/site-packages/netjsonconfig/backends/openwrt/openwrt.py", line 192, in _generate_contents
uci = self.render(files=False)
File "/opt/openwisp2/env/lib/python3.4/site-packages/netjsonconfig/backends/openwrt/openwrt.py", line 94, in render
self.validate()
File "/opt/openwisp2/env/lib/python3.4/site-packages/netjsonconfig/backends/openwrt/openwrt.py", line 135, in validate
raise ValidationError(e)
netjsonconfig.exceptions.ValidationError: '5E:48:00:60:E0:5E' is not a 'hostname'
Failed validating 'format' in schema['properties']['general']['properties']['hostname']:
{'format': 'hostname',
'maxLength': 63,
'minLength': 1,
'propertyOrder': 1,
'type': 'string'}
On instance['general']['hostname']:
'5E:48:00:60:E0:5E'