Author Topic: Constant: Cannot write user data - System error messages  (Read 1268 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: 1282
  • Karma: +72/-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: 10037
  • Karma: +759/-141
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: 10037
  • Karma: +759/-141
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.

Offline toaderv

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Constant: Cannot write user data - System error messages
« Reply #9 on: January 29, 2018, 04:13:56 pm »
Hello all,
I'm posting on this topic as being similar with my error. If there is a better topic to move it there, please let me know!

Since couple of months I started to have this issue with my vera edge: error message "cannot write user data - system error".  Some days I had even 10 times this message. After couple of weeks, this message become "deadly" - my vera remains unresponsive.
One customer advocates concluded that a temp sensor flood the zwave chip; after couple of messages he found a second temp sensor that flooded the zwave chip. Now another advocate found a house heating thermostat "flooding the zwave network because it was reporting to Vera for multiple times every second. Because of this the z-wave chip got stuck and the unit went into a bad state."
I'm still a newbie in this matter, however, from vera log (that I shared with customer care) I see a log writing/rotating persisting error. Am I wrong?
Thank you in advance for your feedback!

Offline reneboer

  • Hero Member
  • *****
  • Posts: 1282
  • Karma: +72/-30
Re: Constant: Cannot write user data - System error messages
« Reply #10 on: February 01, 2018, 05:35:25 am »
Hi toaderv,

I fear the NVRAM of your Vera is either filled up or getting bad. I would contact support to have a look.

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 Learic

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +0/-1
Re: Constant: Cannot write user data - System error messages
« Reply #11 on: February 26, 2018, 06:06:30 pm »
Aside from the error showing up in the logs files, is there a way to stop it from showing up as Alerts in GUI? When I login, there are always 10 Alerts and it says the same thing 10 times. Can we filter alerts and stop it from showing in the GUI? I'm on firmware 1.7.1017.

Offline Don Phillips

  • Hero Member
  • *****
  • Posts: 1218
  • Karma: +31/-32
Re: Constant: Cannot write user data - System error messages
« Reply #12 on: February 26, 2018, 08:31:35 pm »
I am not aware how to turn them off so I just ignore them since they never have been very useful.
Vera 3, 1.7.1030, CT101 t-stat, Everspring motion detector, GE/Jasco switch, Leviton outlet, AeonLabs sensor, NuTone garage door, Blue Iris, Sricam SP011, iPhone locator, APCUPSD, VeraMate, VeraAlerts, PLEG, House Modes, Countdown Timer, DVR, Virtual/Multi Switch, Weatherunderground, LB60Z-1 bulb

Offline Learic

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +0/-1
Re: Constant: Cannot write user data - System error messages
« Reply #13 on: February 27, 2018, 09:42:35 pm »
I have been ignoring them as well but they continue to fill up my 10 alerts status on the dashboard window so it keeps me from seeing real alerts.. It would be nice to have the ability to filter them out so I can pay attention to more serious alerts...

Offline kwieto

  • Sr. Member
  • ****
  • Posts: 475
  • Karma: +19/-10
Re: Constant: Cannot write user data - System error messages
« Reply #14 on: February 28, 2018, 04:01:38 pm »
It would be nice to have the ability to filter them out so I can pay attention to more serious alerts...

I think "can't write user data" alert is one of the most serious you can have. If it repeats, it suggests that either something is going wrong with memory chips on your Vera, or the memory is flooded with some data and overfilled. In both cases the result may be bricking the unit.