[hardy] restart of ssh server fails in vserver

Bug #220272 reported by Rolf Leggewie
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openssh (Debian)
Fix Released
Unknown
openssh (Ubuntu)
Fix Released
Medium
Colin Watson
Hardy
Won't Fix
Medium
Unassigned

Bug Description

The following happens to me after I upgraded my vserver from dapper to hardy today

# /etc/init.d/ssh restart
 * Restarting OpenBSD Secure Shell server sshd [ OK ]
/etc/init.d/ssh: line 78: /proc/4366/oom_adj: Operation not permitted

Revision history for this message
Colin Watson (cjwatson) wrote :

What version of openssh-server do you have installed now? We already have the fix for the Debian bug report you linked to, so I'm puzzled that this is recurring.

Changed in openssh:
assignee: nobody → kamion
status: New → Incomplete
Revision history for this message
Rolf Leggewie (r0lf) wrote :

yes, I was amazed by that, too. But I do have the latest hardy version. And the fix to /etc/init.d/ssh is also in place.

# dpkg -l openssh-server
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=============================================-=============================================-==========================================================================================================
ii openssh-server 1:4.7p1-8ubuntu1 secure shell server, an rshd replacement

# grep true /etc/init.d/ssh
            log_end_msg 1 || true
            printf '%s' "$SSHD_OOM_ADJUST" >"/proc/$PID/oom_adj" || true

Changed in openssh:
status: Unknown → Fix Released
Rolf Leggewie (r0lf)
Changed in openssh:
status: Incomplete → New
Revision history for this message
c.bubel (c-bubel) wrote :

I can confirm this.

Rolf Leggewie (r0lf)
Changed in openssh:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Rolf Leggewie (r0lf) wrote :

still occurs for me on hardy 1:4.7p1-8ubuntu1.2

Revision history for this message
Rolf Leggewie (r0lf) wrote :

This still happens about 50% of the time when restarting the ssh server. Version in hardy is unchanged from last comment.

This may be pretty serious as it may have been the root cause I was unable to reach my vServer yesterday after a reboot. sshd wasn't running.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Adding an explicit "Listen" directive to the sshd config ensured that sshd would restart upon reboot.

Revision history for this message
Colin Watson (cjwatson) wrote :

Fixed in karmic (and maverick has this built into sshd upstream in such a way as to avoid this class of problem entirely). I'll open a hardy task, though, in case we have time to deal with that.

openssh (1:5.1p1-6) unstable; urgency=low

  * Open /proc/self/oom_adj with O_RDONLY or O_WRONLY as necessary, rather
    than O_RDWR.
  * Disable OOM adjustment for vserver/OpenVZ (thanks, Karl Chen; closes:
    #511771).
  * Add ufw integration (thanks, Didier Roche; see
    https://wiki.ubuntu.com/UbuntuFirewall#Integrating%20UFW%20with%20Packages;
    LP: #261884).
  * Add a comment above PermitRootLogin in sshd_config pointing to
    README.Debian.
  * Check if delgroup is present in openssh-client.postrm (closes: #530501).
  * Build with -fPIC on mips/mipsel (thanks, Luk Claes; closes: #531942).
  * Remove /var/run/sshd from openssh-server package; it will be created at
    run-time before starting the server.
  * Use invoke-rc.d in openssh-server's if-up script.

 -- Colin Watson <email address hidden> Fri, 05 Jun 2009 11:56:03 +0100

Changed in openssh (Ubuntu):
status: Confirmed → Fix Released
Changed in openssh (Ubuntu Hardy):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Thank you for reporting this bug to Ubuntu. hardy has reached EOL
(End of Life) for this package and is no longer supported. As
a result, this bug against hardy is being marked "Won't Fix".
Please see https://wiki.ubuntu.com/Releases for currently
supported Ubuntu releases.

Please feel free to report any other bugs you may find.

Changed in openssh (Ubuntu Hardy):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.