Skip to content

Permission denied: '/data/skins' #398

@goatie999

Description

@goatie999

I've been trying to get a new 5.x installation of WeeWX installed but whenever I try the steps to establish a new implementation of the docker container, I'm getting the following traceback / permissions error related to what would be a subdirectory in the available data folder.

Compose file:

truenas% cat compose.yaml 
---
name: "weewx"

services:
  weewx:
    image: felddy/weewx:5
    volumes:
      - type: bind
        source: /mnt/Purple/Docker_DataStore/WeeWX/felddy/data_v5
        target: /data
truenas% 

Terminal Output:

truenas% sudo docker compose run --rm weewx

Creating configuration file /data/weewx.conf
Processing configuration file /data/weewx.conf
Creating directory /data/skins
Traceback (most recent call last):
  File "/opt/venv/bin/weectl", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/opt/venv/lib/python3.13/site-packages/weectl.py", line 67, in main
    namespace.func(namespace)
    ~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/opt/venv/lib/python3.13/site-packages/weectllib/station_cmd.py", line 285, in create_station
    config_dict = weectllib.station_actions.station_create(
        weewx_root=namespace.weewx_root,
    ...<15 lines>...
        no_prompt=namespace.no_prompt,
        dry_run=namespace.dry_run)
  File "/opt/venv/lib/python3.13/site-packages/weectllib/station_actions.py", line 96, in station_create
    copy_skins(dist_config_dict, dry_run=dry_run)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.13/site-packages/weectllib/station_actions.py", line 571, in copy_skins
    os.makedirs(skin_dir)
    ~~~~~~~~~~~^^^^^^^^^^
  File "<frozen os>", line 227, in makedirs
PermissionError: [Errno 13] Permission denied: '/data/skins'
truenas% 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions