Peertube CLI not working
Solved
PeerTube
-
In the docs (https://docs.cloudron.io/apps/peertube/) it says:
# peertube import --url https://peertube.cloudron.club --username root --password changeme --target-url https://www.youtube.com/watch?v=xxx --tmpdir /tmp
however, doing that (with the correct credentials, URL's etc) results in:
bash: peertube: command not found
What am I doing wrong?
using latest version: org.joinpeertube.cloudronapp@2.3.0-1
-
@imc67 Same here. It looks like something is broken with the cli-wrapper. https://docs.joinpeertube.org/maintain-tools?id=cli-wrapper
-
-
@luckow @imc67 this seems to work for me out of the box. Are you running this in the Web Terminal btw?
root@56a8cfff-2217-4ae9-89c4-f69c3470abe8:/app/code/server# peertube ___/),.._ ░P░e░e░r░T░u░b░e░ /' ,. ."'._ ( "' '-.__"-._ ,- \'='='), "\ -._-"-. -"/ / ""/"\,_\,__"" _" /,- / / -" _/"/ / | ._\\ |\ |_.".-" / / | __\)|)|),/|_." _,." / _." " ") | ).-""---''-- ( "/.""7__-""'' | " ."._--._ \ \ (_ __ "" ".,_ \.,. \ "" -"".-" ".,_, (",_-,,,-".- "'-,\_ __,-" ",)" ") /"\-" ,"\/ _,.__/"\/_ (the CLI for red chocobos) / \) "./, ". --/---"---" "-) )---- by Chocobozzz et al. Usage: peertube [command] [options]
-
Import also works for me:
root@56a8cfff-2217-4ae9-89c4-f69c3470abe8:/app/code/cli# peertube import --url https://videos.cloudron.space --username root --password changeme --target-url
--tmpdir /tmp info: Will download and upload 1 videos. info: ############################################################ info: Downloading video "How To Install Cloudron on Ubuntu 20.04"... info: [youtube] S3qZf3fYl6Q: Downloading webpage [youtube] S3qZf3fYl6Q: Downloading MPD manifest [dashsegments] Total fragments: 55 [download] Destination: /tmp/0dfa2c23cdd12e5a8005643e3ff340d747e5b12fbfc56d58da22d9ff67f000cc.f136.mp4 [download] 100% of 7.79MiB in 00:07.82MiB/s ETA 00:0046:11 [download] Destination: /tmp/0dfa2c23cdd12e5a8005643e3ff340d747e5b12fbfc56d58da22d9ff67f000cc.mp4.f140 [download] 100% of 4.26MiB in 00:0067MiB/s ETA 00:009 [ffmpeg] Merging formats into "/tmp/0dfa2c23cdd12e5a8005643e3ff340d747e5b12fbfc56d58da22d9ff67f000cc.mp4" Deleting original file /tmp/0dfa2c23cdd12e5a8005643e3ff340d747e5b12fbfc56d58da22d9ff67f000cc.f136.mp4 (pass -k to keep) Deleting original file /tmp/0dfa2c23cdd12e5a8005643e3ff340d747e5b12fbfc56d58da22d9ff67f000cc.mp4.f140 (pass -k to keep) info: Uploading on PeerTube video "How To Install Cloudron on Ubuntu 20.04". warn: Uploaded video "How To Install Cloudron on Ubuntu 20.04"! info: Video/s for user root imported: -
@girish yes WebTerminal of the app:
Connecting... If you resize the browser window, press Ctrl+D to start a new session with the current size. root@fd074a84-6b24-4541-984a-58b15a4f5439:/app/code/server# peertube bash: peertube: command not found root@fd074a84-6b24-4541-984a-58b15a4f5439:/app/code/server#
-
-
@girish said in Peertube CLI not working:
source /root/.bashrc
this was it!!
root@fd074a84-6b24-4541-984a-58b15a4f5439:/app/code/server# source /root/.bashrc root@fd074a84-6b24-4541-984a-58b15a4f5439:/app/code/server# peertube ___/),.._ ░P░e░e░r░T░u░b░e░ /' ,. ."'._ ( "' '-.__"-._ ,- \'='='), "\ -._-"-. -"/ / ""/"\,_\,__"" _" /,- / / -" _/"/ / | ._\\ |\ |_.".-" / / | __\)|)|),/|_." _,." / _." " ") | ).-""---''-- ( "/.""7__-""'' | " ."._--._ \ \ (_ __ "" ".,_ \.,. \ "" -"".-" ".,_, (",_-,,,-".- "'-,\_ __,-" ",)" ") /"\-" ,"\/ _,.__/"\/_ (the CLI for red chocobos) / \) "./, ". --/---"---" "-) )---- by Chocobozzz et al. Usage: peertube [command] [options]
-