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

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Nextcloud
  3. Since last update: error in Nextcloud

Since last update: error in Nextcloud

Scheduled Pinned Locked Moved Solved Nextcloud
12 Posts 4 Posters 3.7k Views 4 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.
  • imc67I Offline
    imc67I Offline
    imc67
    translator
    wrote on last edited by imc67
    #1

    Since the latest update there are errors with message:

    Following symlinks is not allowed ('/app/data//core' -> '/app/code/core/' not inside '/app/data/') 
    

    It's a rather clean setup without exotic apps.

    1 Reply Last reply
    2
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      Where is this error shown? I can't reproduce this on any of our instances nor on a fresh installations.

      1 Reply Last reply
      1
      • KubernetesK Online
        KubernetesK Online
        Kubernetes
        App Dev
        wrote on last edited by
        #3

        I also checked my NextCloud instance and didn't find any related message in the app logs.

        1 Reply Last reply
        0
        • imc67I Offline
          imc67I Offline
          imc67
          translator
          wrote on last edited by imc67
          #4

          In Nextcloud - Admin - Logging

          I saw there is an option to view RAW log, here an example:

          {
          "reqId":"***redacted***",
          "level":3,
          "time":"2024-02-15T10:00:49+00:00",
          "remoteAddr":"***redacted***",
          "user":"***redacted***",
          "app":"core",
          "method":"GET",
          "url":"/ocs/v2.php/apps/related_resources/related/talk?itemId=***redacted***&resourceType=&limit=0&format=json",
          "message":"Following symlinks is not allowed ('/app/data//core' -> '/app/code/core/' not inside '/app/data/')",
          "userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",
          "version":"28.0.2.5",
          "data":{"app":"core"},
          "id":"***redacted***"
          }
          

          and another one (I guessed it was Talk related due to the link in the error but it's not:

          {
          "reqId":"***redacted***",
          "level":3,
          "time":"2024-02-14T17:12:56+00:00",
          "remoteAddr":"***redacted***",
          "user":"***redacted***",
          "app":"core",
          "method":"GET",
          "url":"/ocs/v2.php/apps/related_resources/related/files?itemId=***redacted***&format=json",
          "message":"Following symlinks is not allowed ('/app/data//core' -> '/app/code/core/' not inside '/app/data/')",
          "userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",
          "version":"28.0.2.5",
          "data":{"app":"core"},
          "id":"***redacted***"
          }
          
          1 Reply Last reply
          0
          • imc67I imc67 marked this topic as a question on
          • imc67I Offline
            imc67I Offline
            imc67
            translator
            wrote on last edited by
            #5

            Since 3 days the errors stopped while nothing has changed!

            For now I set this topic to 'solved'.

            1 Reply Last reply
            0
            • imc67I imc67 has marked this topic as solved on
            • imc67I imc67 has marked this topic as unsolved on
            • imc67I Offline
              imc67I Offline
              imc67
              translator
              wrote on last edited by
              #6

              The errors are back again and somehow because of the /app/data// symlink it might package related?

              Remind that these errors are only visible in NextCloud Admin Settings then all the way down: Logs

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

                /app/code/core is not symlinked. However, the package creates a dummy symlink from /app/data/core to /app/code/core . The reason for this is that we move the plugins into a writable directory and the plugins do include "../.." to reach core files. This breaks if we don't create this dummy symlink. I wish nextcloud had a way to specify a separate plugin directory but it doesn't.

                Which brings us to https://github.com/nextcloud/server/issues/1257 which is a report similar to this one. It seems one can set localstorage.allowSymlinks in the config file . This is not a security issue on Cloudron since the whole thing is sandboxed and symlinks cannot escape the filesystem.

                @imc67 can you try adding that flag in your config ? https://github.com/nextcloud/server/blob/59f3c73c80b9c2f790de37a01821379e892b94ee/config/config.sample.php#L2029

                imc67I 1 Reply Last reply
                0
                • girishG girish

                  /app/code/core is not symlinked. However, the package creates a dummy symlink from /app/data/core to /app/code/core . The reason for this is that we move the plugins into a writable directory and the plugins do include "../.." to reach core files. This breaks if we don't create this dummy symlink. I wish nextcloud had a way to specify a separate plugin directory but it doesn't.

                  Which brings us to https://github.com/nextcloud/server/issues/1257 which is a report similar to this one. It seems one can set localstorage.allowSymlinks in the config file . This is not a security issue on Cloudron since the whole thing is sandboxed and symlinks cannot escape the filesystem.

                  @imc67 can you try adding that flag in your config ? https://github.com/nextcloud/server/blob/59f3c73c80b9c2f790de37a01821379e892b94ee/config/config.sample.php#L2029

                  imc67I Offline
                  imc67I Offline
                  imc67
                  translator
                  wrote on last edited by
                  #8

                  @girish thanks for your research and suggestion! I just added the line with setting 'True'.

                  Let's wait a few days to see what happens, I'll keep you informed.

                  girishG 1 Reply Last reply
                  0
                  • imc67I imc67

                    @girish thanks for your research and suggestion! I just added the line with setting 'True'.

                    Let's wait a few days to see what happens, I'll keep you informed.

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

                    @imc67 Just to double check, php should be like 'localstorage.allowsymlinks' => true, (and not 'True' which is python 😄 ).

                    imc67I 1 Reply Last reply
                    0
                    • girishG girish

                      @imc67 Just to double check, php should be like 'localstorage.allowsymlinks' => true, (and not 'True' which is python 😄 ).

                      imc67I Offline
                      imc67I Offline
                      imc67
                      translator
                      wrote on last edited by
                      #10

                      @girish true 😄

                      1 Reply Last reply
                      0
                      • imc67I Offline
                        imc67I Offline
                        imc67
                        translator
                        wrote on last edited by
                        #11

                        I can say that since the 'flag' was set, after 5 days there were no such errors anymore!

                        1 Reply Last reply
                        1
                        • imc67I imc67 has marked this topic as solved on
                        • girishG Offline
                          girishG Offline
                          girish
                          Staff
                          wrote on last edited by
                          #12

                          @imc67 thanks, I have put that flag in the package as well now.

                          1 Reply Last reply
                          0

                          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