xirixiz / dsmr-reader-docker

DSMR Reader in Docker.
https://hub.docker.com/r/xirixiz/dsmr-reader-docker
114 stars 33 forks source link

How to recalculate prices retroactively in DSMR docker image? #365

Open D43m0n opened 14 hours ago

D43m0n commented 14 hours ago

Support guidelines

I've found an issue and checked that ...

Description

I've updated my contract prices/tariffs and want to perform a recalculate of the energy prices like described here. That explanation in that link is written for DSMR installed on a host OS, not in a docker container.

Expected behaviour

I enter the DSMR docker container using docker exec -ti dsmr /bin/sh. I then discover I need to allow the app user to login with a shell, instead of /bin/false. Then I can perform an impersonation of the app user by running su - app. I then expected to be able to run ./manage.py dsmr_stats_recalculate_prices from the /app directory and get some feedback as intended for this function.

Actual behaviour

After I allow the app user to login with a shell, login as the app user and change to the /app directory I run the command ./manage.py dsmr_stats_recalculate_prices. I then get an error message:

c61e35a730e3:/app$ ./manage.py dsmr_stats_recalculate_prices
Traceback (most recent call last):
  File "/app/./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 363, in execute
    settings.INSTALLED_APPS
  File "/usr/local/lib/python3.11/site-packages/django/conf/__init__.py", line 82, in __getattr__
    self._setup(name)
  File "/usr/local/lib/python3.11/site-packages/django/conf/__init__.py", line 69, in _setup
    self._wrapped = Settings(settings_module)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/django/conf/__init__.py", line 170, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/app/dsmrreader/settings.py", line 4, in <module>
    from dsmrreader.config.production import *
  File "/app/dsmrreader/config/production.py", line 1, in <module>
    from dsmrreader.config.defaults import *
  File "/app/dsmrreader/config/defaults.py", line 9, in <module>
    from dsmrreader.config.django_overrides import *
  File "/app/dsmrreader/config/django_overrides.py", line 12, in <module>
    "ENGINE": config("DJANGO_DATABASE_ENGINE", cast=str),
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/decouple.py", line 248, in __call__
    return self.config(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/decouple.py", line 107, in __call__
    return self.get(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/decouple.py", line 92, in get
    raise UndefinedValueError('{} not found. Declare it as envvar or define a default value.'.format(option))
decouple.UndefinedValueError: DJANGO_DATABASE_ENGINE not found. Declare it as envvar or define a default value.

Steps to reproduce

  1. login to the docker container: docker exec -ti dsmr /bin/sh
  2. allow the app user to login, use vipw to change the shell from /bin/false to /bin/sh
  3. login as the app user: su - app and change to the /app directory: cd /app
  4. run the command from the manual: ./manage.py dsmr_stats_recalculate_prices

Docker info

Client:
 Context:    default
 Debug Mode: false

Server:
 Containers: 29
  Running: 29
  Paused: 0
  Stopped: 0
 Images: 29
 Server Version: 20.10.24+dfsg1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 1.6.20~ds1-1+b1
 runc version: 1.1.5+ds1-1+deb12u1
 init version: 
 Security Options:
  apparmor
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 6.1.0-27-amd64
 Operating System: Debian GNU/Linux 12 (bookworm)
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 31.19GiB
 Name: magnus
 ID: PGVV:BY7D:CQ7G:MZK5:WAE2:IYWH:G2M4:AZO5:7U5W:PM52:CHMJ:3SOT
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Version

Docker compose

networks:                                                                                    
  default: {}                                                                                                                                                                              
  docker-socket-proxy:                                                                                                                                                                     
    external: false                                                                                                                                                                        
  macvlan-for-containers:                                                                    
    driver: macvlan                                                                          
    driver_opts:                                                                                                                                                                           
      parent: enp2s0                                                                         
    external: false                                                                          
    ipam:                                                                                    
      config:                                                                                                                                                                              
      - gateway: 192.168.1.254                                                                                                                                                             
        ip_range: 192.168.1.208/28                                                                                                                                                         
        subnet: 192.168.1.0/24
      driver: default
services:
  dsmr:
    cap_add:
    - NET_ADMIN
    container_name: dsmr
    depends_on:
      dsmrdb:
        condition: service_started
    devices:
    - /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A13LYAF8-if00-port0:/dev/ttyUSB0
    environment:
      SD_AUTORESTART_MQTT: "true"
      SD_AUTOSTART_MQTT: "true"
      TZ: Europe/Amsterdam
      VIRTUAL_HOST: localhost
    healthcheck:
      test:
      - NONE
    image: xirixiz/dsmr-reader-docker
    links:
    - dsmrdb
    mem_swappiness: 0
    ports:
    - published: 7777
      target: 80
    - published: 7779
      target: 443
    restart: unless-stopped
    volumes:
    - /etc/localtime:/etc/localtime:ro
    - /data/dockerized/dsmr/backups:/dsmr/backups:rw
  dsmrdb:
    container_name: dsmrdb
    environment:
      PG_TZ: Europe/Amsterdam
      POSTGRES_DB: dsmrreader
      POSTGRES_PASSWORD: XXXXXXXX
      POSTGRES_USER: YYYYYYYY
      TZ: Europe/Amsterdam
    image: postgres:10-alpine
    mem_swappiness: 0
    restart: unless-stopped
    volumes:
    - /etc/localtime:/etc/localtime:ro
    - /opt/docker/container/database/dsmrdb:/var/lib/postgresql/data:rw

Container logs

172.19.0.26 - - [16/Nov/2024:11:24:22 +0100] "GET /static/admin/css/login.css HTTP/1.1" 200 939 "https://dsmr.example.com/admin/login/?next=/configuration" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:22 +0100] "GET /static/admin/css/fonts.css HTTP/1.1" 200 423 "https://dsmr.example.com/admin/login/?next=/configuration" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:22 +0100] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 85876 "https://dsmr.example.com/admin/login/?next=/configuration" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:22 +0100] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 85692 "https://dsmr.example.com/admin/login/?next=/configuration" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:22 +0100] "GET /favicon.ico HTTP/1.1" 404 179 "https://dsmr.example.com/admin/login/?next=/configuration" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:24 +0100] "POST /admin/login/?next=/configuration HTTP/1.1" 302 0 "https://dsmr.example.com/admin/login/?next=/configuration" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:24 +0100] "GET /configuration HTTP/1.1" 200 18135 "https://dsmr.example.com/admin/login/?next=/configuration" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:25 +0100] "GET /static/dsmr_frontend/semantic-2.4/semantic.min.css HTTP/1.1" 200 628512 "https://dsmr.example.com/configuration" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:25 +0100] "GET /static/dsmr_frontend/semantic-2.4/semantic.min.js HTTP/1.1" 200 275730 "https://dsmr.example.com/configuration" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:34 +0100] "GET /admin/ HTTP/1.1" 200 29924 "https://dsmr.example.com/configuration" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:34 +0100] "GET /static/admin/css/dashboard.css HTTP/1.1" 200 380 "https://dsmr.example.com/admin/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:34 +0100] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 200 86184 "https://dsmr.example.com/admin/login/?next=/configuration" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:34 +0100] "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 200 380 "https://dsmr.example.com/admin/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:34 +0100] "GET /static/admin/img/icon-viewlink.svg HTTP/1.1" 200 581 "https://dsmr.example.com/admin/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:34 +0100] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 200 331 "https://dsmr.example.com/admin/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:38 +0100] "GET /admin/dsmr_consumption/energysupplierprice/4/change/ HTTP/1.1" 200 29306 "https://dsmr.example.com/admin/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/css/forms.css HTTP/1.1" 200 8804 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/js/vendor/jquery/jquery.min.js HTTP/1.1" 200 89476 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/js/calendar.js HTTP/1.1" 200 8466 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/js/jquery.init.js HTTP/1.1" 200 347 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/js/admin/DateTimeShortcuts.js HTTP/1.1" 200 19634 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 200 5984 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/js/core.js HTTP/1.1" 200 5698 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/js/urlify.js HTTP/1.1" 200 7902 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/js/vendor/xregexp/xregexp.min.js HTTP/1.1" 200 125266 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/js/actions.js HTTP/1.1" 200 7867 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/js/prepopulate.js HTTP/1.1" 200 1531 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/js/change_form.js HTTP/1.1" 200 606 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 200 492 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/css/widgets.css HTTP/1.1" 200 11097 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:39 +0100] "GET /static/admin/img/icon-calendar.svg HTTP/1.1" 200 1086 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:58 +0100] "GET /admin/ HTTP/1.1" 200 29924 "https://dsmr.example.com/configuration" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:24:59 +0100] "GET /admin/dsmr_consumption/energysupplierprice/3/change/ HTTP/1.1" 200 29318 "https://dsmr.example.com/admin/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:25:00 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/3/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:29:20 +0100] "POST /admin/dsmr_consumption/energysupplierprice/3/change/ HTTP/1.1" 302 0 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/3/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:29:20 +0100] "GET /admin/dsmr_consumption/energysupplierprice/ HTTP/1.1" 200 23735 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/3/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:29:20 +0100] "GET /static/admin/css/changelists.css HTTP/1.1" 200 6874 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:29:20 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:29:20 +0100] "GET /static/admin/img/icon-yes.svg HTTP/1.1" 200 436 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:29:20 +0100] "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 200 331 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:29:28 +0100] "GET /admin/dsmr_consumption/energysupplierprice/3/change/ HTTP/1.1" 200 29318 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:29:28 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/3/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:29:48 +0100] "GET /admin/dsmr_consumption/energysupplierprice/ HTTP/1.1" 200 23482 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/3/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:29:48 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:29:50 +0100] "GET /admin/dsmr_consumption/energysupplierprice/4/change/ HTTP/1.1" 200 29306 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:29:50 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:33:07 +0100] "POST /admin/dsmr_consumption/energysupplierprice/4/change/ HTTP/1.1" 200 29482 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:33:07 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:33:15 +0100] "POST /admin/dsmr_consumption/energysupplierprice/4/change/ HTTP/1.1" 200 29543 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:33:15 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:34:00 +0100] "GET /admin/dsmr_consumption/energysupplierprice/4/delete/ HTTP/1.1" 200 20768 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:34:00 +0100] "GET /static/admin/js/cancel.js HTTP/1.1" 200 884 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/delete/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:34:09 +0100] "POST /admin/dsmr_consumption/energysupplierprice/4/change/ HTTP/1.1" 200 29543 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:34:17 +0100] "POST /admin/dsmr_consumption/energysupplierprice/4/change/ HTTP/1.1" 302 0 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:34:18 +0100] "GET /admin/dsmr_consumption/energysupplierprice/ HTTP/1.1" 200 23732 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:34:18 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:34:21 +0100] "GET /admin/dsmr_consumption/energysupplierprice/3/change/ HTTP/1.1" 200 29318 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:34:21 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/3/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:35:17 +0100] "POST /admin/dsmr_consumption/energysupplierprice/3/change/ HTTP/1.1" 302 0 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/3/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:35:17 +0100] "GET /admin/dsmr_consumption/energysupplierprice/ HTTP/1.1" 200 23735 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/3/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:35:17 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:35:21 +0100] "GET /admin/dsmr_consumption/energysupplierprice/2/change/ HTTP/1.1" 200 29346 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:35:21 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/2/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:35:29 +0100] "GET /admin/dsmr_consumption/energysupplierprice/ HTTP/1.1" 200 23482 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/3/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:35:31 +0100] "GET /admin/dsmr_consumption/energysupplierprice/1/change/ HTTP/1.1" 200 29302 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:35:31 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/1/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:35:35 +0100] "GET /admin/dsmr_consumption/energysupplierprice/ HTTP/1.1" 200 23482 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/3/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:35:37 +0100] "GET /admin/dsmr_consumption/energysupplierprice/2/change/ HTTP/1.1" 200 29346 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:35:37 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/2/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:35:41 +0100] "GET /admin/dsmr_consumption/energysupplierprice/ HTTP/1.1" 200 23482 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/3/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:35:42 +0100] "GET /admin/dsmr_consumption/energysupplierprice/4/change/ HTTP/1.1" 200 29306 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:35:42 +0100] "GET /admin/jsi18n/ HTTP/1.1" 200 7673 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:36:26 +0100] "GET / HTTP/1.1" 200 19385 "https://dsmr.example.com/admin/dsmr_consumption/energysupplierprice/4/change/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:36:27 +0100] "GET /xhr/header HTTP/1.1" 200 148 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:36:32 +0100] "GET /xhr/header HTTP/1.1" 200 148 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:36:37 +0100] "GET /xhr/header HTTP/1.1" 200 147 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:36:42 +0100] "GET /xhr/header HTTP/1.1" 200 147 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:36:47 +0100] "GET /xhr/header HTTP/1.1" 200 148 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:36:52 +0100] "GET /xhr/header HTTP/1.1" 200 148 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:36:57 +0100] "GET /xhr/header HTTP/1.1" 200 148 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:02 +0100] "GET /xhr/header HTTP/1.1" 200 148 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:07 +0100] "GET /xhr/header HTTP/1.1" 200 148 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:13 +0100] "GET /xhr/header HTTP/1.1" 200 148 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:18 +0100] "GET /xhr/header HTTP/1.1" 200 148 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:23 +0100] "GET /xhr/header HTTP/1.1" 200 148 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:28 +0100] "GET /xhr/header HTTP/1.1" 200 148 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:33 +0100] "GET /xhr/header HTTP/1.1" 200 148 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:38 +0100] "GET /xhr/header HTTP/1.1" 200 147 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:43 +0100] "GET /xhr/header HTTP/1.1" 200 147 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:47 +0100] "GET /archive HTTP/1.1" 200 15107 "https://dsmr.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:48 +0100] "GET /static/dsmr_frontend/bootstrap-datepicker-1.9.0-dist/css/bootstrap-datepicker3.min.css HTTP/1.1" 200 21100 "https://dsmr.example.com/archive" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:48 +0100] "GET /static/dsmr_frontend/js/moment-with-locales-2.29.4.min.js HTTP/1.1" 200 369019 "https://dsmr.example.com/archive" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:48 +0100] "GET /static/dsmr_frontend/bootstrap-datepicker-1.9.0-dist/locales/bootstrap-datepicker.nl.min.js HTTP/1.1" 200 513 "https://dsmr.example.com/archive" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:48 +0100] "GET /static/dsmr_frontend/js/dsmr-reader/archive/gas.js?r=v5.11 HTTP/1.1" 200 1879 "https://dsmr.example.com/archive" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:48 +0100] "GET /static/dsmr_frontend/js/dsmr-reader/archive/archive.js?r=v5.11 HTTP/1.1" 200 4479 "https://dsmr.example.com/archive" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:48 +0100] "GET /archive/xhr/summary?date=15-11-2024&level=months HTTP/1.1" 200 2602 "https://dsmr.example.com/archive" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:48 +0100] "GET /archive/xhr/graphs?date=15-11-2024&level=months HTTP/1.1" 200 1251 "https://dsmr.example.com/archive" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:50 +0100] "GET /archive/xhr/summary?date=01-10-2024&level=months HTTP/1.1" 200 2606 "https://dsmr.example.com/archive" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"
172.19.0.26 - - [16/Nov/2024:11:37:50 +0100] "GET /archive/xhr/graphs?date=01-10-2024&level=months HTTP/1.1" 200 2386 "https://dsmr.example.com/archive" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" "172.19.0.1"

Additional info

No response

D43m0n commented 9 hours ago

I managed to get a successful response. I'll leave my steps here for posterity.

After impersonating the app user, change to the /app directory. Then it may depend on what you've changed, but in /app/.env.template I found my ENV variables. I exported them. The values here are examples, yours may differ. For my DJANGO_DATABASE_HOST I tried the docker-compose value of localhost but that didn't work. I named my database container for DSMR dsmrdb, so tried that instead. When you've set a DJANGO_SECRET_KEY yours may differ too.

  export DJANGO_DATABASE_ENGINE=django.db.backends.postgresql
  export DJANGO_DATABASE_HOST=dsmrdb
  export DJANGO_DATABASE_PORT=5432
  export DJANGO_DATABASE_NAME=dsmrreader
  export DJANGO_DATABASE_USER=dsmrreader
  export DJANGO_DATABASE_PASSWORD=dsmrreader
  export DJANGO_SECRET_KEY="my-secret-key" 

Then I ran ./manage.py dsmr_stats_recalculate_prices from the /app directory and got expected output:

 - Recalculating prices for: 2020-05-18
 - Recalculating prices for: 2020-05-19
 - Recalculating prices for: 2020-05-20
 - Recalculating prices for: 2020-05-21                                                      
 - Recalculating prices for: 2020-05-22                                                      
 - Recalculating prices for: 2020-05-23                                                      
 - Recalculating prices for: 2020-05-24
 - Recalculating prices for: 2020-05-25
 - Recalculating prices for: 2020-05-26
 - Recalculating prices for: 2020-05-27                                                      
 - Recalculating prices for: 2020-05-28
 - Recalculating prices for: 2020-05-29
 - Recalculating prices for: 2020-05-30      
 - Recalculating prices for: 2020-05-31                                                      
 - Recalculating prices for: 2020-06-01
 - Recalculating prices for: 2020-06-02                                                      
 - Recalculating prices for: 2020-06-03   
 - Recalculating prices for: 2020-06-04
 - Recalculating prices for: 2020-06-05    
 - Recalculating prices for: 2020-06-06    
 - Recalculating prices for: 2020-06-07                                                      
 - Recalculating prices for: 2020-06-08                                                      
 - Recalculating prices for: 2020-06-09                                                      
 - Recalculating prices for: 2020-06-10
 - Recalculating prices for: 2020-06-11                                                      
 - Recalculating prices for: 2020-06-12
 - Recalculating prices for: 2020-06-13
 - Recalculating prices for: 2020-06-14    
 ---SNIP---
 - Recalculating prices for: 2024-11-02   
 - Recalculating prices for: 2024-11-03
 - Recalculating prices for: 2024-11-04    
 - Recalculating prices for: 2024-11-05    
 - Recalculating prices for: 2024-11-06                                                      
 - Recalculating prices for: 2024-11-07
 - Recalculating prices for: 2024-11-08                                                      
 - Recalculating prices for: 2024-11-09
 - Recalculating prices for: 2024-11-10
 - Recalculating prices for: 2024-11-11
 - Recalculating prices for: 2024-11-12                                                      
 - Recalculating prices for: 2024-11-13
 - Recalculating prices for: 2024-11-14
 - Recalculating prices for: 2024-11-15

So, I've answered my own question/issue. Perhaps this might be turned into a supplemental part for the documentation of the docker version of DSMR?