Just started getting the following error. I was able to uninstall Big Timer to get back into Node Red but reinstalling causes the issue again.
Welcome to Node-RED
===================
10 Feb 09:53:17 - [info] Node-RED version: v0.19.5
10 Feb 09:53:17 - [info] Node.js version: v8.14.0
10 Feb 09:53:17 - [info] Linux 4.14.81-v7 arm LE
10 Feb 09:53:18 - [info] Loading palette nodes
10 Feb 09:53:25 - [info] Settings file : /etc/node-red/config.js
10 Feb 09:53:25 - [info] Context store : 'default' [module=memory]
10 Feb 09:53:25 - [info] User directory : /config/node-red/
10 Feb 09:53:25 - [warn] Projects disabled : editorTheme.projects.enabled=false
10 Feb 09:53:25 - [info] Flows file : /config/node-red/flows.json
10 Feb 09:53:25 - [info] Server now running at https://127.0.0.1:1880/
10 Feb 09:53:25 - [info] Starting flows
10 Feb 09:53:26 - [info] Started flows
10 Feb 09:53:28 - [red] Uncaught Exception:
10 Feb 09:53:28 - TypeError: Cannot read property 'getHours' of undefined
at bigTimerNode.<anonymous> (/config/node-red/node_modules/node-red-contrib-bigtimer/bigtimer.js:205:23)
at emitOne (events.js:116:13)
at bigTimerNode.emit (events.js:211:7)
at Timeout._onTimeout (/config/node-red/node_modules/node-red-contrib-bigtimer/bigtimer.js:866:9)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hassio-addon-node-red@ start: `node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hassio-addon-node-red@ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-02-10T16_53_28_073Z-debug.log
> hassio-addon-node-red@ start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
I have the exact same problem. What you need to do to delete the bigtimers is the following:
Make a backup of flows.json
Open flows.json in a text editor like notepad++
On the beginning of the line with flows each tab should be defined as: {"id":"b00b1dda.40a67","type":"tab","label":"Lighting","disabled":false,"info":""}
For each tab, set disabled to ‘true’. Then save and restart node-red. You should be able to disable the bigtimers and re-enable the tabs using the gui.
EDIT: By enabling the old bigtimer package this solution should not be needed
Same problem here, and solution worked for me as well.
I assume updating to NodeRed 1.3.0 was the cause. I just checked this morning and I see that NodeRed 1.3.1 is available and it mentions… Full Changelog
Changed
Updates node-red-contrib-bigtimer to v2.1.6 (#130)