Skip to content

Comments

fix escaping issues for streaming hosts#20

Open
LarsNt wants to merge 3 commits intomlsmithjr:masterfrom
LarsNt:master
Open

fix escaping issues for streaming hosts#20
LarsNt wants to merge 3 commits intomlsmithjr:masterfrom
LarsNt:master

Conversation

@LarsNt
Copy link

@LarsNt LarsNt commented Oct 17, 2020

I had some issues to get the streaming host configuration in cluster mode to work. This might also relate to issue #8.
The main problem was that the arguments for the remote host need to be escaped or quoted for the remote shell.
The fix for the ffmpeg/hbcli call was taken from the mounted host section.

Additional fixes for the copy commands needed to be added.
Since early 2019 openssh has introduced strict filename checking which breaks with quoted filenames when we try to copy back the finished transcode.
This can be avoided by specifying the -T option. This again might break on systems with an ssh/scp version that doesn't have this option.
Thus I added an configuration option to set the copy command.
This also allows to use other tools like rsync (see description in Cluster.md).

I have tested the code on Linux systems but not on Windows.

* quote paths in processor arguments
* scp command would fail with spaces (or other special characters) in
  path or filename
* double quotes still pose a problem but are less likely to occure
* '-T' option for scp needed since strict filename checking doesn't work
  with quoted paths (might cause problems with pre Jan 2019 ssh/scp Versions)
* add option remote_copy_cmd
  - string values starting with '[' are evaluated as python lists
  - other values are split by whitespaces into argument list
* add example and description in Cluser.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant