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. Trying to import a whole YT channel via CLI

Trying to import a whole YT channel via CLI

Scheduled Pinned Locked Moved PeerTube
25 Posts 7 Posters 3.7k Views 7 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.
  • jordanurbsJ Offline
    jordanurbsJ Offline
    jordanurbs
    wrote on last edited by jordanurbs
    #4

    Solved it, this is where the js file lives

    node dist/scripts/create-import-video-file-job.js 
    

    It doesn't seem to use "-u" though so there may be updated documentation I have not stumbled upon yet

    robiR girishG 2 Replies Last reply
    1
    • jordanurbsJ jordanurbs

      Solved it, this is where the js file lives

      node dist/scripts/create-import-video-file-job.js 
      

      It doesn't seem to use "-u" though so there may be updated documentation I have not stumbled upon yet

      robiR Offline
      robiR Offline
      robi
      wrote on last edited by
      #5

      @jordanurbs is this new in the latest release vs the older release?

      Conscious tech

      jordanurbsJ 1 Reply Last reply
      0
      • robiR robi

        @jordanurbs is this new in the latest release vs the older release?

        jordanurbsJ Offline
        jordanurbsJ Offline
        jordanurbs
        wrote on last edited by
        #6

        @robi I am using the latest release however this is functionality that has been around since at least the previous version..

        robiR 1 Reply Last reply
        0
        • jordanurbsJ jordanurbs

          @robi I am using the latest release however this is functionality that has been around since at least the previous version..

          robiR Offline
          robiR Offline
          robi
          wrote on last edited by
          #7

          @jordanurbs odd that there are two different scripts for it.

          Conscious tech

          1 Reply Last reply
          0
          • jordanurbsJ jordanurbs

            Solved it, this is where the js file lives

            node dist/scripts/create-import-video-file-job.js 
            

            It doesn't seem to use "-u" though so there may be updated documentation I have not stumbled upon yet

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

            @jordanurbs Ah thanks, I will fix the docs accordingly.

            jordanurbsJ 1 Reply Last reply
            0
            • girishG girish

              @jordanurbs Ah thanks, I will fix the docs accordingly.

              jordanurbsJ Offline
              jordanurbsJ Offline
              jordanurbs
              wrote on last edited by
              #9

              @girish thanks.. is the 'peertube' cli command only for the cloudron CLI or is that what I would also use in the app's own terminal on the cloudron interface? Aside from the missing script file, I should be able to run commands in the app terminal using the same commands as the peertube documentation, right?

              girishG 1 Reply Last reply
              0
              • jordanurbsJ jordanurbs

                @girish thanks.. is the 'peertube' cli command only for the cloudron CLI or is that what I would also use in the app's own terminal on the cloudron interface? Aside from the missing script file, I should be able to run commands in the app terminal using the same commands as the peertube documentation, right?

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

                @jordanurbs Cloudron CLI terminal (via exec) and app's terminal on the web ui are one and the same. You should be able to run commands as per the peertube docs.

                rmdesR 1 Reply Last reply
                1
                • girishG girish

                  @jordanurbs Cloudron CLI terminal (via exec) and app's terminal on the web ui are one and the same. You should be able to run commands as per the peertube docs.

                  rmdesR Offline
                  rmdesR Offline
                  rmdes
                  wrote on last edited by
                  #11

                  With the latest version, it seems there is now an 'official' YT plugin to import entire channels from the UI but the plugin crash at install because node is trying to install inside the app/code/server read-only file system.

                  Do you think this is something that could be fixed in the cloudron package ?

                  girishG 1 Reply Last reply
                  3
                  • rmdesR rmdes

                    With the latest version, it seems there is now an 'official' YT plugin to import entire channels from the UI but the plugin crash at install because node is trying to install inside the app/code/server read-only file system.

                    Do you think this is something that could be fixed in the cloudron package ?

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

                    @rmdes Where is this plugin ? https://github.com/Chocobozzz/PeerTube/projects/8#card-74498056 says it is still not implemented.

                    rmdesR 1 Reply Last reply
                    0
                    • girishG girish

                      @rmdes Where is this plugin ? https://github.com/Chocobozzz/PeerTube/projects/8#card-74498056 says it is still not implemented.

                      rmdesR Offline
                      rmdesR Offline
                      rmdes
                      wrote on last edited by
                      #13

                      @girish on the Administration plugin/theme view
                      b3870022-2723-44e9-a150-38ff31d5ca12-image.png

                      Using default Peertube cloudron package.

                      imc67I 1 Reply Last reply
                      1
                      • rmdesR rmdes

                        @girish on the Administration plugin/theme view
                        b3870022-2723-44e9-a150-38ff31d5ca12-image.png

                        Using default Peertube cloudron package.

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

                        @rmdes @girish install still fails 😞

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

                          Just testing this out now.. Classic warning:

                          d888241a-e553-4924-ba05-60390469ebfe-image.png

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

                            I have pushed a fix, the plugin installs now. But I don't know if the plugin itself works, please test. The plugin hasn't been updated in a while, so YMMV.

                            imc67I 1 Reply Last reply
                            2
                            • girishG girish

                              I have pushed a fix, the plugin installs now. But I don't know if the plugin itself works, please test. The plugin hasn't been updated in a while, so YMMV.

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

                              @girish tried the plugin but alas it doesn't work, maybe it's too old and/or doesn't work with LDAP and/or I'm doing something wrong....

                              I guess we have to wait for native support as you wrote earlier.

                              Tried with LDAP user:

                              May 12 21:27:53 [videos.domain.tv:443] 2022-05-12 19:27:53.656 info: Login success with auth method ldap of plugin peertube-plugin-auth-ldap for ***admin user ldap***.
                              May 12 21:27:53 [videos.domain.tv:443] 2022-05-12 19:27:53.659 info: Bypassing oauth login by plugin peertube-plugin-auth-ldap.
                              May 12 21:27:53 [videos.domain.tv:443] 2022-05-12 19:27:53.671 warn: Login error {
                              May 12 21:27:53 "err": {
                              May 12 21:27:53 "statusCode": 400,
                              May 12 21:27:53 "status": 400,
                              May 12 21:27:53 "code": 400,
                              May 12 21:27:53 "message": "Invalid grant: user credentials are invalid",
                              May 12 21:27:53 "name": "invalid_grant",
                              May 12 21:27:53 "stack": "invalid_grant: Invalid grant: user credentials are invalid\n at new InvalidGrantError (/app/code/server/node_modules/oauth2-server/lib/errors/invalid-grant-error.js:27:14)\n at /app/code/server/dist/server/lib/auth/oauth.js:77:19\n at Generator.next (<anonymous>)\n at fulfilled (/app/code/server/node_modules/tslib/tslib.js:114:62)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)"
                              May 12 21:27:53 }
                              May 12 21:27:53 }
                              

                              Tried with local admin:

                              May 12 21:28:42 [videos.domain.tv:443 peertube-plugin-auto-import-ytb] 2022-05-12 19:28:42.639 warn: Error during the credential validation : Error: Cannot get access Token : Bad Request
                              May 12 21:29:14 [videos.domain.tv:443] 2022-05-12 19:29:14.003 info: 172.18.16.14 - - [12/May/2022:19:29:14 +0000] "GET /api/v1/oauth-clients/local HTTP/1.1" 200 99 "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"
                              May 12 21:29:14 [videos.domain.tv:443] 2022-05-12 19:29:14.015 info: 62.238.0.0 - - [12/May/2022:19:29:14 +0000] "PUT /api/v1/plugins/peertube-plugin-auto-import-ytb/settings HTTP/1.1" 204 - "https://videos.domain.tv/admin/plugins/show/peertube-plugin-auto-import-ytb" "Firefox"
                              May 12 21:29:14 [videos.domain.tv:443 peertube-plugin-auth-ldap] 2022-05-12 19:29:14.119 warn: Cannot login ***local admin*** in LDAP plugin. {
                              May 12 21:29:14 "err": "no such user: \"***local admin***\""
                              May 12 21:29:14 }
                              
                              girishG 1 Reply Last reply
                              0
                              • imc67I imc67

                                @girish tried the plugin but alas it doesn't work, maybe it's too old and/or doesn't work with LDAP and/or I'm doing something wrong....

                                I guess we have to wait for native support as you wrote earlier.

                                Tried with LDAP user:

                                May 12 21:27:53 [videos.domain.tv:443] 2022-05-12 19:27:53.656 info: Login success with auth method ldap of plugin peertube-plugin-auth-ldap for ***admin user ldap***.
                                May 12 21:27:53 [videos.domain.tv:443] 2022-05-12 19:27:53.659 info: Bypassing oauth login by plugin peertube-plugin-auth-ldap.
                                May 12 21:27:53 [videos.domain.tv:443] 2022-05-12 19:27:53.671 warn: Login error {
                                May 12 21:27:53 "err": {
                                May 12 21:27:53 "statusCode": 400,
                                May 12 21:27:53 "status": 400,
                                May 12 21:27:53 "code": 400,
                                May 12 21:27:53 "message": "Invalid grant: user credentials are invalid",
                                May 12 21:27:53 "name": "invalid_grant",
                                May 12 21:27:53 "stack": "invalid_grant: Invalid grant: user credentials are invalid\n at new InvalidGrantError (/app/code/server/node_modules/oauth2-server/lib/errors/invalid-grant-error.js:27:14)\n at /app/code/server/dist/server/lib/auth/oauth.js:77:19\n at Generator.next (<anonymous>)\n at fulfilled (/app/code/server/node_modules/tslib/tslib.js:114:62)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)"
                                May 12 21:27:53 }
                                May 12 21:27:53 }
                                

                                Tried with local admin:

                                May 12 21:28:42 [videos.domain.tv:443 peertube-plugin-auto-import-ytb] 2022-05-12 19:28:42.639 warn: Error during the credential validation : Error: Cannot get access Token : Bad Request
                                May 12 21:29:14 [videos.domain.tv:443] 2022-05-12 19:29:14.003 info: 172.18.16.14 - - [12/May/2022:19:29:14 +0000] "GET /api/v1/oauth-clients/local HTTP/1.1" 200 99 "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"
                                May 12 21:29:14 [videos.domain.tv:443] 2022-05-12 19:29:14.015 info: 62.238.0.0 - - [12/May/2022:19:29:14 +0000] "PUT /api/v1/plugins/peertube-plugin-auto-import-ytb/settings HTTP/1.1" 204 - "https://videos.domain.tv/admin/plugins/show/peertube-plugin-auto-import-ytb" "Firefox"
                                May 12 21:29:14 [videos.domain.tv:443 peertube-plugin-auth-ldap] 2022-05-12 19:29:14.119 warn: Cannot login ***local admin*** in LDAP plugin. {
                                May 12 21:29:14 "err": "no such user: \"***local admin***\""
                                May 12 21:29:14 }
                                
                                girishG Offline
                                girishG Offline
                                girish
                                Staff
                                wrote on last edited by
                                #18

                                @imc67 thought as much 😕 PeerTube has seen a lot of changes since the plugin was last published.

                                rmdesR 1 Reply Last reply
                                0
                                • girishG girish

                                  @imc67 thought as much 😕 PeerTube has seen a lot of changes since the plugin was last published.

                                  rmdesR Offline
                                  rmdesR Offline
                                  rmdes
                                  wrote on last edited by rmdes
                                  #19

                                  @girish

                                  I can't get it to install but something totally weird is happening on my instance, since last month, since I the last time I came here, my instance is auto uploading the target channel I initially managed to configure but it does not make sense because the plugin is not installed...??.?☝ 🙃

                                  log file : https://paste.armada.digital/cageyixumu.md

                                  I don't have any LDAP errors, I'm wondering if this is even related?

                                  rmdesR 1 Reply Last reply
                                  1
                                  • rmdesR rmdes

                                    @girish

                                    I can't get it to install but something totally weird is happening on my instance, since last month, since I the last time I came here, my instance is auto uploading the target channel I initially managed to configure but it does not make sense because the plugin is not installed...??.?☝ 🙃

                                    log file : https://paste.armada.digital/cageyixumu.md

                                    I don't have any LDAP errors, I'm wondering if this is even related?

                                    rmdesR Offline
                                    rmdesR Offline
                                    rmdes
                                    wrote on last edited by
                                    #20

                                    I restarted the app, tried to install again, it works ! 🤘
                                    a172d5f3-c32c-4121-93e8-1a51497c88a3-image.png

                                    rmdesR 1 Reply Last reply
                                    1
                                    • rmdesR rmdes

                                      I restarted the app, tried to install again, it works ! 🤘
                                      a172d5f3-c32c-4121-93e8-1a51497c88a3-image.png

                                      rmdesR Offline
                                      rmdesR Offline
                                      rmdes
                                      wrote on last edited by
                                      #21

                                      Trying to understand what's the purpose of the admin/pass login for this feature, anyone knows ?

                                      doodlemania2D 1 Reply Last reply
                                      0
                                      • rmdesR rmdes

                                        Trying to understand what's the purpose of the admin/pass login for this feature, anyone knows ?

                                        doodlemania2D Offline
                                        doodlemania2D Offline
                                        doodlemania2
                                        App Dev
                                        wrote on last edited by
                                        #22

                                        @rmdes That seems suspect - if this is a test instance, feed in your peertube admin u/p to see if that's what it is looking for.
                                        I'd be cautious of giving a plugin prod creds like that.

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

                                          Might be best to investigate the code at https://zeteo.me/gitea/Outils-PeerTube/peertube-plugin-auto-import-ytb . I think maybe because it's the only way to call peertube's api (with username/password).

                                          1 Reply Last reply
                                          2
                                          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