Problem with automatic update of dataMine?

Hello,

I noticed today that my dataMine plugin is stuck with the following error in the Vera status bar:
“dataMine graphing and logging[82] : Installing update of dataMine web application”
It stayed this way for at least 5 or 10 minutes, so I restarted and it switched to the error
“dataMine graphing and logging[82] : Startup Lua Failed” in the status bar
In the log, I see the error:

   ^[[31;1mLuaInterface::CallFunction_Startup-1 device 82 function initialise failed [string "-- dataMine Plugin for Vera..."]:796: attempt to index field 'Lookup' (a number value)^[[0m <0x2bf23680>

I tried uninstalling and reinstalling. However, after re-entering the mount path, Vera reboots and the same “installing update” message appears in the status bar with the same results. When I tried reinstalling a second time, I unchecked the ‘automatic updates’ box and the same thing happened again.

Right now my /dm/index.html just says:
“Unable to download channel configuration data from dataMine”

Is there anything else I can look for in the logs? Or something that needs to be tweaked?

Hi,
Sorry for the hassle. I’ve seen this before, but don’t really understand why it’s happened - can you send me your dataMineConfig.json file from the /dataMine directory?

Thanks
Chris

Not a problem - I’m just getting started and still setting things up. I didn’t consider that it might be a problem with my configuration - if it’s easier, I can just wipe all the dataMine files and start fresh.

It doesn’t let me send PM yet, so I attached a copy of the config file.

Thanks

Thanks - I’ll take a look. It’s not a problem with your configuration as such - there must be a bug in dataMine, but I’m hoping to be able to get an idea of what it is by looking at your config file.

I’ll get back to you shortly…

Cheers
Chris

@Damathon - I’ve sent you a PM, but decided to just put the (hopefully!) fixed version here… This is just the Lua file - to load it, in UI5, go to Apps, Develop Apps, Luup Files. Select this file, and click the “Restart Lua” box.

Please let me know how it goes. If this fixes the problem, I’ll release a new version in the next day or so…

Chris

Hi,

I’ve been trying to install dataMine but haven’t succeeded yet :confused:
I have Vera3 with 8Gb USB stick. The plugin installation goes fine. USB stick gets mounted but after that I get
“dataMine graphing and logging[6] : Startup Lua Failed” in the UI and this to the Lua log:

50 03/27/13 11:10:12.109 luup_log:6: dataMine: Initialising dataMine System (0.974) <0x2b7c3680>
06 03/27/13 11:10:12.110 Device_Variable::m_szValue_set device: 6 service: urn:cd-jackson-com:serviceId:DataMine1 variable: ChannelCnt was: 0 now: 0 #hooks: 0 upnp: 0 v:0xda2cf0/NONE duplicate:1 <0x2b7c3680>
06 03/27/13 11:10:12.110 Device_Variable::m_szValue_set device: 6 service: urn:cd-jackson-com:serviceId:DataMine1 variable: ChannelRec was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b7c3680>
50 03/27/13 11:10:12.110 luup_log:6: dataMine: Mounting to UUID ‘DCB4-2C89’ <0x2b7c3680>
50 03/27/13 11:10:12.519 luup_log:6: dataMine: UUID = /dev/sdb1: LABEL=“LOGGING” UUID=“DCB4-2C89” <0x2b7c3680>
50 03/27/13 11:10:12.535 luup_log:6: dataMine: Found UUID ‘DCB4-2C89’ at ‘/dev/sdb1’ <0x2b7c3680>
50 03/27/13 11:10:12.558 luup_log:6: dataMine: Mounted: /dev/sdb1 on /dataMine type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro) <0x2b7c3680>
06 03/27/13 11:10:12.558 Device_Variable::m_szValue_set device: 6 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountLocation was: /dev/sdb1 now: /dev/sdb1 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b7c3680>
06 03/27/13 11:10:12.559 Device_Variable::m_szValue_set device: 6 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountType was: vfat now: vfat #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b7c3680>
50 03/27/13 11:10:12.585 luup_log:6: dataMine: ERROR: Unable to open config file for read :: /dataMine/dataMineConfig.json <0x2b7c3680>
01 03/27/13 11:10:12.600 LuaInterface::CallFunction_Startup-1 device 6 function initialise failed [string “-- dataMine Plugin for Vera…”]:754: attempt to index field ‘?’ (a nil value) <0x2b7c3680>
01 03/27/13 11:10:12.601 LuImplementation::StartLua running startup code for 6 I_DataMine1.xml failed <0x2b7c3680>
02 03/27/13 11:10:13.701 JobHandler_LuaUPnP::REQ_Handler no handler for lr_dmCtrl LEAK this:86016 start:86016 to 0xe3f000 <0x2d7c3680>

I even did a “factory default” to the box because I thought it had something to do with my upgrade from Vera2 to Vera3.

Hi,
Thanks for the clear information - I think I’ve found the problem… I think it’s caused by a function that looks for old config files, and deletes some of them. In the case of a new installation, there are none, and the protection I put in for this doesn’t look right…

If you have WinSCP (or some other terminal to access Vera), you could try writing a file into the /dataMine directory called “dataMineConfig.json.Fri Feb 15 09-08-02 2013.backup” (without the quotes). You can change the date if you want - the idea is to put a file in here that should avoid the bug until I can get a fix out…

Let me know if you can do this, otherwise I’ll get you a fix.

Cheers
Chris

Thanks!

I touched the file there and now it starts just fine :slight_smile:

Great - I’ll get this fixed properly in the next version.

Cheers
Chris

I’ve been following along - Fresh new install of datamine as well ; Everything was going really well and I reached the same point as the kennelpoika with the exact same error

I touched and created a file per your suggestion ; restarted vera - but am getting another error

712: field ‘day’ missing in date table

  • Full log message

01 03/31/13 17:26:04.461 LuaInterface::CallFunction_Startup-1 device 47 function initialise failed [string “-- dataMine Plugin for Vera…”]:712: field ‘day’ missing in date table <0x2b527680>
01 03/31/13 17:26:04.461 LuImplementation::StartLua running startup code for 47 I_DataMine1.xml failed <0x2b527680>

Wanted to flag this for your attention ; Again this is probably related to a fresh clean install.

Please don’t worry about individual support for my install - but if there is any information I can provide to help you diagnose/fix don’t hesitate to ask !

Hi,
Thanks for the report (and apologies for the hassle!). For the backup file you created - did you use the same filename as per my email? I think the problem is that the filename is not in the format that’s expected, and this is causing the date conversion function to abort.

I’ll try and get an update out in a few day - probably late in the week as (unfortunately) I’m travelling again for work this week.

Cheers
Chris

I am so NOT a unix guy - but I think it’s correct. Can I just state that your support on this is just amazing ; how can I buy you several beers ?

Here’s a putty dump of my session

Using username “root”.
root@192.168.1.101’s password:

BusyBox v1.17.3 (2012-01-09 12:40:42 PST) built-in shell (ash)
Enter ‘help’ for a list of built-in commands.


| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -| || | | || || |
|
_____|| |
||||___||| |____|
|
| W I R E L E S S F R E E D O M

-------------- Backfire (10.03) -------------------


*** MiOS LTD. ( www.mios.com ) ***


*** WARNING : ***
*** Any changes made to the system without ***
*** guidance from MiOS support will VOID ***
*** your future Support requests ***

root@MiOS_30002900:~# cd /dataMine
root@MiOS_30002900:/dataMine# ls
09-08-02 2013.backup dataMineConfig.json.Fri
15 Feb
root@MiOS_30002900:/dataMine#

I am not sure how the spaces are being displayed; I touched the file and used right mouse to paste the exact filename (I think)

I’m also far from a Linux expert, but I have a suspicion that the spaces are a bad sign. Actually, thinking about it, it looks like they are being displayed as 5 different files.

Do you have WinSCP? It’s a bit more graphical that PuTTY (or whatever shell you’re using) - if you use that, and it looks ok, then it should be fine.

While I do quite like a beer :wink: I’m more than happy to help, so no problems.

Cheers
Chris

Ah ha ! It did make individual files… Found out using ls -l

root@MiOS_30002900:~# cd /dataMine
root@MiOS_30002900:/dataMine# ls-l
-ash: ls-l: not found
root@MiOS_30002900:/dataMine# ls -l
-rwxr-xr-x 1 root root 0 Mar 31 17:59 09-08-02
-rwxr-xr-x 1 root root 0 Mar 31 17:59 15
-rwxr-xr-x 1 root root 0 Mar 31 17:59 2013.backup
-rwxr-xr-x 1 root root 0 Mar 31 17:59 Feb
-rwxr-xr-x 1 root root 0 Mar 31 17:59 dataMineConfig.json.Fri
root@MiOS_30002900:/dataMine#

Deleted them all and did it again using the following: -

touch “dataMineConfig.json.Fri Feb 15 09-08-02 2013.backup”

note the “” are needed in this case !

And everything is working great - Interesting that I got a different error with no files in the /dataMine directory vs. a bunch

Again, my thanks - and greatest respect for your work.

I can’t get past: (have never installed dataMine before.)

Luup : Downloading Luup Plugins dataMine graphing and logging[61] : Installing update of dataMine web application

I’ve tried with a second memory stick installed (secondary to USB logging) and without. No joy. Can’t seem to find a /dataMine directory to be able to touch the files in question either. Chris, I know you’re busy–but any idea on when you might be able to get a fix into the App store?

Thanks,
Dave

Hi Dave,
I’ll get it in this weekend so it will hopefully get on apps on Monday. It might just have the updated Lua file - I’ve been travelling quite a lot with work over the past couple of weeks and haven’t had much time to do anything :frowning:

Cheers
Chris

Please - you have no reason to apologize. We are lucky that you’re willing to share your great work.

Thanks so much.

Hi,

Did I hit some “amount of devices” limit? I had 29 channels and the plugin was working really nice. Yesterday I added 3 pcs of Oregon Scientific temperature/humidity sensors and now the Luup? and dataMine plugin keeps restarting :slight_smile:
And dataMine tries to create backup every minute…
dataMineConfig.json.Wed Apr 17 07-30-52 2013.backup
dataMineConfig.json.Wed Apr 17 07-31-22 2013.backup
dataMineConfig.json.Wed Apr 17 07-31-49 2013.backup
dataMineConfig.json.Wed Apr 17 07-32-19 2013.backup
dataMineConfig.json.Wed Apr 17 07-32-48 2013.backup
dataMineConfig.json.Wed Apr 17 07-33-20 2013.backup
dataMineConfig.json.Wed Apr 17 07-33-51 2013.backup
dataMineConfig.json.Wed Apr 17 07-34-19 2013.backup
dataMineConfig.json.Wed Apr 17 07-34-50 2013.backup
dataMineConfig.json.Wed Apr 17 07-35-20 2013.backup
dataMineConfig.json.Wed Apr 17 07-35-48 2013.backup
dataMineConfig.json.Wed Apr 17 07-36-18 2013.backup
dataMineConfig.json.Wed Apr 17 07-36-51 2013.backup
dataMineConfig.json.Wed Apr 17 07-37-45 2013.backup
dataMineConfig.json.Wed Apr 17 07-38-44 2013.backup
dataMineConfig.json.Wed Apr 17 07-39-49 2013.backup
dataMineConfig.json.Wed Apr 17 07-40-15 2013.backup
dataMineConfig.json.Wed Apr 17 07-42-15 2013.backup
dataMineConfig.json.Wed Apr 17 07-42-48 2013.backup
dataMineConfig.json.Wed Apr 17 07-43-40 2013.backup
dataMineConfig.json.Wed Apr 17 07-44-19 2013.backup
dataMineConfig.json.Wed Apr 17 07-44-51 2013.backup
dataMineConfig.json.Wed Apr 17 07-45-16 2013.backup

Cheers, Jari

There aren’t any limits for the number of channels that can be logged. I am currently logging 83 channels…

Can you get the log file? I’m not sure if the debug page will work as this may be caused by a startup loop - if not can you get the log from WinSCP?

Thanks
Chris