G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=25
G_DIETPI_VERSION_RC=3
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
stretch
Linux DietPi 4.19.42-v7+ #1219 SMP Tue May 14 21:20:58 BST 2019 armv7l GNU/Linux
RPi 3 Model B (armv7l)
systemctl start node-red.service
Service should be running
Service ends with error related to directory
If we take a look at /etc/systemd/system/node-red.service
:
```[Unit]
Description=Node-RED (DietPi)
[Service]
User=nodered
ExecStart=/usr/local/bin/node-red -u /mnt/dietpi_userdata/node-red
[Install]
WantedBy=multi-user.target
1. The folder `/mnt/dietpi_userdata/node-red` is missing, create it :
`mkdir /mnt/dietpi_userdata/node-red`
2. Give `nodered` user permission to this directory :
```chmod ug+rwx -R /mnt/dietpi_userdata/node-red
chown node-red:node-red -R /mnt/dietpi_userdata/node-red
@Orfait
Many thanks for your report.
Confirmed. Bug introduced with v6.25 in relation with some user creation alignments.
Fixed with: https://github.com/MichaIng/DietPi/commit/2924d0e136bbdabd4e2c9d2936410a71e5760ea9
Permissions are done here: https://github.com/MichaIng/DietPi/blob/master/dietpi/func/dietpi-set_software#L473
Changelog: https://github.com/MichaIng/DietPi/commit/91d76d4a9170b35a50129e907a657b37414611e6
To fix now code-wise:
grep -q 'mkdir -p $G_FP_DIETPI_USERDATA/node-red' /DietPi/dietpi/dietpi-software || sed -i '\|cat << _EOF_ > /etc/systemd/system/node-red.service|i\mkdir -p $G_FP_DIETPI_USERDATA/node-red' /DietPi/dietpi/dietpi-software
hello, stating from a fresh install the user nodered was also missing, created manually and with the above code it fixes.
edit: no it exits again maybe the user nodered needs to be created in different way
@marcobrianza
Thanks for reporting. Found the issue:
yes, it was on virtualbox
@marcobrianza
Fixed with: https://github.com/MichaIng/DietPi/commit/cc65890a1f7b723187559dce68e16bf3ec3de66f
Changelog: https://github.com/MichaIng/DietPi/commit/d7604eab07a9f85aebf436df6633965ab4ba31d4
Great quick fix! thank you
I have switched to dev branch (6.26.0) and can confirm that it works.
On the virtual machine I had to modify the file /DietPi/dietpi.txt so I think that instructions at https://github.com/MichaIng/DietPi/blob/master/BRANCH_SYSTEM.md should be updated since modifying /boot/dietpi.txt did not work for me.
@marcobrianza
Great, many thanks for testing.
should be updated since modifying /boot/dietpi.txt did not work for me.
Note: "Beta on Fresh image:
", so before booting the first time, it's dietpi.txt
from the boot partition or dir.
For "Beta on an existing installation:
" it states
G_CONFIG_INJECT 'DEV_GITBRANCH=' 'DEV_GITBRANCH=beta' /DietPi/dietpi.txt
for beta, respectively "dev" for dev branch 馃槈. Manually editing the RAMdisk location /DietPi/dietpi.txt
has the same result.
But we could make it a bid more clear:
Sorry for the late feedback.
I just wanted to report, that this fixes this issue :)
Most helpful comment
@marcobrianza
Great, many thanks for testing.
Note: "
Beta on Fresh image:
", so before booting the first time, it'sdietpi.txt
from the boot partition or dir.For "
Beta on an existing installation:
" it statesfor beta, respectively "dev" for dev branch 馃槈. Manually editing the RAMdisk location
/DietPi/dietpi.txt
has the same result.But we could make it a bid more clear: