Install fails
cguay opened this issue · 3 comments
Hi, trying to install on a pi4 , but when i try to run 'solarthing -version I get the following:
Going to download version: 2022.3.0
--2022-06-21 00:37:54-- https://github.com/wildmountainfarms/solarthing/releases/download/v2022.3.0/solarthing-2022.3.0.jar
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/195026020/5cd334b1-fd68-473e-85de-84614601c2d9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220620%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220620T233754Z&X-Amz-Expires=300&X-Amz-Signature=c59e37bb5cf764852a034b49574b7963c0ac69504f74ef3e8de8d19b02b1fab9&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=195026020&response-content-disposition=attachment%3B%20filename%3Dsolarthing-2022.3.0.jar&response-content-type=application%2Foctet-stream [following]
--2022-06-21 00:37:54-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/195026020/5cd334b1-fd68-473e-85de-84614601c2d9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220620%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220620T233754Z&X-Amz-Expires=300&X-Amz-Signature=c59e37bb5cf764852a034b49574b7963c0ac69504f74ef3e8de8d19b02b1fab9&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=195026020&response-content-disposition=attachment%3B%20filename%3Dsolarthing-2022.3.0.jar&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19688940 (19M) [application/octet-stream]
solarthing-2022.3.0.jar: Permission denied
Cannot write to ‘solarthing-2022.3.0.jar’ (Permission denied).
I am running in the /home/pi subdirectory , and for sh!ts and giggles i tried chmod 777 on the pi directory and still get the error. where is it trying to put the jar file?
My /opt/solarthing folder permissions where wrong?
i got it installed
Yeah, so you likely missed the step where you add the solarthing
group to your user: https://solarthing.readthedocs.io/en/latest/installation.html#installing It's the sudo usermod -a -G solarthing,dialout,tty,video $USER
command, then you have to log out and back in for changes to take effect, then your user has full access to the /opt/solarthing
directory without sudo.
If you run into more permission issues after that, you can run the command shown here: https://solarthing.readthedocs.io/en/latest/updating.html#permission-issues
I went ahead and updated the docs about logging out and back in before continuing configuration. Let me know if you are still having problems.
Thanks!