linuxserver / docker-smokeping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RRD files are too small, should be 2986716 bytes

3891sinneD opened this issue · comments

linuxserver.io


Expected Behavior

smokeping works

Current Behavior

smokeping doesn't work

Steps to Reproduce

  1. Create a smokeping container with image 76bf5908-ls113 and let it run for a while
  2. Stop and remove the smokeping container
  3. Create a new smokeping container with image 2.7.3-r5-ls114
  4. You'll notice that this version will not work and causes the too small error

Environment

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Client: Docker Engine - Community
Version: 20.10.16
API version: 1.41
Go version: go1.17.10
Git commit: aa7e414
Built: Thu May 12 09:16:17 2022
OS/Arch: linux/arm
Context: default
Experimental: true

Server: Docker Engine - Community
Engine:
Version: 20.10.16
API version: 1.41 (minimum version 1.12)
Go version: go1.17.10
Git commit: f756502
Built: Thu May 12 09:14:21 2022
OS/Arch: linux/arm
Experimental: false
containerd:
Version: 1.6.4
GitCommit: 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16
runc:
Version: 1.1.1
GitCommit: v1.1.1-0-g52de29d
docker-init:
Version: 0.19.0
GitCommit: de40ad0

Command used to create docker container (run/create/compose/screenshot)

docker run -d
--name=smokeping
-e PUID=1000
-e PGID=1000
-e TZ=Europe/Amsterdam
-p 80:80
-v /opt/smokeping/config:/config
-v /opt/smokeping/data:/data
--hostname=smokeping
--restart unless-stopped
--label com.centurylinklabs.watchtower.enable=true
linuxserver/smokeping:latest

Docker logs

docker logs smokeping
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 02-tamper-check: executing...
[cont-init.d] 02-tamper-check: exited 0.
[cont-init.d] 10-adduser: executing...


      _         ()
     | |  ___   _    __
     | | / __| | |  /  \
     | | \__ \ | | | () |
     |_| |___/ |_|  \__/

Brought to you by linuxserver.io

To support LSIO projects visit:
https://www.linuxserver.io/donate/

GID/UID

User uid: 1000
User gid: 1000

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
RRDs::info /data/filename.rrd: ERROR: '/data/filename.rrd' is too small (should be 2986716 bytes) at /usr/share/perl5/vendor_perl/Smokeping/RRDtools.pm line 113.

Prior the ls114 version, the RRD files have a size of 2986708, from ls114 the size is 2986716

Workaround

Stop and remove the smokeping container.
Rename the data folder to data.old
Create a new smokeping container with the latest image
Start the new container
This will create new rrd files (no history) with the correct size.

Recommended fix

Convert the old RRD files to the new format

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue is locked due to inactivity