Topic on Extension talk:TimedMediaHandler/Flow

Error running /bin/bash - syntax error near unexpected token

4
195.80.103.225 (talkcontribs)

[exec] Error running /bin/bash '/volume2/www/test2.example.com/w/vendor/wikimedia/shellbox/src/Command/limit.sh' ''\''/volume2/www/bin/ffmpeg-6.0-amd64-static/ffmpeg'\'' -nostdin -threads 1  -y -i '\''/volume2/www/test2.example.com/w/images/6/6b/Test.ogv'\'' -ss 1  -s 1920x1080 -f mjpeg -an -vframes 1 '\''/tmp/transform_7eb9fb4c6892.jpg'\'' 2>&1' 'SB_INCLUDE_STDERR=;SB_CPU_LIMIT=180; SB_CGROUP='\'''\''; SB_MEM_LIMIT=629145600; SB_FILE_SIZE_LIMIT=104857600; SB_WALL_CLOCK_LIMIT=180; SB_USE_LOG_PIPE=yes': /volume2/www/test2.example.com/w/vendor/wikimedia/shellbox/src/Command/limit.sh: line 4: $'\r': command not found

/volume2/www/test2.example.com/w/vendor/wikimedia/shellbox/src/Command/limit.sh: line 6: syntax error near unexpected token `$'{\r''

/volume2/www/test2.example.com/w/vendor/wikimedia/shellbox/src/Command/limit.sh: line 6: `cleanup() {

Tacsipacsi (talkcontribs)

Does by any chance your host computer run Windows? The error messages complain about excess carriage return characters, which are used by Windows, but not by Linux.

195.80.103.225 (talkcontribs)

Apologies for the delay. The host is running on a Synology NAS Web Station, which I believe is using a Linux kernel.

Tacsipacsi (talkcontribs)

Then maybe you copied from a Windows computer? I have no experience administering Linux servers from Windows, but I can imagine line endings could be problematic. If not, then I have no idea what’s going wrong.

Reply to "Error running /bin/bash - syntax error near unexpected token"