https://bugs.koozali.org/show_bug.cgi?id=11853

            Bug ID: 11853
           Summary: Nextcloud - open_basedir restriction in effect.
                    File(/templates/) is not within the allowed path
    Classification: Contribs
           Product: SME Contribs
           Version: 10.0
          Hardware: ---
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-nextcloud
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

Bugging for reference.

On install and update you notice a lot of these in the logs:

Error: file_exists(): open_basedir restriction in effect. File(/templates/) is
not within the allowed path(s):
(/usr/share/nextcloud:/var/lib/nextcloud:/var/log/nextcloud.log:/var/lib/php/nextcloud:/home/e-smith/files/nextcloud:/dev/urandom:/proc/meminfo:)
at /usr/share/nextcloud/lib/private/Template/Base.php#68

    <<closure>>

    OC\Log\ErrorHandler::onError()
    /usr/share/nextcloud/lib/private/Template/Base.php - line 68:
    file_exists()
    /usr/share/nextcloud/lib/private/legacy/OC_Template.php - line 147:
    OC\Template\Base->getAppTemplateDirs()
    /usr/share/nextcloud/lib/private/legacy/OC_Template.php - line 89:
    OC_Template->findTemplate()
    /usr/share/nextcloud/lib/private/TemplateLayout.php - line 93:
    OC_Template->__construct()
    /usr/share/nextcloud/lib/private/legacy/OC_Template.php - line 183:
    OC\TemplateLayout->__construct()
    /usr/share/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php -
line 210:
    OC_Template->fetchPage()
    /usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line
123:
    OCP\AppFramework\Http\TemplateResponse->render()
    /usr/share/nextcloud/lib/private/AppFramework/App.php - line 152:
    OC\AppFramework\Http\Dispatcher->dispatch()
    /usr/share/nextcloud/lib/private/Route/Router.php - line 309:
    OC\AppFramework\App::main()
    /usr/share/nextcloud/lib/base.php - line 1008:
    OC\Route\Router->match()
    /usr/share/nextcloud/index.php - line 37:
    OC::handleRequest()


Thread

https://help.nextcloud.com/t/error-file-templates-is-not-within-the-allowed-path-s-after-update-from-20-xx-to-21-0-3/119843

Bug/Merge/Fix
https://github.com/nextcloud/server/issues/27759#issuecomment-939448312
https://github.com/nextcloud/server/pull/28263


This has not been backported to v20.x as yet and not sure it will be.

Solution is to upgrade Nexcloud but we need MariaDB v10 for that....

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to