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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. PeerTube
  3. PeerTube CLI

PeerTube CLI

Scheduled Pinned Locked Moved Solved PeerTube
39 Posts 5 Posters 5.4k Views 5 Watching
  • 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.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #1

    @imc67 @girish I just tried to use the CLI tools but got an error they are not installed, can you please install them or can we do it ourselves and is that persistent?

    1 Reply Last reply
    0
    • imc67I imc67

      @girish is it possible for you to include the CLI tools so we can use scipts like this https://docs.joinpeertube.org/#/maintain-tools?id=peertube-import-videosjs ?

      imc67I Offline
      imc67I Offline
      imc67
      translator
      wrote on last edited by imc67
      #2

      @imc67 @girish I just tried to use the CLI tools but got an error they are not installed, can you please install them or can we do it ourselves and is that persistent?

      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        @imc67 I thought the CLI was something that we install on the desktop and not the server itself? Are you looking to automate something via the CLI + cron ? That might need some specialized package support. Let me know your use case so I can fix up the package accordingly.

        imc67I 1 Reply Last reply
        0
        • girishG girish

          @imc67 I thought the CLI was something that we install on the desktop and not the server itself? Are you looking to automate something via the CLI + cron ? That might need some specialized package support. Let me know your use case so I can fix up the package accordingly.

          imc67I Offline
          imc67I Offline
          imc67
          translator
          wrote on last edited by
          #4

          @girish I was thinking about this for example: https://docs.joinpeertube.org/#/maintain-tools?id=peertube-import-videosjs

          It must be possible to install it on a different server but it's rather download 1TB of YT videos to 'a server' and upload it again to the PeerTube app. That's why I thought about having CLI in the app.

          There is also an example of Cron jobs, is that possible in the app?

          1 Reply Last reply
          1
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by girish
            #5

            @imc67 I wonder if we should talk to the upstream project on providing CLI as a separate release package. There is some discussion at https://github.com/Chocobozzz/PeerTube/issues/2347 . Should we leave a note there and see what he says?

            1 Reply Last reply
            1
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              I managed to get the CLI installed but installing plugins is still a mystery. This is because the CLI can only be installed by cd into the CLI workdir. And then to install it has to somehow install into the release package. Not sure how this is done.

              imc67I 1 Reply Last reply
              0
              • girishG girish

                I managed to get the CLI installed but installing plugins is still a mystery. This is because the CLI can only be installed by cd into the CLI workdir. And then to install it has to somehow install into the release package. Not sure how this is done.

                imc67I Offline
                imc67I Offline
                imc67
                translator
                wrote on last edited by imc67
                #7

                Hi @girish , I discovered PeerTube since it was announced here and was very enthusiastic because it fits in our needs. However during the past 6 weeks I'm beginning to loose faith in this project.

                The project has a very slow "beat", they write they have only 1 (paid) developer. We had to wait 5 weeks to get an essential bug (not able to config) solved. After your last update it looked fine and I started to setup everything but then discovered a "stupid" bug again: videos don't play on iPad (https://github.com/Chocobozzz/PeerTube/issues/2941)! The developer knows this for at least 3 weeks but there seems no investigation/progress. Most of our viewers use iPad so we can't start (again) ...
                There is also a very annoying issue that themes are alternating switching during browsing, so 1 click you're in dark mode and the next one in light mode (https://github.com/Chocobozzz/PeerTube/issues/3007). Beside that there are 350 other open issues ...

                I spent hours to find an alternative (I know Cloudron always have two apps of the same "kind") and found: https://platform.avideo.com/AVideo_OpenSource (https://github.com/WWBN/AVideo/blob/master/README.md) I will create an App request with this info.

                Kind regards,

                Marcel.

                imc67I 1 Reply Last reply
                1
                • imc67I imc67

                  Hi @girish , I discovered PeerTube since it was announced here and was very enthusiastic because it fits in our needs. However during the past 6 weeks I'm beginning to loose faith in this project.

                  The project has a very slow "beat", they write they have only 1 (paid) developer. We had to wait 5 weeks to get an essential bug (not able to config) solved. After your last update it looked fine and I started to setup everything but then discovered a "stupid" bug again: videos don't play on iPad (https://github.com/Chocobozzz/PeerTube/issues/2941)! The developer knows this for at least 3 weeks but there seems no investigation/progress. Most of our viewers use iPad so we can't start (again) ...
                  There is also a very annoying issue that themes are alternating switching during browsing, so 1 click you're in dark mode and the next one in light mode (https://github.com/Chocobozzz/PeerTube/issues/3007). Beside that there are 350 other open issues ...

                  I spent hours to find an alternative (I know Cloudron always have two apps of the same "kind") and found: https://platform.avideo.com/AVideo_OpenSource (https://github.com/WWBN/AVideo/blob/master/README.md) I will create an App request with this info.

                  Kind regards,

                  Marcel.

                  imc67I Offline
                  imc67I Offline
                  imc67
                  translator
                  wrote on last edited by
                  #8

                  @imc67 said in PeerTube CLI:

                  I will create an App request with this info.

                  https://forum.cloudron.io/topic/2944/avideo-platform

                  1 Reply Last reply
                  1
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #9

                    @imc67 They seem to have fixed the iPad issue - https://github.com/Chocobozzz/PeerTube/commit/b6a8cfc5714c93d0ecf6154e5d3a25b33b50b8cd

                    imc67I 1 Reply Last reply
                    2
                    • girishG girish

                      @imc67 They seem to have fixed the iPad issue - https://github.com/Chocobozzz/PeerTube/commit/b6a8cfc5714c93d0ecf6154e5d3a25b33b50b8cd

                      imc67I Offline
                      imc67I Offline
                      imc67
                      translator
                      wrote on last edited by
                      #10

                      @girish this morning they released 2.4.0 adding many features and solving even more bugs of which 2 of them where blocking for us 🙂

                      imc67I 1 Reply Last reply
                      2
                      • girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #11

                        @imc67 👍 Yup, got a notification for it, very nice!

                        1 Reply Last reply
                        0
                        • girishG Offline
                          girishG Offline
                          girish
                          Staff
                          wrote on last edited by
                          #12

                          @imc67 BTW, did you manage to import your videos or is it in hold?

                          imc67I 1 Reply Last reply
                          0
                          • girishG girish

                            @imc67 BTW, did you manage to import your videos or is it in hold?

                            imc67I Offline
                            imc67I Offline
                            imc67
                            translator
                            wrote on last edited by
                            #13

                            @girish I uploaded (via YT URL) 1 video just to test. Then discovered the, for us blocking issues and since then waiting for the update.

                            However, I remember that importing a YT playlist by URL didn’t seem to work (nothing happened). So I really prefer a build in CLI to do this.

                            1 Reply Last reply
                            0
                            • imc67I imc67

                              @girish this morning they released 2.4.0 adding many features and solving even more bugs of which 2 of them where blocking for us 🙂

                              imc67I Offline
                              imc67I Offline
                              imc67
                              translator
                              wrote on last edited by
                              #14

                              @imc67 said in PeerTube CLI:

                              @girish this morning they released 2.4.0 adding many features and solving even more bugs of which 2 of them where blocking for us 🙂

                              Friendly reminder 😀

                              girishG 1 Reply Last reply
                              0
                              • imc67I imc67

                                @imc67 said in PeerTube CLI:

                                @girish this morning they released 2.4.0 adding many features and solving even more bugs of which 2 of them where blocking for us 🙂

                                Friendly reminder 😀

                                girishG Offline
                                girishG Offline
                                girish
                                Staff
                                wrote on last edited by
                                #15

                                @imc67 Noted 😄 I will get to this next week though since we are rolling out 5.6 this week. But I am very interested in getting that app to stable state asap.

                                imc67I 1 Reply Last reply
                                0
                                • rmdesR Offline
                                  rmdesR Offline
                                  rmdes
                                  wrote on last edited by
                                  #16

                                  Also interested in the cli to be able to relaunch transcoding jobs

                                  example :
                                  sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run create-transcoding-job -- --generate-hls -v c249320b-5263-4b2b-b1e8-14d07403079c

                                  from : https://github.com/Chocobozzz/PeerTube/issues/3121

                                  1 Reply Last reply
                                  0
                                  • girishG girish

                                    @imc67 Noted 😄 I will get to this next week though since we are rolling out 5.6 this week. But I am very interested in getting that app to stable state asap.

                                    imc67I Offline
                                    imc67I Offline
                                    imc67
                                    translator
                                    wrote on last edited by
                                    #17

                                    @girish friendly reminder

                                    1 Reply Last reply
                                    1
                                    • girishG Offline
                                      girishG Offline
                                      girish
                                      Staff
                                      wrote on last edited by
                                      #18

                                      @imc67 I pushed a new package with youtube-dl and the CLI installed. Do you require the cron support?

                                      1 Reply Last reply
                                      1
                                      • imc67I Offline
                                        imc67I Offline
                                        imc67
                                        translator
                                        wrote on last edited by
                                        #19

                                        I tried (in the 0.7 version) the following command:

                                        sudo -u root NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run create-transcoding-job -- -v b8b791eb-9e38-4c4f-b797-0347662bb45f
                                        

                                        but this error returns:

                                        sudo: npm: command not found
                                        

                                        Is the path in the command ok?

                                        1 Reply Last reply
                                        0
                                        • nebulonN Away
                                          nebulonN Away
                                          nebulon
                                          Staff
                                          wrote on last edited by
                                          #20

                                          peertube as many other apps should ideally run with the cloudron user, so maybe try that user instead of root.

                                          imc67I 1 Reply Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search