help with autoinstall error 20.04 LTS
Jerry Geis
jerry.geis at gmail.com
Mon Apr 5 17:25:04 UTC 2021
On Sat, Apr 3, 2021 at 5:30 AM Tom H <tomh0665 at gmail.com> wrote:
> On Wed, Mar 31, 2021 at 8:49 PM Jerry Geis <jerry.geis at gmail.com> wrote:
> >
> > I get this error:
> >
> > {'eno1': {'dhcp4': True, 'dhcp-identifier': 'mac', 'critical': True,
> 'nameservers': {'addresses': ['192.168.1.14']}}, 'zz-all-en': {'match':
> {'name': 'en*'}, 'dhcp4': True}, 'zz-all-eth': {'match': {'name': 'eth*'},
> 'dhcp4': True}}
> > 2021-03-31 18:23:36,370 - netplan.py[DEBUG]: V2 to V2 passthrough
> > 2021-03-31 18:23:36,371 - util.py[DEBUG]: Writing to
> /etc/netplan/50-cloud-init.yaml - wb: [644] 710 bytes
> > 2021-03-31 18:23:36,372 - subp.py[DEBUG]: Running command ['netplan',
> 'generate'] with allowed return codes [0] (shell=False, capture=True)
> > 2021-03-31 18:23:36,581 - subp.py[DEBUG]: Running command ['udevadm',
> 'test-builtin', 'net_setup_link', '/sys/class/net/eno1'] with allowed
> return codes [0] (shell=False, capture=True)
> > 2021-03-31 18:23:36,590 - subp.py[DEBUG]: Running command ['udevadm',
> 'test-builtin', 'net_setup_link', '/sys/class/net/lo'] with allowed return
> codes [0] (shell=False, capture=True)
> > 2021-03-31 18:23:36,594 - subp.py[DEBUG]: Running command ['udevadm',
> 'test-builtin', 'net_setup_link', '/sys/class/net/wlp2s0'] with allowed
> return codes [0] (shell=False, capture=True)
> > 2021-03-31 18:23:36,598 - main.py[DEBUG]: [local] Exiting without
> datasource
> > 2021-03-31 18:23:36,599 - atomic_helper.py[DEBUG]: Atomically writing to
> file /var/lib/cloud/data/status.json (via temporary file
> /var/lib/cloud/data/tmpuol_n60q) - w: [644] 474 bytes/chars
> > 2021-03-31 18:23:36,599 - util.py[DEBUG]: Reading from /proc/uptime
> (quiet=False)
> > 2021-03-31 18:23:36,599 - util.py[DEBUG]: Read 13 bytes from /proc/uptime
> > 2021-03-31 18:23:36,599 - util.py[DEBUG]: cloud-init mode 'init' took
> 0.564 seconds (0.56)
> > 2021-03-31 18:23:36,599 - handlers.py[DEBUG]: finish: init-local:
> SUCCESS: searching for local datasources
> > 2021-03-31 18:24:03,342 - util.py[DEBUG]: Cloud-init v.
> 20.4.1-0ubuntu1~20.04.1 running 'modules:config' at Wed, 31 Mar 2021
> 18:24:03 +0000. Up 62.39 seconds.
> > 2021-03-31 18:24:03,355 - stages.py[DEBUG]: Using distro class <class
> 'cloudinit.distros.ubuntu.Distro'>
> > 2021-03-31 18:24:03,355 - stages.py[DEBUG]: Running module ssh-import-id
> (<module 'cloudinit.config.cc_ssh_import_id' from
> '/usr/lib/python3/dist-packages/cloudinit/config/cc_ssh_import_id.py'>)
> with frequency once-per-instance
> > 2021-03-31 18:24:03,356 - handlers.py[DEBUG]: start:
> modules-config/config-ssh-import-id: running config-ssh-import-id with
> frequency once-per-instance
> > 2021-03-31 18:24:03,356 - util.py[DEBUG]: Writing to
> /var/lib/cloud/instances/iid-datasource-none/sem/config_ssh_import_id - wb:
> [644] 25 bytes
> > 2021-03-31 18:24:03,356 - helpers.py[DEBUG]: Running
> config-ssh-import-id using lock (<FileLock using file
> '/var/lib/cloud/instances/iid-datasource-none/sem/config_ssh_import_id'>)
> > 2021-03-31 18:24:03,357 - handlers.py[DEBUG]: finish:
> modules-config/config-ssh-import-id: SUCCESS: config-ssh-import-id ran
> successfully
> > 2021-03-31 18:24:03,357 - stages.py[DEBUG]: Running module set-passwords
> (<module 'cloudinit.config.cc_set_passwords' from
> '/usr/lib/python3/dist-packages/cloudinit/config/cc_set_passwords.py'>)
> with frequency once-per-instance
> > 2021-03-31 18:24:03,357 - handlers.py[DEBUG]: start:
> modules-config/config-set-passwords: running config-set-passwords with
> frequency once-per-instance
> > 2021-03-31 18:24:03,357 - util.py[DEBUG]: Writing to
> /var/lib/cloud/instances/iid-datasource-none/sem/config_set_passwords - wb:
> [644] 25 bytes
> > 2021-03-31 18:24:03,357 - helpers.py[DEBUG]: Running
> config-set-passwords using lock (<FileLock using file
> '/var/lib/cloud/instances/iid-datasource-none/sem/config_set_passwords'>)
> > 2021-03-31 18:24:03,357 - cc_set_passwords.py[DEBUG]: Handling input for
> chpasswd as list.
> > 2021-03-31 18:24:03,358 - cc_set_passwords.py[DEBUG]: Changing password
> for ['installer']:
> > 2021-03-31 18:24:03,358 - subp.py[DEBUG]: Running command ['chpasswd']
> with allowed return codes [0] (shell=False, capture=True)
> > 2021-03-31 18:24:03,404 - util.py[WARNING]: Failed to set passwords with
> chpasswd for ['installer']
> > 2021-03-31 18:24:03,404 - util.py[DEBUG]: Failed to set passwords with
> chpasswd for ['installer']
> > Traceback (most recent call last):
> > File
> "/usr/lib/python3/dist-packages/cloudinit/config/cc_set_passwords.py", line
> 197, in handle
> > chpasswd(cloud.distro, ch_in)
> > File
> "/usr/lib/python3/dist-packages/cloudinit/config/cc_set_passwords.py", line
> 251, in chpasswd
> > subp.subp(cmd, plist_in)
> > File "/usr/lib/python3/dist-packages/cloudinit/subp.py", line 293, in
> subp
> > raise ProcessExecutionError(stdout=out, stderr=err,
> > cloudinit.subp.ProcessExecutionError: Unexpected error while running
> command.
> > Command: ['chpasswd']
> > Exit code: 1
> > Reason: -
> > Stdout:
> > Stderr: chpasswd: (user installer) pam_chauthtok() failed, error:
> > Authentication token manipulation error
> > chpasswd: (line 1, user installer) password not changed
> > 2021-03-31 18:24:03,410 - util.py[DEBUG]: Reading from
> /etc/ssh/sshd_config (quiet=False)
> > 2021-03-31 18:24:03,411 - util.py[DEBUG]: Read 3289 bytes from
> /etc/ssh/sshd_config
> > 2021-03-31 18:24:03,411 - ssh_util.py[DEBUG]: line 124: option
> PasswordAuthentication added with yes
> > 2021-03-31 18:24:03,411 - util.py[DEBUG]: Writing to
> /etc/ssh/sshd_config - wb: [644] 3316 bytes
> > 2021-03-31 18:24:03,412 - subp.py[DEBUG]: Running command ['service',
> 'ssh', 'restart'] with allowed return codes [0] (shell=False, capture=True)
> > 2021-03-31 18:24:03,471 - cc_set_passwords.py[DEBUG]: Restarted the SSH
> daemon.
> > 2021-03-31 18:24:03,472 - cc_set_passwords.py[DEBUG]: 1 errors occured,
> re-raising the last one
> > 2021-03-31 18:24:03,472 - handlers.py[DEBUG]: finish:
> modules-config/config-set-passwords: FAIL: running config-set-passwords
> with frequency once-per-instance
> > 2021-03-31 18:24:03,472 - util.py[WARNING]: Running module set-passwords
> (<module 'cloudinit.config.cc_set_passwords' from
> '/usr/lib/python3/dist-packages/cloudinit/config/cc_set_passwords.py'>)
> failed
> > 2021-03-31 18:24:03,473 - util.py[DEBUG]: Running module set-passwords
> (<module 'cloudinit.config.cc_set_passwords' from
> '/usr/lib/python3/dist-packages/cloudinit/config/cc_set_passwords.py'>)
> failed
> > Traceback (most recent call last):
> > File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 848,
> in _run_modules
> > ran, _r = cc.run(run_name, mod.handle, func_args,
> > File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 54, in
> run
> > return self._runners.run(name, functor, args, freq, clear_on_fail)
> > File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 185,
> in run
> > results = functor(*args)
> > File
> "/usr/lib/python3/dist-packages/cloudinit/config/cc_set_passwords.py", line
> 237, in handle
> > raise errors[-1]
> > File
> "/usr/lib/python3/dist-packages/cloudinit/config/cc_set_passwords.py", line
> 197, in handle
> > chpasswd(cloud.distro, ch_in)
> > File
> "/usr/lib/python3/dist-packages/cloudinit/config/cc_set_passwords.py", line
> 251, in chpasswd
> > subp.subp(cmd, plist_in)
> > File "/usr/lib/python3/dist-packages/cloudinit/subp.py", line 293, in
> subp
> > raise ProcessExecutionError(stdout=out, stderr=err,
> > cloudinit.subp.ProcessExecutionError: Unexpected error while running
> command.
> > Command: ['chpasswd']
> > Exit code: 1
> > Reason: -
> > Stdout:
> > Stderr: chpasswd: (user installer) pam_chauthtok() failed, error:
> > Authentication token manipulation error
> > chpasswd: (line 1, user installer) password not changed
> > 2021-03-31 18:24:03,483 - stages.py[DEBUG]: Running module timezone
> (<module 'cloudinit.config.cc_timezone' from
> '/usr/lib/python3/dist-packages/cloudinit/config/cc_timezone.py'>) with
> frequency once-per-instance
> > 2021-03-31 18:24:03,484 - handlers.py[DEBUG]: start:
> modules-config/config-timezone: running config-timezone with frequency
> once-per-instance
> > 2021-03-31 18:24:03,484 - util.py[DEBUG]: Writing to
> /var/lib/cloud/instances/iid-datasource-none/sem/config_timezone - wb:
> [644] 24 bytes
> > 2021-03-31 18:24:03,485 - helpers.py[DEBUG]: Running config-timezone
> using lock (<FileLock using file
> '/var/lib/cloud/instances/iid-datasource-none/sem/config_timezone'>)
> > 2021-03-31 18:24:03,485 - cc_timezone.py[DEBUG]: Skipping module named
> timezone, no 'timezone' specified
> > 2021-03-31 18:24:03,485 - handlers.py[DEBUG]: finish:
> modules-config/config-timezone: SUCCESS: config-timezone ran successfully
> > 2021-03-31 18:24:03,485 - stages.py[DEBUG]: Running module
> disable-ec2-metadata (<module 'cloudinit.config.cc_disable_ec2_metadata'
> from
> '/usr/lib/python3/dist-packages/cloudinit/config/cc_disable_ec2_metadata.py'>)
> with frequency always
> > 2021-03-31 18:24:03,486 - handlers.py[DEBUG]: start:
> modules-config/config-disable-ec2-metadata: running
> config-disable-ec2-metadata with frequency always
> > 2021-03-31 18:24:03,486 - helpers.py[DEBUG]: Running
> config-disable-ec2-metadata using lock (<cloudinit.helpers.DummyLock object
> at 0x7f07765811c0>)
> > 2021-03-31 18:24:03,486 - cc_disable_ec2_metadata.py[DEBUG]: Skipping
> module named disable-ec2-metadata, disabling the ec2 route not enabled
> > 2021-03-31 18:24:03,486 - handlers.py[DEBUG]: finish:
> modules-config/config-disable-ec2-metadata: SUCCESS:
> config-disable-ec2-metadata ran successfully
> > 2021-03-31 18:24:03,486 - stages.py[DEBUG]: Running module runcmd
> (<module 'cloudinit.config.cc_runcmd' from
> '/usr/lib/python3/dist-packages/cloudinit/config/cc_runcmd.py'>) with
> frequency once-per-instance
> > 2021-03-31 18:24:03,487 - handlers.py[DEBUG]: start:
> modules-config/config-runcmd: running config-runcmd with frequency
> once-per-instance
> > 2021-03-31 18:24:03,487 - util.py[DEBUG]: Writing to
> /var/lib/cloud/instances/iid-datasource-none/sem/config_runcmd - wb: [644]
> 25 bytes
> > 2021-03-31 18:24:03,487 - helpers.py[DEBUG]: Running config-runcmd using
> lock (<FileLock using file
> '/var/lib/cloud/instances/iid-datasource-none/sem/config_runcmd'>)
> > 2021-03-31 18:24:03,487 - cc_runcmd.py[DEBUG]: Skipping module named
> runcmd, no 'runcmd' key in configuration
> > 2021-03-31 18:24:03,488 - handlers.py[DEBUG]: finish:
> modules-config/config-runcmd: SUCCESS: config-runcmd ran successfully
> > 2021-03-31 18:24:03,488 - main.py[DEBUG]: Ran 5 modules with 1 failures
> > 2021-03-31 18:24:03,488 - atomic_helper.py[DEBUG]: Atomically writing to
> file /var/lib/cloud/data/status.json (via temporary file
> /var/lib/cloud/data/tmpxmnec84u) - w: [644] 858 bytes/chars
> > 2021-03-31 18:24:03,489 - util.py[DEBUG]: Reading from /proc/uptime
> (quiet=False)
> > 2021-03-31 18:24:03,489 - util.py[DEBUG]: Read 13 bytes from /proc/uptime
> > 2021-03-31 18:24:03,489 - util.py[DEBUG]: cloud-init mode 'modules' took
> 0.263 seconds (0.26)
> > 2021-03-31 18:24:03,489 - handlers.py[DEBUG]: finish: modules-config:
> FAIL: running modules for config
> > 2021-03-31 18:24:04,193 - util.py[DEBUG]: Cloud-init v.
> 20.4.1-0ubuntu1~20.04.1 running 'modules:final' at Wed, 31 Mar 2021
> 18:24:04 +0000. Up 63.27 seconds.
> > 2021-03-31 18:24:04,202 - stages.py[DEBUG]: Using distro class <class
> 'cloudinit.distros.ubuntu.Distro'>
> > 2021-03-31 18:24:04,203 - stages.py[DEBUG]: Running module
> scripts-per-once (<module 'cloudinit.config.cc_scripts_per_once' from
> '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_per_once.py'>)
> with frequency once
> > 2021-03-31 18:24:04,203 - handlers.py[DEBUG]: start:
> modules-final/config-scripts-per-once: running config-scripts-per-once with
> frequency once
> > 2021-03-31 18:24:04,203 - util.py[DEBUG]: Writing to
> /var/lib/cloud/sem/config_scripts_per_once.once - wb: [644] 24 bytes
> > 2021-03-31 18:24:04,204 - helpers.py[DEBUG]: Running
> config-scripts-per-once using lock (<FileLock using file
> '/var/lib/cloud/sem/config_scripts_per_once.once'>)
> > 2021-03-31 18:24:04,204 - handlers.py[DEBUG]: finish:
> modules-final/config-scripts-per-once: SUCCESS: config-scripts-per-once ran
> successfully
> > 2021-03-31 18:24:04,204 - stages.py[DEBUG]: Running module scripts-user
> (<module 'cloudinit.config.cc_scripts_user' from
> '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py'>) with
> frequency once-per-instance
> > 2021-03-31 18:24:04,204 - handlers.py[DEBUG]: start:
> modules-final/config-scripts-user: running config-scripts-user with
> frequency once-per-instance
> > 2021-03-31 18:24:04,204 - util.py[DEBUG]: Writing to
> /var/lib/cloud/instances/iid-datasource-none/sem/config_scripts_user - wb:
> [644] 25 bytes
> > 2021-03-31 18:24:04,204 - helpers.py[DEBUG]: Running config-scripts-user
> using lock (<FileLock using file
> '/var/lib/cloud/instances/iid-datasource-none/sem/config_scripts_user'>)
> > 2021-03-31 18:24:04,205 - handlers.py[DEBUG]: finish:
> modules-final/config-scripts-user: SUCCESS: config-scripts-user ran
> successfully
> > 2021-03-31 18:24:04,205 - stages.py[DEBUG]: Running module
> ssh-authkey-fingerprints (<module
> 'cloudinit.config.cc_ssh_authkey_fingerprints' from
> '/usr/lib/python3/dist-packages/cloudinit/config/cc_ssh_authkey_fingerprints.py'>)
> with frequency once-per-instance
> > 2021-03-31 18:24:04,205 - handlers.py[DEBUG]: start:
> modules-final/config-ssh-authkey-fingerprints: running
> config-ssh-authkey-fingerprints with frequency once-per-instance
> > 2021-03-31 18:24:04,205 - util.py[DEBUG]: Writing to
> /var/lib/cloud/instances/iid-datasource-none/sem/config_ssh_authkey_fingerprints
> - wb: [644] 24 bytes
> > 2021-03-31 18:24:04,205 - helpers.py[DEBUG]: Running
> config-ssh-authkey-fingerprints using lock (<FileLock using file
> '/var/lib/cloud/instances/iid-datasource-none/sem/config_ssh_authkey_fingerprints'>)
> > 2021-03-31 18:24:04,206 - handlers.py[DEBUG]: finish:
> modules-final/config-ssh-authkey-fingerprints: FAIL: running
> config-ssh-authkey-fingerprints with frequency once-per-instance
> > 2021-03-31 18:24:04,207 - util.py[WARNING]: Running module
> ssh-authkey-fingerprints (<module
> 'cloudinit.config.cc_ssh_authkey_fingerprints' from
> '/usr/lib/python3/dist-packages/cloudinit/config/cc_ssh_authkey_fingerprints.py'>)
> failed
> > 2021-03-31 18:24:04,207 - util.py[DEBUG]: Running module
> ssh-authkey-fingerprints (<module
> 'cloudinit.config.cc_ssh_authkey_fingerprints' from
> '/usr/lib/python3/dist-packages/cloudinit/config/cc_ssh_authkey_fingerprints.py'>)
> failed
> > Traceback (most recent call last):
> > File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 848,
> in _run_modules
> > ran, _r = cc.run(run_name, mod.handle, func_args,
> > File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 54, in
> run
> > return self._runners.run(name, functor, args, freq, clear_on_fail)
> > File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 185,
> in run
> > results = functor(*args)
> > File
> "/usr/lib/python3/dist-packages/cloudinit/config/cc_ssh_authkey_fingerprints.py",
> line 107, in handle
> > (key_fn, key_entries) = ssh_util.extract_authorized_keys(user_name)
> > File "/usr/lib/python3/dist-packages/cloudinit/ssh_util.py", line 253,
> in extract_authorized_keys
> > (ssh_dir, pw_ent) = users_ssh_info(username)
> > File "/usr/lib/python3/dist-packages/cloudinit/ssh_util.py", line 226,
> in users_ssh_info
> > pw_ent = pwd.getpwnam(username)
> > KeyError: "getpwnam(): name not found: 'installer'"
> >
> > how do I disable this function/feature - as I dont need an
> > 'installer' or why am I getting it - and how to get past it. The
> > autoinstall stops then from the error and jumps into the Welcome
> > screen to manually install.
> >
> > I do have this in my autoinstall file:
> > ssh:
> > install-server: yes
> > allow-pw: no
> >
> > changing yes to no - made no difference.
>
> Maybe the version of the installer that you're using's buggy.
>
> Have you tried
>
> refresh-installer:
> update: yes
>
> or even
>
> refresh-installer:
> channel: edge
> update: yes
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Hi Tom - I tried both of those and get the same error.
Thanks,
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210405/64cc4144/attachment.html>
More information about the ubuntu-users
mailing list