Skip to content

Refreshes on Login / Can't Login After Server Migration #5721

@justin-sleep

Description

@justin-sleep

I think this is a bug in the server component of Nextcloud, but the logs aren't giving me enough to determine that for sure. It looks like it's related to session recreation in PHP, but feel free to close this if you determine that it belongs elsewhere.

I followed the instructions in the documentation to migrate my instance to a new server. However, I now cannot log in to the web interface. When I click the login button, it loads for a few seconds, and then the page just appears to refresh.

Server configuration

Operating system: CentOS 7

Web server: Nginx

Database: PostgreSQL

PHP version: 7.1.7

Nextcloud version: (see Nextcloud admin page)

Updated from an older Nextcloud/ownCloud or fresh install:
The same version was kept across the migration.

Where did you install Nextcloud from:
The official releases page.

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "ocyeqibezn89",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "quarterfull.com"
        ],
        "datadirectory": "\/var\/cloud",
        "overwrite.cli.url": "http:\/\/quarterfull.com\/cloud",
        "dbtype": "pgsql",
        "version": "12.0.0.29",
        "dbname": "owncloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "appstore.experimental.enabled": true,
        "mail_from_address": "cloud",
        "mail_smtpmode": "smtp",
        "mail_domain": "quarterfull.com",
        "theme": "",
        "loglevel": 0,
        "maintenance": false,
        "trashbin_retention_obligation": "auto",
        "forcessl": true,
        "defaultapp": "files",
        "enable_avatars": true,
        "mail_smtphost": "arca.quarterfull.com",
        "mail_smtpport": "25",
        "mail_smtptimeout": 10,
        "mail_smtpauthtype": "LOGIN",
        "htaccess.RewriteBase": "\/cloud",
        "updater.server.url": "https:\/\/updates.nextcloud.org\/updater_server\/",
        "updater.release.channel": "beta",
        "debug": true
    }
}

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

Are you using encryption: yes

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

Client configuration

I cannot login with any client machine or browser.

Logs

Web server error log

Nothing appears in the web server error log when I connect to the page or attempt the login. There are a lot of the following messages from clients attempting to sync, though:

Web server error log
2017/07/13 17:57:41 [info] 12944#0: *948 client closed connection while waiting for request, client: <ip>, server: 0.0.0.0:443

Nextcloud log (data/nextcloud.log)

(I don't have access to the pretty logs the admin panel print, so this is directly from the logfile with sensitive values removed)

Nextcloud log
{"reqId":"6LPCUu6t6MEBvQIcHLMw","level":0,"time":"2017-07-13T01:23:32+00:00","remoteAddr":"","user":"--","app":"PHP","method":"POST","url":"\/cloud\/login?redirect_url=\/cloud\/apps\/files\/","message":"session_regenerate_id(): Cannot regenerate session id - session is not active at \/web\/cloud\/lib\/private\/Session\/Internal.php#115","userAgent":"","version":"12.0.0.29"}
{"reqId":"oyfh3yBjpGKMSGVwBTaX","level":0,"time":"2017-07-13T01:23:32+00:00","remoteAddr":"","user":"--","app":"PHP","method":"GET","url":"\/cloud\/apps\/files\/","message":"session_regenerate_id(): Cannot regenerate session id - session is not active at \/web\/cloud\/lib\/private\/Session\/Internal.php#115","userAgent":"","version":"12.0.0.29"}
{"reqId":"oyfh3yBjpGKMSGVwBTaX","level":0,"time":"2017-07-13T01:23:32+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"GET","url":"\/cloud\/apps\/files\/","message":"Current user is not logged in","userAgent":"","version":"12.0.0.29"}
{"reqId":"44HVGC6ZWy1QhtZJLY6W","level":0,"time":"2017-07-13T01:23:32+00:00","remoteAddr":"","user":"--","app":"PHP","method":"GET","url":"\/cloud\/login?redirect_url=\/cloud\/apps\/files\/","message":"session_regenerate_id(): Cannot regenerate session id - session is not active at \/web\/cloud\/lib\/private\/Session\/Internal.php#115","userAgent":"","version":"12.0.0.29"}
{"reqId":"44HVGC6ZWy1QhtZJLY6W","level":0,"time":"2017-07-13T01:23:32+00:00","remoteAddr":"","user":"--","app":"core","method":"GET","url":"\/cloud\/login?redirect_url=\/cloud\/apps\/files\/","message":"Scss is disabled for \/web\/cloud\/core\/css\/server.scss, ignoring","userAgent":"","version":"12.0.0.29"}
{"reqId":"44HVGC6ZWy1QhtZJLY6W","level":0,"time":"2017-07-13T01:23:32+00:00","remoteAddr":"","user":"--","app":"core","method":"GET","url":"\/cloud\/login?redirect_url=\/cloud\/apps\/files\/","message":"Scss is disabled for \/web\/cloud\/core\/css\/share.scss, ignoring","userAgent":"","version":"12.0.0.29"}

Browser log

The events in the browser log happen at page load. No errors occur when I click login.

Browser log
main.js:310 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive.
(anonymous) @ main.js:310
(anonymous) @ main.js:408
jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 1.4.0
keys.js:134 Uncaught TypeError: Cannot read property 'length' of undefined
    at KeyListener.eventToCode (keys.js:134)
    at keys.js:147
KeyListener.eventToCode @ keys.js:134
(anonymous) @ keys.js:147
keys.js:134 Uncaught TypeError: Cannot read property 'length' of undefined
    at KeyListener.eventToCode (keys.js:134)
    at keys.js:147
KeyListener.eventToCode @ keys.js:134
(anonymous) @ keys.js:147
keys.js:134 Uncaught TypeError: Cannot read property 'length' of undefined
    at KeyListener.eventToCode (keys.js:134)
    at keys.js:147
KeyListener.eventToCode @ keys.js:134
(anonymous) @ keys.js:147
keys.js:134 Uncaught TypeError: Cannot read property 'length' of undefined
    at KeyListener.eventToCode (keys.js:134)
    at keys.js:147
KeyListener.eventToCode @ keys.js:134
(anonymous) @ keys.js:147
DevTools failed to parse SourceMap: https://quarterfull.com/cloud/core/vendor/DOMPurify/dist/dist/purify.min.js.map
DevTools failed to parse SourceMap: https://quarterfull.com/cloud/core/vendor/jquery/dist/jquery.min.map
DevTools failed to parse SourceMap: https://quarterfull.com/cloud/core/vendor/blueimp-md5/js/md5.min.js.map

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions