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
  • Brite
  • 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

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. N8N
  3. Broken Update n8n to 2.36.8

Broken Update n8n to 2.36.8

Scheduled Pinned Locked Moved N8N
18 Posts 11 Posters 652 Views 11 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.
  • L
    L
    Lars.Emil
    wrote last edited by
    #5

    Found it. Restored from backup brought my instance back online.
    Disabled auto-updates for now until there is a solution.

    1 Reply Last reply
    2
    • D
      D
      Divemasterza
      wrote last edited by
      #6

      The app is stuck in a permanent restart loop. On every boot, the EXTRA_NODE_MODULES install step fails with:

      npm error code EACCES
      npm error syscall mkdir
      npm error path /home/cloudron/.npm/_cacache/tmp
      npm error Your cache folder contains root-owned files
      

      Because that install never completes, n8n never binds to port 5678, so the healthcheck fails with ECONNREFUSED/EHOSTUNREACH and the container restarts, repeating the same failure every 15 to 20 seconds.

      So the directory can't be fixed from outside the app either. This looks like the same class of issue reported in older threads about handlebars and community node installs, where /home/cloudron/.npm sits on a read-only filesystem and npm's default cache path can't be written to.

      Packages configured: handlebars, jsonata, marked, bwip-js, ajv-formats, odoo-xmlrpc, firebase-admin.

      Is there a supported writable cache path we should be pointing EXTRA_NODE_MODULES at, or is this something that needs a package fix?

      //Steph

      1 Reply Last reply
      2
      • girishG
        girishG
        girish
        Staff
        wrote last edited by
        #7

        I have revoked the package. @divemasterza can you paste more of the raw logs please? You can put it at https://paste.cloudron.io

        D 1 Reply Last reply
        2
        • girishG girish

          I have revoked the package. @divemasterza can you paste more of the raw logs please? You can put it at https://paste.cloudron.io

          D
          D
          Divemasterza
          wrote last edited by
          #8

          @girish

          Exiting with code 0
          Sep 02 08:39:24 => Installing handlebars@4.7.7 jsonata@2.0.2 marked@4.3.0 bwip-js@3.3.0 ajv-formats@2.1.1 odoo-xmlrpc@1.0.8 firebase-admin@11.10.1
          Sep 02 08:39:25 ⠙⠹⠸⠼⠴⠦⠧⠇npm error code EACCES
          Sep 02 08:39:25 ⠇npm error syscall mkdir
          Sep 02 08:39:25 ⠇npm error path /home/cloudron/.npm/_cacache/tmp
          Sep 02 08:39:25 ⠇npm error errno EACCES
          Sep 02 08:39:25 ⠇npm error
          Sep 02 08:39:25 npm error Your cache folder contains root-owned files, due to a bug in
          Sep 02 08:39:25 npm error previous versions of npm which has since been addressed.
          Sep 02 08:39:25 npm error
          Sep 02 08:39:25 npm error To permanently fix this problem, please run:
          Sep 02 08:39:25 npm error   sudo chown -R 1000:1000 "/home/cloudron/.npm"
          Sep 02 08:39:25 ⠇npm notice
          Sep 02 08:39:25 npm notice New minor version of npm available! 11.8.0 -> 11.19.1
          Sep 02 08:39:25 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.19.1
          Sep 02 08:39:25 npm notice To update run: npm install -g npm@11.19.1
          Sep 02 08:39:25 npm notice
          Sep 02 08:39:25 ⠇npm error Log files were not written due to an error writing to the directory: /home/cloudron/.npm/_logs
          Sep 02 08:39:25 npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
          Sep 02 08:39:25 ⠇
          Sep 02 08:39:26 ==> Ensure directories
          Sep 02 08:39:26 ==> Setting permissions
          Sep 02 08:39:27 => Installing handlebars@4.7.7 jsonata@2.0.2 marked@4.3.0 bwip-js@3.3.0 ajv-formats@2.1.1 odoo-xmlrpc@1.0.8 firebase-admin@11.10.1
          Sep 02 08:39:27 ⠙⠹⠸⠼npm error code EACCES
          Sep 02 08:39:27 ⠼npm error syscall mkdir
          Sep 02 08:39:27 ⠼npm error path /home/cloudron/.npm/_cacache/tmp
          Sep 02 08:39:27 ⠼npm error errno EACCES
          Sep 02 08:39:27 ⠼npm error
          Sep 02 08:39:27 npm error Your cache folder contains root-owned files, due to a bug in
          Sep 02 08:39:27 npm error previous versions of npm which has since been addressed.
          Sep 02 08:39:27 npm error
          Sep 02 08:39:27 npm error To permanently fix this problem, please run:
          Sep 02 08:39:27 npm error   sudo chown -R 1000:1000 "/home/cloudron/.npm"
          Sep 02 08:39:27 ⠼npm notice
          Sep 02 08:39:27 npm notice New minor version of npm available! 11.8.0 -> 11.19.1
          Sep 02 08:39:27 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.19.1
          Sep 02 08:39:27 npm notice To update run: npm install -g npm@11.19.1
          Sep 02 08:39:27 npm notice
          Sep 02 08:39:27 ⠼npm error Log files were not written due to an error writing to the directory: /home/cloudron/.npm/_logs
          Sep 02 08:39:27 npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
          Sep 02 08:39:27 ⠼
          Sep 02 08:39:28 ==> Ensure directories
          Sep 02 08:39:28 ==> Setting permissions
          Sep 02 08:39:29 => Installing handlebars@4.7.7 jsonata@2.0.2 marked@4.3.0 bwip-js@3.3.0 ajv-formats@2.1.1 odoo-xmlrpc@1.0.8 firebase-admin@11.10.1
          Sep 02 08:39:29 ⠙⠹⠸⠼npm error code EACCES
          Sep 02 08:39:29 ⠼npm error syscall mkdir
          Sep 02 08:39:29 ⠼npm error path /home/cloudron/.npm/_cacache/tmp
          Sep 02 08:39:29 ⠼npm error errno EACCES
          Sep 02 08:39:29 ⠼npm error
          Sep 02 08:39:29 npm error Your cache folder contains root-owned files, due to a bug in
          Sep 02 08:39:29 npm error previous versions of npm which has since been addressed.
          Sep 02 08:39:29 npm error
          Sep 02 08:39:29 npm error To permanently fix this problem, please run:
          Sep 02 08:39:29 npm error   sudo chown -R 1000:1000 "/home/cloudron/.npm"
          Sep 02 08:39:29 ⠼npm notice
          Sep 02 08:39:29 npm notice New minor version of npm available! 11.8.0 -> 11.19.1
          Sep 02 08:39:29 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.19.1
          Sep 02 08:39:29 npm notice To update run: npm install -g npm@11.19.1
          Sep 02 08:39:29 npm notice
          Sep 02 08:39:29 ⠼npm error Log files were not written due to an error writing to the directory: /home/cloudron/.npm/_logs
          Sep 02 08:39:29 npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
          Sep 02 08:39:29 ⠼
          Sep 02 08:39:30 ==> Ensure directories
          Sep 02 08:39:30 ==> Setting permissions
          Sep 02 08:39:31 => Healthcheck error: Error: connect ECONNREFUSED 172.18.17.42:5678
          Sep 02 08:39:31 => Installing handlebars@4.7.7 jsonata@2.0.2 marked@4.3.0 bwip-js@3.3.0 ajv-formats@2.1.1 odoo-xmlrpc@1.0.8 firebase-admin@11.10.1
          Sep 02 08:39:32 ⠙⠹⠸⠼npm error code EACCES
          Sep 02 08:39:32 ⠼npm error syscall mkdir
          Sep 02 08:39:32 ⠼npm error path /home/cloudron/.npm/_cacache/tmp
          Sep 02 08:39:32 ⠼npm error errno EACCES
          Sep 02 08:39:32 ⠼npm error
          Sep 02 08:39:32 npm error Your cache folder contains root-owned files, due to a bug in
          Sep 02 08:39:32 npm error previous versions of npm which has since been addressed.
          Sep 02 08:39:32 npm error
          Sep 02 08:39:32 npm error To permanently fix this problem, please run:
          Sep 02 08:39:32 npm error   sudo chown -R 1000:1000 "/home/cloudron/.npm"
          Sep 02 08:39:32 ⠼npm notice
          Sep 02 08:39:32 npm notice New minor version of npm available! 11.8.0 -> 11.19.1
          Sep 02 08:39:32 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.19.1
          Sep 02 08:39:32 npm notice To update run: npm install -g npm@11.19.1
          Sep 02 08:39:32 npm notice
          Sep 02 08:39:32 ⠼npm error Log files were not written due to an error writing to the directory: /home/cloudron/.npm/_logs
          Sep 02 08:39:32 npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
          Sep 02 08:39:32 ⠼
          Sep 02 08:39:33 ==> Ensure directories
          Sep 02 08:39:33 ==> Setting permissions
          Sep 02 08:39:33 => Installing handlebars@4.7.7 jsonata@2.0.2 marked@4.3.0 bwip-js@3.3.0 ajv-formats@2.1.1 odoo-xmlrpc@1.0.8 firebase-admin@11.10.1
          Sep 02 08:39:34 ⠙⠹⠸⠼npm error code EACCES
          Sep 02 08:39:34 ⠼npm error syscall mkdir
          Sep 02 08:39:34 ⠼npm error path /home/cloudron/.npm/_cacache/tmp
          Sep 02 08:39:34 ⠼npm error errno EACCES
          Sep 02 08:39:34 ⠼npm error
          Sep 02 08:39:34 npm error Your cache folder contains root-owned files, due to a bug in
          Sep 02 08:39:34 npm error previous versions of npm which has since been addressed.
          Sep 02 08:39:34 npm error
          Sep 02 08:39:34 npm error To permanently fix this problem, please run:
          Sep 02 08:39:34 npm error   sudo chown -R 1000:1000 "/home/cloudron/.npm"
          Sep 02 08:39:34 ⠼npm notice
          Sep 02 08:39:34 npm notice New minor version of npm available! 11.8.0 -> 11.19.1
          Sep 02 08:39:34 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.19.1
          Sep 02 08:39:34 npm notice To update run: npm install -g npm@11.19.1
          Sep 02 08:39:34 npm notice
          Sep 02 08:39:34 ⠼npm error Log files were not written due to an error writing to the directory: /home/cloudron/.npm/_logs
          Sep 02 08:39:34 npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
          Sep 02 08:39:34 ⠼
          Sep 02 08:39:36 ==> Ensure directories
          Sep 02 08:39:36 ==> Setting permissions
          Sep 02 08:39:37 => Installing handlebars@4.7.7 jsonata@2.0.2 marked@4.3.0 bwip-js@3.3.0 ajv-formats@2.1.1 odoo-xmlrpc@1.0.8 firebase-admin@11.10.1
          Sep 02 08:39:37 ⠙⠹⠸⠼npm error code EACCES
          Sep 02 08:39:37 ⠼npm error syscall mkdir
          Sep 02 08:39:37 ⠼npm error path /home/cloudron/.npm/_cacache/tmp
          Sep 02 08:39:37 ⠼npm error errno EACCES
          Sep 02 08:39:37 ⠼npm error
          Sep 02 08:39:37 npm error Your cache folder contains root-owned files, due to a bug in
          Sep 02 08:39:37 npm error previous versions of npm which has since been addressed.
          Sep 02 08:39:37 npm error
          Sep 02 08:39:37 npm error To permanently fix this problem, please run:
          Sep 02 08:39:37 npm error   sudo chown -R 1000:1000 "/home/cloudron/.npm"
          Sep 02 08:39:37 ⠼npm notice
          Sep 02 08:39:37 npm notice New minor version of npm available! 11.8.0 -> 11.19.1
          Sep 02 08:39:37 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.19.1
          Sep 02 08:39:37 npm notice To update run: npm install -g npm@11.19.1
          Sep 02 08:39:37 npm notice
          Sep 02 08:39:37 ⠼npm error Log files were not written due to an error writing to the directory: /home/cloudron/.npm/_logs
          Sep 02 08:39:37 npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
          Sep 02 08:39:38 ⠼
          Sep 02 08:39:41 ==> Ensure directories
          Sep 02 08:39:41 ==> Setting permissions
          Sep 02 08:39:42 => Healthcheck error: Error: connect ECONNREFUSED 172.18.17.42:5678
          Sep 02 08:39:42 => Installing handlebars@4.7.7 jsonata@2.0.2 marked@4.3.0 bwip-js@3.3.0 ajv-formats@2.1.1 odoo-xmlrpc@1.0.8 firebase-admin@11.10.1
          Sep 02 08:39:42 ⠙⠹⠸⠼npm error code EACCES
          Sep 02 08:39:42 ⠼npm error syscall mkdir
          Sep 02 08:39:42 ⠼npm error path /home/cloudron/.npm/_cacache/tmp
          Sep 02 08:39:42 ⠼npm error errno EACCES
          Sep 02 08:39:42 ⠼npm error
          Sep 02 08:39:42 npm error Your cache folder contains root-owned files, due to a bug in
          Sep 02 08:39:42 npm error previous versions of npm which has since been addressed.
          Sep 02 08:39:42 npm error
          Sep 02 08:39:42 npm error To permanently fix this problem, please run:
          Sep 02 08:39:42 npm error   sudo chown -R 1000:1000 "/home/cloudron/.npm"
          Sep 02 08:39:42 ⠼npm notice
          Sep 02 08:39:42 npm notice New minor version of npm available! 11.8.0 -> 11.19.1
          Sep 02 08:39:42 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.19.1
          Sep 02 08:39:42 npm notice To update run: npm install -g npm@11.19.1
          Sep 02 08:39:42 npm notice
          Sep 02 08:39:42 ⠼npm error Log files were not written due to an error writing to the directory: /home/cloudron/.npm/_logs
          Sep 02 08:39:42 npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
          Sep 02 08:39:43 ⠼
          Sep 02 08:39:49 ==> Ensure directories
          Sep 02 08:39:49 ==> Setting permissions
          Sep 02 08:39:50 => Healthcheck error: Error: connect ECONNREFUSED 172.18.17.42:5678
          Sep 02 08:39:50 => Installing handlebars@4.7.7 jsonata@2.0.2 marked@4.3.0 bwip-js@3.3.0 ajv-formats@2.1.1 odoo-xmlrpc@1.0.8 firebase-admin@11.10.1
          Sep 02 08:39:51 ⠙⠹⠸⠼npm error code EACCES
          Sep 02 08:39:51 ⠼npm error syscall mkdir
          Sep 02 08:39:51 ⠼npm error path /home/cloudron/.npm/_cacache/tmp
          Sep 02 08:39:51 ⠼npm error errno EACCES
          Sep 02 08:39:51 ⠼npm error
          Sep 02 08:39:51 npm error Your cache folder contains root-owned files, due to a bug in
          Sep 02 08:39:51 npm error previous versions of npm which has since been addressed.
          Sep 02 08:39:51 npm error
          Sep 02 08:39:51 npm error To permanently fix this problem, please run:
          Sep 02 08:39:51 npm error   sudo chown -R 1000:1000 "/home/cloudron/.npm"
          Sep 02 08:39:51 ⠼npm notice
          Sep 02 08:39:51 npm notice New minor version of npm available! 11.8.0 -> 11.19.1
          Sep 02 08:39:51 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.19.1
          Sep 02 08:39:51 npm notice To update run: npm install -g npm@11.19.1
          Sep 02 08:39:51 npm notice
          Sep 02 08:39:51 ⠼npm error Log files were not written due to an error writing to the directory: /home/cloudron/.npm/_logs
          Sep 02 08:39:51 npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
          
          1 Reply Last reply
          3
          • M
            M
            maksanse
            wrote last edited by james
            #9

            I debugged this on my instance with Claude Code and found what looks like the actual root cause, sharing here in case it helps.

            Root cause (confirmed via docker exec):
            /home/cloudron inside the container is owned by 998:998 with mode 750:

            $ docker exec <cid> ls -lan /home/
            drwxr-xr-x 1 998 998 4096 Aug 7 14:46 .
            drwxr-x--- 1 998 998 4096 Sep 1 10:59 cloudron
            

            But start.sh runs gosu cloudron:cloudron npm install ... and that user is uid=1000(cloudron) gid=1000(cloudron). Since 998:998 isn't in that user's groups and the dir is 750, UID 1000 has zero traversal access to /home/cloudron - it fails on the very first path component, not just on _cacache ownership. That's also why the chown -R 1000:1000 ~/.npm suggestion in the npm error message doesn't actually help here.

            On top of that, /home/cloudron is baked into a read-only image layer: chown as root inside the running container fails with "Read-only file system" on every file under it. So it can't be patched at runtime - it needs a fix in the image build (chown /home/cloudron to 1000:1000 at build time, or align the cloudron user's UID/GID with 998).

            Workaround that avoids touching /home/cloudron entirely, added to env.sh:

            export NPM_CONFIG_CACHE="/run/n8n/custom-node-modules/.npm-cache"
            

            This redirects npm's cache to a path start.sh already chowns to cloudron:cloudron before running the install step. Confirmed working on my instance - install succeeds and n8n starts normally with this in place.

            Hope this saves someone some time, happy for the team to take it from here.

            1 Reply Last reply
            1
            • girishG girish referenced this topic
            • dsp76D
              dsp76D
              dsp76
              wrote last edited by
              #10

              @girish thanks - I was misled by 2.36.8 vs 4.40.0 😉

              (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

              1 Reply Last reply
              0
              • girishG
                girishG
                girish
                Staff
                wrote last edited by
                #11

                I have pushed a new update. Can you please check? Tested manually and it works.

                D 1 Reply Last reply
                1
                • dsp76D
                  dsp76D
                  dsp76
                  wrote last edited by
                  #12

                  For me 4.40.1 works - thanks!

                  (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

                  1 Reply Last reply
                  2
                  • girishG girish

                    I have pushed a new update. Can you please check? Tested manually and it works.

                    D
                    D
                    DualOSWinWiz
                    wrote last edited by
                    #13

                    @girish its working thank you

                    1 Reply Last reply
                    1
                    • L
                      L
                      Locutus
                      wrote last edited by
                      #14

                      @girish, this is not working on my end. Updated an hour ago to 4.41.0.

                      Sane /home/cloudron/.npm errors.

                      1 Reply Last reply
                      1
                      • D Divemasterza referenced this topic
                      • girishG
                        girishG
                        girish
                        Staff
                        wrote last edited by
                        #15

                        We are looking into this again @locutus , thanks for reporting. Meanwhile, I have revoked the release.

                        L 1 Reply Last reply
                        0
                        • D
                          D
                          dacasine
                          wrote last edited by
                          #16

                          Same here. Had to roll back. Server is not responding again. Unfortunately old logs disappeared after bankroll - sorry. If I can share something to help please indicate what.

                          1 Reply Last reply
                          2
                          • jamesJ
                            jamesJ
                            james
                            Staff
                            wrote last edited by
                            #17

                            Hello @dacasine and welcome to the Cloudron forum
                            We have found the issue https://forum.cloudron.io/post/129181 and will release a new N8N version right away.

                            1 Reply Last reply
                            1
                            • girishG girish

                              We are looking into this again @locutus , thanks for reporting. Meanwhile, I have revoked the release.

                              L
                              L
                              Locutus
                              wrote last edited by
                              #18

                              @girish said:

                              We are looking into this again @locutus , thanks for reporting. Meanwhile, I have revoked the release.

                              Works. Thanks.

                              1 Reply Last reply
                              1

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              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