Peertube CLI not working
-
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 /tmphowever, doing that (with the correct credentials, URL's etc) results in:
bash: peertube: command not foundWhat am I doing wrong?
using latest version: org.joinpeertube.cloudronapp@2.3.0-1
-
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 /tmphowever, doing that (with the correct credentials, URL's etc) results in:
bash: peertube: command not foundWhat 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: -
@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]@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 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# -
@imc67 Ah! Workaround is
source /root/.bashrcand then run the command. This is fixed in 6.3.6 which is already out.@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] -
@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]
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login