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


Navigation

    Cloudron Forum

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

    SOLVED PeerTube CLI

    PeerTube
    5
    31
    230
    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.
    • girish
      girish Staff last edited by

      @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 Reply Quote 0
      • imc67
        imc67 @imc67 last edited by imc67

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

          @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.

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

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

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

                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.

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

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

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

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

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

                        @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 🙂

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

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

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

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

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

                              @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 Reply Quote 0
                              • imc67
                                imc67 @imc67 last edited by

                                @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 😀

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

                                  @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.

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

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

                                      @girish friendly reminder

                                      1 Reply Last reply Reply Quote 1
                                      • girish
                                        girish Staff last edited by

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

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

                                          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 Reply Quote 0
                                          • nebulon
                                            nebulon Staff last edited by

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

                                            imc67 1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post