Skip to content

Upgrade TWCManager in docker from 1.3 to 1.3.2 fail to start. #623

@reklame33

Description

@reklame33

Hello.
Been using TWCManager v1.3 many years now, but my SD card in my RPi3 seem to be unstable and it is time to take some action here.
I cloned the card to a new card, and it start as before. But I would like to upgrade both TWCManager and the kernel OS.

Started with TWCManager upgrade seem to be successfull, but trying to start the docker again fail with PermissionError (Errno 13) for the file TWCManager.pid.

Did also try a complete fresh new latest OS and pulled the TWCManager image, got the same error.

Any suggestion to fix this error?

pi@TWCgarasje:~ $ sudo docker-compose -f docker-compose.yml pull
Pulling twcmanager ... done
pi@TWCgarasje:~ $ sudo docker-compose -f docker-compose.yml up
Creating network "pi_default" with the default driver
Creating pi_twcmanager_1 ... done
Attaching to pi_twcmanager_1
twcmanager_1 | /usr/src/TWCManager/lib/TWCManager/TWCSlave.py:628: SyntaxWarning: "is" with a literal. Did you mean "=="?
twcmanager_1 | and lastVehicle.chargingState is "Charging"
twcmanager_1 | Traceback (most recent call last):
twcmanager_1 | File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
twcmanager_1 | return _run_code(code, main_globals, None,
twcmanager_1 | File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
twcmanager_1 | exec(code, run_globals)
twcmanager_1 | File "/usr/src/TWCManager/TWCManager.py", line 34, in
twcmanager_1 | import TWCManager.TWCManager
twcmanager_1 | File "/usr/src/TWCManager/lib/TWCManager/TWCManager.py", line 175, in
twcmanager_1 | PIDTWCManager = open(PIDfile, "w")
twcmanager_1 | PermissionError: [Errno 13] Permission denied: '/etc/twcmanager/TWCManager.pid'
pi@TWCgarasje:~ $

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