owncloud / core

:cloud: ownCloud web server core (Files, DAV, etc.)
https://owncloud.com
GNU Affero General Public License v3.0
8.37k stars 2.06k forks source link

Unable to auto log in after enabling "External Storage" app #24879

Closed FiveYellowMice closed 8 years ago

FiveYellowMice commented 8 years ago

Steps to reproduce

  1. Enable the "External Storage" app via GUI.
  2. Close the browser.
  3. Open the browser again, visit my ownCloud page.

    Expected behaviour

Logged in and shows my files if I checked the "remember" checkbox last time, or shows log in page that has a "remember" checkbox.

Actual behaviour

Not logged in, shows log in page but the "remember" checkbox has disappeared.

screenshot_20160528_164955

Server configuration

Operating system: Fedora 23

Web server: Nginx-reverse-proxied Apache 2.4.18

Database: MariaDB 10.0.23

PHP version: 5.6.21

ownCloud version: 8.2.4

Updated from an older ownCloud or fresh install: Updated from an older version

Where did you install ownCloud from: Package manager

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

Nothing, it redirects me to `/index.php/apps/files/`.

List of activated apps:

Enabled:

Disabled:

The content of config/config.php:

{
    "system": {
        "log_type": "syslog",
        "datadirectory": "\/var\/lib\/owncloud\/data",
        "updatechecker": false,
        "check_for_working_htaccess": false,
        "asset-pipeline.enabled": false,
        "assetdirectory": "\/var\/lib\/owncloud",
        "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
        "apps_paths": [
            {
                "path": "\/usr\/share\/owncloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/lib\/owncloud\/apps",
                "url": "\/apps-appstore",
                "writable": true
            }
        ],
        "instanceid": "ocb14ro2uvpg",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "owncloud.fiveyellowmice.com"
        ],
        "overwrite.cli.url": "http:\/\/owncloud.fiveyellowmice.com",
        "dbtype": "mysql",
        "version": "8.2.4.2",
        "dbname": "owncloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "appstore.experimental.enabled": false,
        "theme": "",
        "loglevel": 2,
        "maintenance": false
    }
}

Are you using external storage, if yes which one: Local

Are you using encryption: No

Are you using an external user-backend, if yes which one: WebDAV

Client configuration

Browser: Chrome 51.0.2704.63 (64-bit), 50.0.2661.89, 50.0.2661.95

Operating system: Arch Linux, Android 6.0.1, iOS 9.3.2

Logs

Web server error log

[Sun May 22 03:38:02.965516 2016] [auth_digest:notice] [pid 18356] AH01757: generating secret for digest authentication ...
[Sun May 22 03:38:02.965882 2016] [http2:warn] [pid 18356] AH02951: mod_ssl does not seem to be enabled
[Sun May 22 03:38:02.972919 2016] [lbmethod_heartbeat:notice] [pid 18356] AH02282: No slotmem from mod_heartmonitor
[Sun May 22 03:38:03.233836 2016] [mpm_prefork:notice] [pid 18356] AH00163: Apache/2.4.18 (Fedora) PHP/5.6.21 configured -- resuming normal operations
[Sun May 22 03:38:03.233889 2016] [core:notice] [pid 18356] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Sat May 28 06:38:17.073720 2016] [:error] [pid 13793] [client ::1:57166] PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction' in /usr/share/php/Doctrine/DBAL/Driver/PDOStatement.php:91\nStack trace:\n#0 /usr/share/php/Doctrine/DBAL/Driver/PDOStatement.php(91): PDOStatement->execute(Array)\n#1 /usr/share/php/Doctrine/DBAL/Connection.php(989): Doctrine\\DBAL\\Driver\\PDOStatement->execute(Array)\n#2 /usr/share/owncloud/lib/private/db/connection.php(203): Doctrine\\DBAL\\Connection->executeUpdate('UPDATE `oc_file...', Array, Array)\n#3 /usr/share/owncloud/lib/private/lock/dblockingprovider.php(261): OC\\DB\\Connection->executeUpdate('UPDATE `*PREFIX...', Array)\n#4 [internal function]: OC\\Lock\\DBLockingProvider->releaseAll()\n#5 {main}\n\nNext exception 'Doctrine\\DBAL\\Driver\\PDOException' with message 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction' in /usr/share/php/Doctrine/DBAL/Driver/PDOStatement.php:93\nStack trace:\n#0 /usr/s in /usr/share/php/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 115

ownCloud log (data/owncloud.log)

Empty.

Browser log

None.

ghost commented 8 years ago

@FiveYellowMice You can close here as this is the expected behavior:

Some apps like files_external or encryption will disable the Stay logged in checkbox.

https://doc.owncloud.org/server/9.0/user_manual/webinterface.html

FiveYellowMice commented 8 years ago

I see. #13335 added it. Hope this can be fixed in a later version because it's not a good UX.

ghost commented 8 years ago

@FiveYellowMice You still can create a new feature request for that (e.g. only disable the auto login if an external storage not supporting it is enabled).

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.