Jump to content


Photo

ssh not working any more after today update

[ET9000]

  • Please log in to reply
35 replies to this topic

Re: ssh not working any more after today update #21 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 1 November 2011 - 19:00

I can confirm that eliminating the redirection to /dev/null in mdev-mount.sh solves the problem, and after a reboot /dev/null is OK, as well as ssh.

original code (in /etc/mdev/mdev-mount.sh):

			    # first allow fstab to determine the mountpoint
			    if ! mount /dev/$MDEV > /dev/null 2>&1
			    then
					    # no fstab entry, use automatic mountpoint

fixed:

			    # first allow fstab to determine the mountpoint
			    if ! mount /dev/$MDEV
			    then
					    # no fstab entry, use automatic mountpoint

Edited by Gennar1, 1 November 2011 - 19:02.


Re: ssh not working any more after today update #22 hemispherical1

  • Senior Member
  • 1,596 posts

+49
Good

Posted 1 November 2011 - 19:46

Updated 5 mins ago, same issue here on my not modified dm800hd pvr.
Going to use telnet for the time being ;)


I may be wrong, but I think when fixes are committed, unless you build your own image, they aren't available until the nightly image build is run. Then I would guess an online update would pick up the fix...

--
hemi

Ps. Removing the /dev/null redirection also appears to have worked here. Thanks to all who helped... ;)

Edited by hemispherical1, 1 November 2011 - 19:52.


Re: ssh not working any more after today update #23 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 1 November 2011 - 21:09

mdev-mount.sh gets called for all /dev/sdXX devices, and seems to beat /dev/null to the punch.


indeed, I overlooked that.
Guess I'll have to find another way to silent the fstab mount check ;)

Re: ssh not working any more after today update #24 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 1 November 2011 - 21:12

output naar file en dan rm file of is dat te eenvoudig gedacht?

@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: ssh not working any more after today update #25 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 1 November 2011 - 21:16

that's not a very nice solution.
And mount also doesn't have a 'quiet' option, so I guess I'll just revert the commit for now.

Re: ssh not working any more after today update #26 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 1 November 2011 - 21:28

Tried it with > /dev/zero instead of > /dev/null and it works here fine.
I can use SSH again!

@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: ssh not working any more after today update #27 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 1 November 2011 - 21:29

yes, but you'll have lost /dev/zero now, instead of /dev/null ;)

Re: ssh not working any more after today update #28 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 1 November 2011 - 21:30

I think i prefer losing /dev/zero instead of /dev/null ;)

@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: ssh not working any more after today update #29 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 1 November 2011 - 23:28

There are other 2 normal files in /dev/ :

/dev/.udev
/dev/mdev.seq

both are created by /etc/init.d/mdev
is this intentional or are they affected by the same bug?

Re: ssh not working any more after today update #30 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 1 November 2011 - 23:31

that's intentional
.udev tells userspace that /dev/ is managed by udev (or mdev in our case)
mdev.seq tells mdev to handle hotplug events sequentially

Re: ssh not working any more after today update #31 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 2 November 2011 - 00:40

Roger, thanks.

Re: ssh not working any more after today update #32 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 2 November 2011 - 11:17

How about making a temporary alternative device node for null in /tmp and remove that on exit of the script?

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: ssh not working any more after today update #33 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 2 November 2011 - 11:18

The script runs many times (once for each blockdevice), so that would give some overhead

Re: ssh not working any more after today update #34 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 2 November 2011 - 12:16

mknod and rm? I think that would be overcomable?

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: ssh not working any more after today update #35 blzr

  • PLi® Core member
  • 2,269 posts

+118
Excellent

Posted 2 November 2011 - 12:45

I know it's not the case anymore ;) but just curious:
why I haven't been affected with this issue here on my vuduo?
ssh worked fine, /dev/null was ok (device) of course as well...
?
True sarcasm doesn't need green font...

Re: ssh not working any more after today update #36 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 2 November 2011 - 14:42

It's timing related


2 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


    Google (1)