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?
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 - 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.
@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…
I’ve been trying to install dataMine but haven’t succeeded yet
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:
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.
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.
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 I’m more than happy to help, so no problems.
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?
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