I'm having trouble installing SLM via olivetin. My configuration is I have Channels running on a Synology NAS. Channels is installed from Package Manager (not in a docker container). I have Tailscale installed on the NAS with MagicDNS running a "cjynas" maps to the IP of the NAS (192.189.0.11).
If I shell into the NAS, here is where my Channels installed:
If I run Olivetin and attempt an install of SLM, I fill out the form like this:
When it runs it gets an error that it cannot resolve the host "cjynas". Here is standard error output:
Summary
exit status 1
++ basename /config/slm.sh
+ extension=slm.sh
+ extension=slm
+ cp /config/slm.env /tmp
+ envFile=/tmp/slm.env
+ envVars=("TAG=$1" "SLM_PORT=$2" "TIMEZONE=$3" "CHANNELS_FOLDER=$4")
+ printf '%s\n' TAG=latest SLM_PORT=5000 TIMEZONE=US/Pacific CHANNELS_FOLDER=/volume1/ChannelsDVR
+ sed -i /=#/d /tmp/slm.env
+ /config/portainerstack.sh slm
+ stackName=slm
+ portainerHost=cjynas
+ curl -s -o /dev/null http://cjynas:9000
+ portainerURL='https://cjynas:9443/api/stacks?type=2&method=string&endpointId=2'
+ portainerToken=ptr_mCoUK4hpSQnjOh42V0qeZsrfdOX0hmPEV0HkVoQ/LnY=
+ cp /config/slm.yaml /tmp
+ stackFile=/tmp/slm.yaml
+ envFile=/tmp/slm.env
++ grep DVR_SHARE= /tmp/slm.env
++ grep -v /
++ awk -F= '{print $2}'
+ dockerVolume=
++ grep VOL_EXTERNAL= /tmp/slm.env
++ grep -v '#'
++ awk -F= '{print $2}'
+ volumeExternal=
++ grep VOL_NAME= /tmp/slm.env
++ grep -v '#'
++ awk -F= '{print $2}'
+ volumeName=
++ grep NETWORK_MODE= /tmp/slm.env
++ grep -v '#'
++ awk -F= '{print $2}'
+ networkMode=
++ grep DEVICES= /tmp/slm.env
++ grep -v '#'
++ awk -F= '{print $2}'
+ transcoderDevice=
++ grep CDVR_CONTAINER= /tmp/slm.env
++ grep -v '#'
++ awk -F= '{print $2}'
+ stackNumber=
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
++ sed 's/\\/\\\\/g' /tmp/slm.yaml
++ sed 's/"/\\"/g'
++ awk '{printf "%s\\n", $0}'
+ stackContent='version: '\''3.9'\''\nservices:\n # 2024.09.12\n # GitHub home for this project with setup instructions: https://github.com/babsonnexus/stream-link-manager-for-channels\n # Docker container home for this project: https://ghcr.io/babsonnexus/stream-link-manager-for-channels\n slm:\n image: ghcr.io/babsonnexus/stream-link-manager-for-channels:${TAG:-latest}\n container_name: slm\n ports:\n - ${SLM_PORT:-5000}:5000\n environment:\n - TZ=${TIMEZONE:-UTC}\n volumes:\n - slm_files:/app/program_files\n - ${CHANNELS_FOLDER}:/app/channels_folder\n restart: unless-stopped\nvolumes:\n slm_files:\n\n# Default Environment variables can be found below under stderr -- copy and paste into Portainer-Stacks Environment variables section in Advanced mode\n'
+ stackEnvVars='['
+ IFS==
+ read -r key value
+ stackEnvVars='[{"name": "TAG", "value": "latest"},'
+ IFS==
+ read -r key value
+ stackEnvVars='[{"name": "TAG", "value": "latest"},{"name": "SLM_PORT", "value": "5000"},'
+ IFS==
+ read -r key value
+ stackEnvVars='[{"name": "TAG", "value": "latest"},{"name": "SLM_PORT", "value": "5000"},{"name": "TIMEZONE", "value": "US/Pacific"},'
+ IFS==
+ read -r key value
+ stackEnvVars='[{"name": "TAG", "value": "latest"},{"name": "SLM_PORT", "value": "5000"},{"name": "TIMEZONE", "value": "US/Pacific"},{"name": "CHANNELS_FOLDER", "value": "/volume1/ChannelsDVR"},'
+ IFS==
+ read -r key value
+ stackEnvVars='[{"name": "TAG", "value": "latest"},{"name": "SLM_PORT", "value": "5000"},{"name": "TIMEZONE", "value": "US/Pacific"},{"name": "CHANNELS_FOLDER", "value": "/volume1/ChannelsDVR"}]'
++ cat
+ stackJSON='{
"Name": "slm",
"SwarmID": "",
"StackFileContent": "version: '\''3.9'\''\nservices:\n # 2024.09.12\n # GitHub home for this project with setup instructions: https://github.com/babsonnexus/stream-link-manager-for-channels\n # Docker container home for this project: https://ghcr.io/babsonnexus/stream-link-manager-for-channels\n slm:\n image: ghcr.io/babsonnexus/stream-link-manager-for-channels:${TAG:-latest}\n container_name: slm\n ports:\n - ${SLM_PORT:-5000}:5000\n environment:\n - TZ=${TIMEZONE:-UTC}\n volumes:\n - slm_files:/app/program_files\n - ${CHANNELS_FOLDER}:/app/channels_folder\n restart: unless-stopped\nvolumes:\n slm_files:\n\n# Default Environment variables can be found below under stderr -- copy and paste into Portainer-Stacks Environment variables section in Advanced mode\n",
"Env": [{"name": "TAG", "value": "latest"},{"name": "SLM_PORT", "value": "5000"},{"name": "TIMEZONE", "value": "US/Pacific"},{"name": "CHANNELS_FOLDER", "value": "/volume1/ChannelsDVR"}]
}'
+ echo 'JSON response from https://cjynas:9443/api/stacks?type=2&method=string&endpointId=2:'
++ curl -k -X POST -H 'Content-Type: application/json' -H 'X-API-Key: ptr_mCoUK4hpSQnjOh42V0qeZsrfdOX0hmPEV0HkVoQ/LnY=' -d '{
"Name": "slm",
"SwarmID": "",
"StackFileContent": "version: '\''3.9'\''\nservices:\n # 2024.09.12\n # GitHub home for this project with setup instructions: https://github.com/babsonnexus/stream-link-manager-for-channels\n # Docker container home for this project: https://ghcr.io/babsonnexus/stream-link-manager-for-channels\n slm:\n image: ghcr.io/babsonnexus/stream-link-manager-for-channels:${TAG:-latest}\n container_name: slm\n ports:\n - ${SLM_PORT:-5000}:5000\n environment:\n - TZ=${TIMEZONE:-UTC}\n volumes:\n - slm_files:/app/program_files\n - ${CHANNELS_FOLDER}:/app/channels_folder\n restart: unless-stopped\nvolumes:\n slm_files:\n\n# Default Environment variables can be found below under stderr -- copy and paste into Portainer-Stacks Environment variables section in Advanced mode\n",
"Env": [{"name": "TAG", "value": "latest"},{"name": "SLM_PORT", "value": "5000"},{"name": "TIMEZONE", "value": "US/Pacific"},{"name": "CHANNELS_FOLDER", "value": "/volume1/ChannelsDVR"}]
}' 'https://cjynas:9443/api/stacks?type=2&method=string&endpointId=2'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: cjynas
+ portainerResponse=
+ [[ -z '' ]]
+ exit 1
+ [[ 1 == 1 ]]
+ exit 1
Any ideas what to check?