Package: freedombox-setup
Version: 0.9.1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

We are some cases of I/O errors and filesystem corruptions:

1) After running Lime2 for several months, I have noticed that the btrfs
filesystem development many errors.  Although the device suffered many power
outages (due to unreliable power supply in the area), the corruptions are not
supposed to happen due to the COW design of btrfs.  In its final days, the
kernel kept throwing btrfs stack traces and I had to copy of the files to
another disk.

At first I thought this was SD card going bad even though it is a high quality
SD card (Samsung EVO).  When I ran badblocks with write checks (several passes)
on the card, there were no bad blocks found.  I wrote a fresh image and it is
now working fine with same SD card.  I suspect software problem.

2) Stephen Mahood reported experiencing multiple SD cards developing
corruptions on multiple beaglebone black devices while trying to install/use
ownCloud.  We assumed that it was a bug in the old kernel.  He is now using the
latest nightly images for new kernel.

3) I investigated Bug #819199.  It turns out that libpam_abl uses libdb5.3
(Berkley DB) which is now a resilient database with ACID compliance.  Power
outages should not have affected it.  I suspect it to be this problem.

4) Another user, stueja, is reporting
(https://github.com/freedombox/Plinth/issues/463) package cache corruption
along with I/O errors writing to the cache.

The only thing I suspect that can create such a problems in FreedomBox is the
laptop_mode kernel parameter combined with btrfs filesystem.  This is only a
guess but I suggest removing it until this bug is reliably solved.  Here are
some things to think about:

- - laptop_mode is meant to save power by spinning down the rotating disks and
keeping them that way for longer.  I could not find evidence that this helps
with SD card power usage or that SD card power usage is significant enough.
Further, most of our users run their FreedomBox on batter power.

- - The recommended way to deal with this kernel parameter is using a script
which is now part of laptop-mode-tools package which is responsible for saving
powers in many other ways.  However, it works with system having ACPI which is
not the case with most of our hardware.

- - If a user installs FreedomBox on a laptop, they could choose to install the
laptop-mode-tools package the usual way without FreedomBox automatically doing
it.

- - laptop_mode may lead to several minutes of data loss in case of a power cut
to the devices.  This should not usually lead to filesystem corruptions though.
This is a reasonable compromise that need to run for long time on battery but
on servers, this may not be the right thing to do.

- - IIUC, laptop_mode requires special file system support.  I see that support
in ext3/ext4 etc. but I haven't found any references to btrfs supporting it.



- -- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages freedombox-setup depends on:
ii  apache2                                2.4.20-2
ii  augeas-tools                           1.2.0-0.3
ii  avahi-daemon                           0.6.32~rc+dfsg-1
ii  avahi-utils                            0.6.32~rc+dfsg-1
ii  bridge-utils                           1.5-9
pn  checkinstall                           <none>
pn  devio                                  <none>
ii  dialog                                 1.3-20160424-1
pn  dnsmasq                                <none>
ii  dnsutils                               1:9.10.3.dfsg.P4-10
ii  dosfstools                             4.0-2
pn  etckeeper                              <none>
ii  firewalld                              0.4.1.2-1
pn  haveged                                <none>
ii  hostname                               3.17
ii  htop                                   2.0.1-1
pn  iftop                                  <none>
ii  iptables                               1.6.0-2
ii  iputils-ping                           3:20150815-2
ii  isc-dhcp-client                        4.3.4-1
pn  libnss-gw-name                         <none>
ii  libnss-mdns                            0.10-7
ii  libnss-myhostname                      230-1
ii  libpython2.7-stdlib [python-argparse]  2.7.11-9
ii  locales                                2.22-9
pn  locales-all                            <none>
ii  lsof                                   4.89+dfsg-0.1
pn  lua-sec                                <none>
pn  macchanger                             <none>
ii  monkeysphere                           0.37-3
ii  net-tools                              1.60+git20150829.73cef8a-2
ii  ntp                                    1:4.2.8p7+dfsg-4
ii  openssh-server                         1:7.2p2-5
ii  parted                                 3.2-15
pn  plinth                                 <none>
ii  psmisc                                 22.21-2.1+b1
ii  python-augeas                          0.5.0-1
ii  python-beautifulsoup                   3.2.1-1
ii  python-bjsonrpc                        0.2.0-2
ii  python-docutils                        0.12+dfsg-1
ii  python-lxml                            3.6.0-1
pn  python:any                             <none>
pn  resolvconf                             <none>
ii  ssl-cert                               1.0.37
ii  sudo                                   1.8.15-1.1
ii  tcpdump                                4.7.4-1+b1
pn  uaputl                                 <none>
ii  vim-tiny                               2:7.4.1829-1
ii  wget                                   1.17.1-2
pn  zile                                   <none>

Versions of packages freedombox-setup recommends:
pn  batctl          <none>
pn  pagekite        <none>
pn  rfkill          <none>
ii  wireless-tools  30~pre9-11

freedombox-setup suggests no packages.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJXUxbSAAoJEDbDYUQMm8lxXC0P/3qrjlOhaSCMjlj6KutML9nC
AxLY5G9597F+YK6VJNpfMfqpXi1PmCB5hZI09qfkgeI6rJcfZknV6uhSwU/RHZoE
vASReNDsiVHcNOiP+O12y06BViR1DpKa4xXPPR9Jzfc3dOoYB1YHdQFiAG78moPi
L958ajO9xCOunFzB6xh7Cf4RA/fnG99j07yJ1/5L10Sb/JXo3uBwufXba2j+C01Z
K2ZrzaQHuUWs7Nf1e81KIzR5cXFOK33ReCmjdvcJeSvynltvooG490GEoNyjLwim
tG+8iOa7g2ISAxtJ0W0cDMgRbVCzgAN7EDuoJmjKBCW0wZkhfwVeWVpdyn3TZnhn
Mck70g+uejOooUr8cXvOo1P3EsjmkyS1HXSPq1c83dZk+U3zv2jU2kdj71PPJdIM
vuAwBtRJU7+A+fgfFdyXGWSZWwXhFGHzB5UKCh2ibuWKDaC4IOID+g8rqOcYoIaK
qL7xFezEws3Y6fI6I4hSLWufFlsi0e30TDNFs19MdOPBtfPtJJLALxL1y8Bwk91I
KmLKDVGIOcQFjNq/Xp0fzlKwNNUNEMQRMHDH3sLd2PxGfg2aZe8IGQCVATkCkstp
wBE45lZaDC/L7clhj8PiKaQhYuL802lQCmiq8gj7anmIRT2kY79IOKw9XQ1H7R5R
/NnptxN6q2oGYHhfkT3U
=KzUB
-----END PGP SIGNATURE-----

Reply via email to