Support intro
Sorry to hear you’re facing problems
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
Nextcloud version 16.0.1.1
Operating system and version : CentOS Linux release 7.6.1810 (Core)
Apache or nginx version : apache httpd-2.4.6-89.el7.centos.x86_64
PHP version (eg, 7.1): 7.1
The issue you are facing:
Logs complain about unknown or bad timezone
Is this the first time you’ve seen this error? (Y/N): N
Steps to replicate it:
- Install php and php-fpm7.1
- set date.timezone in /etc/opt/rh/rh-php71/php.ini :
date.timezone = "America/Argentina/Buenos_Aires"
- Restart the service php-fpm
The output of your Nextcloud log in Admin > Logging:
DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown) at /usr/share/nextcloud/lib/private/DateTimeZone.php#66
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => '',
'secret' => '',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '',
2 => '192.168.50.8',
3 => 'infoestructura.local',
4 => '',
5 => '',
6 => '',
),
'htaccess.RewriteBase' => '/',
'datadirectory' => '/var/lib/nethserver/nextcloud/',
'overwrite.cli.url' => 'http://localhost',
'dbtype' => 'mysql',
'version' => '16.0.1.1',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => '',
'installed' => true,
'instanceid' => 'ocmstnc1xrkf',
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
'maintenance' => false,
'memcache.local' => '\\OC\\Memcache\\APCu',
'loglevel' => 2,
'mail_from_address' => 'no-reply',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_domain' => '',
'logfile' => '/var/lib/nethserver/nextcloud/nextcloud.log',
'mail_smtpsecure' => '',
'mail_smtphost' => 'localhost',
'mail_smtpport' => '25',
'theme' => '',
'app_install_overwrite' =>
array (
0 => 'spreed',
1 => 'unsplash',
2 => 'announcementcenter',
3 => 'groupfolders',
4 => 'external',
5 => 'files_accesscontrol',
),
'mysql.utf8mb4' => true,
);
Why does php-fpm does not honour date.timezone?