Dear all,
we are quite new to Carbonio Zextras we have installed CArbonio on Rocky Linux 8 on a testing machine and until version 23.11.0 everything seems work fine....we recently update to version 24.1.0 and after updating with no errors we are experiencing this error "service-discover not running"
Thanks for your help
[zextras@mail log]$ zmcontrol status
Host mail.ferrarioimpianti.it
amavis Running
antispam Running
antivirus Running
directory-server Running
mailbox Running
memcached Running
mta Running
opendkim Running
proxy Running
service webapp Running
service-discover Stopped
stats Running
config service Running
[zextras@mail log]$
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: panic: runtime error: invalid memory address or nil pointer dereference
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x5dbe8f]
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: goroutine 1 [running]:
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: github.com/go-ldap/ldap/v3.(*Conn).nextMessageID(...)
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: /root/go/pkg/mod/github.com/go-ldap/ldap/v3@v3.2.4/conn.go:282
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: github.com/go-ldap/ldap/v3.(*Conn).doRequest(0x0, {0x6b6b40, 0xc0000a0080})
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: /root/go/pkg/mod/github.com/go-ldap/ldap/v3@v3.2.4/request.go:26 +0x4f
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: github.com/go-ldap/ldap/v3.(*Conn).SimpleBind(0x0, 0x0?)
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: /root/go/pkg/mod/github.com/go-ldap/ldap/v3@v3.2.4/bind.go:65 +0x111
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: github.com/go-ldap/ldap/v3.(*Conn).Bind(0xc00001c270?, {0xc000148760, 0x1e}, {0xc000014a25, 0x9})
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: /root/go/pkg/mod/github.com/go-ldap/ldap/v3@v3.2.4/bind.go:104 +0x9b
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: github.com/Zextras/service-discover/cli/lib/carbonio.connect(0xc000062540, 0x20?)
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: /tmp/cli/lib/carbonio/ldap.go:222 +0x1b6
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: github.com/Zextras/service-discover/cli/lib/carbonio.(*ldapContext).QueryAllServersWithService(0xc0000228a0?, {0x64c524, 0x10})
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: /tmp/cli/lib/carbonio/ldap.go:159 +0x65
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: main.queryAllServiceDiscoverServers({0x6b86d0?, 0xc000062540?})
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: /tmp/service-discoverd/service-discoverd.go:281 +0x31
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: main.runServiceDiscoverDaemon({0x6b9590, 0x848500}, {0xc000016040?, 0x7eb938?, 0xc0000061a0?})
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: /tmp/service-discoverd/service-discoverd.go:115 +0x3bd
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: main.main()
gen 31 15:01:09 mail.ferrarioimpianti.it service-discoverd[909]: /tmp/service-discoverd/service-discoverd.go:83 +0x36
gen 31 15:01:09 mail.ferrarioimpianti.it systemd[1]: service-discover.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
gen 31 15:01:09 mail.ferrarioimpianti.it systemd[1]: service-discover.service: Failed with result 'exit-code'.
gen 31 15:01:09 mail.ferrarioimpianti.it systemd[1]: Failed to start Service discover server for Zextras.
gen 31 15:01:24 mail.ferrarioimpianti.it systemd[1]: service-discover.service: Service RestartSec=15s expired, scheduling restart.
gen 31 15:01:24 mail.ferrarioimpianti.it systemd[1]: service-discover.service: Scheduled restart job, restart counter is at 1.
gen 31 15:01:24 mail.ferrarioimpianti.it systemd[1]: Stopped Service discover server for Zextras.
gen 31 15:01:24 mail.ferrarioimpianti.it systemd[1]: Starting Service discover server for Zextras...
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: panic: runtime error: invalid memory address or nil pointer dereference
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x5dbe8f]
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: goroutine 1 [running]:
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: github.com/go-ldap/ldap/v3.(*Conn).nextMessageID(...)
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: /root/go/pkg/mod/github.com/go-ldap/ldap/v3@v3.2.4/conn.go:282
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: github.com/go-ldap/ldap/v3.(*Conn).doRequest(0x0, {0x6b6b40, 0xc00019c000})
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: /root/go/pkg/mod/github.com/go-ldap/ldap/v3@v3.2.4/request.go:26 +0x4f
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: github.com/go-ldap/ldap/v3.(*Conn).SimpleBind(0x0, 0x0?)
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: /root/go/pkg/mod/github.com/go-ldap/ldap/v3@v3.2.4/bind.go:65 +0x111
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: github.com/go-ldap/ldap/v3.(*Conn).Bind(0xc00001c270?, {0xc000148760, 0x1e}, {0xc000014a25, 0x9})
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: /root/go/pkg/mod/github.com/go-ldap/ldap/v3@v3.2.4/bind.go:104 +0x9b
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: github.com/Zextras/service-discover/cli/lib/carbonio.connect(0xc000062540, 0x20?)
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: /tmp/cli/lib/carbonio/ldap.go:222 +0x1b6
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: github.com/Zextras/service-discover/cli/lib/carbonio.(*ldapContext).QueryAllServersWithService(0xc0000228a0?, {0x64c524, 0x10})
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: /tmp/cli/lib/carbonio/ldap.go:159 +0x65
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: main.queryAllServiceDiscoverServers({0x6b86d0?, 0xc000062540?})
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: /tmp/service-discoverd/service-discoverd.go:281 +0x31
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: main.runServiceDiscoverDaemon({0x6b9590, 0x848500}, {0xc000016040?, 0x7eb938?, 0xc0000061a0?})
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: /tmp/service-discoverd/service-discoverd.go:115 +0x3bd
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: main.main()
gen 31 15:01:24 mail.ferrarioimpianti.it service-discoverd[1933]: /tmp/service-discoverd/service-discoverd.go:83 +0x36
gen 31 15:01:24 mail.ferrarioimpianti.it systemd[1]: service-discover.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
gen 31 15:01:24 mail.ferrarioimpianti.it systemd[1]: service-discover.service: Failed with result 'exit-code'.
gen 31 15:01:24 mail.ferrarioimpianti.it systemd[1]: Failed to start Service discover server for Zextras.
gen 31 15:01:39 mail.ferrarioimpianti.it systemd[1]: service-discover.service: Service RestartSec=15s expired, scheduling restart.
gen 31 15:01:39 mail.ferrarioimpianti.it systemd[1]: service-discover.service: Scheduled restart job, restart counter is at 2.
gen 31 15:01:39 mail.ferrarioimpianti.it systemd[1]: Stopped Service discover server for Zextras.
gen 31 15:01:39 mail.ferrarioimpianti.it systemd[1]: Starting Service discover server for Zextras...
gen 31 15:01:41 mail.ferrarioimpianti.it service-discoverd[2680]: ==> Starting Consul agent...
gen 31 15:01:41 mail.ferrarioimpianti.it service-discoverd[2680]: Version: '1.10.12'
gen 31 15:01:41 mail.ferrarioimpianti.it service-discoverd[2680]: Node ID: '92650d8f-5e39-2eeb-2879-de1aeca3b735'
gen 31 15:01:41 mail.ferrarioimpianti.it service-discoverd[2680]: Node name: 'server-mail-ferrarioimpianti-it'
Hi all,
I am getting a similar thing.
I am also new to Carbonio and trying an install on Ubuntu 22.04 https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/
I tried both the official script and the fanmade script. (which I really liked BTW - thank you for that) It consistently fails with a runtime error while initialising LDAP.
Bootstrap mode: new install Installing LDAP configuration database...done. Setting defaults...done. Checking for port conflicts Saving config in /opt/zextras/config.21291...done. Operations logged to /tmp/zmsetup.20241008-212449.log Setting replication password...done. Setting Postfix password...done. Setting amavis password...done. Setting nginx password...done. Initializing ldap...Connection refused at /opt/zextras/libexec/ldapinit.pm line 122. panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x78c27e] goroutine 1 [running]: github.com/go-ldap/ldap.(*Conn).nextMessageID(...) /home/agent/go/pkg/mod/github.com/go-ldap/ldap@v3.0.3+incompatible/conn.go:235 github.com/go-ldap/ldap.(*Conn).SimpleBind(0x0, 0xc00009ee28) /home/agent/go/pkg/mod/github.com/go-ldap/ldap@v3.0.3+incompatible/bind.go:54 +0x13e github.com/go-ldap/ldap.(*Conn).Bind(0xc0000e8e20?, {0xc0000e9040?, 0xc00009ef10?}, {0xc0000bdce8?, 0x828d60?}) /home/agent/go/pkg/mod/github.com/go-ldap/ldap@v3.0.3+incompatible/bind.go:116 +0x53 github.com/zextras/service-discover/pkg/carbonio.connect(0xc0000be8a0, 0x65?) /tmp/service-discover/pkg/carbonio/ldap.go:216 +0x1eb github.com/zextras/service-discover/pkg/carbonio.(*ldapContext).QueryAllServersWithService(0x8c9ade?, {0x8be909, 0x10}) /tmp/service-discover/pkg/carbonio/ldap.go:149 +0x65 github.com/zextras/service-discover/cmd/server/command/setup.(*Setup).isFirstInstance(0xc0001b4018, {0x96d450, 0xc0000a6e80}) /tmp/service-discover/cmd/server/command/setup/common.go:211 +0x7b github.com/zextras/service-discover/cmd/server/command/setup.(*Setup).Run(0xc0001b4018, 0xc0001b4008) /tmp/service-discover/cmd/server/command/setup/common.go:175 +0x1b9 reflect.Value.call({0x88b9e0?, 0xc0001b4018?, 0x8b5700?}, {0x8b6d2a, 0x4}, {0xc0000b8e58, 0x1, 0x1?}) /usr/lib/go/src/reflect/value.go:596 +0xca6 reflect.Value.Call({0x88b9e0?, 0xc0001b4018?, 0xc00009f8b8?}, {0xc0000b8e58?, 0x8b5700?, 0xc00009f7f8?}) /usr/lib/go/src/reflect/value.go:380 +0xb9 github.com/alecthomas/kong.callFunction({0x88b9e0?, 0xc0001b4018?, 0xc00009fa30?}, 0xc0001e3680) /home/agent/go/pkg/mod/github.com/alecthomas/kong@v0.9.0/callbacks.go:98 +0x45a github.com/alecthomas/kong.(*Context).RunNode(0xc000180180, 0xc0001b60f0, {0xc00009fef8, 0x1, 0x828d60?}) /home/agent/go/pkg/mod/github.com/alecthomas/kong@v0.9.0/context.go:774 +0x80e github.com/alecthomas/kong.(*Context).Run(0xc000180180?, {0xc00009fef8?, 0xc00018bf08?, 0x10?}) /home/agent/go/pkg/mod/github.com/alecthomas/kong@v0.9.0/context.go:799 +0x132 main.main() /tmp/service-discover/cmd/server/server.go:66 +0x8bc gpg: can't open '/etc/zextras/service-discover/cluster-credentials.tar.gpg': No such file or directory gpg: decrypt_message failed: No such file or directory tar: This does not look like a tar archive tar: consul-acl-secret.json: Not found in archive tar: Exiting with failure status due to previous errors
This is on a libvirt virtual machine with 16 vCPUs and 32G RAM.
I don't seem to be able to complete a functional install - carbonio-directory-server fails to start if I proceed with the scripted install.
Any suggestions appreciated.