Author Topic: Constant: Cannot write user data - System error messages  (Read 377 times)

Offline JohnnySSH

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
Constant: Cannot write user data - System error messages
« on: September 06, 2017, 09:47:51 am »
Hi,

recently my VeraEdge has been playing up and crashing quite often.

The only information provided is the:

Quote
Cannot write user data - System error messages

message.


Running a quick filesystem size check shows this:

Code: [Select]
/# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    9.4M      7.5M      1.9M  80% /
/dev/root                 9.5M      9.5M         0 100% /rom
tmpfs                    61.9M      2.6M     59.2M   4% /tmp
/dev/mtdblock6            9.4M      7.5M      1.9M  80% /overlay
overlayfs:/overlay        9.4M      7.5M      1.9M  80% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock10          64.8M     21.7M     43.1M  33% /storage
/dev/mtdblock10          64.8M     21.7M     43.1M  33% /etc/cmh-firmware
/dev/mtdblock10          64.8M     21.7M     43.1M  33% /etc/cmh-backup
/dev/mtdblock9            8.5M      8.5M         0 100% /mios
//<IP>/vera      148.9G     37.0G    112.0G  25% /dataMine

Code: [Select]
/# du -sch *
512 1
749.5K bin
34.0M dataMine
0 dataMine2
0 dev
0 dmtmp
16.8M etc
512 foo
8.7M lib
512 log.upgrade
27.4M mios
512 mios_constants.sh
0 mnt
0 mnt_tmp
12.2M overlay
du: proc/32545: No such file or directory
du: proc/32556: No such file or directory
0 proc
23.7M rom
512 root
498.5K sbin
93.3M storage
0 sys
3.0M tmp
14.2M usr
0 var
3.1M www
237.6M total


I wonder if it's because of the 1.9MB left on the 'root' of the fs that's the issue?


The current firmware revision is this: 1.7.3014

I think also the filesystem layout has changed since the previous version too as I can no longer find the log files under the cmh directory.


If anyone could suggest where to begin debugging it would be very much appreciated.

[EDIT]

Well that was fun... discovered: http://wiki.mios.com/index.php/Logs

then go to /var/log/cmh and all I get is:

Code: [Select]
/tmp/log# ls
Bus error

So it's like this issue is happening every few minutes now?? :-(

[EDIT2]
Perhaps this is the issue??

Code: [Select]
01      09/06/17 16:04:01.518   JobHandler_LuaUPnP::GetPluginVersionOnline failed to convert 8176 <0x773b5520>
01      09/06/17 16:04:07.757   UserData::WriteUserData saved--before move File Size: 103299 save size 103299 <0x773b5520>
« Last Edit: September 06, 2017, 11:16:20 am by JohnnySSH »

Offline reneboer

  • Hero Member
  • *****
  • Posts: 1120
  • Karma: +61/-30
Re: Constant: Cannot write user data - System error messages
« Reply #1 on: September 07, 2017, 05:31:33 am »
Hi,

It seems the file system has some NVRAM errors. Have you tried to switch it off and on again to see if it recovers? Do you have logging set to be on a USB stick, and is that still working/plugged in?

The file system usage looks normal. Also those two lines from the log are not uncommon. The plugin message is about this plugin: http://apps.mios.com/plugin.php?id=8176. You can try to uninstall and see what happens.

Only other thing I can think of is contact Vera support and have them look at your unit.

Cheers Rene
2xVeraLite, VeraEdge, openLuup, ALTUI, 20 switches, 10 dimmers, 20 sensors, 10 scene controllers, 1 Harmony Hub, many plug-ins. Not enough time.

Offline JohnnySSH

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
Re: Constant: Cannot write user data - System error messages
« Reply #2 on: September 07, 2017, 06:20:26 am »
Hi, thanks for the reply!

Yeah I had to switch off/on many times.

I think I found the issue as the system seems to have stabilized and been up till now from yesterday.

So after checking the log file I removed the KODI, UPS and uPnP plugins. The logs still show errors regarding them so I don't know if the plugins got 100% uninstalled or if something is cached somewhere??

For the major issue it turns out to be the EnergyPlugin that was going crazy. I removed it and the Vera seems to be stable now.


This is kind of strange as many people have had issues with it and for it to actually be an "official" plugin is really weird. Though having said that it might not be the plugin itself but the external site that communicates with for reporting.

[EDIT]

actually the Vera seems to have popped again so it's not the EnergyPlugin?? :-(

Uh more checking through log files I guess.....
« Last Edit: September 07, 2017, 06:27:12 am by JohnnySSH »

Offline RichardTSchaefer

  • Master Member
  • *******
  • Posts: 9732
  • Karma: +737/-136
    • RTS Services Plugins
Re: Constant: Cannot write user data - System error messages
« Reply #3 on: September 07, 2017, 09:34:12 am »
Try to turn off your KODI, the computer ... not the plugin.
« Last Edit: September 07, 2017, 09:37:21 am by RichardTSchaefer »

Offline JohnnySSH

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
Re: Constant: Cannot write user data - System error messages
« Reply #4 on: September 07, 2017, 10:01:37 am »
This is the log file for the Vera...

which should contain a few crashes.

I think the error message before the crash was: temp log file filesystem failure??

Offline JohnnySSH

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
Re: Constant: Cannot write user data - System error messages
« Reply #5 on: September 07, 2017, 10:05:05 am »
Second part of log file

Offline JohnnySSH

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
Re: Constant: Cannot write user data - System error messages
« Reply #6 on: September 07, 2017, 10:06:35 am »
3rd and final portion of log:

Offline hmspain

  • Hero Member
  • *****
  • Posts: 517
  • Karma: +16/-8
Re: Constant: Cannot write user data - System error messages
« Reply #7 on: September 11, 2017, 11:08:18 am »
The good ol' "WriteUserData" error.  This one has been with us for years.  I was hoping it would be gone by now...
VeraPlus (1); Cameras (6), Sirens (2), Hue Bulbs/Strips/Blooms (42), Fan Dimmer (6), Aeon 4-in-1s (10), Water Sensors (3), Z-Wave Switches (20), Nest Smoke/CO Protects (5), Nest Thermostat Gen3 (1), HEM Gen2s (2)

Offline RichardTSchaefer

  • Master Member
  • *******
  • Posts: 9732
  • Karma: +737/-136
    • RTS Services Plugins
Re: Constant: Cannot write user data - System error messages
« Reply #8 on: September 11, 2017, 12:02:35 pm »
That error does NOT mean it could not write user data.
It's there because on occasion it can't ... and caused because the developer put some diagnostic print statements to see what was happening prior to it failing.

You know what the say when you ASSuME about things, such as the contents of the log file which is not meany for user consumption.