Skip to content

new rancher-v2.6.2 service was not initialized properly #403

@OriHoch

Description

@OriHoch

reproduction steps

  • Using Kamatera console - create rancher v2.6.2 service
  • Access the server at the hostname (e.g. 111-222-333-444.cloud-xip.io)

expected

  • login page using username / password

actual

  • bootstrap page, asking for bootstrap password
  • after bootstrapping, the server itself was not initialized (e.g. no kamatera node driver / node templates)

debug

On SSH to the server the following was found:

~/2022-07-27.log

[2022-07-27 19:13:24] installer: Executing apps/rancher-v2.6.2-kamatera
[2022-07-27 19:13:24] rancher-v2.6.2-kamatera: checkTagExist: Tag temp/docker-5.20.10-offirepo.success exist. continuing.
[2022-07-27 19:13:24] rancher-v2.6.2-kamatera: Installing Jq
[2022-07-27 19:13:28] rancher-v2.6.2-kamatera: (Re)Generating dhparam key file
[2022-07-27 19:13:35] rancher-v2.6.2-kamatera: Creating Rancher admin
[2022-07-27 19:13:57] rancher-v2.6.2-kamatera: Waiting for Rancher to intialize
[2022-07-27 19:15:07] rancher-v2.6.2-kamatera: Getting Rancher Login Token
[2022-07-27 19:15:14] rancher-v2.6.2-kamatera: Changing Web Interface Password
[2022-07-27 19:15:20] rancher-v2.6.2-kamatera: Creating API key
[2022-07-27 19:15:22] rancher-v2.6.2-kamatera: Getting API Token
[2022-07-27 19:15:22] rancher-v2.6.2-kamatera: Listing available Node drivers
[2022-07-27 19:15:23] rancher-v2.6.2-kamatera: Deactivating foreign drivers
[2022-07-27 19:15:23] rancher-v2.6.2-kamatera: Adding Kamatera Docker Machine Driver
[2022-07-27 19:15:23] rancher-v2.6.2-kamatera: Listing available Kubernetes drivers
[2022-07-27 19:15:24] rancher-v2.6.2-kamatera: Deactivating foreign drivers
[2022-07-27 19:15:24] rancher-v2.6.2-kamatera: Creating Kamatera templates on Rancher
[2022-07-27 19:15:34] rancher-v2.6.2-kamatera: {"type":"error","status":"401","message":"Unauthorized 401: must authenticate"}
[2022-07-27 19:15:34] rancher-v2.6.2-kamatera: {"type":"error","status":"401","message":"Unauthorized 401: must authenticate"}
[2022-07-27 19:15:35] rancher-v2.6.2-kamatera: {"type":"error","status":"401","message":"Unauthorized 401: must authenticate"}
[2022-07-27 19:15:35] rancher-v2.6.2-kamatera: {"type":"error","status":"401","message":"Unauthorized 401: must authenticate"}
[2022-07-27 19:15:36] rancher-v2.6.2-kamatera: {"type":"error","status":"401","message":"Unauthorized 401: must authenticate"}
[2022-07-27 19:15:36] rancher-v2.6.2-kamatera: {"type":"error","status":"401","message":"Unauthorized 401: must authenticate"}
[2022-07-27 19:15:36] rancher-v2.6.2-kamatera: {"type":"error","status":"401","message":"Unauthorized 401: must authenticate"}
[2022-07-27 19:15:37] rancher-v2.6.2-kamatera: {"type":"error","status":"401","message":"Unauthorized 401: must authenticate"}
[2022-07-27 19:15:37] rancher-v2.6.2-kamatera: {"type":"error","status":"401","message":"Unauthorized 401: must authenticate"}
[2022-07-27 19:15:37] rancher-v2.6.2-kamatera: Tweaking NetFilter conntrack_max
[2022-07-27 19:15:38] rancher-v2.6.2-kamatera: Adding descriptions
[2022-07-27 19:15:38] rancher-v2.6.2-kamatera: Adding to system description file: Rancher Web UI: https://---.cloud-xip.io
[2022-07-27 19:15:38] rancher-v2.6.2-kamatera: Adding to system description file: Rancher Username: admin
[2022-07-27 19:15:38] rancher-v2.6.2-kamatera: Adding to system description file: Rancher Password: ---
[2022-07-27 19:15:38] rancher-v2.6.2-kamatera: Adding to system description file:  
[2022-07-27 19:15:38] installer: Done. (0)

~/guest.errlog

Status: Downloaded newer image for rancher/rancher:v2.6.2
curl: (7) Failed to connect to ---.cloud-xip.io port 443: Connection refused
curl: (7) Failed to connect to ---.cloud-xip.io port 443: Connection refused
curl: (7) Failed to connect to ---.cloud-xip.io port 443: Connection refused
curl: (7) Failed to connect to ---.cloud-xip.io port 443: Connection refused
curl: (7) Failed to connect to ---.cloud-xip.io port 443: Connection refused
curl: (7) Failed to connect to ---.cloud-xip.io port 443: Connection refused
curl: (7) Failed to connect to ---.cloud-xip.io port 443: Connection refused
curl: (7) Failed to connect to ---.cloud-xip.io port 443: Connection refused
curl: (7) Failed to connect to ---.cloud-xip.io port 443: Connection refused
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

dpkg-preconfigure: unable to re-open stdin: No such file or directory
include/startup.sh: line 210: [: too many arguments

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Manually run the installer script

Manually running the installer script worked, from here

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions