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

[BUG] - openssh-client package missing from docker container #1002

Open
jared-bloomer opened this issue Feb 23, 2025 · 0 comments · May be fixed by #1003
Open

[BUG] - openssh-client package missing from docker container #1002

jared-bloomer opened this issue Feb 23, 2025 · 0 comments · May be fixed by #1003

Comments

@jared-bloomer
Copy link

Description

In the docker image robotastic/trunk-recorder:5.0.1 the package openssh-client is missing. This creates a challenge when using the encode-upload.sh script because the scp command is not found.

Before installing openshh-client package

trunk-recorder  | [2025-02-23 17:22:08.026157] (info)   [hcps]  43C     TG:        200  Freq: 851.837500 MHz    C        Running upload script: /app/encode_upload.sh /app/media/hcps/2025/2/23/200-1740331326_851837500.0-call_43.wav /app/media/hcps/2025/2/23/200-1740331326_851837500.0-call_43.json /app/media/hcps/2025/2/23/200-1740331326_851837500.0-call_43.m4a
...
trunk-recorder  | Encoding: /app/media/hcps/2025/2/23/200-1740331326_851837500.0-call_43.wav
trunk-recorder  | Upload:
trunk-recorder  | /app/encode_upload.sh: line 12: scp: command not found

After installing openshh-client package

trunk-recorder  | [2025-02-23 17:34:19.031367] (info)   [hcps]  385C    TG:        274  Freq: 852.050000 MHz    C        Running upload script: /app/encode_upload.sh /app/media/hcps/2025/2/23/274-1740332058_852050000.1-call_385.wav /app/media/hcps/2025/2/23/274-1740332058_852050000.1-call_385.json /app/media/hcps/2025/2/23/274-1740332058_852050000.1-call_385.m4a
trunk-recorder  | Encoding: /app/media/hcps/2025/2/23/274-1740332058_852050000.1-call_385.wav
trunk-recorder  | Upload:

encode-upload.sh script that is being used

#! /bin/bash
echo "Encoding: $1"
filename="$1"
basename="${filename%.*}"
#mp3encoded="$basename.mp3"
mp4encoded="$basename.m4a"
json="$basename.json"
#eval "lame --preset voice" ${filename}
eval "nice -n 19 /home/luke/bin/ffmpeg -i $filename  -c:a libfdk_aac -b:a 32k -cutoff 18000 $mp4encoded > /dev/null 2>&1"

echo "Upload: $encoded"
eval "scp $json $mp4encoded [email protected]:~/smartnet-upload "

Resolution

  1. Connect to the docker container with docker compose exec -ti trunk-recorder bash
  2. Run the following commands
apt update
apt install -y openssh-client
@jared-bloomer jared-bloomer linked a pull request Feb 23, 2025 that will close this issue
2 tasks
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 a pull request may close this issue.

1 participant