Hi,
is there any issue with GCP (google cloud) for running carbonio?
these are the error i encountered during installation:
service-discover setup-wizard
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x6b23b6]
goroutine 1 [running]:
github.com/alecthomas/kong.catch(0xc0000dbbc0)
/root/go/pkg/mod/github.com/alecthomas/kong@v0.2.15/kong.go:366 +0xa5
panic({0x7d9ce0, 0xb2d5c0})
/usr/lib/go/src/runtime/panic.go:838 +0x207
github.com/go-ldap/ldap/v3.(*Conn).nextMessageID(...)
/root/go/pkg/mod/github.com/go-ldap/ldap/v3@v3.2.4/conn.go:282
github.com/go-ldap/ldap/v3.(*Conn).doRequest(0x0, {0x8e0580, 0xc00016c500})
/root/go/pkg/mod/github.com/go-ldap/ldap/v3@v3.2.4/request.go:26 +0x56
github.com/go-ldap/ldap/v3.(*Conn).SimpleBind(0x0, 0x0?)
/root/go/pkg/mod/github.com/go-ldap/ldap/v3@v3.2.4/bind.go:65 +0x12a
github.com/go-ldap/ldap/v3.(*Conn).Bind(0xc0000d0fe0?, {0xc0000d1200, 0x1e}, {0xc0000bffd5, 0x7})
/root/go/pkg/mod/github.com/go-ldap/ldap/v3@v3.2.4/bind.go:104 +0xa5
bitbucket.org/zextras/service-discover/cli/lib/carbonio.connect(0xc0000b36e0, 0x20?)
/tmp/cli/lib/carbonio/ldap.go:204 +0x18c
bitbucket.org/zextras/service-discover/cli/lib/carbonio.(*ldapContext).QueryAllServersWithService(0x849056?, {0x83e9c8, 0x10})
/tmp/cli/lib/carbonio/ldap.go:141 +0x72
bitbucket.org/zextras/service-discover/cli/server/command/setup.(*Setup).isFirstInstance(0xc0000b9680, {0x8e4730, 0xc000093830})
/tmp/cli/server/command/setup/common.go:197 +0x90
bitbucket.org/zextras/service-discover/cli/server/command/setup.(*Wizard).Run(0xc00011e0a8, 0xc00011e000)
/tmp/cli/server/command/setup/wizard.go:50 +0x12e
reflect.Value.call({0x7cdf40?, 0xc00011e0a8?, 0x18?}, {0x836427, 0x4}, {0xc0000a8d68, 0x1, 0x0?})
/usr/lib/go/src/reflect/value.go:556 +0x845
reflect.Value.Call({0x7cdf40?, 0xc00011e0a8?, 0x10?}, {0xc0000a8d68, 0x1, 0x1})
/usr/lib/go/src/reflect/value.go:339 +0xbf
github.com/alecthomas/kong.callMethod({0x836024, 0x3}, {0x8095a0?, 0xc00011e0a8?, 0x3?}, {0x7cdf40?, 0xc00011e0a8?, 0x40bd6d?}, 0x486688?)
/root/go/pkg/mod/github.com/alecthomas/kong@v0.2.15/callbacks.go:71 +0x4e7
github.com/alecthomas/kong.(*Context).RunNode(0xc00014e000, 0xc0001221c0, {0xc0000dbc78, 0x1, 0x1})
/root/go/pkg/mod/github.com/alecthomas/kong@v0.2.15/context.go:697 +0x5f7
github.com/alecthomas/kong.(*Context).Run(0xc00014e000?, {0xc0000dbc78?, 0xc0000dbcd8?, 0x3?})
/root/go/pkg/mod/github.com/alecthomas/kong@v0.2.15/context.go:714 +0xb8
main.main()
/tmp/cli/server/server.go:59 +0x893
the hostname is not correct. after correction, it went smooth.
what hostname should it be? host.domain.com or host ? where did you fix it? in the /etc/hosts file?
Thank you
Hi,
You can take a look at this article to find out how to prepare your server, including /etc/hostname, /etc/hosts, to avoid unprecedented errors/issues.
Regards,
Sharif