TorizonCore Builder Deploy fails with SSHException("TCP forwarding request denied")

Dear Developer Community,
starting from TorizonCore Builder documentation, I am now able to configure and create a custom build with tcbuild.yml file. It is working correctly when flashed using Toradex Easy Installer as well, but I am getting the following error when I try to deploy it to a running board using the deploy command below (with verbose log).

Development PC is Win10 with WLS2/Ubuntu 20.04 LTS. Board is Colibri iMX8X with Torizon 5.4.0. They are connected via USB (Eth-over-USB 192.168.11.1/24), torizon/torizoncore-builder:3 c31853ee68c9 5 days ago 881MB

Do you have any idea how to fix this?
Thanks in advance and best regards,
ldvp

source tcb-env-setup.sh
torizoncore-builder images --remove-storage unpack MY_IMAGE
torizoncore-builder --verbose deploy --remote-host 192.168.11.1 --remote-username torizon --remote-password MY_PASSWORD --reboot
2021-11-16 13:24:09,685 - torizon.tcbuilder.backend.deploy - INFO - Pulling OSTree with ref base (checksum 99e39361ca7ee7d5c621758e1abfbcfb4fdaf6cd2efeeeb88e9b7425c8e3899e) from local archive repository...
2021-11-16 13:24:09,686 - torizon.tcbuilder.backend.ostree - INFO - Starting http server to serve OSTree.
2021-11-16 13:24:09,690 - paramiko.transport - DEBUG - starting thread (client mode): 0x2b39b6d0
2021-11-16 13:24:09,690 - paramiko.transport - DEBUG - Local version/idstring: SSH-2.0-paramiko_2.7.2
2021-11-16 13:24:09,748 - paramiko.transport - DEBUG - Remote version/idstring: SSH-2.0-OpenSSH_8.2
2021-11-16 13:24:09,749 - paramiko.transport - INFO - Connected (version 2.0, client OpenSSH_8.2)
2021-11-16 13:24:09,751 - paramiko.transport - DEBUG - kex algos:['curve25519-sha256', 'curve25519-sha256@libssh.org', 'ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group16-sha512', 'diffie-hellman-group18-sha512', 'diffie-hellman-group14-sha256'] server key:['rsa-sha2-512', 'rsa-sha2-256', 'ssh-rsa', 'ecdsa-sha2-nistp256', 'ssh-ed25519'] client encrypt:['chacha20-poly1305@openssh.com', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'aes128-gcm@openssh.com', 'aes256-gcm@openssh.com'] server encrypt:['chacha20-poly1305@openssh.com', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'aes128-gcm@openssh.com', 'aes256-gcm@openssh.com'] client mac:['umac-64-etm@openssh.com', 'umac-128-etm@openssh.com', 'hmac-sha2-256-etm@openssh.com', 'hmac-sha2-512-etm@openssh.com', 'hmac-sha1-etm@openssh.com', 'umac-64@openssh.com', 'umac-128@openssh.com', 'hmac-sha2-256', 'hmac-sha2-512', 'hmac-sha1'] server mac:['umac-64-etm@openssh.com', 'umac-128-etm@openssh.com', 'hmac-sha2-256-etm@openssh.com', 'hmac-sha2-512-etm@openssh.com', 'hmac-sha1-etm@openssh.com', 'umac-64@openssh.com', 'umac-128@openssh.com', 'hmac-sha2-256', 'hmac-sha2-512', 'hmac-sha1'] client compress:['none'] server compress:['none'] client lang:[''] server lang:[''] kex follows?False
2021-11-16 13:24:09,751 - paramiko.transport - DEBUG - Kex agreed: curve25519-sha256@libssh.org
2021-11-16 13:24:09,751 - paramiko.transport - DEBUG - HostKey agreed: ssh-ed25519
2021-11-16 13:24:09,752 - paramiko.transport - DEBUG - Cipher agreed: aes128-ctr
2021-11-16 13:24:09,752 - paramiko.transport - DEBUG - MAC agreed: hmac-sha2-256
2021-11-16 13:24:09,752 - paramiko.transport - DEBUG - Compression agreed: none
2021-11-16 13:24:09,806 - paramiko.transport - DEBUG - kex engine KexCurve25519 specified hash_algo <built-in function openssl_sha256>
2021-11-16 13:24:09,806 - paramiko.transport - DEBUG - Switch to new keys ...
2021-11-16 13:24:09,806 - paramiko.transport - DEBUG - Adding ssh-ed25519 host key for 192.168.11.1: b'ec27ca152e1dfb9b390d6acc2e73eca5'
2021-11-16 13:24:09,809 - paramiko.transport - DEBUG - userauth is OK
2021-11-16 13:24:09,880 - paramiko.transport - INFO - Authentication (password) successful!
2021-11-16 13:24:09,880 - paramiko.transport - DEBUG - Sending global request "tcpip-forward"
2021-11-16 13:24:09,881 - paramiko.transport - DEBUG - [chan 0] Max packet in: 32768 bytes
2021-11-16 13:24:09,927 - paramiko.transport - DEBUG - Received global request "hostkeys-00@openssh.com"
2021-11-16 13:24:09,928 - paramiko.transport - DEBUG - Rejecting "hostkeys-00@openssh.com" global request from server.
2021-11-16 13:24:09,969 - paramiko.transport - DEBUG - Global request denied.
2021-11-16 13:24:09,969 - paramiko.transport - DEBUG - [chan 0] Max packet out: 32768 bytes
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
2021-11-16 13:24:09,970 - paramiko.transport - DEBUG - Secsh channel 0 opened.
    self.run()
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/builder/tcbuilder/backend/rforward.py", line 64, in reverse_forward_tunnel
    transport.request_port_forward("", server_port)
  File "/usr/lib/python3/dist-packages/paramiko/transport.py", line 1059, in request_port_forward
    raise SSHException("TCP forwarding request denied")
