You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have installed cinc-client to my local machine and created a virtual machine. Its name is AppcircleVM.local and I can ssh to it.
I tried different methods to bootstrap but they all failed. I will appreciate if you can help me out.
I tried the below command
Method 1
knife zero bootstrap AppcircleVM.local --sudo --alter-project cinc -N my-vm
It shows the below log
WARNING: No knife configuration file found. See https://docs.chef.io/config_rb/ for details.
WARN: No cookbooks directory found at or above current directory. Assuming /Users/mustafa/Developer/chef-repo.
WARN: Deprecation CHEF-18 from /Users/mustafa/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/knife-17.10.0/lib/chef/knife.rb:493:in `run_with_pretty_exceptions'
Starting local-mode server in deprecated socket mode
Please see https://docs.chef.io/deprecations_local_listen/ for further details and information on how to correct this problem.
Connecting to AppcircleVM.local using ssh
WARNING: Failed to authenticate to AppcircleVM.local - trying password auth
Enter password for @AppcircleVM.local:
Connecting to AppcircleVM.local using ssh
The authenticity of host 'AppcircleVM.local (fe80::8cb:4dc9:1953:87e7%bridge100)' can't be established.
fingerprint is SHA256:0WtzGSA7PPzcaldoKsfcsX6ETrhCqUmRD5Jsp7fC+4A.
Are you sure you want to continue connecting
? (Y/N) y
Connecting to AppcircleVM.local using ssh
It just hangs and cannot connect. If I give a username and password
Method 2
knife zero bootstrap AppcircleVM.local --sudo --alter-project cinc -N my-vm -U mustafa -P asdf
This time it gives this error
WARNING: No knife configuration file found. See https://docs.chef.io/config_rb/ for details.
WARN: No cookbooks directory found at or above current directory. Assuming /Users/mustafa/Developer/chef-repo.
WARN: Deprecation CHEF-18 from /Users/mustafa/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/knife-17.10.0/lib/chef/knife.rb:493:in `run_with_pretty_exceptions'
Starting local-mode server in deprecated socket mode
Please see https://docs.chef.io/deprecations_local_listen/ for further details and information on how to correct this problem.
Connecting to AppcircleVM.local using ssh
The authenticity of host 'AppcircleVM.local (fe80::8cb:4dc9:1953:87e7%bridge100)' can't be established.
fingerprint is SHA256:0WtzGSA7PPzcaldoKsfcsX6ETrhCqUmRD5Jsp7fC+4A.
Are you sure you want to continue connecting
? (Y/N) Y
Connecting to AppcircleVM.local using ssh
ERROR: Sudo password is required for this operation. Please enter password using -P or --ssh-password option
WARNING: Performing legacy client registration with the validation key at ...
WARNING: Remove the key file or remove the 'validation_key' configuration option from your config.rb (knife.rb) to use more secure user credentials for client registration.
ERROR: Train::UserError: Sudo failed: Sudo cannot prompt for password because there is no terminal. Please provide the sudo password directly
Method 3
knife zero bootstrap AppcircleVM.local --alter-project cinc -N my-vm -U mustafa -P asdf
If I don't use sudo, it continues for a while but it fails during the installation step.
WARNING: No knife configuration file found. See https://docs.chef.io/config_rb/ for details.
WARN: No cookbooks directory found at or above current directory. Assuming /Users/mustafa/Developer/chef-repo.
WARN: Deprecation CHEF-18 from /Users/mustafa/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/knife-17.10.0/lib/chef/knife.rb:493:in `run_with_pretty_exceptions'
Starting local-mode server in deprecated socket mode
Please see https://docs.chef.io/deprecations_local_listen/ for further details and information on how to correct this problem.
Connecting to AppcircleVM.local using ssh
The authenticity of host 'AppcircleVM.local (fe80::8cb:4dc9:1953:87e7%bridge100)' can't be established.
fingerprint is SHA256:0WtzGSA7PPzcaldoKsfcsX6ETrhCqUmRD5Jsp7fC+4A.
Are you sure you want to continue connecting
? (Y/N) Y
Connecting to AppcircleVM.local using ssh
WARNING: Performing legacy client registration with the validation key at ...
WARNING: Remove the key file or remove the 'validation_key' configuration option from your config.rb (knife.rb) to use more secure user credentials for client registration.
Bootstrapping AppcircleVM.local
[AppcircleVM.local] -----> Installing Chef Omnibus (stable/17)
[AppcircleVM.local] downloading https://omnitruck.cinc.sh/install.sh
[AppcircleVM.local] to file /var/folders/v3/rjt7qy1d2tj6ch9g1z03f5l00000gn/T//install.sh.1557/install.sh
[AppcircleVM.local] trying curl...
[AppcircleVM.local] mac_os_x 12.4 aarch64
[AppcircleVM.local] Getting information for chef stable 17 for mac_os_x...
[AppcircleVM.local] downloading https://omnitruck.cinc.sh/stable/chef/metadata?v=17&p=mac_os_x&pv=12.4&m=aarch64
to file /var/folders/v3/rjt7qy1d2tj6ch9g1z03f5l00000gn/T//install.sh.1562/metadata.txt
[AppcircleVM.local] trying curl...
[AppcircleVM.local] sha1 9b7991052e2e1de1a992d4f5c200436908f26dc6
sha256 6b0995690524282214e1387fccb51b8f2ea0019024ef881e6751b36da976794d
url http://packages.cinc.sh/files/stable/cinc/17.10.0/mac_os_x/11/cinc-17.10.0-1.arm64.dmg
version 17.10.0
[AppcircleVM.local]
[AppcircleVM.local] downloaded metadata file looks valid...
[AppcircleVM.local] downloading http://packages.cinc.sh/files/stable/cinc/17.10.0/mac_os_x/11/cinc-17.10.0-1.arm64.dmg
to file /var/folders/v3/rjt7qy1d2tj6ch9g1z03f5l00000gn/T//install.sh.1562/cinc-17.10.0-1.arm64.dmg
[AppcircleVM.local] trying curl...
[AppcircleVM.local] Comparing checksum with shasum...
[AppcircleVM.local] Installing chef 17
installing dmg file...
[AppcircleVM.local] Checksumming Protective Master Boot Record (MBR : 0)…
[AppcircleVM.local] Protective Master Boot Record (MBR :: verified CRC32 $A63E199D
[AppcircleVM.local] Checksumming GPT Header (Primary GPT Header : 1)…
[AppcircleVM.local] GPT Header (Primary GPT Header : 1): verified CRC32 $443B46BC
[AppcircleVM.local] Checksumming GPT Partition Data (Primary GPT Table : 2)…
[AppcircleVM.local] GPT Partition Data (Primary GPT Tabl: verified CRC32 $D491FC35
[AppcircleVM.local] Checksumming (Apple_Free : 3)…
[AppcircleVM.local] (Apple_Free : 3): verified CRC32 $00000000
[AppcircleVM.local] Checksumming disk image (Apple_HFS : 4)…
[AppcircleVM.local] disk image (Apple_HFS : 4): verified CRC32 $06BA4931
[AppcircleVM.local] Checksumming (Apple_Free : 5)…
[AppcircleVM.local] (Apple_Free : 5): verified CRC32 $00000000
[AppcircleVM.local] Checksumming GPT Partition Data (Backup GPT Table : 6)…
[AppcircleVM.local] GPT Partition Data (Backup GPT Table: verified CRC32 $D491FC35
[AppcircleVM.local] Checksumming GPT Header (Backup GPT Header : 7)…
[AppcircleVM.local] GPT Header (Backup GPT Header : 7): verified CRC32 $DBF61912
[AppcircleVM.local] verified CRC32 $BB1FF8B0
[AppcircleVM.local] /dev/disk4 GUID_partition_scheme
/dev/disk4s1 Apple_HFS /Volumes/cinc_project
[AppcircleVM.local] installer: Must be run as root to install this package.
[AppcircleVM.local] "disk4" ejected.
[AppcircleVM.local] mkdir: /etc/chef: Permission denied
[AppcircleVM.local] /tmp/chef_wRBL1J/bootstrap.sh: line 182: /etc/chef/validation.pem: No such file or directory
ERROR: The following error occurred on AppcircleVM.local:
ERROR: -----> Installing Chef Omnibus (stable/17)
downloading https://omnitruck.cinc.sh/install.sh
to file /var/folders/v3/rjt7qy1d2tj6ch9g1z03f5l00000gn/T//install.sh.1557/install.sh
trying curl...
mac_os_x 12.4 aarch64
Getting information for chef stable 17 for mac_os_x...
downloading https://omnitruck.cinc.sh/stable/chef/metadata?v=17&p=mac_os_x&pv=12.4&m=aarch64
to file /var/folders/v3/rjt7qy1d2tj6ch9g1z03f5l00000gn/T//install.sh.1562/metadata.txt
trying curl...
sha1 9b7991052e2e1de1a992d4f5c200436908f26dc6
sha256 6b0995690524282214e1387fccb51b8f2ea0019024ef881e6751b36da976794d
url http://packages.cinc.sh/files/stable/cinc/17.10.0/mac_os_x/11/cinc-17.10.0-1.arm64.dmg
version 17.10.0
downloaded metadata file looks valid...
downloading http://packages.cinc.sh/files/stable/cinc/17.10.0/mac_os_x/11/cinc-17.10.0-1.arm64.dmg
to file /var/folders/v3/rjt7qy1d2tj6ch9g1z03f5l00000gn/T//install.sh.1562/cinc-17.10.0-1.arm64.dmg
trying curl...
Comparing checksum with shasum...
Installing chef 17
installing dmg file...
Checksumming Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: verified CRC32 $A63E199D
Checksumming GPT Header (Primary GPT Header : 1)…
GPT Header (Primary GPT Header : 1): verified CRC32 $443B46BC
Checksumming GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: verified CRC32 $D491FC35
Checksumming (Apple_Free : 3)…
(Apple_Free : 3): verified CRC32 $00000000
Checksumming disk image (Apple_HFS : 4)…
disk image (Apple_HFS : 4): verified CRC32 $06BA4931
Checksumming (Apple_Free : 5)…
(Apple_Free : 5): verified CRC32 $00000000
Checksumming GPT Partition Data (Backup GPT Table : 6)…
GPT Partition Data (Backup GPT Table: verified CRC32 $D491FC35
Checksumming GPT Header (Backup GPT Header : 7)…
GPT Header (Backup GPT Header : 7): verified CRC32 $DBF61912
verified CRC32 $BB1FF8B0
/dev/disk4 GUID_partition_scheme
/dev/disk4s1 Apple_HFS /Volumes/cinc_project
installer: Must be run as root to install this package.
"disk4" ejected.
mkdir: /etc/chef: Permission denied
/tmp/chef_wRBL1J/bootstrap.sh: line 182: /etc/chef/validation.pem: No such file or directory
The text was updated successfully, but these errors were encountered:
Hi,
I have installed cinc-client to my local machine and created a virtual machine. Its name is AppcircleVM.local and I can ssh to it.
I tried different methods to bootstrap but they all failed. I will appreciate if you can help me out.
I tried the below command
Method 1
It shows the below log
It just hangs and cannot connect. If I give a username and password
Method 2
This time it gives this error
Method 3
If I don't use sudo, it continues for a while but it fails during the installation step.
The text was updated successfully, but these errors were encountered: