404 Not Found issue after updating ownCloud 10.3.2

While upgrading the ownCloud from 10.3.0 to 10.3.2 but it redirects to this URL
http:// / /index.php/login
and shows 404 Not Found.

I remove all the files and directories of ownCloud version 10.3.0, except data and config files, and extract the 10.3.2 files and directories. After clicking on the Start update button. It shows an update complete and redirected to the login page but shows 404 Not Found

I checked on this post as well but not work.

Hi ustav,

There was an issue template when you opened your question, which you decided not to fill out. So we do not have any information about your system and we only can guess what the issue is.

My assumption: the files cannot be read by the web server user, i.e. it is a permission problem. If so, see the Permissions section in the manual. I’d recommend to follow the steps in the documentation.

NB: why would you want to upgrade to a patch version and not to the newest release 10.11?

If it does not solve your problem, here, for your convenience, is the issue template again:

Steps to reproduce

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Server configuration

Operating system:

Web server:

Database:

PHP version:

ownCloud version: (see ownCloud admin page)

Updated from an older ownCloud or fresh install:

Where did you install ownCloud from:

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

The content of config/config.php:

Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or 

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

Are you using external storage, if yes which one: local/smb/sftp/…

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…

LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...
1 Like

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

  1. 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...')

Hi again,

So your database credentials are wrong or the databases server is not reachable. You must have a working db connection, best try to connect via command line with mysql client.

Edit: Most possibly this is out of a typo in your config.php

double check config.php, e.g. with
php -l /path/to/your/config.php