Announcement

Collapse
No announcement yet.

HS3 ZeeS2 Configuration Backup always fails, Out of Memory

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HS3 ZeeS2 Configuration Backup always fails, Out of Memory

    After 5-10 minutes of the spinning wait graphic and a frozen system, this comes up in the log... Any ideas?
    Sep-27 5:15:12 PM Error reading file /usr/local/HomeSeer/html/HomeSeerBackup_9_27_2020-17_14.zip: Out of memory
    Sep-27 5:15:12 PM Z-Wave Device: Outside Multi-6x Sensor Temperature Set to 84.1 (F)
    Sep-27 5:15:12 PM Warning In ZipFile, exception opening /usr/local/HomeSeer/ConfigBackup/html.zip : Sharing violation on path /usr/local/HomeSeer/ConfigBackup/html.zip
    Sep-27 5:14:46 PM Error In Zip file handling: Sharing violation on path /usr/local/HomeSeer/ConfigBackup/html.zip
    Sep-27 5:14:44 PM Error In ZipFile, exception zipping files: Out of memory
    Sep-27 5:14:44 PM Error In ZipFile, exception zipping files: Out of memory
    Sep-27 5:14:44 PM Error In ZipFile, exception zipping files: Out of memory
    Linux version: Linux HomeTrollerZeeS2 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
    Current Date/Time: 9/27/2020 5:22:58 PM EDT
    HomeSeer Version: HS3 ZEE S2 Edition 3.0.0.548 (Linux)
    HomeSeer: Is Registered
    System Uptime: 6 Days 11 Hours 59 Minutes 22 Seconds
    Number of Devices: 95
    Number of Events: 21
    Event Last Ran: Power Updates : Total Energy, Ran at 9/27/2020 5:22:52 PM
    Number of unique event scripts used: 4
    Plug-Ins Enabled: Z-Wave:,Device History:,Nest:
    Modules/Threads: 76 Modules, 44 Threads
    Available Threads: 399
    HomeSeer Memory Used: 552 Mbytes
    running command df -H
    Filesystem Size Used Avail Use% Mounted on
    /dev/root 7.6G 5.2G 2.0G 74% /
    devtmpfs 481M 0 481M 0% /dev
    tmpfs 98M 230k 97M 1% /run
    tmpfs 5.3M 0 5.3M 0% /run/lock
    tmpfs 195M 21k 195M 1% /run/shm
    /dev/mmcblk0p5 62M 21M 42M 33% /boot
    tmpfs 486M 17M 469M 4% /tmp
    tmpfs 486M 1.9M 484M 1% /var/log
    tmpfs 486M 0 486M 0% /var/tmp


    There's an instance of "mono" that's using 77% of memory...

    homeseer@HomeTrollerZeeS2 ~ $ top -b -n 1

    top - 17:37:49 up 6 days, 12:14, 1 user, load average: 0.20, 0.31, 0.70

    Tasks: 97 total, 1 running, 96 sleeping, 0 stopped, 0 zombie

    %Cpu(s): 6.1 us, 0.6 sy, 0.0 ni, 92.9 id, 0.3 wa, 0.0 hi, 0.1 si, 0.0 st

    KiB Mem: 948016 total, 900424 used, 47592 free, 5724 buffers

    KiB Swap: 102396 total, 100812 used, 1584 free, 37180 cached



    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

    616 homeseer 20 0 4704 2360 2084 R 17.1 0.2 0:00.05 top

    11 root 20 0 0 0 0 S 5.7 0.0 0:09.70 ksoftirqd/1

    2325 root 20 0 113m 35m 2268 S 5.7 3.8 800:19.15 mono

    1 root 20 0 2172 48 28 S 0.0 0.0 0:13.79 init

    2 root 20 0 0 0 0 S 0.0 0.0 0:00.74 kthreadd

    3 root 20 0 0 0 0 S 0.0 0.0 0:55.82 ksoftirqd/0

    5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H

    7 root 20 0 0 0 0 S 0.0 0.0 4:04.89 rcu_sched

    8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh

    9 root rt 0 0 0 0 S 0.0 0.0 0:00.82 migration/0

    10 root rt 0 0 0 0 S 0.0 0.0 0:00.77 migration/1

    13 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/1:0H

    14 root rt 0 0 0 0 S 0.0 0.0 0:00.74 migration/2

    15 root 20 0 0 0 0 S 0.0 0.0 0:09.06 ksoftirqd/2

    17 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/2:0H

    18 root rt 0 0 0 0 S 0.0 0.0 0:00.77 migration/3

    19 root 20 0 0 0 0 S 0.0 0.0 0:09.10 ksoftirqd/3

    21 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/3:0H

    22 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 khelper

    23 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs

    24 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns

    25 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 perf

    26 root 20 0 0 0 0 S 0.0 0.0 0:00.59 khungtaskd

    27 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback

    28 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto

    29 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset

    30 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd

    32 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 rpciod

    33 root 20 0 0 0 0 S 0.0 0.0 0:08.61 kswapd0

    34 root 20 0 0 0 0 S 0.0 0.0 0:00.00 fsnotify_mark

    35 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 nfsiod

    41 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kthrotld

    42 root 1 -19 0 0 0 S 0.0 0.0 0:00.10 VCHIQ-0

    43 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 VCHIQr-0

    44 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 VCHIQs-0

    45 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 iscsi_eh

    46 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 dwc_otg

    47 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 DWC Notificatio

    51 root 20 0 0 0 0 S 0.0 0.0 0:00.00 VCHIQka-0

    52 root 10 -10 0 0 0 S 0.0 0.0 0:00.00 SMIO

    53 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 deferwq

    55 root 20 0 0 0 0 S 0.0 0.0 3:05.18 mmcqd/0

    56 root 20 0 0 0 0 S 0.0 0.0 1:23.25 jbd2/mmcblk0p6-

    57 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-rsv-conver

    180 root 20 0 2916 4 4 S 0.0 0.0 0:00.44 udevd

    301 root 20 0 0 0 0 S 0.0 0.0 0:00.03 kworker/3:1

    303 root 20 0 2912 0 0 S 0.0 0.0 0:00.01 udevd

    391 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/1:1H

    413 root 20 0 0 0 0 S 0.0 0.0 0:00.06 kworker/2:2

    453 root 20 0 0 0 0 S 0.0 0.0 0:00.28 kworker/1:1

    480 root 20 0 0 0 0 S 0.0 0.0 0:00.02 kworker/3:2

    483 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kworker/2:0

    523 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kworker/1:2

    524 root 20 0 0 0 0 S 0.0 0.0 0:00.08 kworker/0:2

    531 root 20 0 0 0 0 S 0.0 0.0 0:00.03 kworker/u8:0

    570 root 20 0 1708 20 0 S 0.0 0.0 0:59.64 logsave

    582 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kworker/0:1

    590 root 20 0 0 0 0 S 0.0 0.0 0:00.02 kworker/1:0

    593 root 20 0 9332 4516 3920 S 0.0 0.5 0:00.08 sshd

    601 homeseer 20 0 9332 3436 2852 S 0.0 0.4 0:00.01 sshd

    602 homeseer 20 0 6272 4616 2752 S 0.0 0.5 0:00.55 bash

    1190 root 20 0 1708 20 0 S 0.0 0.0 1:00.07 logsave

    1503 root 20 0 1780 96 76 S 0.0 0.0 3:36.57 ifplugd

    1506 root 20 0 1780 96 76 S 0.0 0.0 0:45.87 ifplugd

    1809 nobody 20 0 2048 56 40 S 0.0 0.0 0:06.22 thd

    1835 root 20 0 29412 1436 900 S 0.0 0.2 0:56.03 rsyslogd

    1989 root 20 0 3856 576 496 S 0.0 0.1 0:12.55 cron

    2008 ntp 20 0 5632 1252 1132 S 0.0 0.1 1:01.65 ntpd

    2044 messageb 20 0 3184 0 0 S 0.0 0.0 0:00.00 dbus-daemon

    2089 avahi 20 0 3608 1692 1380 S 0.0 0.2 43:36.34 avahi-daemon

    2091 avahi 20 0 3384 24 0 S 0.0 0.0 0:00.00 avahi-daemon

    2130 root 0 -20 0 0 0 S 0.0 0.0 0:00.09 kworker/0:1H

    2135 root 20 0 4928 100 0 S 0.0 0.0 0:00.10 dhclient

    2192 www-data 20 0 6704 296 256 S 0.0 0.0 0:30.41 lighttpd

    2194 www-data 20 0 19788 4 4 S 0.0 0.0 0:00.08 php-cgi

    2251 root 20 0 6248 584 512 S 0.0 0.1 0:00.00 sshd

    2259 www-data 20 0 19788 0 0 S 0.0 0.0 0:00.00 php-cgi

    2260 www-data 20 0 19788 0 0 S 0.0 0.0 0:00.00 php-cgi

    2261 www-data 20 0 19788 0 0 S 0.0 0.0 0:00.00 php-cgi

    2262 www-data 20 0 19788 0 0 S 0.0 0.0 0:00.00 php-cgi

    2264 root 20 0 2912 0 0 S 0.0 0.0 0:00.00 udevd

    2271 root 20 0 3628 4 4 S 0.0 0.0 0:00.01 sudo

    2276 root 20 0 1788 0 0 S 0.0 0.0 0:00.00 autostart_hs

    2278 root 20 0 1724 4 0 S 0.0 0.0 0:29.01 startpar

    2279 root 20 0 856m 712m 8168 S 0.0 76.9 628:15.60 mono

    2281 root 20 0 3780 4 4 S 0.0 0.0 0:00.01 getty

    2282 root 20 0 3780 4 4 S 0.0 0.0 0:00.01 getty

    2283 root 20 0 3780 4 4 S 0.0 0.0 0:00.01 getty

    2284 root 20 0 3780 4 4 S 0.0 0.0 0:00.01 getty

    2285 root 20 0 3780 4 4 S 0.0 0.0 0:00.01 getty

    2286 root 20 0 3780 4 4 S 0.0 0.0 0:00.01 getty

    2336 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/2:1H

    2420 root 20 0 55272 22m 1708 S 0.0 2.4 7:34.13 mono

    10197 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/3:1H

    29643 root 20 0 94624 44m 5708 S 0.0 4.8 5:59.77 mono

    31126 root 20 0 0 0 0 S 0.0 0.0 0:01.94 kworker/0:0

    32658 root 20 0 0 0 0 S 0.0 0.0 0:00.25 kworker/u8:2

    #2
    Is the error occurring on the backup, or when you're trying to restore?

    I had an issue when trying to restore to HS3-Linux. The zip was made on my production Windows system. From what I could see, the restore process was flawed in that it was buffering each file entirely into memory before writing it out. My solution was to edit the zip file to remove some large database files. All of these were in the Data.zip subsection. In my case, the biggest files were those from the Device History plugin. I may have removed some others, like the BLBackup BLLock databases.

    The removed files can always be restored manually after the restore is complete.

    Comment


      #3
      It's when I run the backup. But I do have some long-term history files which may be bloating the backup, I'll take a look at that.

      Comment

      Working...
      X