Before deploying an Ubuntu Core 18 device, I sometimes disable ssh.
snap set core service.ssh.disable=true
However, now I noticed that after disabling ssh, an error is printed continuously on my serial console:
Traceback (most recent call last):
File “/usr/share/subiquity/console-conf-write-login-details”, line 25, in
File “/usr/share/subiquity/console_conf/controllers/identity.py”, line 184, in write_login_details_standalone
write_login_details(sys.stdout, owner[‘username’], ips)
File “/usr/share/subiquity/console_conf/controllers/identity.py”, line 153, in write_login_details
sshcommands=sshcommands, host_key_info=host_key_info(), tty_name=tty_name, first_ip=first_ip, version=version))
File “/usr/share/subiquity/console_conf/controllers/identity.py”, line 119, in host_key_info
longest_type = max([len(keytype) for keytype, _ in fingerprints])
ValueError: max() arg is an empty sequence
The error in itself does not seem to create any problems, but I’m worrying that this could perhaps fill the disk space (log files) on my devices, which are already deployed in the field.
Can the error message be ignored, or is it a problem that can cause my memory cards to become full?