paramiko.ssh_exception.SSHException: TCP forwarding request denied
2021-11-16 13:24:09,974 - paramiko.transport - DEBUG - [chan 0] Sesch channel 0 request ok
2021-11-16 13:24:10,077 - paramiko.transport - DEBUG - [chan 0] EOF received (0)
2021-11-16 13:24:10,078 - paramiko.transport - DEBUG - [chan 0] EOF sent (0)
2021-11-16 13:24:10,078 - torizon.tcbuilder.backend.deploy - DEBUG - Password:
2021-11-16 13:24:10,078 - torizon.tcbuilder.backend.deploy - INFO - Starting OSTree pull on the device...
2021-11-16 13:24:10,079 - paramiko.transport - DEBUG - [chan 1] Max packet in: 32768 bytes
2021-11-16 13:24:10,084 - paramiko.transport - DEBUG - [chan 1] Max packet out: 32768 bytes
2021-11-16 13:24:10,085 - paramiko.transport - DEBUG - Secsh channel 1 opened.
2021-11-16 13:24:10,088 - paramiko.transport - DEBUG - [chan 1] Sesch channel 1 request ok
2021-11-16 13:24:10,201 - paramiko.transport - DEBUG - [chan 1] EOF received (1)
2021-11-16 13:24:10,202 - torizon.tcbuilder.backend.deploy - ERROR - Password: error: Server returned HTTP 404
2021-11-16 13:24:10,202 - root - ERROR - Failed to run command on module: ostree pull tcbuilder:99e39361ca7ee7d5c621758e1abfbcfb4fdaf6cd2efeeeb88e9b7425c8e3899e
2021-11-16 13:24:10,202 - paramiko.transport - DEBUG - [chan 1] EOF sent (1)
2021-11-16 13:24:10,203 - root - DEBUG - Traceback (most recent call last):
  File "/builder/torizoncore-builder", line 215, in <module>
    mainargs.func(mainargs)
  File "/builder/tcbuilder/cli/deploy.py", line 92, in do_deploy
    do_deploy_ostree_remote(args)
  File "/builder/tcbuilder/cli/deploy.py", line 84, in do_deploy_ostree_remote
    dbe.deploy_ostree_remote(args.remote_host, args.remote_username,
  File "/builder/tcbuilder/backend/deploy.py", line 289, in deploy_ostree_remote
    run_command_with_sudo(
  File "/builder/tcbuilder/backend/deploy.py", line 238, in run_command_with_sudo
    raise TorizonCoreBuilderError(f"Failed to run command on module: {command}")
tcbuilder.errors.TorizonCoreBuilderError: Failed to run command on module: ostree pull tcbuilder:99e39361ca7ee7d5c621758e1abfbcfb4fdaf6cd2efeeeb88e9b7425c8e3899e

Problem solved: read in TorizonCore Builder code that the TCP port used by HTTP server is 8080 and it was used by another service at the same time.

Hi @ldvp ,

Thanks for using the community and thank you for letting us know that it is solved.

Best Regards
Kevin