Vera extroot

Make sense?

C

2 Likes

So Iā€™ll post this here, but not sure itā€™s completely the correct place. Letā€™s see.

This evening has been interesting. Started when I noticed that two of my Fibaro connected temp sensors had dropped out. I figured Iā€™d do a restore from just before they failed.
So I did just that thing. Only to be met with a dead box.
All the lights are on.
SSH works
Odd
Reboot. Power comes on. Then nothing. More nothing, then all the lights come on at the same time.
Odd still.
SSH, no interface. Controller is off line
Much discussion with one of the guys on the helpdesk and we unplug the extroot SSD
Controller comes back as it was in February (just before the extroot)
Long story short, every time I plug the SSD back in, all sorts of weird shit happens. Including the LAN light on the connected switch going offā€¦
SSD is fine in my Mac, so re-initialised. Still makes all the lights go mad.

I can only assume itā€™s failed in some way. Any thoughts?

Cheers

C

SSDs can be power hungry so perhaps the one you are using exceeds the Veraā€™s available USB current. If so, then the SSD will not operate correctly and cause USB port interruptions. Try attaching the SSD to a USB powered hub connected to the Vera or a lower-power SSD.

SSH still worked? This is very strange. If the vera failed to boot, then I would have suspected a power issue but it seems to have booted fine. If upon reboot it did not come back, then it is likely that somehow the extroot itself failed. But the first failure makes me suspect an error in the USB communication which may in turn have caused a corruption of the fstab. If you could post your fstab config, maybe I could take a look.

This is a good shout, although itā€™s been fine for a couple of months.

Lua would not start. Iā€™ve going to try some other USB devices and controllers see if it is the SSD or the controller for that.

But I think I may be in a bit of a halfway house and not sure how to get out. I seem to be missing lots of log files, for example I only have three logs in /var/log/cmh (LuauPnP, InternetOK and NetworkMonitor.

When we did a factory reset with the SSD in, it didnā€™t work. No power light, but everything else on. Hard reboot brought it back to SSH only.
Removing the SSD and power cycling again took it back to what looks like a Feb set up, just before I extrooted it.

Iā€™ve restored back to late March (when all my sensors were working) but theyā€™re still not and as I say, I suspect Iā€™ve lost some files in there somewhere.

I guess the sensible thing now:

  1. Identify if the SSH, the SSD cable of the Plus USB is faulty.
  2. Factory reset nakedVera
  3. Restore from pre extroot backup.
  4. Extroot

Or is there a simpler way?

TIA!

C

OK just plugged in a USB stick and re-enabled USB logging. /var/log/cmh looks rather more healthy now, but still not sure itā€™s complete?
-rw-rā€“r-- 1 root root 257 Apr 8 18:11 InternetOk.log
-rw-rā€“r-- 1 root root 241804 Apr 8 18:18 LuaUPnP.log
-rw-rā€“r-- 1 root root 45001 Apr 8 18:19 NetworkMonitor.log
drwx------ 2 root root 12288 Apr 8 18:09 lost+found
-rw-rā€“r-- 1 root root 2128 Apr 8 18:11 serproxy.log

Looks like it may well be the SSD or the cable. Thatā€™ll be fun checking :smiley:
C

Talking to myself and the future :slight_smile: Feeling relaxed turned off the USB logging and plugged the SSD back in on the same controller cable.
Boom
Waited for everything to come back and then used a different cable.
All is well and Iā€™m back extrooted.
So odd things are afoot with my other controller cable. Still works fine with a laptop, though. Shrug.
For some reason my logrotation and servers have not been restored but there we are

C

How do we increase ram file after extroot ?

The vera has no ram fileā€¦

^^ this is what im talking about

was it this

Ohhā€¦ I see yeah you can create a ā€œswapfileā€. It is pretty simple to do. You can go to the fstab and get it started from there. I have not had to do since I donā€™t have any RAM problem.

https://forum.archive.openwrt.org/viewtopic.php?id=17002

not sure if i have a memory problem here but even though my vera doent reboot the luup engine restarts

i have a lot of apps running

This looks like you have a memory leak and a rather fast one. I would address it first. Adding more memory is only going to delay the crash, not eliminate it. Unless you see it stabilize at some pointā€¦ I am not seeing it from your data.

great point ā€¦ where do i start with this memory leak thing:slightly_smiling_face:

The brute force way is to either:

  1. remove all your plugins and reinstall them one at a time making sure you donā€™t see this abrupt downward slope in available memory. (assuming the blue line is the available memory)
  2. Remove plugins one at a time.

Unfortunately, since the plugins all run within the LuaUPnP process, there is not other way to break them down and see how much each one is using at the OS level.

What is the red line? The sawtooth pattern suggests that it is related to the log rotate function and you can see that the frequency of the rotation increases over time. Is it the free memory?

It may be useful if you posted a list of the plugins you have installed. Some may be recognized as troublesome. Thereā€™s lots of history and tribal knowledge there.

Global Cache GC100

Details

Virtual Outdoor Temperature Plugin (by MiOS)

Details

Amazon Alexa Helper

Details

Virtual ON/OFF Switches

Details

Push Notification

Details

Blue Iris Camera Plugin

Details

HouseModes Plugin

Details

System Monitor

Details

OpenSprinkler

Details

SiteSensor

Sercomm IP Camera

Details

Broadlink Vera Concierge

Details

Virtual Clock

Details

MultiSwitch

Details

Combination Switch

Details

Denon Receiver Control Plugin

Details

Garage Door

Details

Philips Hue ALTHue plugin

Details

VeraAlerts

Details

Kodi Remote

Details

Day or Night

Details

Reactor

Details

Radio Thermostat Wi-Fi Plugin

Details

VeraSecure

Details

Ping Sensor

Details

LuaView

Details

AutoVera

Details

ALTUI

Details

ERGY Plugin

Details

Switchboard

Details

Wake-on-LAN

Details

Well, I believe the Ergy plugin has a long history of suspicion. See thread Ergy? - Power Management - Ezlo Community

Agree 100%. I removed it from my system years ago due to a variety of problems.

Wow, thatā€™s a long list. Some have very similar functionalitiesā€¦ Are you stress testing the vera? Ergy would be my prime suspect as well. Not sure what the VeraSecure is. Are you making use of all of them?