Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fehler in der Protokolldatei. #4

Open
ivan-cc opened this issue Jan 30, 2018 · 8 comments
Open

Fehler in der Protokolldatei. #4

ivan-cc opened this issue Jan 30, 2018 · 8 comments

Comments

@ivan-cc
Copy link

ivan-cc commented Jan 30, 2018

Guten Tag, Mein ioBroker ist auf Orange PI PC (mit ARMBIAN 5.35 user-built Ubuntu 16.04.3 LTS 3.4.113-sun8i) installiert worden. Ich habe auch ioBroker.opi, (v/0.1.1) installiert, aber in Logs tauchen immer wieder folgende Fehler auf:
`

opi.0 2018-01-30 14:11:26.029 error Cannot evaluate: total used free shared buff/cache available Mem: 1024816 470616 104132 12092 450068 518947 Swap: 512400
opi.0 2018-01-30 14:10:25.333 error /1024
opi.0 2018-01-30 14:10:25.333 error Swap: 512400 59408 452992
opi.0 2018-01-30 14:10:25.333 error Mem: 1024816 467392 107296 12092 450128 522103
opi.0 2018-01-30 14:10:25.333 error Cannot evaluate: total used free shared buff/cache available
opi.0 2018-01-30 14:09:24.665 error /1024
opi.0 2018-01-30 14:09:24.665 error Swap: 512400 59408 452992
opi.0 2018-01-30 14:09:24.665 error Mem: 1024816 464108 110700 12088 450008 525507
opi.0 2018-01-30 14:09:24.665 error Cannot evaluate: total used free shared buff/cache available
opi.0 2018-01-30 14:08:24.004 error /1024
opi.0 2018-01-30 14:08:24.004 error Swap: 512400 59408 452992
opi.0 2018-01-30 14:08:24.004 error Mem: 1024816 460152 114576 12088 450088 529379
opi.0 2018-01-30 14:08:24.004 error Cannot evaluate: total used free shared buff/cache available
opi.0 2018-01-30 14:07:23.328 error /1024
opi.0 2018-01-30 14:07:23.328 error Swap: 512400 59408 452992
opi.0 2018-01-30 14:07:23.328 error Mem: 1024816 457136 119032 10752 448648 533835
opi.0 2018-01-30 14:07:23.328 error Cannot evaluate: total used free shared buff/cache available
opi.0 2018-01-30 14:06:22.551 error /1024
opi.0 2018-01-30 14:06:22.551 error Swap: 512400 59408 452992
opi.0 2018-01-30 14:06:22.551 error Mem: 1024816 463048 113012 10744 448756 527819
opi.0 2018-01-30 14:06:22.551 error Cannot evaluate: total used free shared buff/cache available
opi.0 2018-01-30 14:05:21.813 error /1024
opi.0 2018-01-30 14:05:21.813 error Swap: 512400 59408 452992
opi.0 2018-01-30 14:05:21.813 error Mem: 1024816 459932 116272 10744 448612 531071
opi.0 2018-01-30 14:05:21.813 error Cannot evaluate: total used free shared buff/cache available

`

@PrinzEisenherz1
Copy link
Collaborator

Hi. Welchen OPi hast du denn? Ich hab den Adapter nur auf einen OPi plus2 h3 getestet mit Debian. Muss mal schauen was Ubuntu für Dateien anlegt und wie ich die am besten auch abfragen kann. Kann etwas dauern bis ich dazu komme. Kinder sind krank.

@ivan-cc
Copy link
Author

ivan-cc commented Jan 31, 2018

Ich habe Orange PI PC (mit Armbian).

@PrinzEisenherz1
Copy link
Collaborator

