Error loading settings file from USB drive

Trying to use USB SDD for NR settings. Changing settings,js UserDir to use /mnt/usbdrive gives error

Hi Bill, welcome to the forum.
I've just edited your post title to something more appropriate.
Hope that's ok.

Does the user running Node-RED have access to the mount?

What error do you get? Without that detail we are left to guess what might be happening.

Error loading settings file: /home/pi/.node-red/settings.js
userDir: /mnt/usbdrive/Node-Red/.node-red/

So that is saying there is an error on line 86 of the file /home/pi/.node-red/settings.js.

If that line contains:

 userDir: /mnt/usbdrive/Node-Red/.node-red/

Then the issue is you have missed off the quotes needed around the property:

userDir: "/mnt/usbdrive/Node-Red/.node-red/"

Added quotes, still get error

Error loading settings file: /home/pi/.node-red/settings.js
functionGlobalContext: {
SyntaxError: Unexpected identifier
at wrapSafe (internal/modules/cjs/loader.js:1054:16)
at Module._compile (internal/modules/cjs/loader.js:1102:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/usr/lib/node_modules/node-red/red.js:119:20)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
nodered.service: Succeeded.

Add a comma after it to separate it from the next setting in the file.

Ah, the missing comma conundrum. That did it.
I failed to notice the comma on the default / commented line on settings

//userDir: '/home/nol/.node-red/',


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.