codership / galera-manager-support

Galera Manager Support Repository
8 stars 2 forks source link

check server access check fails with invalid command type: box_include #41

Closed justnx closed 2 years ago

justnx commented 2 years ago

GMD-Version: Galera-Manager 1.7.2 OS: Debian GNU/Linux 11 (bullseye)

When trying to add a Node to user-provided or monitor existing cluster, the SSH check fails with:

failed to execute info script: failed to load executor:
invalid command type: "box_include"

Exception:

{
  "channel-type": "app",
  "file": "/go/pkg/internal/sshcmd/host.go:254",
  "func": "github.com/codership/galera-manager/pkg/internal/sshcmd.(*Host).RunConn",
  "host-name": "galera-1",
  "level": "info",
  "msg": "root@galera-1# echo -n \"test\"",
  "time": "2022-09-27T11:48:58+02:00"
} {
  "channel-type": "stdout",
  "file": "/go/pkg/log/iolog.go:37",
  "func": "github.com/codership/galera-manager/pkg/log.(*IOLog).Write",
  "host-name": "galera-1",
  "level": "info",
  "msg": "test",
  "time": "2022-09-27T11:48:58+02:00"
} {
  "channel-type": "app",
  "error": {
    "msg": "failed to execute info script",
    "stackTrace": [
      "github.com/codership/galera-manager/pkg/internal/mgmt.(*Checker).CheckServerAccess.func1\n\t/go/pkg/internal/mgmt/checker.go:127",
      "github.com/codership/galera-manager/pkg/internal/jobs.(*Processor).Execute.func1\n\t/go/pkg/internal/jobs/processor.go:90",
      "runtime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1594"
    ],
    "wrapped": {
      "msg": "failed to load executor",
      "stackTrace": [
        "github.com/codership/galera-manager/pkg/internal/sshcmd.(*Host).RunScriptWithConnNoDB\n\t/go/pkg/internal/sshcmd/executor.go:150",
        "github.com/codership/galera-manager/pkg/internal/mgmt.(*Checker).CheckServerAccess.func1\n\t/go/pkg/internal/mgmt/checker.go:118",
        "github.com/codership/galera-manager/pkg/internal/jobs.(*Processor).Execute.func1\n\t/go/pkg/internal/jobs/processor.go:90",
        "runtime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1594"
      ],
      "wrapped": {
        "msg": "invalid command type: \"box_include\"",
        "stackTrace": [
          "gitlab.galeracluster.com/lib/executor.(*Executor).AppendScenario\n\t/go/.go/pkg/mod/gitlab.galeracluster.com/lib/executor@v1.22.0/executor.go:318",
          "gitlab.galeracluster.com/lib/executor.NewWithScenario\n\t/go/.go/pkg/mod/gitlab.galeracluster.com/lib/executor@v1.22.0/executor.go:181",
          "github.com/codership/galera-manager/pkg/internal/sshcmd.(*Host).RunScriptWithConnNoDB\n\t/go/pkg/internal/sshcmd/executor.go:138",
          "github.com/codership/galera-manager/pkg/internal/mgmt.(*Checker).CheckServerAccess.func1\n\t/go/pkg/internal/mgmt/checker.go:118",
          "github.com/codership/galera-manager/pkg/internal/jobs.(*Processor).Execute.func1\n\t/go/pkg/internal/jobs/processor.go:90",
          "runtime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1594"
        ]
      }
    },
    "fields": {
      "db_engine": "",
      "system": "debian:11"
    }
  },
  "file": "/go/pkg/internal/mgmt/checker.go:133",
  "func": "github.com/codership/galera-manager/pkg/internal/mgmt.(*Checker).CheckServerAccess.func1",
  "host-name": "galera-1",
  "level": "error",
  "msg": "failed to execute info script",
  "time": "2022-09-27T11:48:58+02:00"
} {
  "channel-type": "app",
  "file": "/go/pkg/internal/sshcmd/host.go:254",
  "func": "github.com/codership/galera-manager/pkg/internal/sshcmd.(*Host).RunConn",
  "host-name": "galera-1",
  "level": "info",
  "msg": "root@galera-1# echo -n \"test\"",
  "time": "2022-09-27T11:49:52+02:00"
} {
  "channel-type": "stdout",
  "file": "/go/pkg/log/iolog.go:37",
  "func": "github.com/codership/galera-manager/pkg/log.(*IOLog).Write",
  "host-name": "galera-1",
  "level": "info",
  "msg": "test",
  "time": "2022-09-27T11:49:52+02:00"
}

From the logs: Sep 27, 2022 11:49:53 | info | root@galera-1# echo -n "test" Sep 27, 2022 11:49:53 | info | test Sep 27, 2022 11:49:53 | error | failed to execute info script

rapik0088 commented 2 years ago

+1

tiagolh commented 2 years ago

+1

teraxis commented 2 years ago

+1

waffle-stomper commented 2 years ago

Same issue here.

Galera Manager v1.7.2 (also tried 1.7.1 and 1.7.0 and they failed too). Ubuntu 20.04 LTS.

Galera manager successfully logs into the node so I know it's not a key issue:

Oct  9 20:35:58 localhost sshd[25299]: Accepted publickey for root from [redacted] port 57098 ssh2: RSA SHA256:[redacted]
Oct  9 20:35:58 localhost sshd[25299]: pam_unix(sshd:session): session opened for user root by (uid=0)
Oct  9 20:35:58 localhost systemd-logind[575]: New session 176 of user root.
Oct  9 20:35:58 localhost sshd[25299]: pam_unix(sshd:session): session closed for user root
beouss commented 2 years ago

+1

CJPOLO commented 2 years ago

+1 Same issue

cypher1024 commented 2 years ago

I'm getting the same error too.

reuz commented 2 years ago

I have actually received the same error.

azrulanuar commented 2 years ago

+1

wntonto commented 2 years ago

+1 with Centos 7.8 using gm-installer 1.9.1.With same logs @justnx

halindrome commented 2 years ago

I was asked to attach a couple of files to this! newfile.zip

Dani4kor commented 2 years ago

any updates?

waffle-stomper commented 2 years ago

@ayurchen @byte @denisgcm - have you guys got any ideas about what might be going on? Thanks.

Dani4kor commented 2 years ago

installer gm-installer.1.9.1-1-g8cf9b97 from https://galeracluster.com/galera-manager/

got same problem

defremov-cscart commented 2 years ago

got same problem

hoelle commented 2 years ago

I'm getting the same problem running the latest gm 1.9.1-1-g8cf9b97

denisgcm commented 2 years ago

Please run apt update && apt upgrade or yum update on your Galera Manager host system to update Galera Manager to the new version.

hoelle commented 2 years ago

Please run apt update && apt upgrade or yum update on your Galera Manager host system to update Galera Manager to the new version.

Thank you! The new version resolved the bug for me. I'm now running galera-manager/bionic 1.7.3

azrulanuar commented 2 years ago

Resolved. Able to add 2 nodes without any problem. Thanks