jasonacox / Powerwall-Dashboard

Grafana Monitoring Dashboard for Tesla Solar and Powerwall Systems
MIT License
302 stars 66 forks source link

Grafana issue on Synology NAS #22

Open jaydkay opened 2 years ago

jaydkay commented 2 years ago

Hi,

I tried setting up the Powerwall-Dashboard with Docker on a Synology NAS. I'm not sure if this is even supposed to work, but the setup script is running fine and three containers seem to start up okay. Only grafana keeps shutting down with the following entries in the docker log:

GF_PATHS_DATA='/var/lib/grafana' is not writable. You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migration-from-a-previous-version-of-the-docker-container-to-5-1-or-later mkdir: cannot create directory '/var/lib/grafana/plugins': Permission denied

Any idea what is causing this or how to get grafana running?

Best regards, Jochen

jasonacox commented 2 years ago

Hi @jaydkay - When grafana starts, it attempts to install the required plugins as indicated by the error. It uses user 1000 group 1000 for this directory. The link you pasted talks about this as being a user permission issue. Some ideas I have:

Is it possible you already had grafana (older version) installed? Try removing it and re-install:

# stop and remove
docker stop grafana
docker rm grafana

# reinstall
docker-compose -f powerwall.yml up -d

I have seen permission error if you run thesetup.sh as root. If you did this, try to remove the Powerwall-Dashboard folder and reinstall using the local user. You will need to make sure your local user has docker permissions:

# Add your user to docker group
sudo usermod -aG docker $USER

If that wasn't the case, you could try to change the permission manually:

# run a shell in grafana interactively
docker exec -ti --user root grafana /bin/bash
ls -la /var/lib/grafana/
chown 1000:1000 /var/lib/grafana/
jaydkay commented 2 years ago

Dear @jasonacox,

thanks for your quick reply. I tried following your suggestions, alas, no success so far...

Is it possible you already had grafana (older version) installed? Try removing it and re-install:

No, it's a completely new installation from scratch. In fact, it's my first contact with docker.

I have seen permission error if you run thesetup.sh as root. If you did this, try to remove the Powerwall-Dashboard folder and reinstall using the local user. You will need to make sure your local user has docker permissions:

Yes, I needed to start ./setup.sh via sudo - it seems that on Synology DSM, docker is typically not available for the normal user. Command usermod also doesn't exist, but there are corresponding commands, so was able to add the current user to the docker group and start docker with a standard user account. Unfortunately, the error remained the same. Additionally, now also Telegraf refuses to start with the following log entry:

I! Using config file: /etc/telegraf/telegraf.conf E! [telegraf] Error running agent: Error loading config file /etc/telegraf/telegraf.conf: open /etc/telegraf/telegraf.conf: permission denied

Finally, I also tried your final suggestion:

If that wasn't the case, you could try to change the permission manually:

That didn't work either, because the container already refuses to start, so the command you suggested complains about grafana not yet running (but it never will):

Error response from daemon: Container ac20100690faff31b7c2df6bcb6fa9079eea9a496efdbbcf2fed6b8144731aae is restarting, wait until the container is running

If you have any more suggestions, please let me know. Thanks a lot again for your help!

jasonacox commented 2 years ago

Since you originally used sudo the file permission are likely in bad shape. I suggest removing the Powerwall-Dashboard directory and reinstall from scratch now that you have your local user in the docker group:

# remove the old install
rm -fr Powerwall-Dashboard

# git clone or pull down the repository again
git clone https://github.com/jasonacox/Powerwall-Dashboard.git

# run setup
cd Powerwall-Dashboard
./setup.sh

Thanks for the feedback on this. Hopefully we can figure this out for anyone else using a Synology NAS to host their dashboard. :)

jaydkay commented 2 years ago

Dear @jasonacox,

after a few more tries and errors, I guess I finally got it working! Here are the steps that were required - at least in my case:

Log in via SSH to Synology DSM. Create a usergroup docker: sudo synogroup --add docker

Change ownership of docker to this group: sudo chown root:docker /var/run/docker.sock

Make the user a member of the newly created group: sudo synogroup --member docker <user>

Finally, edit file powerwall.yml and change the line

user: "1000:1000"

in the section grafana to the uid of the user on the Synology. I got that by running id while logged in via SSH.

After this, I was able to issue ./setup.sh, finish setting it up and all containers are starting up.

So far it seems to be working, although I didn't do much more beyond starting it up, yet.

jasonacox commented 2 years ago

Awesome!! Nice job @jaydkay ! Thanks for posting the helpful instructions. I'll reference that in the troubleshooting tips.

BuongiornoTexas commented 2 years ago

Hi @jasonacox, @jaydkay,

I've just run into either the same problem or a closely related one while setting up Powerwall-Dashboard under a rootless docker. I was getting the same messages as Jochen GF_PATHS_DATA='/var/lib/grafana' is not writable. and mkdir: cannot create directory '/var/lib/grafana/plugins': Permission denied.

It took a while for me to track it down - as far as I can tell for the rootless version, it comes down to the fact that grafana runs with user:group ids of 472:0 in the rootless container, and this results in name space mapping issues when creating/writing files on the host machine (this explanation isn't quite right, but is probably close enough to the truth allow resolution of the problem).

I found two possible solutions:

  1. The first solution is probably safe in a rootless system, but I really wouldn't recommend it as a) only probably safe and b) if you ever switch to a normal docker, it becomes very not safe. It's simple - run the rootless container as "root" by changing the grafana user line in powerwall.yml to user: "0:0". This works as docker rootless maps root to the user running the docker installation. Again, I would really not recommend this approach - I'm just including it as someone else may find this step useful in their own troubleshooting.

  2. The second solution is somewhat cleaner, although I'm pretty sure this is still just a work around for a limitation on name space mapping for rootless docker.

    • Change the grafana user line in powerwall.yml to user: "472:0" (you may be able to delete it altogether - haven't tried this).

    • Get the subuid entry for the user xxxx running docker from /etc/subuid on the host machine. In my case it is xxxx:100000:65536 - from this, we can calculate the uid mapping of the container uid grafana user to a subuser user id on the host machine as: first number in the subuid (100000) + 471 (0 offset of the grafana uid) - so for me this is 100471.

    • Change the ownership of the grafana directory in Powerwall-Dashboard on the host machine to this subuid:

    sudo chown 100471 ./grafana (Fails without sudo, but this is a subuid in the xxxx user name space, so has the same privileges as xxxx - effectively no change in permissions)

    Running ls -ld ./grafana should result in:

    drwxr-xr-x 6 100471 xxxx 4096 Sep 21 10:54 ./grafana (where xxxx is the username running docker - same as the subuid file).

    • Kill the current container and restart.
docker stop grafana
docker rm grafana
docker compose -f powerwall.yml up -d

I hope this saves someone else a day or so of digging in the future. Picking up docker this way was definitely a baptism by fire.

Finally, @jasonacox, thanks again for the time you have put into a great monitoring tool!

jasonacox commented 2 years ago

Thanks for this great information, @BuongiornoTexas ! Is this on a Synology NAS or something else?

BuongiornoTexas commented 2 years ago

Is this on a Synology NAS or something else?

Raspberry Pi 4B - so quite the journey getting docker running at all even without dealing with getting it rootless and the grafana permissions issue.

Dropped in here as the error is identical to Jochen's and almost certainly related, but if you want to include it as a tip, I'd put it in a section on grafana permissions and/or rootless docker.

jasonacox commented 2 years ago

Thanks @BuongiornoTexas !!!- I'm running on a Raspberry Pi as well (Raspbian GNU/Linux 11 bullseye). Can you cat /etc/os-release for anyone following this?

For my setup, I had to run something like this:

# Install docker
curl -fsSL https://get.docker.com/ -o get-docker.sh
sudo sh get-docker.sh
sudo apt install -y docker-compose

# Add your user to docker group
sudo usermod -aG docker $USER

# Set docker to start on boot
sudo systemctl enable docker.service
sudo systemctl enable containerd.service

# install docker-compose
sudo pip3 install docker-compose

I wonder if I can add notes or setup.sh instructions to help.

BuongiornoTexas commented 2 years ago

Like you, I'm on bullseye (64 bit).

PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian

I think the difference between our installs is that I'm running docker as a non-privileged (rootless) user. So I don't have a docker group at all.

The process for setup is a bit messier, but works pretty well. It's detailed at: https://docs.docker.com/engine/security/rootless/

The steps I took were:

jasonacox commented 2 years ago

Thanks @BuongiornoTexas ! This is a great 'get starting' for anyone wanting to run docker as a non-privileged (rootless) user. I'll capture this in the troubleshooting section for anyone else wanting to do the same.

Thank you!

BuongiornoTexas commented 2 years ago

No probs. One more step I forgot - I created a file called docker-compose in ~/bin containing:

docker compose "$@"

And ran chown +x ~/bin/docker-compose. An alias that emulates v1 with v2.

Alternatively, users can just run docker compose manually.

metaton8086 commented 1 year ago

I had the same permission error on a Pi4 running Ubuntu. The only way I could fix it was to change the grafana user line in powerwall.yml to user: "0:0", as noted by @BuongiornoTexas.

BuongiornoTexas commented 1 year ago

The only way I could fix it was to change the grafana user line in powerwall.yml to user: "0:0",

Is this on a standard docker install? If so, something doesn't sound quite right there - the problem I had was because docker was missing some of the privileges from a standard install (I think you have effectively given your grafana instance root privileges in the docker container, which shouldn't be needed at all).

One quick thought is your user id 1000? If not, that would break the setup.

metaton8086 commented 1 year ago

Yes, it is standard. My user id is 1001. I change powerwall.yml to user: "1001", killed the current container and reinstalled. It is now working as expected.

BuongiornoTexas commented 1 year ago

I change powerwall.yml to user: "1001", killed the current container and reinstalled. It is now working as expected.

Excellent. You may want to make the powerwall.yml entry 1001:1001 so that it also has the correct group permissions.

marcbaier commented 1 year ago

Hi all - i am also trying to install this on my Synology NAS. This is what I have done so far:

Change ownership of docker to this group: sudo chown root:docker /var/run/docker.sock

Make the user a member of the newly created group: sudo synogroup --member docker

Powerwall Dashboard (v2.8.0) - SETUP

ERROR: docker is not available or not runnning. This script requires docker, please install and try again.

Docker is running on the Synology. The user "BackupAdmin" is a member of the "docker" group:

Screen Shot 2023-02-04 at 17 05 27 PM

Is there anything else I can check to figure out what the issue is ?

Thanks so much for your help.

jasonacox commented 1 year ago

HI @marcbaier - I hope our community can chime in on this. I guess I need to add a "Synology NAS" to my test suite (currently MacOS, Ubuntu Linux, Win 11 WSL and Raspberry Pi). 😄 What model are you using?

ERROR: docker is not available or not runnning.

What do you get when you run docker ps or docker info?

marcbaier commented 1 year ago

I get this when running docker ps: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied

docker info: Client: Context: default Debug Mode: false

Server: ERROR: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info": dial unix /var/run/docker.sock: connect: permission denied

marcbaier commented 1 year ago

I am trying to run this on a DS1513+ running DSM7.1.1. I could also try it on a newer DS1019+ but I would presume that I would get the same issue there as well.

jasonacox commented 1 year ago

Thanks @marcbaier - that helps a lot! Your local user does not have permission to run docker. Check the permissions of the socket:

ls -l /var/run/docker.sock

Also, just to confirm, you did run these?

sudo synogroup --add docker
sudo chown root:docker /var/run/docker.sock
sudo synogroup --member docker $USER

DS1513+ running DSM7.1.1.

Thanks! I'll see if I can find one.

marcbaier commented 1 year ago

This is what i get back when I run the docker.sock command above: srw-rw---- 1 root docker 0 Feb 4 09:02 /var/run/docker.sock

jasonacox commented 1 year ago

Interesting. That should work if your local user is part of the docker group. I have seen it "not take" until I log out and log in again or reboot the host (on Linux, not a Synology). You can also try this (a common 'fix' mentioned on the docker helps):

sudo chmod 666 /var/run/docker.sock
marcbaier commented 1 year ago

That worked ! Now I was able to install the whole ./setup.sh. I am now stuck at the grafana setup. The IP Address of my Synology Nas is 192.168.86.58 and I wanted to use the browser on my iMac to access: http://192.168.86.58:9000, but I am getting an "this site can't be reached" error.

marcbaier commented 1 year ago

looks like grafana is not running. I went and looked into the docker install and this is what I see:

Screen Shot 2023-02-05 at 11 06 34 AM Screen Shot 2023-02-05 at 11 06 53 AM
marcbaier commented 1 year ago

When I try to restart grafana I am getting these errors, as I think others on here also got: GF_PATHS_DATA='/var/lib/grafana' is not writable. You may have issues with file permissions, more information here: http://docs.grafana.org/ mkdir: cannot create directory '/var/lib/grafana/plugins': Permission denied

jaydkay commented 1 year ago

Did you follow the hints in my post at the beginning of this thread? https://github.com/jasonacox/Powerwall-Dashboard/issues/22#issuecomment-1110099800

This part in particular:

Finally, edit file powerwall.yml and change the line

user: "1000:1000"

in the section grafana to the uid of the user on the Synology. I got that by running id while logged in via SSH.

After this, I was able to issue ./setup.sh, finish setting it up and all containers are starting up.

You probably need to stop, delete and re-create the containers after doing this change to take effect.

marcbaier commented 1 year ago

I did follow your instructions and replaced the uid with mine. however, I did not delete and re-create the containers. How would I do that ? directly in docker and then run the ./setup.sh again ?

marcbaier commented 1 year ago

ok so i did the following:

marcbaier commented 1 year ago

ah - think i found the issue. I did not correct the user: value in the grafana section... stupid me. Now that I've done that, the containers are not restarting anymore and I am not getting an error message either. thanks so much

jaydkay commented 1 year ago

You‘re welcome.

jasonacox commented 1 year ago

@marcbaier did you get the Grafana dashboard running?

FYI - some interesting endpoints you could test:

marcbaier commented 1 year ago

Yes I got it all running fine on the NAS but I don't seem to be getting any weather data. The bottom panels are empty:

Screen Shot 2023-02-10 at 15 33 55 PM
jasonacox commented 1 year ago

I agree, it doesn't look like weather411 is running.

Try http://192.168.86.58:8676/ - weather411 current conditions

Also try:

# check logs
docker logs weather411

# restart weather411
docker restart weather411
marcbaier commented 1 year ago

When i click on the link above, I get a "this site can't be reached" error. docker logs weather411 returns this: Backupadmin@BackupStation:~$ docker logs weather411 Weather411 Server 0.1.2 ERROR: No config file. Fix and restart.

The error remains after doing a restart.

jasonacox commented 1 year ago

The weather411 configuration is missing. Run this:

./weather.sh

See the instructions here:

You will need to include your location (Latitude and Longitude) and your OpenWeatherMap API Key. To get a Key, you need to set up a free account at openweathermap.org. Make sure you check your email to verify account. API keys can take a few hours to activate.

marcbaier commented 1 year ago

Hi Jason - I thought I had already gone through this process during the regular setup. So I did it again using the code above. Here is the whole process:

Backupadmin@BackupStation:/volume1/powerwall/Powerwall-Dashboard$ ./weather.sh
Weather Data Setup
-----------------------------------------
Weather data from OpenWeatherMap can be added to your Powerwall Dashboard
graphs.  This requires that you set up a free acccount with OpenWeatherMap
and enter the API Key during this setup process.

Do you wish to setup Weather Data? [y/N] y
Forecast looks great!  Proceeding...

Existing Configuration Founded

[Weather411]
DEBUG = no

[API]
# Port to listen on for requests (default 8676)
ENABLE = yes
PORT = 8676

[OpenWeatherMap]
# Register and get APIKEY from OpenWeatherMap.org
APIKEY = xxxxxxxxxxxxxxxxxxxxxxxxxxx
# Enter your location in latitude and longitude 
LAT = 47.4140132
LON = 8.2375113
WAIT = 10
TIMEOUT = 10
# standard, metric or imperial 
UNITS = metric

[InfluxDB]
# Record data in InfluxDB server 
ENABLE = yes
HOST = influxdb
PORT = 8086
DB = powerwall
FIELD = weather
# Leave blank if not used
USERNAME = 
PASSWORD =

Overwrite existing settings? [y/N] y
Removing old file weather/weather411.conf.

Set up a free account at OpenWeatherMap.org to get an API key
   1. Go to https://openweathermap.org/
   2. Create a new account and check your email to verify your account
   3. Click on 'API Keys' tab and copy 'Key' value and paste below.

Enter OpenWeatherMap API Key: xxxxxxxxxxxxxxxxxxxxxxxxxxx

Enter your location coordinates to determine weather in your location.
   For help go to https://jasonacox.github.io/Powerwall-Dashboard/location.html

Enter Latitude: 47.4140132
Enter Longitude: 8.2375113

Enter the desired units: M)etric, I)mperial or S)tandard where:
    M)etrics = temperature in Celsius
    I)mperial = temperature in Fahrenheit
    S)tandard = temperature in Kelvin

Enter M, I or S: m
Units selected: metric

NOTE: The OpenWeatherMap key can take up to 2 hours to be valid.
      You may see errors or no data until it is fully activated.

Running Docker Compose...
influxdb is up-to-date
pypowerwall is up-to-date
grafana is up-to-date
weather411 is up-to-date
telegraf is up-to-date
Weather Setup Complete

Backupadmin@BackupStation:/volume1/powerwall/Powerwall-Dashboard$ 
marcbaier commented 1 year ago

I stopped and deleted the old weather411 container before I did the above. When i look at the newly created weather411 containers log, i still see this:

Screen Shot 2023-02-11 at 23 32 22 PM
jasonacox commented 1 year ago

Ok, wow, that's confusing! The python script can't find the ./weather/weather411.conf file (which for you should be /volume1/powerwall/Powerwall-Dashboard/weather/weather411.conf).

When you set up the containers (ran setup.sh or compose-dash.sh), did you run them from the /volume1/powerwall/Powerwall-Dashboard folder?

TODO for me is to add a more helpful error message to Weather411. It should list the config file it is trying to load.

Possible workaround:

Edit the powerwall.yml and edit the weather411 section to set a full path in the "source" for the volume mapping:

    weather411:
        image: jasonacox/weather411:latest
        container_name: weather411
        hostname: weather411
        restart: always
        user: "1000:1000"
        volumes:
            - type: bind
              source: /volume1/powerwall/Powerwall-Dashboard/weather
              target: /var/lib/weather
              read_only: true
        ports:
            - target: 8676
              published: 8676
              mode: host
        environment:
            - WEATHERCONF=/var/lib/weather/weather411.conf
        depends_on:
            - influxdb

