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. After CPU limit change : Docker Error: (HTTP code 400) bad parameter,

After CPU limit change : Docker Error: (HTTP code 400) bad parameter,

Scheduled Pinned Locked Moved Solved Support
dockercpu
7 Posts 2 Posters 622 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.
  • B Offline
    B Offline
    Bob_247
    wrote on last edited by joseph
    #1

    Hello, i recently changed the CPU use limit n8n can use, since then the parameter can't get applied and the app is in constant error mode.

    I have tried restoring a backed up version, but it wont change.

    Here's the error i cant gest past : "Docker Error: (HTTP code 400) bad parameter - invalid JSON: json: cannot unmarshal number 8279999999.999999 into Go struct field HostConfig.HostConfig.NanoCpus of type int64"

    Any idea on hove to solve it ?

    Thanks for your help !

    girishG 1 Reply Last reply
    1
    • B Bob_247

      Hello, i recently changed the CPU use limit n8n can use, since then the parameter can't get applied and the app is in constant error mode.

      I have tried restoring a backed up version, but it wont change.

      Here's the error i cant gest past : "Docker Error: (HTTP code 400) bad parameter - invalid JSON: json: cannot unmarshal number 8279999999.999999 into Go struct field HostConfig.HostConfig.NanoCpus of type int64"

      Any idea on hove to solve it ?

      Thanks for your help !

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

      @Bob_247 looks like some bug in our cpu quota setter. Can you run this on the server (as-is):

      mysql -uroot -ppassword -e 'SELECT cpuQuota from box.apps'
      

      Do you see any fractional values there? If so, that is issue.

      1 Reply Last reply
      0
      • girishG girish marked this topic as a question on
      • B Offline
        B Offline
        Bob_247
        wrote on last edited by
        #3

        hi, i just did, here's the output : +----------+
        | cpuQuota |
        +----------+
        | 100 |
        | 100 |
        | 69 |
        | 100 |
        | 100 |
        +----------+

        No fractional values, every other app is at 100, the 69 is what i wanted to set for n8n

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Bob_247
          wrote on last edited by Bob_247
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @Bob_247 I can reproduce this . Looking into a fix. You can change that 69 to 100 in the database and the app should atleast come back.

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Bob_247
              wrote on last edited by
              #6

              okk great, did, and works back !

              Thanks !

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

                Fixed in https://git.cloudron.io/cloudron/box/-/commit/abf445e96949ab952c07b457610a1a890cf4e339 for next release.

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