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

Cannot log in to web console after install #3657

Closed
sgumirov opened this issue Feb 28, 2017 · 3 comments
Closed

Cannot log in to web console after install #3657

sgumirov opened this issue Feb 28, 2017 · 3 comments

Comments

@sgumirov
Copy link

This happened on 11.0.1. I then removed everything including data dir and DB, installed everything from scratch (11.0.2). This did not help, after fresh install I observe the same behavior.

Steps to reproduce

  1. log in via web as admin: fill login form and press "log in ->"
  2. observe same login form, browser redirected to /login?redirect_url=/apps/files/

Expected behaviour

see my personal files

Actual behaviour

same login form

Server configuration

Operating system: arch

Web server: nginx

Database: mysql

PHP version: 7.1.2

Nextcloud version: (see Nextcloud admin page)
11.0.2
Updated from an older Nextcloud/ownCloud or fresh install:
no, fresh install

Where did you install Nextcloud from:
pacman -S nextcloud
then occ maintenance:install

Signing status:

Signing status
Cannot log in as admin

List of activated apps:

App list ``` Enabled: - activity: 2.4.1 - comments: 1.1.0 - dav: 1.1.1 - federatedfilesharing: 1.1.1 - federation: 1.1.1 - files: 1.6.1 - files_pdfviewer: 1.0.1 - files_sharing: 1.1.1 - files_texteditor: 2.2 - files_trashbin: 1.1.0 - files_versions: 1.4.0 - files_videoplayer: 1.0.0 - firstrunwizard: 2.0 - gallery: 16.0.0 - logreader: 2.0.0 - lookup_server_connector: 1.0.0 - nextcloud_announcements: 1.0 - notifications: 1.0.1 - password_policy: 1.1.0 - provisioning_api: 1.1.0 - serverinfo: 1.1.1 - sharebymail: 1.0.1 - survey_client: 0.1.5 - systemtags: 1.1.3 - theming: 1.1.1 - twofactor_backupcodes: 1.0.0 - updatenotification: 1.1.1 - workflowengine: 1.1.1 ```

The content of config/config.php:

Config report
{
    "system": {
        "instanceid": "ocrbpht314yc",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "hdd.gumirov.com"
        ],
        "datadirectory": "\/opt\/nextcloud",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbtype": "mysql",
        "version": "11.0.2.7",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "dbname": "nextcld",
        "dbhost": "localhost",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "mail_from_address": "nextcloud",
        "mail_smtpmode": "php",
        "mail_domain": "nc.gtm.im",
        "log_type": "file",
        "logfile": "nextcloud.log",
        "loglevel": "0",
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "upgrade.disable-web": false,
        "maintenance": false,
        "data-fingerprint": "dc3c5d2e000258d1308c226beee5ef74",
        "theme": ""
    }
}

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

Are you using encryption: no

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

Client configuration

Browser: tried Chrome, Opera on all: linux, windows and osx

Operating system: osx, linux, win7

Logs

Web server error log

Web server error log

192.168.3.100 - - [28/Feb/2017:23:25:33 +0700] "POST /login?redirect_url=/apps/files/ HTTP/1.0" 303 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" "192.168.1.1"
192.168.3.100 - - [28/Feb/2017:23:25:33 +0700] "GET /apps/files/ HTTP/1.0" 303 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" "192.168.1.1"
192.168.3.100 - - [28/Feb/2017:23:25:33 +0700] "GET /login?redirect_url=/apps/files/ HTTP/1.0" 200 21840 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" "192.168.1.1"
192.168.3.100 - - [28/Feb/2017:23:25:33 +0700] "GET /apps/gallery/config?extramediatypes=1 HTTP/1.0" 401 43 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" "192.168.1.1"

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"DbgoYGPdqgOVcbRomXww","remoteAddr":"192.168.3.100","app":"no app in context","message":"Current user is not logged in","level":0,"time":"2017-02-28T16:25:33+00:00","method":"GET","url":"\/apps\/files\/","user":"--","version":"11.0.2.7"}
{"reqId":"XjgKOBCgd\/H0PrXgZrZA","remoteAddr":"192.168.3.100","app":"no app in context","message":"Current user is not logged in","level":0,"time":"2017-02-28T16:25:33+00:00","method":"GET","url":"\/apps\/gallery\/config?extramediatypes=1","user":"--","version":"11.0.2.7"}

Browser log

Browser log
nothing special in JS log:

jquery-migrate.min.js?v=afc7ab9…:2 JQMIGRATE: Migrate is installed, version 1.4.0
jquery.min.js?v=afc7ab9…:4GET https://hdd.gumirov.com/apps/gallery/config?extramediatypes=1 401 (Unauthorized)
send @ jquery.min.js?v=afc7ab9…:4
ajax @ jquery.min.js?v=afc7ab9…:4
n.(anonymous function) @ jquery.min.js?v=afc7ab9…:4
getJSON @ jquery.min.js?v=afc7ab9…:4
(anonymous) @ galleryfileaction.js?v=afc7ab9…:216
j @ jquery.min.js?v=afc7ab9…:2
fireWith @ jquery.min.js?v=afc7ab9…:2
ready @ jquery.min.js?v=afc7ab9…:2
I @ jquery.min.js?v=afc7ab9…:2
DevTools failed to parse SourceMap: https://hdd.gumirov.com/core/vendor/jquery/dist/jquery.min.map

network: I see only this failed request

http://DOMAIN_REMOVED/apps/gallery/config?extramediatypes=1
Request Method:GET
Status Code:401 Unauthorized
@dirigit
Copy link

dirigit commented Mar 1, 2017

Hi,

isn't app/files deactivated first after installation / upgrade?

AFAIR files, contacts, ... whatever have to be activated. Afterwards you can make settings for default after login in config. When memory serves well gallery should be listed there as well to have a working fallback even after upgrade.

@sgumirov
Copy link
Author

sgumirov commented Mar 1, 2017

If you see a "List of activated apps" attached, I have all that apps including gallery and files enabled. Is this what you're talking about? After all, I don't have an upgrade, this happens in my case for clean install.

@sgumirov
Copy link
Author

sgumirov commented Mar 3, 2017

Closing issue as I've dropped broken installation and instead installed nextcloud on digitalocean vm with LAMP stack.

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

2 participants