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. FreeScout
  3. "Failed to open stream: Permission denied" for cache/data

"Failed to open stream: Permission denied" for cache/data

Scheduled Pinned Locked Moved FreeScout
11 Posts 2 Posters 2.4k 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.
  • J Online
    J Online
    joseph
    Staff
    wrote on last edited by
    #2

    AFAICT, everything in the container runs as www-data user. Not sure who is creating these. Can you make a note of the timestamps of the bad directories, next time around? We should try to correlate with app logs.

    1 Reply Last reply
    0
    • N Online
      N Online
      neoplex
      wrote on last edited by neoplex
      #3

      It appears that the directories owned by root are created either on the hour or at 45 minutes past the hour. And it seems to be related to those stalled App\Jobs\UpdateFolderCounters job.

      1 Reply Last reply
      1
      • J Online
        J Online
        joseph
        Staff
        wrote on last edited by
        #4

        @neoplex are you able to reproduce this by running the cron task manually? You can do this by Web Terminal -> Cron on the top. thanks

        1 Reply Last reply
        0
        • N Online
          N Online
          neoplex
          wrote on last edited by
          #5

          It's not the cron job. It's this job that's executed by the queue worker.

          image.png

          image.png

          Although the PHP script that the queue worker is being executed with runs as www-data.

          image.png

          The timestamps match.

          1 Reply Last reply
          0
          • N Online
            N Online
            neoplex
            wrote on last edited by
            #6

            image.png

            1 Reply Last reply
            0
            • J Online
              J Online
              joseph
              Staff
              wrote on last edited by
              #7

              are you on the package 1.13.2 ? just to get that out of the way.

              1 Reply Last reply
              0
              • N Online
                N Online
                neoplex
                wrote on last edited by
                #8

                Yep!

                image.png

                1 Reply Last reply
                0
                • J Online
                  J Online
                  joseph
                  Staff
                  wrote on last edited by
                  #9

                  @neoplex unfortunately, cannot reproduce. If it's easy to see this, can you please send a mail to support@cloudron.io and we can take a look to debug this further.

                  1 Reply Last reply
                  0
                  • sebastienserreS sebastienserre referenced this topic on
                  • N Online
                    N Online
                    neoplex
                    wrote last edited by neoplex
                    #10

                    I've fixed this. Will send a patch via existing support email thread.

                    1 Reply Last reply
                    2
                    • N Online
                      N Online
                      neoplex
                      wrote last edited by neoplex
                      #11

                      I am also going to leave this here:

                      I finally got around to putting together a fix:

                      https://github.com/pronetivity/cloudron-freescout/commit/27697c310fb373f1a972c7990f5c00dc3052ee54

                      A detailed analysis is available here:

                      https://github.com/pronetivity/cloudron-freescout/blob/master/LARAVEL-CACHE-FIX.md

                      Disclaimer: the commit also includes a few quality-of-life changes. The actual fix is limited to the caching adjustments.

                      Cheers,
                      JD

                      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