landscape-config fails to connect to broker.
Bug #1868730 reported by
Simon Poirier
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
We've had a few reports of errors on the registration step of landscape-config, which looks like:
Request a new registration for this computer now? [Y/n]:
Traceback (most recent call last):
Failure: twisted.
We know it affects:
* ubuntu focal, on new installs and upgrades.
* ubuntu xenial, is apparently also affected.
This issue is to track any additional details, up to a reproduction scenario.
Changed in landscape-client: | |
status: | New → Confirmed |
status: | Confirmed → New |
description: | updated |
Changed in landscape-client: | |
status: | New → Fix Committed |
Changed in landscape-client: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
we get this error:
fcntl(8, F_GETFD) = 0x1 (flags FD_CLOEXEC) "/var/lib/ landscape/ client/ sockets/ broker. sock"}, 47) = -1 ENOENT (No such file or directory) internet. error.ConnectEr ror: An error occurred while connecting: 2: No such file or directory. SIGINT, {sa_handler= SIG_DFL, sa_mask=[], sa_flags= SA_RESTORER, sa_restorer= 0x7f26204fdf20} , {sa_handler= 0x62ffc0, sa_mask=[], sa_flags= SA_RESTORER, sa_restorer= 0x7f26204fdf20} , 8) = 0 SIGTERM, {sa_handler= SIG_DFL, sa_mask=[], sa_flags= SA_RESTORER, sa_restorer= 0x7f26204fdf20} , {sa_handler= 0x62ffc0, sa_mask=[], sa_flags= SA_RESTORER, sa_restorer= 0x7f26204fdf20} , 8) = 0 SIGCHLD, {sa_handler= SIG_DFL, sa_mask=[], sa_flags= SA_RESTORER, sa_restorer= 0x7f26204fdf20} , {sa_handler= 0x62ffc0, sa_mask=[], sa_flags= SA_RESTORER| SA_RESTART, sa_restorer= 0x7f26204fdf20} , 8) = 0 0x7f2615eb7000, 262144) = 0 0x7f261bd6d000, 262144) = 0 0x7f261bdad000, 262144) = 0 0x7f261bced000, 262144) = 0 0x7f261bc2d000, 262144) = 0 0x7f261be6d000, 262144) = 0 0x7f261bc6d000, 262144) = 0 0x7f261bd2d000, 262144) = 0 0x7f261cee6000, 262144) = 0 {ss_sp= NULL, ss_flags= SS_DISABLE, ss_size=0}, NULL) = 0 0x7f261beed000, 262144) = 0 S_IFCHR| 0666, st_rdev=makedev(1, 9), ...}) = 0 S_IFCHR| 0666, st_rdev=makedev(1, 8), ...}) = 0 e001:/var/ lib/landscape$ ^C
fcntl(8, F_SETFD, FD_CLOEXEC) = 0
ioctl(8, FIONBIO, [1]) = 0
epoll_wait(5, [], 2, 0) = 0
getsockopt(8, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
connect(8, {sa_family=AF_UNIX, sun_path=
shutdown(8, SHUT_RDWR) = 0
close(8) = 0
write(2, "Traceback (most recent call last"..., 147Traceback (most recent call last):
Failure: twisted.
) = 147
write(2, "\n", 1
) = 1
epoll_wait(5, [], 2, 0) = 0
rt_sigaction(
rt_sigaction(
rt_sigaction(
close(5) = 0
munmap(
munmap(
munmap(
munmap(
munmap(
munmap(
munmap(
munmap(
munmap(
sigaltstack(NULL, {ss_sp=0x1a260d0, ss_flags=0, ss_size=8192}) = 0
sigaltstack(
munmap(
fstat(3, {st_mode=
close(3) = 0
fstat(4, {st_mode=
close(4) = 0
exit_group(0) = ?
+++ exited with 0 +++
ap005@apnc01nod
when running this command:-
sudo strace landscape-config --computer-title "$(hostname)" --account-name standalone --url https:/ /landscape. 005.ncitest. bt.com/ message- system --ping-url http:// landscape. 005.ncitest. bt.com/ ping --ssl-public-key /home/ap005/ landscape_ server_ ca.crt --registration- key=$(cat /home/ap005/ deployment/ adastral- ap-005- canonical/ secrets/ landscape- registration. txt) --silent --log-level=DEBUG