Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect Loop after upgrading to 13.0 (InvalidSignatureException) #8199

Closed
fpetry opened this issue Feb 6, 2018 · 1 comment
Closed

Redirect Loop after upgrading to 13.0 (InvalidSignatureException) #8199

fpetry opened this issue Feb 6, 2018 · 1 comment

Comments

@fpetry
Copy link

fpetry commented Feb 6, 2018

Steps to reproduce

  1. Start web updater for upgrade from 12.0.4. to 12.0.5
  2. Click trough update process which then installs 13.0

Expected behaviour

Working instance of 13.0 is running.

Actual behaviour

After the login page a redirect loop occurs:

[IPADDRESS_REDACTED] - - [06/Feb/2018:14:08:58 +0100] "POST /nextcloud/login HTTP/1.1" 303 1235 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"                                   
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:08:59 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"                              
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:08:59 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"                              
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:08:59 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"                              
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:08:59 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"                              
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:08:59 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"                              
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:08:59 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"                              
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:08:59 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"                              
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:08:59 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"                              
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:08:59 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"                              
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:08:59 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"                              
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:08:59 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:08:59 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:08:59 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:09:00 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:09:00 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:09:00 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:09:00 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:09:00 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:09:00 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"
[IPADDRESS_REDACTED] - - [06/Feb/2018:14:09:00 +0100] "GET /nextcloud/apps/files/ HTTP/1.1" 302 1007 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.119 Chrome/64.0.3282.119 Safari/537.36"

Browser gives back:

This page isn’t working
[URL_REDACTED] redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS

(Clearing cookies does not help)

Server configuration

Operating system: Ubuntu 12.04.5 LTS

Web server: Apache/2.4.25 (Ubuntu)

Database: mysql Ver 14.14 Distrib 5.5.54

PHP version: PHP 7.0.16

Nextcloud version: 12.0.4 --> 13.0

Updated from an older Nextcloud/ownCloud or fresh install: migration from owncloud and several upgrades since then

Where did you install Nextcloud from: manual installation from zip

Signing status:

Signing status
Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- core
	- EXCEPTION
		- OC\IntegrityCheck\Exceptions\InvalidSignatureException
		- Certificate is not valid.
- federatedfilesharing
	- EXCEPTION
		- OC\IntegrityCheck\Exceptions\InvalidSignatureException
		- Certificate is not valid.
- dav
	- EXCEPTION
		- OC\IntegrityCheck\Exceptions\InvalidSignatureException
		- Certificate is not valid.
- nextcloud_announcements
	- EXCEPTION
		- OC\IntegrityCheck\Exceptions\InvalidSignatureException
		- Certificate is not valid.
- encryption
	- EXCEPTION
		- OC\IntegrityCheck\Exceptions\InvalidSignatureException
		- Certificate is not valid.
- theming
	- EXCEPTION
		- OC\IntegrityCheck\Exceptions\InvalidSignatureException
		- Certificate is not valid.
- workflowengine
	- EXCEPTION
		- OC\IntegrityCheck\Exceptions\InvalidSignatureException
		- Certificate is not valid.

Raw output
==========
Array
(
    [core] => Array
        (
            [EXCEPTION] => Array
                (
                    [class] => OC\IntegrityCheck\Exceptions\InvalidSignatureException
                    [message] => Certificate is not valid.
                )

        )

    [federatedfilesharing] => Array
        (
            [EXCEPTION] => Array
                (
                    [class] => OC\IntegrityCheck\Exceptions\InvalidSignatureException
                    [message] => Certificate is not valid.
                )

        )

    [dav] => Array
        (
            [EXCEPTION] => Array
                (
                    [class] => OC\IntegrityCheck\Exceptions\InvalidSignatureException
                    [message] => Certificate is not valid.
                )

        )

    [nextcloud_announcements] => Array
        (
            [EXCEPTION] => Array
                (
                    [class] => OC\IntegrityCheck\Exceptions\InvalidSignatureException
                    [message] => Certificate is not valid.
                )

        )

    [encryption] => Array
        (
            [EXCEPTION] => Array
                (
                    [class] => OC\IntegrityCheck\Exceptions\InvalidSignatureException
                    [message] => Certificate is not valid.
                )

        )

    [theming] => Array
        (
            [EXCEPTION] => Array
                (
                    [class] => OC\IntegrityCheck\Exceptions\InvalidSignatureException
                    [message] => Certificate is not valid.
                )

        )

    [workflowengine] => Array
        (
            [EXCEPTION] => Array
                (
                    [class] => OC\IntegrityCheck\Exceptions\InvalidSignatureException
                    [message] => Certificate is not valid.
                )

        )

)

List of activated apps:

App list
Enabled:
  - bookmarks: 0.10.1
  - bruteforcesettings: 1.0.3
  - caniupdate: 0.1.2
  - dav: 1.4.6
  - federatedfilesharing: 1.3.1
  - files_markdown: 2.0.1
  - nextcloud_announcements: 1.2.0
  - theming: 1.4.1
  - workflowengine: 1.3.0
Disabled:
  - calendar
  - documents
  - encryption
  - external

Nextcloud configuration:

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

or 

Insert your config.php content here. 
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

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)

LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud 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: chromium and firefox

Operating system:

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
Insert your Nextcloud log here

Browser log

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

a) The javascript console log
b) The network log
c) ...
@fpetry
Copy link
Author

fpetry commented Feb 6, 2018

There was no message about it but it seems the problem originated in a disk quota problem which prevented the upgrade from finishing properly. Resolving the inode problem and then following the manual upgrade process (unpacking from zip) etc solved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant