[support] Spants - NodeRed, MQTT, Dashing, couchDB


Recommended Posts

Hi @spants

Im also having the same issues with MQTT and getting the following errors...

 

1664719186: Saving in-memory database to /config/data/mosquitto.db.
1664719186: Error saving in-memory database, unable to open /config/data/mosquitto.db.new for writing.
1664719186: Error: Permission denied.

 

I know that you have provided us a workaround test MQTT but since this was suggested back in July i was wondering if a new updated container was coming out soon. If not and its still a long while away, please could you let me know and then ill continue down the path of the workaround solution.

 

Im really hoping that the new version isnt too far away 🙂

Thanks again for all your containers and support that you give!

Link to comment
  • 5 weeks later...

I just upgraded to Unraid 6.11.1 from 6.9.0 and started having permission issues with Node-RED & MQTT. I ended up fixing it by running these commands:


 

cd /mnt/user/appdata/nodered

chmod -R ug+rw,ug+X,o-rwx ./

chown -R nobody:users ./

 

I then modified the Node-RED docker container from the Unraid GUI and added

--user 99:100

 

And now Node-RED works again

 

Now to fix MQTT I ran those exact same commands above (on the MQTT directory) and instead of changing the user it runs as (as that failed to make it start) I instead just added the users group to the container by putting this in the extra parameters:
 

--group-add 100

 

And now both Node-RED and MQTT are working for me again. Give that a shot @Titan84 and @TDA and hopefully that fixes it for you.

Edited by Skylord123
oops
Link to comment
  • 4 weeks later...
On 11/2/2022 at 5:47 AM, Skylord123 said:

I just upgraded to Unraid 6.11.1 from 6.9.0 and started having permission issues with Node-RED & MQTT. I ended up fixing it by running these commands:


 

cd /mnt/user/appdata/nodered

chmod -R ug+rw,ug+X,o-rwx ./

chown -R nobody:users ./

 

I then modified the Node-RED docker container from the Unraid GUI and added

--user 99:100

 

And now Node-RED works again

 

Now to fix MQTT I ran those exact same commands above (on the MQTT directory) and instead of changing the user it runs as (as that failed to make it start) I instead just added the users group to the container by putting this in the extra parameters:
 

--group-add 100

 

And now both Node-RED and MQTT are working for me again. Give that a shot @Titan84 and @TDA and hopefully that fixes it for you.

Hello,

I've tried to add the --group-add 100, but the error is still there 😞

Link to comment
  • 3 weeks later...
  • 1 month later...

try chmod -R 777 /mnt/appdata/nodered or what every you have called it.....

The more recent versions of unraid restrict the permissions a bit.

 

Note that this is a security gotcha as it enables execute too - you could also just change the r/w for all and leave execute alone

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.