Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Peertube CLI not working

    PeerTube
    3
    10
    271
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • imc67
      imc67 translator last edited by

      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

      luckow 1 Reply Last reply Reply Quote 0
      • luckow
        luckow translator @imc67 last edited by

        @imc67 Same here. It looks like something is broken with the cli-wrapper. https://docs.joinpeertube.org/maintain-tools?id=cli-wrapper

        Pronouns: he/him | Primary language: German

        1 Reply Last reply Reply Quote 0
        • imc67
          imc67 translator last edited by

          @girish any clue of to solve this?

          girish 2 Replies Last reply Reply Quote 0
          • girish
            girish Staff @imc67 last edited by

            @imc67 Just looking into this now.

            1 Reply Last reply Reply Quote 0
            • girish
              girish Staff @imc67 last edited by

              @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]
              
              imc67 1 Reply Last reply Reply Quote 0
              • girish
                girish Staff last edited by

                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 https://www.youtube.com/watch?v=S3qZf3fYl6Q --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: https://www.youtube.com/watch?v=S3qZf3fYl6Q
                
                1 Reply Last reply Reply Quote 0
                • imc67
                  imc67 translator @girish last edited by

                  @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 1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @imc67 last edited by

                    @imc67 Ah! Workaround is source /root/.bashrc and then run the command. This is fixed in 6.3.6 which is already out.

                    imc67 1 Reply Last reply Reply Quote 1
                    • imc67
                      imc67 translator @girish last edited by

                      @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 1 Reply Last reply Reply Quote 0
                      • girish
                        girish Staff @imc67 last edited by

                        @imc67 yes sorry, I completely forgot about that regression in Cloudron 6.3.5.

                        1 Reply Last reply Reply Quote 2
                        • First post
                          Last post
                        Powered by NodeBB