Restart:

./compose-dash.sh up -d
marcbaier commented 1 year ago

hi Jason - i did make the changes to the powerwall.yml file. I stopped and deleted the weather411 container and executed the command you provided. however still no change:

Screen Shot 2023-02-12 at 08 48 12 AM
jasonacox commented 1 year ago

Thanks for trying to get this to work and your troubleshooting steps. It just occurs to me that the NAS may not be allowing access to user 1000. Let's check the ownership of that file:

# see what it has right now to confirm this could be the issue
ls -l /volume1/powerwall/Powerwall-Dashboard/weather/weather411.conf

If it doesn't match user 1000 or is not world readable:

# change owner
sudo chown 1000:1000 /volume1/powerwall/Powerwall-Dashboard/weather/weather411.conf

# or change permission
sudo chmod a+r /volume1/powerwall/Powerwall-Dashboard/weather/weather411.conf

# restart
docker restart weather411
docker logs weather411 -f
marcbaier commented 1 year ago

OK I did this. When I now check the owner I get: -rwxrwxrwx 1 1000 1000 534 Feb 11 23:30 /volume1/powerwall/Powerwall-Dashboard/weather/weather411.conf

restarted, but the logs still show:

Screen Shot 2023-02-12 at 09 41 24 AM
jasonacox commented 1 year ago

Let's shell in to the weather411 docker container to see what it sees - try this from the command line (ssh):

docker exec -it weather411 sh
ls -l /var/lib
ls -l /var/lib/weather
set | grep WEATHER

# you may also try this just to make sure it can read the file
cat /var/lib/weather/weather411.conf

Here is what I see on my system:

$ docker exec -it weather411 sh
/app $ ls -l /var/lib
total 16
drwxr-xr-x    2 root     root          4096 Aug  9  2022 apk
drwxr-xr-x    2 root     root          4096 Aug  9  2022 misc
drwxr-xr-x    2 root     root          4096 Aug  9  2022 udhcpd
drwxr-xr-x    3 1000     1000          4096 Feb  9 07:03 weather
/app $ ls -l /var/lib/weather
total 68
-rw-r--r--    1 1000     1000           153 Feb  9 07:02 Dockerfile
-rw-r--r--    1 1000     1000          4660 Feb  9 07:02 README.md
drwxr-xr-x    3 1000     1000          4096 Feb  9 07:02 contrib
-rw-r--r--    1 1000     1000         13181 Feb  9 07:02 dashboard-weather411.json
-rw-r--r--    1 1000     1000         18131 Feb  9 07:02 server.py
-rwxr-xr-x    1 1000     1000           725 Feb  9 07:02 upload.sh
-rw-r--r--    1 1000     1000           535 Feb  9 07:03 weather411.conf
-rw-r--r--    1 1000     1000           531 Feb  9 07:02 weather411.conf.bak
-rw-r--r--    1 1000     1000           531 Feb  9 07:02 weather411.conf.sample
/app $ set | grep WEATHER
WEATHERCONF='/var/lib/weather/weather411.conf'
jaydkay commented 1 year ago

Don't know if this might help, but on my Synology system, the respective config-file weather411.conf is owned by the current user (admin) and is not an executable:

admin@ds:~$ ls -l Powerwall-Dashboard/weather/weather411.conf
-rw-r--r-- 1 admin users 532 Feb 11 16:45 Powerwall-Dashboard/weather/weather411.conf

Looking into the container, it looks like this:

admin@ds:~$ docker exec -it weather411 sh
/app $ ls -l /var/lib
total 0
drwxr-xr-x    1 root     root             0 Aug  9  2022 apk
drwxr-xr-x    1 root     root             0 Aug  9  2022 misc
drwxr-xr-x    1 root     root             0 Aug  9  2022 udhcpd
drwxr-xr-x    1 1024     users          250 Feb 11 15:45 weather
/app $ ls -l /var/lib/weather
total 64
-rw-r--r--    1 1024     users          153 Feb 11 15:43 Dockerfile
-rw-r--r--    1 1024     users         4660 Feb 11 15:43 README.md
drwxr-xr-x    1 1024     users           32 Feb 11 15:43 contrib
-rw-r--r--    1 1024     users        13181 Feb 11 15:43 dashboard-weather411.json
-rw-r--r--    1 1024     users        18131 Feb 11 15:43 server.py
-rwxr-xr-x    1 1024     users          725 Feb 11 15:43 upload.sh
-rw-r--r--    1 1024     users          532 Feb 11 15:45 weather411.conf
-rw-r--r--    1 1024     users          531 Feb 11 15:45 weather411.conf.bak
-rw-r--r--    1 1024     users          531 Feb 11 15:43 weather411.conf.sample

Btw, 1024 is the uid of the current user (admin) on my system.

jasonacox commented 1 year ago

Thanks @jaydkay ! It did strike me odd that @marcbaier 's system shows that file with the executable flag "x" for all. Also, when you set this up on your Synology, do you recall any problems with weather411 or did it just work?

@marcbaier let us know what your system shows. Technically the permission on your system (and on @jaydkay ) should allow anyone to read that file including the weather411 python script. I suspect something else is off like the file system is not getting namespace mapped into the docker container correctly.

jaydkay commented 1 year ago

It just worked out of the box. The only things I adjusted during setup of the Powerwall-Dashboard were the ones I mentioned in one of the first posts of this thread, see here.

marcbaier commented 1 year ago

Hi Jason - here we go:

/app $ ls -l /var/lib total 20 drwxr-xr-x 2 root root 4096 Aug 9 2022 apk drwxr-xr-x 2 root root 4096 Aug 9 2022 misc drwxr-xr-x 2 root root 4096 Aug 9 2022 udhcpd drwx------ 3 1029 users 4096 Feb 11 22:30 weather

/app $ ls -l /var/lib/weather ls: can't open '/var/lib/weather': Permission denied total 0

jasonacox commented 1 year ago

There's the problem! The weather directory does not permit access. It should look like what @jaydkay posted:

drwxr-xr-x    1 1024     users          250 Feb 11 15:45 weather

See if you can fix it - ssh in and run:

ls -l /volume1/powerwall/Powerwall-Dashboard/

sudo chmod a+rx /volume1/powerwall/Powerwall-Dashboard/weather

ls -l /volume1/powerwall/Powerwall-Dashboard/
marcbaier commented 1 year ago

ok i did that and here is the result: drwxr-xr-x 3 Backupadmin users 4096 Feb 11 23:30 weather

I then restarted the weather411 container and here is the log: Weather411 Server [0.1.2]

I guess this means success ? If yes, you deserver a virtual beer ;)

jasonacox commented 1 year ago

Great news, @marcbaier ! Congratulations, you did it! ;)

Check your dashboard and you should now see weather data showing up in your graphs. You can also visit the weather411 dashboard here: http://localhost:8676/ (replace localhost with the address of your NAS).

I guess this means success ? If yes, you deserver a virtual beer ;)

Haha! I'll take it! Or better yet a virtual cider or Oeil-de-Perdrix... 😂

In all seriousness, I do think we need better documentation or a setup.sh that better accommodates a Synology NAS hosted stack.