You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
If docker is the first group returned via "id -Gn", setup.sh says "WARNING: You do not appear to be in the docker group"
The issue is with from line 39 of 4.3.1 setup.sh that does the following test: if ! $(id -Gn 2>/dev/null | grep -qE " docker( |$)"); then
A possible fix it to also use "^docker" so the expression returns true if docker is the first (or only) group listed. But I don't know the full reasoning for the regex, so someone should make sure whatever fix is done is "correct" ... since regex can be "maze of twisty little passages" ;-)
To Reproduce
$ id -Gn
docker
$ ./setup.sh
Powerwall Dashboard (v4.3.1) - SETUP
WARNING: You do not appear to be in the docker group.
Please ensure your local user is in the docker group and run without sudo.
sudo usermod -aG docker $USER
./setup.sh
Screenshots
N/A
Host System
AlmaLinux release 9.4
Additional context
The reason I stumbled across this bug is because I have a captive account (named solar!) that only runs powerwall ... so I listed the group ID for docker in the /etc/passwd entry for solar. Note the problem ALSO occurs if the user belongs to multiple groups, but docker is the first one returned by id -Gn
So yea, I could make the "primary" group something else and then add solar to the /etc/group docker entry ... but I don't think this should be necessary.
Note that setup.sh does allow you to proceed ... so it's not really a show-stopper ... but a bit confusing because I was like WTF, the user IS in the docker group! ;-)
The text was updated successfully, but these errors were encountered:
Problem
If docker is the first group returned via "id -Gn", setup.sh says "WARNING: You do not appear to be in the docker group"
The issue is with from line 39 of 4.3.1 setup.sh that does the following test:
if ! $(id -Gn 2>/dev/null | grep -qE " docker( |$)"); then
A possible fix it to also use "^docker" so the expression returns true if docker is the first (or only) group listed. But I don't know the full reasoning for the regex, so someone should make sure whatever fix is done is "correct" ... since regex can be "maze of twisty little passages" ;-)
To Reproduce
$ id -Gn
docker
$ ./setup.sh
Powerwall Dashboard (v4.3.1) - SETUP
WARNING: You do not appear to be in the docker group.
Please ensure your local user is in the docker group and run without sudo.
sudo usermod -aG docker $USER
./setup.sh
Screenshots
N/A
Host System
AlmaLinux release 9.4
Additional context
The reason I stumbled across this bug is because I have a captive account (named solar!) that only runs powerwall ... so I listed the group ID for docker in the /etc/passwd entry for solar. Note the problem ALSO occurs if the user belongs to multiple groups, but docker is the first one returned by id -Gn
So yea, I could make the "primary" group something else and then add solar to the /etc/group docker entry ... but I don't think this should be necessary.
Note that setup.sh does allow you to proceed ... so it's not really a show-stopper ... but a bit confusing because I was like WTF, the user IS in the docker group! ;-)
The text was updated successfully, but these errors were encountered: