Help!

Bug#561074: network-console: starting a shell terminates t..

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Bugs Dist RSS
Next:  Bug#560114: brltty: FTBFS on kfreebsd-* with 8.x ..  
Author Message
Adrian Bridgett
External


Since: Mar 19, 2005
Posts: 50



PostPosted: Mon Dec 14, 2009 5:10 am    Post subject: Bug#561074: network-console: starting a shell terminates the connection
Archived from groups: linux>debian>bugs>dist, others (more info?)


Package: network-console
Version: 0627 (backports)

I'm using the version from http://kmuto.jp/debian/d-i/ since I'm
installing on a new Dell R410 and it requires 2.6.29 or later.

It's a network preseed install and although I can ssh in and
/bin/network-console runs fine, if I select the option to "Start
shell" then the connection just terminates. Changing /etc/passwd to
run /bin/sh instead works fine. I can then run /bin/network-console,
select "start-shell and I am returned to the prompt.

/var/log/syslog states:
sshd[9487]: Accepted password for installer from 10.0.0.1 port 36721 ssh2
sshd[9488]: lastlog_filetype: Couldn't stat /var/log/lastlog: No such
file or directory
sshd[9488]: lastlog_openseek: /var/log/lastlog is not a file or a
directory!

touch()ing the file stops those errors but it still fails to log me in
(even if I stop/start sshd)

Not sure what's going on - is network-console exiting rather than
exec()ing a shell?

Adrian
--
bitcube.co.uk - Expert Linux infrastructure consultancy
Puppet, Debian, Red Hat, Ubuntu, CentOS



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Frans Pop
External


Since: May 04, 2006
Posts: 516



PostPosted: Mon Dec 14, 2009 5:10 pm    Post subject: Bug#561074: network-console: starting a shell terminates the connection [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Monday 14 December 2009, Adrian Bridgett wrote:
> Version: 0627 (backports)

I doubt this is a valid version of network-console as I see no reason why
it should have been backported. Can you check the actual version of the
package (in /var/lib/dpkg/status)?

> I'm using the version from http://kmuto.jp/debian/d-i/ since I'm
> installing on a new Dell R410 and it requires 2.6.29 or later.

We are happy that Kenshi provides his images, but they are not supported by
us.

> It's a network preseed install and although I can ssh in and
> /bin/network-console runs fine, if I select the option to "Start
> shell" then the connection just terminates.

I haven't had any problems using network-console myself and we've not had
any similar reports from other users.

> Changing /etc/passwd to
> run /bin/sh instead works fine. I can then run /bin/network-console,
> select "start-shell and I am returned to the prompt.

My guess would be some library issue in Kenshi's image. You could try
loading the strace udeb and running an strace on network-console.

> /var/log/syslog states:
> sshd[9487]: Accepted password for installer from 10.0.0.1 port 36721
> ssh2 sshd[9488]: lastlog_filetype: Couldn't stat /var/log/lastlog: No
> such file or directory
> sshd[9488]: lastlog_openseek: /var/log/lastlog is not a file or a
> directory!

This is unrelated.

> Not sure what's going on - is network-console exiting rather than
> exec()ing a shell?

Can you reproduce the issue with a daily built image provided by us [1]?
It has 2.6.30 as kernel, so should work fine for you. You only have to
proceed as far as starting network-console.

If you cannot, I doubt there's anything wrong with network-console itself.

Cheers,
FJP

[1] http://www.debian.org/devel/debian-installer/



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Adrian Bridgett
External


Since: Mar 19, 2005
Posts: 50



PostPosted: Tue Dec 15, 2009 6:10 am    Post subject: Bug#561074: network-console: starting a shell terminates the connection [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, Dec 14, 2009 at 22:42:58 +0100 (+0100), Frans Pop wrote:
> Can you reproduce the issue with a daily built image provided by us [1]?
> It has 2.6.30 as kernel, so should work fine for you. You only have to
> proceed as far as starting network-console.
>
> If you cannot, I doubt there's anything wrong with network-console itself.

Thanks, I'll take a look. For reference it's getting as far as
calling udpkg (in /bin/network-console-menu) which then calls
/var/lib/dpkg/info/di-utils-shell.postinst. That is getting as far as
running db_input but then I'm kicked out.

Adrian
--
bitcube.co.uk - Expert Linux infrastructure consultancy
Puppet, Debian, Red Hat, Ubuntu, CentOS



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Frans Pop
External


Since: May 04, 2006
Posts: 516



PostPosted: Tue Dec 15, 2009 12:10 pm    Post subject: Bug#561074: network-console: starting a shell terminates the connection [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tuesday 15 December 2009, Adrian Bridgett wrote:
> Thanks, I'll take a look. For reference it's getting as far as
> calling udpkg (in /bin/network-console-menu) which then calls
> /var/lib/dpkg/info/di-utils-shell.postinst. That is getting as far as
> running db_input but then I'm kicked out.

Another option to debug this is to add a 'set -x' in that last script and
check the resulting debug output in the syslog.



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Adrian Bridgett
External


Since: Mar 19, 2005
Posts: 50



PostPosted: Wed Dec 16, 2009 5:10 am    Post subject: Bug#561074: network-console: starting a shell terminates the connection [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm now using the daily images (20091216) as you suggested (I swapped
to backport when I hit a console hang issue (fixed by vga=...) and
hadn't swapped back.

Same thing I'm afraid - I've added in "set -x" and this is what I see
(echo's I've added):
(process:21240): + echo calling backup
(process:21240): + db_capb backup
(process:21240): + _db_cmd CAPB backup
(process:21240): + IFS= printf %s\n CAPB backup
(process:21240): + IFS=
(process:21240): read -r _db_internal_line
(process:21240): + RET=multiselect backup progresscancel align plugin-terminal
(process:21240): + return 0
(process:21240): + echo calling input
(process:21240): + db_input high di-utils-shell/do-shell
(process:21240): + _db_cmd INPUT high di-utils-shell/do-shell
(process:21240): + IFS= printf %s\n INPUT high di-utils-shell/do-shell
(process:21240): + IFS=
(process:21240): read -r _db_internal_line
(process:21240): + RET=30 question skipped
(process:21240): + return 30
Connection to 10.5.2.89 closed.

I wonder if it's because I'm preseeding and have set debconf to
critical only... Seems wierd that db_input bails, but then it's been
a while since I've done debconf usage.

I'm currently preseeding this lot (lots of other things but these are
the only di-* or console bits.

d-i anna/choose_modules string network-console
d-i network-console/password password r00tme
d-i network-console/password-again password r00tme
d-i finish-install/keep-consoles boolean true

# don't halt progress by telling us sshd has started
d-i network-console/start note seen
# trying to get nc working (tried with this commented and uncommented)
# this should skip the "about to start a shell"
#d-i di-utils-shell/do-shell note seen

Changing the db_input line from "high" to "critical" seemed to do the
trick Smile

Adrian
--
bitcube.co.uk - Expert Linux infrastructure consultancy
Puppet, Debian, Red Hat, Ubuntu, CentOS



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Adrian Bridgett
External


Since: Mar 19, 2005
Posts: 50



PostPosted: Wed Dec 16, 2009 1:10 pm    Post subject: Bug#561074: network-console: starting a shell terminates the connection [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, Dec 16, 2009 at 17:48:26 +0100 (+0100), Frans Pop wrote:
[snip]
> It's a bit of a corner case because people don't normally log into
> preseeded installs.

I'm debugging Smile

> Thanks for providing the info to track it down.

A pleasure, thanks for the pointers on what to do to assist!

Adrian
--
bitcube.co.uk - Expert Linux infrastructure consultancy
Puppet, Debian, Red Hat, Ubuntu, CentOS



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Frans Pop
External


Since: May 04, 2006
Posts: 516



PostPosted: Wed Dec 16, 2009 1:10 pm    Post subject: Bug#561074: network-console: starting a shell terminates the connection [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

reassign 561074 di-utils-shell
tag 561074 pending
thanks

On Wednesday 16 December 2009, Adrian Bridgett wrote:
> Same thing I'm afraid - I've added in "set -x" and this is what I see
> (echo's I've added):
> (process:21240): + RET=30 question skipped
> (process:21240): + return 30
>
> I wonder if it's because I'm preseeding and have set debconf to
> critical only... Seems wierd that db_input bails, but then it's been
> a while since I've done debconf usage.

Yes, that's exactly the reason. The db_input returns 30 because the
question gets skipped because the prio you're running at is higher than
the one it's set to be asked at.
The correct solution is to add ' || [ $? -eq 30 ]' to the line.

It's a bit of a corner case because people don't normally log into
preseeded installs.

I've just fixed it in the source (of debian-installer-utils, not
network-console).

Thanks for providing the info to track it down.

Cheers,
FJP



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Bugs Dist All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum