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

    Trying to import a whole YT channel via CLI

    PeerTube
    3
    10
    95
    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.
    • jordanurbs
      jordanurbs last edited by jordanurbs

      Two ways I am trying to do this. The cloudron documentation way gives me this error in the CLI:

      bash: q2: Read-only file system
      

      The way as outlined by PeerTube documentation:

      $ node {dist/server/tools/peertube-import-videos.js \
          -u 'PEERTUBE_URL' \
          -U 'PEERTUBE_USER' \
          --password 'PEERTUBE_PASSWORD' \
          --target-url 'TARGET_URL'
      

      where TARGET_URL is the video, channel, playlist or users.

      The error I receive in Cloudron peertube CLI:

      internal/modules/cjs/loader.js:983
        throw err;
        ^
      
      Error: Cannot find module '/app/code/server/tools/peertube-import-videos.js'
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
          at Function.Module._load (internal/modules/cjs/loader.js:862:27)
          at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
          at internal/main/run_main_module.js:18:47 {
        code: 'MODULE_NOT_FOUND',
        requireStack: []
      }
      
      I am assuming /app/code/server/  is the Cloudron equivalent to dist/server/ ... Any ideas?
      
      robi 1 Reply Last reply Reply Quote 0
      • robi
        robi @jordanurbs last edited by

        @jordanurbs where does the internal/ dir live?

        try to run the command from it's parent dir.

        jordanurbs 1 Reply Last reply Reply Quote 0
        • jordanurbs
          jordanurbs @robi last edited by

          @robi I'm afraid I don't understand. The cloudron app CLI puts me into /app/code/server by default so I am assuming that is where the app lives.

          1 Reply Last reply Reply Quote 0
          • jordanurbs
            jordanurbs last edited by 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

            robi girish 2 Replies Last reply Reply Quote 1
            • robi
              robi @jordanurbs last edited by

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

              jordanurbs 1 Reply Last reply Reply Quote 0
              • jordanurbs
                jordanurbs @robi last edited by

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

                robi 1 Reply Last reply Reply Quote 0
                • robi
                  robi @jordanurbs last edited by

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

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

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

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

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

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

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

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