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


    Cloudron Forum

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

    Solved Cloudron CLI login command results in an HTTP 404 error with "Cannot POST /api/v1/developer/login" message

    Support
    cli
    3
    5
    292
    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.
    • d19dotca
      d19dotca last edited by girish

      Hello,

      I'm curious... I'm trying to run the Cloudron CLI (per recommendation in a previous post) and I'm getting the following when trying to login. I've used this before many months ago, but suddenly it's not working anymore.

      <computerName> ~ % cloudron login my.<domain.tld>    
      Username: <username>
      Password: ********************************
      Login failed: Status code: 404 message: <!DOCTYPE html>
      <html lang="en">
      <head>
      <meta charset="utf-8">
      <title>Error</title>
      </head>
      <body>
      <pre>Cannot POST /api/v1/developer/login</pre>
      </body>
      </html>
      

      Any ideas why this would be happening? Is this something not working on Cloudron 7.0.4?

      --
      Dustin Dauncey
      www.d19.ca

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

        You probably have to update the cli tool, since the /api/v1/developer/login route was long deprecated and finally removed from the server side.

        d19dotca 2 Replies Last reply Reply Quote 0
        • girish
          girish Staff last edited by

          For reference, the latest CLI version is 4.12.8 (Use cloudron --version to see current version)

          1 Reply Last reply Reply Quote 1
          • d19dotca
            d19dotca @nebulon last edited by

            @nebulon Very strange, as it showed me an update existed and the command to update it which I ran and it didn’t seem to fail or anything. I’ll check the version again soon and confirm.

            --
            Dustin Dauncey
            www.d19.ca

            1 Reply Last reply Reply Quote 0
            • d19dotca
              d19dotca @nebulon last edited by

              @nebulon said in Cloudron CLI login command results in an HTTP 404 error with "Cannot POST /api/v1/developer/login" message:

              You probably have to update the cli tool, since the /api/v1/developer/login route was long deprecated and finally removed from the server side.

              @girish said in Cloudron CLI login command results in an HTTP 404 error with "Cannot POST /api/v1/developer/login" message:

              For reference, the latest CLI version is 4.12.8 (Use cloudron --version to see current version)

              So I checked the version of Cloudron CLI finally and it seems I am indeed running 4.12.8...

              <username>@<computerName> ~ % cloudron --version
              4.12.8
              

              However, I ran the command cloudron login again and now it suddenly works. So I'm not sure, maybe I had ran the update (I know I did for a fact) but perhaps it wasn't recognized until my computer had restarted over the holidays here. Something strange, but it's all good now it seems. 🙂

              --
              Dustin Dauncey
              www.d19.ca

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB