Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How often to reboot a production Web server?

11 views
Skip to first unread message

Victor Porton

unread,
Mar 6, 2013, 7:30:01 PM3/6/13
to
I've setup a VPS based on Debian 6 yesterday.

Today I've run `apt-get update` and `apt-get upgrade` to get security fixes.

It updated libc6 and some other essential packages.

Should I reboot my production Web server? If yes, how often?

--
Victor Porton - http://portonvictor.org


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/3276213...@web6f.yandex.ru

Gary Dale

unread,
Mar 7, 2013, 12:10:01 AM3/7/13
to
On 06/03/13 07:25 PM, Victor Porton wrote:
> I've setup a VPS based on Debian 6 yesterday.
>
> Today I've run `apt-get update` and `apt-get upgrade` to get security fixes.
>
> It updated libc6 and some other essential packages.
>
> Should I reboot my production Web server? If yes, how often?

If the kernel changes then you can consider a reboot. Simple changes to
the web server application merely require restarting it. However, if
your web server get reasonable usage, consider running two servers as
VMs or on separate hardware so that one can take over when the other
reboots.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/513820A...@rogers.com

Richard Hector

unread,
Mar 7, 2013, 1:50:02 AM3/7/13
to
On 07/03/13 13:25, Victor Porton wrote:
> I've setup a VPS based on Debian 6 yesterday.
>
> Today I've run `apt-get update` and `apt-get upgrade` to get security fixes.
>
> It updated libc6 and some other essential packages.
>
> Should I reboot my production Web server? If yes, how often?
>

If you install the debian-goodies package, you can run checkrestart to
see what programs are still holding open old libraries - though there
are some false positives.

You can then decide whether you just need to restart a particular
service (checkrestart will tell you what, in most cases), or whether you
need to reboot.

Unfortunately it doesn't tell you whether you're running the latest
installed kernel.

Richard


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/513836F2...@walnut.gen.nz

Andy Hawkins

unread,
Mar 8, 2013, 2:10:02 PM3/8/13
to
Hi,

In article <3276213...@web6f.yandex.ru>,
Victor Porton<por...@narod.ru> wrote:
> Should I reboot my production Web server? If yes, how often?

Generally, the only time you need to reboot is when there's a kernel
upgrade.

Andy


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/slrnkjjra...@atom.gently.org.uk

Bonno Bloksma

unread,
Mar 10, 2013, 4:50:02 AM3/10/13
to
Hi,

>> Today I've run `apt-get update` and `apt-get upgrade` to get security fixes.
>>
>> It updated libc6 and some other essential packages.
>>
>> Should I reboot my production Web server? If yes, how often?
>>
>
> If you install the debian-goodies package, you can run checkrestart to see
> what programs are still holding open old libraries - though there are some false positives.
>
> You can then decide whether you just need to restart a particular service
> (checkrestart will tell you what, in most cases), or whether you need to reboot.

Ok, so I decided to install the Debian-goodies on my machine to test that checkrestart command but.... it broke, so according to the Debian policy I get to keep both pieces. ;-)
Any way to fix the pieces?

---------<quote>-------------------
Get:1 http://ftp.nl.debian.org/debian/ squeeze/main libssh2-1 i386 1.2.6-1 [77.2 kB]
Get:2 http://ftp.nl.debian.org/debian/ squeeze/main libcurl3 i386 7.21.0-2.1+squeeze2 [281 kB]
Get:3 http://ftp.nl.debian.org/debian/ squeeze/main curl i386 7.21.0-2.1+squeeze2 [227 kB]
Get:4 http://ftp.nl.debian.org/debian/ squeeze/main dctrl-tools i386 2.14.5 [110 kB]
Get:5 http://ftp.nl.debian.org/debian/ squeeze/main debian-goodies all 0.53 [49.3 kB]
Fetched 746 kB in 1s (571 kB/s)
Selecting previously deselected package libssh2-1.
(Reading database ... 34588 files and directories currently installed.)
Unpacking libssh2-1 (from .../libssh2-1_1.2.6-1_i386.deb) ...
Selecting previously deselected package libcurl3.
Unpacking libcurl3 (from .../libcurl3_7.21.0-2.1+squeeze2_i386.deb) ...
Selecting previously deselected package curl.
Unpacking curl (from .../curl_7.21.0-2.1+squeeze2_i386.deb) ...
Selecting previously deselected package dctrl-tools.
Unpacking dctrl-tools (from .../dctrl-tools_2.14.5_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/dctrl-tools_2.14.5_i386.deb (--unpack):
failed in write on buffer copy for backend dpkg-deb during `./etc/grep-dctrl.rc': No space left on device
configured to not write apport reports
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Selecting previously deselected package debian-goodies.
Unpacking debian-goodies (from .../debian-goodies_0.53_all.deb) ...
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/dctrl-tools_2.14.5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of debian-goodies:
debian-goodies depends on dctrl-tools | grep-dctrl; however:
Package dctrl-tools is not installed.
Package grep-dctrl is not installed.
dpkg: error processing debian-goodies (--configure):
dependency problems - leaving unconfigured
Setting up libssh2-1 (1.2.6-1) ...
ldconfig: Writing of cache data failed: No space left on device
dpkg: error processing libssh2-1 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libcurl3:
libcurl3 depends on libssh2-1 (>= 1.2); however:
Package libssh2-1 is not configured yet.
dpkg: error processing libcurl3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of curl:
curl depends on libcurl3 (>= 7.16.2-1); however:
Package libcurl3 is not configured yet.
dpkg: error processing curl (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
debian-goodies
libssh2-1
libcurl3
curl

Current status: 1 broken [+1].
---------<quote>-------------------

The "No space left on drive" is the wrong symptom, there is plenty of space on all partitions.

# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/linbobo-root
2064208 2064208 0 100% /
tmpfs 511180 0 511180 0% /lib/init/rw
udev 506252 164 506088 1% /dev
tmpfs 511180 0 511180 0% /dev/shm
/dev/sda1 241116 65012 163656 29% /boot
/dev/mapper/linbobo-home
467457616 202900 443509180 1% /home
/dev/mapper/linbobo-tmp
388741 10292 358379 3% /tmp
/dev/mapper/linbobo-usr
4922684 661488 4011136 15% /usr
/dev/mapper/linbobo-var
2955216 1666036 1139064 60% /var
#

So now what?

Bonno Bloksma


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/89D1798A7351D040B4E7...@HGLEXCH-01.tio.nl

Dom

unread,
Mar 10, 2013, 5:00:02 AM3/10/13
to
Is not that line a dead giveaway? Your / partition is full.

--
Dom


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/513C4B69...@rpdom.net

Bonno Bloksma

unread,
Mar 10, 2013, 5:20:01 AM3/10/13
to
Hi Dom,

>> The "No space left on drive" is the wrong symptom, there is plenty of space on all partitions.
>>
>> # df
>> Filesystem 1K-blocks Used Available Use% Mounted on
>> /dev/mapper/linbobo-root
>> 2064208 2064208 0 100% /
>
> Is not that line a dead giveaway? Your / partition is full.

How did I miss that? Ok, found the cause, a test script that created a log file but that should not have been running anymore.

# aptitude install debian-goodies
The following NEW packages will be installed:
dctrl-tools{a}
The following partially installed packages will be configured:
curl debian-goodies libcurl3 libssh2-1
[....]

Current status: 0 broken [-1].
#

Thanks for pointing it out to me.

Bonno Bloksma


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/89D1798A7351D040B4E7...@HGLEXCH-01.tio.nl
0 new messages