OS-6471

dpkg-reconfigure fails on LX Debian 9

Status:
Resolved
Created:
2017-11-28T08:56:41.932-0500
Updated:
2024-05-21T16:28:55.995-0400

Description

When trying to create a Debian 9 LX Brand image it fails when creating new SSH host keys with dpkg-reconfigure:

root@42b8352e-9119-4a97-9717-b76cdc80c343:/etc/ssh# dpkg-reconfigure openssh-server
grep: (standard input): Function not implemented
grep: (standard input): Function not implemented
grep: (standard input): Function not implemented
grep: (standard input): Function not implemented

Here's strace section where it fails:

read(8, "VERSION 2.0\n", 8192) = 12
write(7, "0 2.0\n", 6) = 6
read(8, "GET openssh-server/permit-root-l"..., 8192) = 37
write(7, "0 true\n", 7) = 7
read(8, "X_LOADTEMPLATEFILE /var/lib/dpkg"..., 8192) = 56
open("/var/lib/dpkg/info/ucf.templates", O_RDONLY) = 3
ioctl(3, TCGETS, 0x7fffffeff670) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=30060, ...}) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
read(3, "\nTemplate: ucf/title\nType: title"..., 8192) = 8192
read(3, "verenie situ\303\241cie\nChoices-sv.UTF"..., 8192) = 8192
read(3, " przez opiekuna pakietu, zachowa"..., 8192) = 8192
read(3, "\303\241znam nepoda\305\231en\303\251ho slou\304\215en\303\255"..., 8192) = 5484
read(3, "", 8192) = 0
close(3) = 0
write(7, "0\n", 2) = 2
read(8, grep: (standard input): Function not implemented
grep: (standard input): Function not implemented
grep: (standard input): Function not implemented
grep: (standard input): Function not implemented
"STOP\n", 8192) = 5
wait4(73213, 0x7fffffeff964, 0, NULL) = -1 EINTR (Interrupted system call)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=73213, si_uid=0, si_status=0, si_utime=448, si_stime=598} ---
wait4(73213, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 73213
rt_sigprocmask(SIG_BLOCK, [PIPE], [], 8) = 0

I've also attached a full log of the strace to this ticket.  This works on Debian 8 LX Brand.

To re-produce I have a VM running in west-a with Debian 9: 42b8352e-9119-4a97-9717-b76cdc80c343 

Just login and run the above command.  Let me know if you need anything else.  Thanks Jerry

Comments (5)

Former user commented on 2017-11-28T09:48:59.194-0500:

I don't think the strace output is actually capturing the failure here. Would it be possible to rerun this using strace -f and attach that output too?

Former user commented on 2017-11-29T11:08:15.528-0500:

I've attached stracef.dpkgreconfigure.log which has the -f option

Former user commented on 2017-12-01T15:24:08.353-0500:

The new strace shows that the 4 errors are coming from a splice syscall. The grep process prints the error and exits.

[pid 30247] splice(0, NULL, 1, NULL, 32768, SPLICE_F_MOVE) = -1 ENOSYS (Function not implemented)

I added splice support in October under ticket OS-6337. Can you confirm the platform you're running has that fix?

Brian Bennett commented on 2018-04-13T02:02:00.122-0400:

As per IMAGE-1109, I'm confident that this is a duplicate of OS-6337.

Dan McDonald commented on 2024-05-21T16:28:55.824-0400:

Closing as duplicate.