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

Problem to start the container #46

Closed
datenangebot opened this issue Apr 8, 2024 · 5 comments
Closed

Problem to start the container #46

datenangebot opened this issue Apr 8, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@datenangebot
Copy link

Hi,

first, thank you for this amazing promising project!
I am looking forward to use this in my home setup...

Unfortunately I am not able to start the container as you described the startup process.
I build the image and tried to start the container by running:
docker run --dns '192.168.212.20' --env 'UID=1000' -p '5005:5005' -p '10000:10000' -v /srv/tsun-proxy/config:/home/tsun-proxy/config -v /srv/tsun-proxy/log:/home/tsun-proxy/log tsun-proxy

And I get the following:

######################################################
# prepare: 'tsun-proxy' Version:
# for running with UserID:1000, GroupID:1000
#
# create user
######################################################
#
'2024-04-08 20:20:23  INFO | root | Server "tsun-proxy - " will be started'
'2024-04-08 20:20:23  INFO | root | Initialize proxy statistics'
Traceback (most recent call last):
  File "/home/tsun-proxy/./server.py", line 83, in <module>
    Inverter.class_init()
  File "/home/tsun-proxy/inverter.py", line 21, in class_init
    cls.entity_prfx = ha['entity_prefix'] + '/'
                      ~~^^^^^^^^^^^^^^^^^
KeyError: 'entity_prefix'

Is this an error in the code or on my side?

Background:
I tried to use a lxc container and a debian vm under proxmox virtualization.

Btw: Do you have a donation option?

@s-allius
Copy link
Owner

s-allius commented Apr 8, 2024

Hi datenamgebot,
it seems to me, that there is something missing in the config.toml file. Have you build one? You can start with renaming the config.example.toml into config.toml

@s-allius s-allius added the bug Something isn't working label Apr 8, 2024
@s-allius
Copy link
Owner

s-allius commented Apr 8, 2024

In version 0.7.0 we want a helpful message instead of the python crash

@s-allius s-allius self-assigned this Apr 8, 2024
@datenangebot
Copy link
Author

Thanks for the hint.
Yes, that was a simple solution.
For me it wasn't that clear, that you have to copy and adapt the config file even if you try tu run the default values...

@s-allius
Copy link
Owner

s-allius commented Apr 9, 2024

Ok, thanks for your feedback. I will look into how I can improve the initial setup

@s-allius
Copy link
Owner

fixed by #48

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

2 participants