[2026-05-04 21:21:09,457] ERROR in app: Unexpected error while adding TV: {'event': 'ms.channel.timeOut'}
✔ Container telegraf Running 0.0s
✔ Container plextraktsync Started 0.4s
➜ root@core /docker docker logs frametv_artgallery -f
Applying database migrations...
Initializing database...
Database initialized.
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 929a60c602a1, Add created_at to Album
INFO [alembic.runtime.migration] Running upgrade 929a60c602a1 -> a16beaf2617d, make created_at nullable
INFO [alembic.runtime.migration] Running upgrade a16beaf2617d -> 500fac4679d4, Add delete_other_images_on_upload to TV
INFO [alembic.runtime.migration] Running upgrade 500fac4679d4 -> 601a7cee3cbb, empty message
[2026-05-04 21:20:06 +0000] [1] [INFO] Starting gunicorn 25.3.0
[2026-05-04 21:20:06 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1)
[2026-05-04 21:20:06 +0000] [1] [INFO] Using worker: sync
[2026-05-04 21:20:06 +0000] [8] [INFO] Booting worker with pid: 8
[2026-05-04 21:20:07 +0000] [1] [INFO] Control socket listening at /root/.gunicorn/gunicorn.ctl
Initializing database...
Database initialized.
[2026-05-04 21:20:56,616] ERROR in app: Unexpected error while adding TV: {'event': 'ms.channel.timeOut'}
Traceback (most recent call last):
File "/app/app.py", line 462, in api_add_tv
tvws.open()
~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/samsungtvws/connection.py", line 178, in open
raise exceptions.ConnectionFailure(response)
samsungtvws.exceptions.ConnectionFailure: {'event': 'ms.channel.timeOut'}
[2026-05-04 21:21:09,457] ERROR in app: Unexpected error while adding TV: {'event': 'ms.channel.timeOut'}
Traceback (most recent call last):
File "/app/app.py", line 462, in api_add_tv
tvws.open()
~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/samsungtvws/connection.py", line 178, in open
raise exceptions.ConnectionFailure(response)
samsungtvws.exceptions.ConnectionFailure: {'event': 'ms.channel.timeOut'}
[2026-05-04 21:21:10,074] ERROR in app: Unexpected error while adding TV: {'event': 'ms.channel.timeOut'}
Traceback (most recent call last):
File "/app/app.py", line 462, in api_add_tv
tvws.open()
~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/samsungtvws/connection.py", line 178, in open
raise exceptions.ConnectionFailure(response)
samsungtvws.exceptions.ConnectionFailure: {'event': 'ms.channel.timeOut'}
[2026-05-04 21:21:10,626] ERROR in app: Unexpected error while adding TV: {'event': 'ms.channel.timeOut'}
Traceback (most recent call last):
File "/app/app.py", line 462, in api_add_tv
tvws.open()
~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/samsungtvws/connection.py", line 178, in open
raise exceptions.ConnectionFailure(response)
samsungtvws.exceptions.ConnectionFailure: {'event': 'ms.channel.timeOut'}
[2026-05-04 21:21:10,908] ERROR in app: Unexpected error while adding TV: {'event': 'ms.channel.timeOut'}
Traceback (most recent call last):
File "/app/app.py", line 462, in api_add_tv
tvws.open()
~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/samsungtvws/connection.py", line 178, in open
raise exceptions.ConnectionFailure(response)
samsungtvws.exceptions.ConnectionFailure: {'event': 'ms.channel.timeOut'}
[2026-05-04 21:21:11,287] ERROR in app: Unexpected error while adding TV: {'event': 'ms.channel.timeOut'}
Traceback (most recent call last):
File "/app/app.py", line 462, in api_add_tv
tvws.open()
~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/samsungtvws/connection.py", line 178, in open
raise exceptions.ConnectionFailure(response)
samsungtvws.exceptions.ConnectionFailure: {'event': 'ms.channel.timeOut'}
[2026-05-04 21:21:11,741] ERROR in app: Unexpected error while adding TV: {'event': 'ms.channel.timeOut'}
Traceback (most recent call last):
File "/app/app.py", line 462, in api_add_tv
tvws.open()
~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-pack
Latest version in Docker
➜ root@core /docker cat samsung-art/compose.yaml
services:
frametv:
image: ghcr.io/mrtncode/frametv-art-gallery:latest
container_name: frametv_artgallery
restart: always
networks:
- frontend
labels:
traefik.enable: true
traefik.http.routers.frametv.rule: "Host(`frametv.xxxxx.xxx`)"
traefik.http.services.frametv.loadbalancer.server.port: 8000
# ports:
# - "8000:8000"
volumes:
- frametv_data:/data
environment:
- SECRET_KEY=supersecretkey
- FRAME_TV_DATA=/data
volumes:
Which frame TV are you using? Are you sure you are adding the right TV and the docker container can connect to the TV? You could test by pinging the TV IP from the docker terminal :)
And have you checked if there was a popup to confirm on the TV? If yes ans you didnt confirm the access on the TV, that can cause the connection timeout. In this case I should add better error handling for this.
The TV is a QN50LS03BAFXZA frame tv
ICMP works from the docker host
PING 192.168.120.178 (192.168.120.178) 56(84) bytes of data.
64 bytes from 192.168.120.178: icmp_seq=1 ttl=63 time=0.346 ms
64 bytes from 192.168.120.178: icmp_seq=2 ttl=63 time=0.317 ms
^C
I also tested several ports from within the container and they can connect
root@5311e963a14c:/app# nc -z 192.168.120.178 8001
Connection to 192.168.120.178 8001 port [tcp/*] succeeded!
root@5311e963a14c:/app#
root@5311e963a14c:/app# nc -z 192.168.120.178 8002
Connection to 192.168.120.178 8002 port [tcp/*] succeeded!
root@5311e963a14c:/app# nc -z 192.168.120.178 9999
Connection to 192.168.120.178 9999 port [tcp/*] succeeded!
root@5311e963a14c:/app#
Okay thanks. Do you see a popup on the TV when adding it to the frametv-gallery? Usually you have to confirm this popup and then it should connect.
You should also make sure that the TV is on and check your TV settings. It might be that your TV has some settings disabled that block connections to the TV :)
yes, there is no popup on the tv
On Tue, May 5, 2026 at 3:54 AM mrtncode @.***> wrote:
mrtncode left a comment (mrtncode/frametv-art-gallery#19) https://github.com/mrtncode/frametv-art-gallery/issues/19#issuecomment-4377451522
And have you checked if there was a popup to confirm on the TV? If yes ans you didnt confirm the access on the TV, that can cause the connection timeout. In this case I should add better error handling for this.
— Reply to this email directly, view it on GitHub https://github.com/mrtncode/frametv-art-gallery/issues/19#issuecomment-4377451522, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAOG6XZPKAXIE7QVMCAJAD4ZGM27AVCNFSM6AAAAACYQW7OCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DGNZXGQ2TCNJSGI . You are receiving this because you authored the thread.Message ID: @.***>
--
[image: --]
John Dyer [image: http://]about.me/johntdyer http://about.me/johntdyer?promo=email_sig
@johntdyer Did you upgrade your firmware in the last time? There are some reports in the underlying library samsungtvws: https://github.com/xchwarze/samsung-tv-ws-api/issues/184 where a User describes a similar problem. It could that Samsung broke the WS API to force using SmartThings :(
If this is the case, maybe you‘d like to reach out the samsung support. It would be very interesting if Samsung really broke the local WS API.
You could try to go to the TV‘s settings -> Connection -> External device management -> Device connection manager and see if there are any devices/ requests