poste mal folgende sachen
/usr/bin/free -mk
cat /proc/meminfo
cat /etc/*{release,version}

Danke

Ich kuck mal was sich da machen lässt.

@ivan-cc
Copy link
Author

ivan-cc commented Jan 31, 2018

Ich habe ein Problem gefunden:
/usr/bin/free -km

              total        used        free      shared  buff/cache   available
Mem:           1000         383         525           0          91         593
Swap:           500          94         405

Keine "buffers/cache".

cat /proc/meminfo

MemTotal:        1024816 kB
MemFree:          539608 kB
Buffers:           19212 kB
Cached:            53836 kB
SwapCached:        10848 kB
Active:           201208 kB
Inactive:         196004 kB
Active(anon):     150380 kB
Inactive(anon):   174620 kB
Active(file):      50828 kB
Inactive(file):    21384 kB
Unevictable:           0 kB
Mlocked:               0 kB
HighTotal:        270336 kB
HighFree:          42192 kB
LowTotal:         754480 kB
LowFree:          497416 kB
SwapTotal:        512400 kB
SwapFree:         415720 kB
Dirty:               232 kB
Writeback:             0 kB
AnonPages:        318976 kB
Mapped:            17608 kB
Shmem:               836 kB
Slab:              22104 kB
SReclaimable:      11912 kB
SUnreclaim:        10192 kB
KernelStack:        1992 kB
PageTables:         3904 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1024808 kB
Committed_AS:    1918544 kB
VmallocTotal:     245760 kB
VmallocUsed:       17920 kB
VmallocChunk:     212864 kB

cat /etc/*{release,version}

# PLEASE DO NOT EDIT THIS FILE
BOARD=orangepipc
BOARD_NAME="Orange Pi PC"
VERSION=5.35
LINUXFAMILY=sun8i
BRANCH=default
ARCH=arm
IMAGE_TYPE=user-built
BOARD_TYPE=conf
INITRD_ARCH=arm
KERNEL_IMAGE_TYPE=zImage
# PLEASE DO NOT EDIT THIS FILE
BOARD=orangepipc
BOARD_NAME="Orange Pi PC"
VERSION=5.35
LINUXFAMILY=sun8i
BRANCH=default
ARCH=arm
IMAGE_TYPE=user-built
BOARD_TYPE=conf
INITRD_ARCH=arm
KERNEL_IMAGE_TYPE=zImage
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
stretch/sid

@AlZiBa
Copy link
Contributor

AlZiBa commented Mar 10, 2018

debug	free: Multiple unit options doesn't make sense.
debug	Error: Command failed: /usr/bin/free -mk
debug	---> /usr/bin/free -mk
debug	PARSING: memory_available
/usr/bin/free -mk
free: Multiple unit options doesn't make sense.

http://www.gnutoolbox.com/linux-free-command/

/usr/bin/free -k
              total        used        free      shared  buff/cache   available
Mem:        2062388      690728      983204       26160      388456     1285248
Swap:        131068           0      131068

resolves the command failed error only

"regexp": "^-\\/\\+ buffers\\/cache:\\s+\\d+\\s+(\\d+)"
will not work for armbian
but there is an 'available' in our output
have to find the right regexp

AlZiBa added a commit to AlZiBa/ioBroker.opi that referenced this issue Mar 10, 2018
@ivan-cc
Copy link
Author

ivan-cc commented Mar 10, 2018

Keine "buffers/cache" (für Armbian)
image

@AlZiBa
Copy link
Contributor

AlZiBa commented Mar 10, 2018

Mein OPi ist ein Opi plus 2e unter ar-deb-server -
Armbian_5.38_Orangepiplus2e_Debian_stretch_next_4.14.14.

Habe jetzt 2 Versionen für 'available', welche ohne Fehler den gleichen Wert liefern.
Ob selbiges der gesuchte Wert ist, kann ich nicht entscheiden.

            "memory_available": {
                "command": "/usr/bin/free -k",
                "regexp": "Mem:\\s+\\d+\\s+\\d+\\s+\\d+\\s+\\d+\\s+\\d+\\s+(\\d+)",
                "post": "$1/1024"
            },
            "memory_available_b": {
                "command": "cat /proc/meminfo",
                "regexp": "MemAvailable:\\s+(\\d+)",
                "post": "$1/1024"
            }

Sieht aber so aus, als ob _b für moneyadmin unter ubuntu nicht geht.

@MoHorst
Copy link

MoHorst commented Oct 10, 2018

Hallo,
ich bekomme eine ähnliche Fehlermeldung für den OPI Zero sun8i-h3

`
2018-10-10 08:29:56.930 - debug: opi.0 ---> POST: $1/1024 for memory_total in [object Object]
2018-10-10 08:29:56.931 - debug: opi.0 VALUE: 505152 POST: $1/1024
2018-10-10 08:29:56.931 - debug: opi.0 SETSTATE FOR opi.0.memory.memory_total VALUE = 493.31
2018-10-10 08:29:56.932 - debug: opi.0 ---> POST: $1/1024 for memory_free in [object Object]
2018-10-10 08:29:56.932 - debug: opi.0 VALUE: 70536 POST: $1/1024
2018-10-10 08:29:56.933 - debug: opi.0 SETSTATE FOR opi.0.memory.memory_free VALUE = 68.88
2018-10-10 08:29:56.933 - debug: opi.0 ---> POST: $1/1024 for memory_available in [object Object]
2018-10-10 08:29:56.934 - error: opi.0 No Value found for memory_available

root@orangepizero:~# /usr/bin/free -mk
free: Multiple unit options doesn't make sense.

root@orangepizero:~# cat /proc/meminfo
MemTotal: 505152 kB
MemFree: 76712 kB
MemAvailable: 150576 kB
Buffers: 9916 kB
Cached: 57340 kB
SwapCached: 1144 kB
Active: 216932 kB
Inactive: 144500 kB
Active(anon): 181092 kB
Inactive(anon): 113276 kB
Active(file): 35840 kB
Inactive(file): 31224 kB
Unevictable: 0 kB
Mlocked: 0 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 505152 kB
LowFree: 76712 kB
SwapTotal: 252560 kB
SwapFree: 234384 kB
Dirty: 4 kB
Writeback: 0 kB
AnonPages: 293616 kB
Mapped: 41764 kB
Shmem: 192 kB
Slab: 30952 kB
SReclaimable: 17832 kB
SUnreclaim: 13120 kB
KernelStack: 1920 kB
PageTables: 4604 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 505136 kB
Committed_AS: 1322364 kB
VmallocTotal: 507904 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
CmaTotal: 65536 kB
CmaFree: 26288 kB

root@orangepizero:~# cat /etc/*{release,version}

BOARD=orangepizero
BOARD_NAME="Orange Pi Zero"
BOARDFAMILY=sun8i
VERSION=5.59
LINUXFAMILY=sunxi
BRANCH=next
ARCH=arm
IMAGE_TYPE=stable
BOARD_TYPE=conf
INITRD_ARCH=arm
KERNEL_IMAGE_TYPE=zImage
14f6fcc7-6fc7-42ff-a502-101632ddf9e5

PLEASE DO NOT EDIT THIS FILE

BOARD=orangepizero
BOARD_NAME="Orange Pi Zero"
BOARDFAMILY=sun8i
VERSION=5.60
LINUXFAMILY=sunxi
BRANCH=next
ARCH=arm
IMAGE_TYPE=stable
BOARD_TYPE=conf
INITRD_ARCH=arm
KERNEL_IMAGE_TYPE=zImage
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
9.5
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants