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. Support
  3. Cloudron cli no longer asks for 2fa?

Cloudron cli no longer asks for 2fa?

Scheduled Pinned Locked Moved Solved Support
cli
7 Posts 2 Posters 316 Views 2 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.
  • fbartelsF Offline
    fbartelsF Offline
    fbartels
    App Dev
    wrote on last edited by girish
    #1

    I just installed the Cloudron cli on a new system (Ubuntu noble with npm from the distributions repository) and I was surprised that it did not ask for my totp.

    $ cloudron login my.cloudron
    Username: felix
    Password: 
    Login successful.
    $ cloudron --version
    5.14.0
    

    edit. It seems the cli is broken on the system in more ways:

    $ cloudron logs --app video.cloudron
    /usr/local/lib/node_modules/cloudron/src/actions.js:970
            req.on('response', function (response) {
                ^
    
    TypeError: req.on is not a function
        at Command.logs (/usr/local/lib/node_modules/cloudron/src/actions.js:970:13)
    
    Node.js v18.19.1
    
    girishG 1 Reply Last reply
    1
    • fbartelsF fbartels

      I just installed the Cloudron cli on a new system (Ubuntu noble with npm from the distributions repository) and I was surprised that it did not ask for my totp.

      $ cloudron login my.cloudron
      Username: felix
      Password: 
      Login successful.
      $ cloudron --version
      5.14.0
      

      edit. It seems the cli is broken on the system in more ways:

      $ cloudron logs --app video.cloudron
      /usr/local/lib/node_modules/cloudron/src/actions.js:970
              req.on('response', function (response) {
                  ^
      
      TypeError: req.on is not a function
          at Command.logs (/usr/local/lib/node_modules/cloudron/src/actions.js:970:13)
      
      Node.js v18.19.1
      
      girishG Do not disturb
      girishG Do not disturb
      girish
      Staff
      wrote on last edited by
      #2

      @fbartels I might have introduced a regression, checking

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

        Seems to work here.

        ~$ cloudron login my.xx
        Username: girish
        Password: 
        2FA Token: adfs
        Invalid 2FA Token
        2FA Token: 12356
        Invalid 2FA Token
        2FA Token: 349533
        Login successful.
        
        1 Reply Last reply
        0
        • girishG Do not disturb
          girishG Do not disturb
          girish
          Staff
          wrote on last edited by
          #4

          I thought maybe it is the node version but 18.19.1 works too . Are you able to login to my.demo.cloudron.io ? with username/password as cloudron ?

          1 Reply Last reply
          0
          • girishG girish marked this topic as a question on
          • girishG Do not disturb
            girishG Do not disturb
            girish
            Staff
            wrote on last edited by
            #5

            @fbartels what is the Cloudron version? I am testing on 8.3.0 .

            1 Reply Last reply
            0
            • fbartelsF Offline
              fbartelsF Offline
              fbartels
              App Dev
              wrote on last edited by
              #6

              I just checked on my desktop system. And here I do have the same behaviour, but with a more recent node version. (i moved .cloudron.json away before running this).

              $ cloudron login my.demo.cloudron.io
              Username: cloudron
              Password: 
              Login successful.
              felix@clifford:~$ cloudron list
              
              Id                                    Location                   Manifest Id                             State  
              ------------------------------------  -------------------------  --------------------------------------  -------
              0bd45384-26e9-4c06-a1b2-f8ba55529841  demo.cloudron.io           org.apache.guacamole.cloudronapp@2.3.0  running
              30c49bfe-8adf-4644-a030-fd95f00f5632  peertube.demo.cloudron.io  org.joinpeertube.cloudronapp@4.0.2      running
              3113d78a-0e94-4d82-95eb-9ecb7a44185e  n8n.demo.cloudron.io       io.n8n.cloudronapp@3.72.0               running
              3d397748-d96d-45bc-b6fe-ddb597e4c853  itt.demo.cloudron.io       tech.ittools.cloudron@1.6.1             running
              918eac5f-7b25-4487-b0e6-4e99768996ee  mtest.demo.cloudron.io     com.github.bitwardenrs@1.19.2           running
              
              felix@clifford:~$ cloudron logs
              Could not determine app. Use --app to specify the app
              
              felix@clifford:~$ cloudron logs --app demo.cloudron.io
              /home/linuxbrew/.linuxbrew/lib/node_modules/cloudron/src/actions.js:970
                      req.on('response', function (response) {
                          ^
              
              TypeError: req.on is not a function
                  at Command.logs (/home/linuxbrew/.linuxbrew/lib/node_modules/cloudron/src/actions.js:970:13)
                  at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
              
              Node.js v23.7.0
              

              Logging in into my own Cloudron still skips the 2fa step. Yes, the system just got upgraded to 8.3.0.

              1 Reply Last reply
              0
              • fbartelsF Offline
                fbartelsF Offline
                fbartels
                App Dev
                wrote on last edited by
                #7

                Ah, I just found the error. For whatever reason the 2fa got disabled for my user and therefore the cli app did not ask for it. My password manager always filled out the 2fa field so I was unaware that it had actually been deactivated.

                1 Reply Last reply
                2
                • girishG girish has marked this topic as solved on
                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