NC doesn't accept admin password after installation wizard

Hello Everyone.

I have a fresh installation of NC 12. The issue is that after installation wisard I’m not able to login to web interface,
It everytime redirects me to login page. Tried to turn on debugging but everything I seen is “Current user is not logged in”.
I tried sqlite3 and mysql, the same issue in both cases.
I tried to turn of selinux, but no luck. Even when selinux is in enabled state there is no any errors in audit.log.

Could anyone please assist to solve this issue?


Nextcloud version: 12.0.3
Operating system and version: CentOS Linux release 7.4.1708 (Core)
Nginx version: nginx/1.10.2
PHP version: php7.1.10


# cat /var/www/nextcloud/config/config.php
<?php
$CONFIG = array (
  'instanceid' => 'ocuaweayo9v6',
  'passwordsalt' => 'HTbzGg+R8arkoPLDxmgf2kSqeMLuA1',
  'secret' => 'f+SuSP7i5FFu9pbNzF5cPALU/stu8pMV4BEBZLQuuwMHB/bq',
  'trusted_domains' =>
  array (
    0 => 'cloud.example.com',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'overwrite.cli.url' => 'https://cloud.example.com',
  'dbtype' => 'sqlite3',
  'version' => '12.0.3.3',
  'installed' => true,
  'log_type' => 'file',
  'loglevel' => 0,
);

Please don’t paste these values for your own safety!
Right now they can be treated as compromised and should be renewed actually.

Could you post your nginx config (without your real domain name) and the web server error logs?

Thanks Schmu for your responce. This is test installation available in LAN only so no worries.
Please see below my nginx configuration excluding comments:

/etc/nginx/nginx.conf

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
include /usr/share/nginx/modules/*.conf;
events {
    worker_connections 1024;
}
http {
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';
    access_log  /var/log/nginx/access.log  main;
    sendfile            on;
    tcp_nopush          on;
    tcp_nodelay         on;
    keepalive_timeout   65;
    types_hash_max_size 2048;
    include             /etc/nginx/mime.types;
    default_type        application/octet-stream;
    include /etc/nginx/conf.d/*.conf;
    server {
        listen       80 default_server;
        listen       [::]:80 default_server;
        server_name  _;
        root         /usr/share/nginx/html;
        include /etc/nginx/default.d/*.conf;
        location / {
        }
        error_page 404 /404.html;
            location = /40x.html {
        }
        error_page 500 502 503 504 /50x.html;
            location = /50x.html {
        }
    }
}

/etc/nginx/conf.d/php-fpm.conf

upstream php-fpm {
        server 127.0.0.1:9000;
}

/etc/nginx/conf.d/nextcloud.conf

server {
    listen 80;
    server_name cloud.example.com;
    return 301 https://$server_name$request_uri;
}
server {
    listen 443 ssl;
    server_name cloud.example.com;
    ssl_certificate /etc/nginx/certs/cloud.example.com.crt;
    ssl_certificate_key /etc/nginx/certs/cloud.example.com.key;
    add_header X-Content-Type-Options nosniff;
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Robots-Tag none;
    add_header X-Download-Options noopen;
    add_header X-Permitted-Cross-Domain-Policies none;
    root /var/www/nextcloud/;
    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }
    location = /.well-known/carddav {
      return 301 $scheme://$host/remote.php/dav;
    }
    location = /.well-known/caldav {
      return 301 $scheme://$host/remote.php/dav;
    }
    client_max_body_size 512M;
    fastcgi_buffers 64 4K;
    gzip on;
    gzip_vary on;
    gzip_comp_level 4;
    gzip_min_length 256;
    gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
    gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web
-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-polic
y;
    location / {
        rewrite ^ /index.php$uri;
    }
    location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
        deny all;
    }
    location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
        deny all;
    }
    location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+)\.php(?:$|/) {
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param HTTPS on;
        fastcgi_param modHeadersAvailable true;
        fastcgi_param front_controller_active true;
        fastcgi_pass php-fpm;
        fastcgi_intercept_errors on;
        fastcgi_request_buffering off;
    }
    location ~ ^/(?:updater|ocs-provider)(?:$|/) {
        try_files $uri/ =404;
        index index.php;
    }
    location ~ \.(?:css|js|woff|svg|gif)$ {
        try_files $uri /index.php$uri$is_args$args;
        add_header X-Content-Type-Options nosniff;
        add_header X-XSS-Protection "1; mode=block";
        add_header X-Robots-Tag none;
        add_header X-Download-Options noopen;
        add_header X-Permitted-Cross-Domain-Policies none;
        access_log off;
    }
    location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
        try_files $uri /index.php$uri$is_args$args;
        access_log off;
    }
}

Looking forward for your replay.

Sorry, forgot to say that error log of nginx is empty, there are only some old errors about syntax error that is already fixed now.