Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker auf Synology: Port 8503 Timeout #408

Open
WolfImBusch opened this issue Jan 25, 2025 · 7 comments
Open

Docker auf Synology: Port 8503 Timeout #408

WolfImBusch opened this issue Jan 25, 2025 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@WolfImBusch
Copy link

Hallo,

vorab: ich bin vom der Idee und der Software ziemlich begeistert und habe mir heute endlich mal Zeit genommen, EOS in Betrieb zu nehmen. Genauer: als Docker auf meiner Synology NAS. Dazu habe ich mir soeben den aktuellen Stand von "main" heruntergeladen. Port 8503 habe ich von Docker nach außen freischaltet.

Laut Protokoll sieht es auch gar nicht so ganz schlecht aus. Ich bin aber leider ziemlicher Anfänger. Ich bitte euch schon jetzt um Entschuldigung, wenn meine Frage dämlich ist - aber ich komme nicht weiter und bitte euch um eure Hilfe. Laut Log sieht es so aus ....

2025/01/25 15:03:20 | stdout | �[32mINFO�[0m:     Uvicorn running on �[1mhttp://0.0.0.0:8503�[0m (Press CTRL+C to quit)
2025/01/25 15:03:20 | stdout | �[32mINFO�[0m:     Application startup complete.
2025/01/25 15:03:20 | stdout | �[32mINFO�[0m:     Waiting for application startup.
2025/01/25 15:03:20 | stdout | �[32mINFO�[0m:     Started server process [�[36m1�[0m]
2025/01/25 15:03:17 | stdout | warn(f"ndarray.pyi stub file could not be generated: {e}", stacklevel=1)
2025/01/25 15:03:17 | stdout | /usr/local/lib/python3.12/site-packages/numpydantic/meta.py:66: UserWarning: ndarray.pyi stub file could not be generated: [Errno 13] Permission denied: '/usr/local/lib/python3.12/site-packages/numpydantic/ndarray.pyi'

Ich habe dann versucht zu überprüfen, ob EOS trotzdem läuft, indem ich ein REST-API GET wie folgt durchgeführt habe, der leider kein Ergebnis lieferte (Timeout)
http://192.168.178.22:8503/strompreis

Mir ist klar, dass es sich um ein "Permission denied" Fehler handelt. Aber habt ihr eine Idee, wie ich weiter suchen könnte?

Ich danke euch und viele Grüße

@Lasall Lasall self-assigned this Jan 25, 2025
@Lasall
Copy link
Collaborator

Lasall commented Jan 25, 2025

Hallo Wolf, die Warnung kannst du ignorieren, EOS funktioniert auch mit der Warnung. Kommst du an den Endpunkt http://192.168.178.22:8503/v1/config ?

@WolfImBusch
Copy link
Author

Hi @Lasall

herzlichen Dank für Deine Hilfe!!!!!

Nein - leider erreiche ich auch diesen Endpunkt nicht, also
http://192.168.178.22:8503/v1/config

Sind für eine erste Inbetriebnahme Änderung an der Konfigurations-Datei "EOS.config.json" erforderlich? Ich vermute nein ..

btw: EOS habe ich im Synology-Container-Manager wie folgt konfiguriert (s. Screenshot). Alle Verzeichnisse bleiben auch nach Start von EOS leer. Im Verzeichnis "config" habe ich die o.a. "EOS.config.json" eingefügt.

Image

Herzlichen Dank und viele Grüße!!!

@Lasall
Copy link
Collaborator

Lasall commented Jan 25, 2025

Der Zugriff auf andere Container im Container-Manager funktioniert vermutlich?

@NormannK
Copy link
Collaborator

und welche DSM-Version hast du am laufen?

@WolfImBusch
Copy link
Author

Ja - die anderen Container funktioniern ohne Probleme (evcc, influxdb, grafana, ....)

Meine DSM-Version ist die "DSM 7.2.2-72806 Update 2" (Synology DS220+).

@WolfImBusch
Copy link
Author

Hi @Lasall , hi @NormannK ,

ihr habt mich auf eine Idee gebracht - und es funktioniert. Ich glaub's nicht ...

Ich habe jetzt komplett andere Ports verwendet (s. Screenshot). Der Endpunkt

http://192.168.178.22:7072/v1/config

liefert jetzt Daten zurück. Ich habe nicht die geringste Ahnung, warum das so ist - bei anderen Containern konnte ich stets den gleichen Port wie die Container selbst verwenden. Der Port 8503 ist auch nicht belegt.

Ich danke euch vielmals und hoffe, dass ich euch nicht eure wertvolle Zeit geraubt habe. Vielleicht hat irgendjemand mal das gleiche Problem und das Ganze war jetzt nicht umsonst - vielleicht sogar ein Punkt für die Doku .. :-)

Nochmal vielen Dank und viele Grüße aus Stuttgart!

Image

@Lasall Lasall changed the title Docker auf Synology: "ndarray.pyi stub file could not be generated: [Errno 13] Permission denied" Docker auf Synology: Port 8503 Timeout Jan 25, 2025
@Lasall Lasall added the bug Something isn't working label Jan 26, 2025
@Lasall
Copy link
Collaborator

Lasall commented Jan 26, 2025

According to https://kb.synology.com/en-me/DSM/tutorial/What_network_ports_are_used_by_Synology_services the MailPlus Server is using ports 8500-8520. I will update the docs.

NormannK added a commit that referenced this issue Jan 26, 2025
* Nested config, devices registry

 * All config now nested.
    - Use default config from model field default values. If providers
      should be enabled by default, non-empty default config file could
      be provided again.
    - Environment variable support with EOS_ prefix and __ between levels,
      e.g. EOS_SERVER__EOS_SERVER_PORT=8503 where all values are case
      insensitive.
      For more information see:
      https://docs.pydantic.dev/latest/concepts/pydantic_settings/#parsing-environment-variable-values
    - Use devices as registry for configured devices. DeviceBase as base
      class with for now just initializion support (in the future expand
      to operations during optimization).
    - Strip down ConfigEOS to the only configuration instance. Reload
      from file or reset to defaults is possible.

 * Fix multi-initialization of derived SingletonMixin classes.

* Documentation: Support nested config

 * Add examples to pydantic models.

* EOSdash: Support nested types

* Rename settings variables (remove prefixes)

* Fix API endpoint

* Fix EOSdash startup (docker)

 * Docker: Copy the same directory structure (src/) to support the
   lifespan startup of EOSdash.
   Use EOS_SERVER_EOSDASH_SESSKEY environment variable to provide
   EOSdash with session key.

* PR review

* PVForecast: planes as nested config (list)

* Update manual documentation for nested config.

 * Add config_file_path, config_folder_path back to general
   (ConfigCommonSettings). Overwrite in docs generation.

* Config: Move lat/long/timezone from prediction to general

* Docs: Add global example documentation.

 * merge_models: Use deecopy to not change input data.

* EOSdash: Sort config by name

* Review comments

* Feature/config nested dependabot req. (#415)

* Bump numpydantic from 1.6.4 to 1.6.7 (#413)

Bumps [numpydantic](https://github.com/p2p-ld/numpydantic) from 1.6.4 to 1.6.7.
- [Release notes](https://github.com/p2p-ld/numpydantic/releases)
- [Changelog](https://github.com/p2p-ld/numpydantic/blob/main/docs/changelog.md)
- [Commits](p2p-ld/numpydantic@v1.6.4...v1.6.7)

---
updated-dependencies:
- dependency-name: numpydantic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump timezonefinder from 6.5.7 to 6.5.8 (#414)

Bumps [timezonefinder](https://github.com/jannikmi/timezonefinder) from 6.5.7 to 6.5.8.
- [Release notes](https://github.com/jannikmi/timezonefinder/releases)
- [Changelog](https://github.com/jannikmi/timezonefinder/blob/master/CHANGELOG.rst)
- [Commits](jannikmi/timezonefinder@6.5.7...6.5.8)

---
updated-dependencies:
- dependency-name: timezonefinder
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pydantic from 2.10.5 to 2.10.6 (#412)

Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.10.5 to 2.10.6.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](pydantic/pydantic@v2.10.5...v2.10.6)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump fastapi[standard] from 0.115.6 to 0.115.7 (#411)

Bumps [fastapi[standard]](https://github.com/fastapi/fastapi) from 0.115.6 to 0.115.7.
- [Release notes](https://github.com/fastapi/fastapi/releases)
- [Commits](fastapi/fastapi@0.115.6...0.115.7)

---
updated-dependencies:
- dependency-name: fastapi[standard]
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Readme: Add hint for interfering ports on Synology Closes #408 (#419)

* Pics or it didn't happen (#402)

* inverter added

* png creation

* save svg into cache folder

* mypy

* comment

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dominique Lasserre <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
NormannK added a commit that referenced this issue Jan 26, 2025
* Pre-fetch data

* maintanance and extend tests

* comment clean up

* nansum usage (to be save)

* Feature/config nested (#421)

* Nested config, devices registry

 * All config now nested.
    - Use default config from model field default values. If providers
      should be enabled by default, non-empty default config file could
      be provided again.
    - Environment variable support with EOS_ prefix and __ between levels,
      e.g. EOS_SERVER__EOS_SERVER_PORT=8503 where all values are case
      insensitive.
      For more information see:
      https://docs.pydantic.dev/latest/concepts/pydantic_settings/#parsing-environment-variable-values
    - Use devices as registry for configured devices. DeviceBase as base
      class with for now just initializion support (in the future expand
      to operations during optimization).
    - Strip down ConfigEOS to the only configuration instance. Reload
      from file or reset to defaults is possible.

 * Fix multi-initialization of derived SingletonMixin classes.

* Documentation: Support nested config

 * Add examples to pydantic models.

* EOSdash: Support nested types

* Rename settings variables (remove prefixes)

* Fix API endpoint

* Fix EOSdash startup (docker)

 * Docker: Copy the same directory structure (src/) to support the
   lifespan startup of EOSdash.
   Use EOS_SERVER_EOSDASH_SESSKEY environment variable to provide
   EOSdash with session key.

* PR review

* PVForecast: planes as nested config (list)

* Update manual documentation for nested config.

 * Add config_file_path, config_folder_path back to general
   (ConfigCommonSettings). Overwrite in docs generation.

* Config: Move lat/long/timezone from prediction to general

* Docs: Add global example documentation.

 * merge_models: Use deecopy to not change input data.

* EOSdash: Sort config by name

* Review comments

* Feature/config nested dependabot req. (#415)

* Bump numpydantic from 1.6.4 to 1.6.7 (#413)

Bumps [numpydantic](https://github.com/p2p-ld/numpydantic) from 1.6.4 to 1.6.7.
- [Release notes](https://github.com/p2p-ld/numpydantic/releases)
- [Changelog](https://github.com/p2p-ld/numpydantic/blob/main/docs/changelog.md)
- [Commits](p2p-ld/numpydantic@v1.6.4...v1.6.7)

---
updated-dependencies:
- dependency-name: numpydantic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump timezonefinder from 6.5.7 to 6.5.8 (#414)

Bumps [timezonefinder](https://github.com/jannikmi/timezonefinder) from 6.5.7 to 6.5.8.
- [Release notes](https://github.com/jannikmi/timezonefinder/releases)
- [Changelog](https://github.com/jannikmi/timezonefinder/blob/master/CHANGELOG.rst)
- [Commits](jannikmi/timezonefinder@6.5.7...6.5.8)

---
updated-dependencies:
- dependency-name: timezonefinder
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pydantic from 2.10.5 to 2.10.6 (#412)

Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.10.5 to 2.10.6.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](pydantic/pydantic@v2.10.5...v2.10.6)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump fastapi[standard] from 0.115.6 to 0.115.7 (#411)

Bumps [fastapi[standard]](https://github.com/fastapi/fastapi) from 0.115.6 to 0.115.7.
- [Release notes](https://github.com/fastapi/fastapi/releases)
- [Commits](fastapi/fastapi@0.115.6...0.115.7)

---
updated-dependencies:
- dependency-name: fastapi[standard]
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Readme: Add hint for interfering ports on Synology Closes #408 (#419)

* Pics or it didn't happen (#402)

* inverter added

* png creation

* save svg into cache folder

* mypy

* comment

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dominique Lasserre <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* inverter, prediction.hours

* self.config.general.data_cache_path

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Dominique Lasserre <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants