Huge size of nextcloud log in short time

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): replace me
Operating system and version (eg, Ubuntu 20.04): no access
Apache or nginx version (eg, Apache 2.4.25): no access
PHP version (eg, 7.4): 7.4.24

The issue you are facing:

  • Error Message seen in Admin > Logging
  • Log Files grow until around 500MB in no time

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it: Unknown

The output of your Nextcloud log in Admin > Logging:

{"reqId":"YYF5fckOPnCsKHeVGNHd7AAAABE","level":3,"time":"2021-11-02T18:46:38+01:00","remoteAddr":"213.196.188.22","user":"USER","app":"PHP","method":"GET","url":"/settings/admin/logging","message":"file_exists(): open_basedir restriction in effect. File(/templates/) is not within the allowed path(s): (/NEXTCLOUD/:/tmp/) at /NEXTCLOUD/http/0cloud/lib/private/Template/Base.php#68","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0","version":"22.2.0.2","exception":{"Exception":"Error","Message":"file_exists(): open_basedir restriction in effect. File(/templates/) is not within the allowed path(s): (/NEXTCLOUD/:/tmp/) at /NEXTCLOUD/http/0cloud/lib/private/Template/Base.php#68","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"file_exists(): open_basedir restriction in effect. File(/templates/) is not within the allowed path(s): (/NEXTCLOUD/:/tmp/)","/NEXTCLOUD/http/0cloud/lib/private/Template/Base.php",68,{"theme":"","app":"core","serverRoot":"/NEXTCLOUD/http/0cloud","app_dir":false}]},{"file":"/NEXTCLOUD/http/0cloud/lib/private/Template/Base.php","line":68,"function":"file_exists","args":["/templates/"]},{"file":"/NEXTCLOUD/http/0cloud/lib/private/legacy/OC_Template.php","line":146,"function":"getAppTemplateDirs","class":"OC\\Template\\Base","type":"->","args":["","core","/NEXTCLOUD/http/0cloud",false]},{"file":"/NEXTCLOUD/http/0cloud/lib/private/legacy/OC_Template.php","line":88,"function":"findTemplate","class":"OC_Template","type":"->","args":["","core","layout.user"]},{"file":"/NEXTCLOUD/http/0cloud/lib/private/TemplateLayout.php","line":92,"function":"__construct","class":"OC_Template","type":"->","args":["core","layout.user"]},{"file":"/NEXTCLOUD/http/0cloud/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["user","settings"]},{"file":"/NEXTCLOUD/http/0cloud/lib/public/AppFramework/Http/TemplateResponse.php","line":204,"function":"fetchPage","class":"OC_Template","type":"->","args":[{"forms":{"personal":[{"anchor":"personal-info","section-name":"Persönliche Informationen","active":false,"icon":"/core/img/actions/user.svg"},{"anchor":"security","section-name":"Sicherheit","active":false,"icon":"/apps/settings/img/password.svg"},{"anchor":"activity","section-name":"Aktivität","active":false,"icon":"/apps/activity/img/activity-dark.svg"},{"anchor":"externalstorages","section-name":"Externer Speicher","active":false,"icon":"/apps/files_external/img/app-dark.svg"},{"anchor":"sync-clients","section-name":"Mobil & Desktop","active":false,"icon":"/core/img/clients/phone.svg"},"And 6 more entries, set log level to debug to see all entries"],"admin":[{"anchor":"overview","section-name":"Übersicht","active":false,"icon":"/apps/settings/img/admin.svg"},{"anchor":"support","section-name":"Support","active":false,"icon":"/apps/support/img/section.svg"},{"anchor":"server","section-name":"Grundeinstellungen","active":false,"icon":"/core/img/actions/settings-dark.svg"},{"anchor":"sharing","section-name":"Teilen","active":false,"icon":"/core/img/actions/share.svg"},{"anchor":"security","section-name":"Sicherheit","active":false,"icon":"/core/img/actions/password.svg"},"And 13 more entries, set log level to debug to see all entries"]},"content":"<div id=\"searchresults\" style=\"display: none\"></div>\n<div id=\"logreader-root\" data-inline-settings=\"true\"/>\n"}]},{"file":"/NEXTCLOUD/http/0cloud/lib/private/AppFramework/Http/Dispatcher.php","line":171,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->","args":[]},{"file":"/NEXTCLOUD/http/0cloud/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\AdminSettingsController"},"index"]},{"file":"/NEXTCLOUD/http/0cloud/lib/private/Route/Router.php","line":301,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Settings\\Controller\\AdminSettingsController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"section":"logging","_route":"settings.AdminSettings.index"}]},{"file":"/NEXTCLOUD/http/0cloud/lib/base.php","line":1000,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/settings/admin/logging"]},{"file":"/NEXTCLOUD/http/0cloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/NEXTCLOUD/http/0cloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"id":"6181797fc5165"}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'filelocking.enabled' => true,
  'auth.bruteforce.protection.enabled' => false,
  'trusted_domains' => 
  array (
    0 => 'XX',
    1 => 'XXXX',
  ),
  'maintenance' => false,
  'htaccess.RewriteBase' => '/',
  'dbtype' => 'mysql',
  'version' => '22.2.0.2',
  'logtimezone' => 'Europe/Berlin',
  'logdateformat' => 'Y.m.d, H:i:s',
  'log_query' => false,
  'logfile' => '/NEXTCLOUD/http-daten/nextcloud.log',
  'installed' => true,
  'default_language' => 'de',
  'appstore.experimental.enabled' => false,
  'knowledgebaseenabled' => true,
  'enable_avatars' => true,
  'theme' => '',
  'allow_user_to_change_display_name' => true,
  'remember_login_cookie_lifetime' => 1296000,
  'session_lifetime' => 86400,
  'session_keepalive' => true,
  'token_auth_enforced' => false,
  'mail_smtpdebug' => false,
  'trashbin_retention_obligation' => '300,auto',
  'versions_retention_obligation' => '90, auto',
  'appcodechecker' => true,
  'updatechecker' => true,
  'updater.server.url' => 'https://updates.nextcloud.com/updater_server/',
  'updater.release.channel' => 'stable',
  'has_internet_connection' => true,
  'appstoreenabled' => true,
  'enable_previews' => true,
  'preview_max_x' => 2048,
  'preview_max_y' => 2048,
  'preview_max_scale_factor' => 10,
  'preview_max_filesize_image' => 2,
  'check_for_working_webdav' => true,
  'check_for_working_wellknown_setup' => true,
  'check_for_working_htaccess' => true,
  'config_is_read_only' => false,
  'cron_log' => true,
  'mysql.utf8mb4' => true,
  'app_install_overwrite' => 
  array (
    0 => 'occweb',
    1 => 'cookbook',
  ),
  'datadirectory' => '/NEXTCLOUD/http-daten/Cloud-data',
  'loglevel' => 2,
);

The output of your Apache/nginx/system log in /var/log/____:

Warning	xxx.xxx.xxx.xxx		(32)Broken pipe: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function				Apache-Fehler

Hello, loglevel 2 does not only show errors. It shows warnings as well. See https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html#log-level

You show only one line of your log and it contailns level 3 messages.

The line tells you aboute “open_basedir restriction” error.
Please search the web and check your web server setup.

Check your webserver log as well.

I have a shared Webserver. I may not have access to all logs. The only permanently appearing entry is Warning xxx.xxx.xxx.xxx (32)Broken pipe: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function Apache-Fehler

But I have another important Problem while testing functions in Nextcloud to search for Errors.
The only problem I could detect was following case.

I’m able to delete files in the trash-bin one by one. But I get errors if try to remove files one by one to fast. It also not work to select more than one with the checkboxses and remove them.

There are so many different setups out there.
Some hosters support Nextcloud out of the box, others are not really willing to support users here.

The only one who can really help you is your shared hoster. Ask them for support.

Regarding trash bin → please open another thread. Hint above the list of item in your trash bin you can select all at once with a single click.

Regarding trash bin → please open another thread. Hint above the list of item in your trash bin you can select all at once with a single click.

Same problem. I could only remove Trash entries one by one.