Hi @cortho,
I upgraded the owncloud from 10.3.0 to the latest version 10.11 but it shows the same issue about the 404 Not Found page. So, I thought due to the huge version gap. I try to upgrade the owncloud 10.3.0 to 10.3.2. It still shows the error while redirecting to the login page.
Steps to reproduce
- Update page is working, after updating it will redirect to the login page and shows 404 Not Found.
Expected behavior
It should show the login page after the update. The permission of the file are ok.
Actual behavior
Show 404 Not Found “nginx”
Server configurationPreformatted text
Operating system :
Web server:
Ngnix 1.21.6
Database:
MySQL 10.11.0.6
PHP version:
7.3(7.3.33)
ownCloud version: (see ownCloud admin page)
ownCloud 10.3.0
Updated from an older ownCloud or fresh install:
update from an older ownCloud.
Where did you install ownCloud from:
from owncloud server packages.
Signing status (ownCloud 9.0 and above):
No login possible
The content of config/config.php:
<?php
$CONFIG = array (
'instanceid' => '*****',
'passwordsalt' => '*****',
'secret' => '*****',
'trusted_domains' =>
array (
0 => '*****',
),
'datadirectory' => '/****/****/****/****/owncloud-data',
'overwrite.cli.url' => 'http://****',
'dbtype' => 'mysql',
'version' => '10.11.0.6',
'dbname' => '****',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '****',
'dbpassword' => '****',
'logtimezone' => 'UTC',
'apps_paths' =>
array (
0 =>
array (
'path' => '/****/****/****/***/****/owncloud/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/***/***/*****/***/****/owncloud/apps-external',
'url' => '/apps-external',
'writable' => true,
),
),
'installed' => true,
'theme' => '',
'loglevel' => 2,
'maintenance' => false,
);
List of activated apps:
Admin is not working and sudo command is also not working.
Are you using external storage, if yes which one: local/smb/sftp/…
No
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
No
Client configuration
Browser:
Chrome Version 107.0.5304.107 (64-bit)
Operating system:
Window 10
Web server error log
empty
ownCloud log (data/owncloud.log)
on crash.log file
{
"date": "2022-11-11T13:13:40+01:00",
"parentId": null,
"id": "****",
"class": "ParseError",
"message": "syntax error, unexpected ','",
"stacktrace": [
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/private\/Config.php",
"line": 64,
"function": "readData",
"class": "OC\\Config"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 135,
"function": "__construct",
"class": "OC\\Config"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 531,
"function": "initPaths",
"class": "OC"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 1060,
"function": "init",
"class": "OC"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/index.php",
"line": 53,
"function": "require_once"
}
]
}
{
"date": "2022-11-11T13:13:40+01:00",
"parentId": null,
"id": "****",
"class": "Error",
"message": "Call to a member function getLogger() on null",
"stacktrace": []
}
{
"date": "2022-11-11T13:13:43+01:00",
"parentId": null,
"id": "****",
"class": "ParseError",
"message": "syntax error, unexpected ','",
"stacktrace": [
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/private\/Config.php",
"line": 64,
"function": "readData",
"class": "OC\\Config"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 135,
"function": "__construct",
"class": "OC\\Config"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 531,
"function": "initPaths",
"class": "OC"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 1060,
"function": "init",
"class": "OC"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/index.php",
"line": 53,
"function": "require_once"
}
]
}
{
"date": "2022-11-11T13:13:43+01:00",
"parentId": null,
"id": "*****",
"class": "Error",
"message": "Call to a member function getLogger() on null",
"stacktrace": []
}
{
"date": "2022-11-11T13:13:44+01:00",
"parentId": null,
"id": "*****",
"class": "ParseError",
"message": "syntax error, unexpected ','",
"stacktrace": [
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/private\/Config.php",
"line": 64,
"function": "readData",
"class": "OC\\Config"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 135,
"function": "__construct",
"class": "OC\\Config"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 531,
"function": "initPaths",
"class": "OC"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 1060,
"function": "init",
"class": "OC"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/index.php",
"line": 53,
"function": "require_once"
}
]
}
{
"date": "2022-11-11T13:13:44+01:00",
"parentId": null,
"id": "*****",
"class": "Error",
"message": "Call to a member function getLogger() on null",
"stacktrace": []
}
{
"date": "2022-11-11T13:13:44+01:00",
"parentId": null,
"id": "*****",
"class": "ParseError",
"message": "syntax error, unexpected ','",
"stacktrace": [
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/private\/Config.php",
"line": 64,
"function": "readData",
"class": "OC\\Config"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 135,
"function": "__construct",
"class": "OC\\Config"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 531,
"function": "initPaths",
"class": "OC"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 1060,
"function": "init",
"class": "OC"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/index.php",
"line": 53,
"function": "require_once"
}
]
}
{
"date": "2022-11-11T13:13:44+01:00",
"parentId": null,
"id": "*****",
"class": "Error",
"message": "Call to a member function getLogger() on null",
"stacktrace": []
}
{
"date": "2022-11-11T13:13:45+01:00",
"parentId": null,
"id": "*****",
"class": "ParseError",
"message": "syntax error, unexpected ','",
"stacktrace": [
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/private\/Config.php",
"line": 64,
"function": "readData",
"class": "OC\\Config"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 135,
"function": "__construct",
"class": "OC\\Config"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 531,
"function": "initPaths",
"class": "OC"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 1060,
"function": "init",
"class": "OC"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/index.php",
"line": 53,
"function": "require_once"
}
]
}
{
"date": "2022-11-11T13:13:45+01:00",
"parentId": null,
"id": "*****",
"class": "Error",
"message": "Call to a member function getLogger() on null",
"stacktrace": []
}
{
"date": "2022-11-11T13:13:46+01:00",
"parentId": null,
"id": "******",
"class": "ParseError",
"message": "syntax error, unexpected ','",
"stacktrace": [
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/private\/Config.php",
"line": 64,
"function": "readData",
"class": "OC\\Config"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******/owncloud\/lib\/base.php",
"line": 135,
"function": "__construct",
"class": "OC\\Config"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 531,
"function": "initPaths",
"class": "OC"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/base.php",
"line": 1060,
"function": "init",
"class": "OC"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/index.php",
"line": 53,
"function": "require_once"
}
]
}
{
"date": "2022-11-11T13:13:46+01:00",
"parentId": null,
"id": "*****",
"class": "Error",
"message": "Call to a member function getLogger() on null",
"stacktrace": []
}
{
"date": "2022-11-11T13:13:47+01:00",
"parentId": null,
"id": "******",
"class": "ParseError",
"message": "syntax error, unexpected ','",
"stacktrace": [
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/owncloud\/lib\/private\/Config.php",
"line": 64,
"function": "readData",
"class": "OC\\Config"
},
{
"file": "\/****\/****\/****\/****\/****\/***\/***\/******\/lib\/base.php",
"line": 135,
"function": "__construct",
"class": "OC\\Config"
},
{
"file": "\/***\/***\/***\/***\/***\/***\/***\/owncloud\/lib\/base.php",
"line": 531,
"function": "initPaths",
"class": "OC"
},
{
"file": "\/****\/****\/***\/****\/****\/***\/***\/owncloud\/lib\/base.php",
"line": 1060,
"function": "init",
"class": "OC"
},
{
"file": "\/****\/***\/****\/****\/***\/***\/***\/owncloud\/index.php",
"line": 53,
"function": "require_once"
}
]
}
{
"date": "2022-11-11T13:13:47+01:00",
"parentId": null,
"id": "****",
"class": "Error",
"message": "Call to a member function getLogger() on null",
"stacktrace": []
}
While upgrading through cmd ./occ upgrade shows an error msg.
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory in /web/owncloud/lib/private/DB/Connection.php:62
Stack trace:
#0 /web/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /web/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /web/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /web/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /web/owncloud/lib/private/DB/Connection.php(144): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /web/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /web/owncloud/lib/private/DB/ConnectionFactory.php(143): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#7 /web/owncloud/lib/private/Server.php(532): OC\DB\ConnectionFactory->getConnection('mysql', Array)
#8 /web/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#9 /web/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): Pimple\Container->offsetGet('DatabaseConnect...')
#10 /web/owncloud/lib/private/ServerContainer.php(86): OC\AppFramework\Utility\SimpleContainer->query('DatabaseConnect...')
#11 /web/owncloud/lib/private/Server.php(1220): OC\ServerContainer->query('DatabaseConnect...')
#12 /web/owncloud/lib/private/Server.php(406): OC\Server->getDatabaseConnection()
#13 /web/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#14 /web/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): Pimple\Container->offsetGet('AppConfig')
#15 /web/owncloud/lib/private/ServerContainer.php(86): OC\AppFramework\Utility\SimpleContainer->query('AppConfig')
#16 /web/owncloud/lib/private/Server.php(1150): OC\ServerContainer->query('AppConfig')
#17 /web/owncloud/lib/private/Server.php(587): OC\Server->getAppConfig()
#18 /web/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#19 /web/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): Pimple\Container->offsetGet('AppManager')
#20 /web/owncloud/lib/private/ServerContainer.php(86): OC\AppFramework\Utility\SimpleContainer->query('AppManager')
#21 /web/owncloud/lib/private/Server.php(1418): OC\ServerContainer->query('AppManager')
#22 /web/owncloud/lib/private/legacy/app.php(343): OC\Server->getAppManager()
#23 /web/owncloud/lib/private/legacy/app.php(107): OC_App::getEnabledApps()
#24 /web/owncloud/lib/base.php(585): OC_App::loadApps(Array)
#25 /web/owncloud/lib/base.php(1005): OC::init()
#26 /web/owncloud/console.php(64): require_once('/web/owncloud/l...')
#27 /web/owncloud/occ(11): require_once('/web/owncloud/c...')