ok
after restart nginx see log file
–> changed file
–> restarted nginx
–> opened […]/piwik
–> No error logged
–> restarted complete Server
–> opened […]/piwik
–> No error logged
Just for reference my nginx config
server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
server_name piwik.mydomain.example;
access_log /var/log/nginx/piwik.access.log;
error_log /var/log/nginx/piwik.error.log;
# HSTS(15768000 seconds = 6 months)
add_header Strict-Transport-Security max-age=15768000;
ssl_certificate /etc/letsencrypt/live/piwik.mydomain.example/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/piwik.mydomain.example/privkey.pem;
root /var/www/piwik/;
# Add index.php to the list if you are using PHP
index index.html index.htm index.php;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
}
It’s really odd that there are no errors logged. Is your /var/log/nginx/error.log
empty? Maybe there is something helpful in /var/log/php7.0-fpm.log
Maybe back to the browser: Can you check the HTML (CTRL+U) on the login page?
It should include lines similar to
<link rel="stylesheet" type="text/css" href="index.php?module=Proxy&action=getCss&cb=bd7d9dd5d340650c1daecfd5fc06d292" />
and
<script type="text/javascript" src="index.php?module=Proxy&action=getCoreJs&cb=6a0ce04ed0a5b9b5c4b30c0afabee02b"></script>
which request the CSS and JS files.
Maybe even open those links. They should show contain CSS and JS.
/var/log/nginx/error.log shows the following lines:
[ 2017-05-09 19:13:41.1942 26225/7f09bd347700 age/Cor/CoreMain.cpp:532 ]: Signal received. Gracefully shutting down... (send signal 1 more time(s) to force shutdown)
[ 2017-05-09 19:13:41.2553 26225/7f09c3f41780 age/Cor/CoreMain.cpp:967 ]: Passenger core shutdown finished
[ 2017-05-09 19:13:41.2934 29275/7fcc37be0780 age/Wat/WatchdogMain.cpp:1291 ]: Starting Passenger watchdog...
[ 2017-05-09 19:13:41.2985 29278/7f2fdd13b780 age/Cor/CoreMain.cpp:982 ]: Starting Passenger core...
[ 2017-05-09 19:13:41.2986 29278/7f2fdd13b780 age/Cor/CoreMain.cpp:235 ]: Passenger core running in multi-application mode.
[ 2017-05-09 19:13:41.2996 29278/7f2fdd13b780 age/Cor/CoreMain.cpp:732 ]: Passenger core online, PID 29278
[ 2017-05-09 19:13:41.3055 29285/7f654eed7780 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
[ 2017-05-09 19:13:41.3058 29285/7f654eed7780 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 29285
/var/log/php7.0-fpm.log shows the following lines:
[09-May-2017 10:24:21] NOTICE: fpm is running, pid 9600
[09-May-2017 10:24:21] NOTICE: ready to handle connections
[09-May-2017 10:24:21] NOTICE: systemd monitor interval set to 10000ms
[09-May-2017 13:50:43] NOTICE: Terminating ...
[09-May-2017 13:50:43] NOTICE: exiting, bye-bye!
[09-May-2017 13:50:43] NOTICE: configuration file /etc/php/7.0/fpm/php-fpm.conf test is successful
[09-May-2017 13:50:43] NOTICE: fpm is running, pid 21581
[09-May-2017 13:50:43] NOTICE: ready to handle connections
[09-May-2017 13:50:43] NOTICE: systemd monitor interval set to 10000ms
Of course I checked if the css file is there - I also can open it.
With the JS inclusion … hmmm… I have a lot of JS inclusions, but all link to [...]src="libs/[...]
or [...]src="plugins/[...]
but none of them shows something like [...]src="index.php?module=[...]
The multiple js files are probably because of this:
I still don’t understand why the CSS file is not requested even though it is included in the html response.
I guess you have already tried force reloading the page (STRG+Shift+R)
Jupp - including cache clearing in the browsers (Using Firefox, Opera and (only for testing ) Edge) and Server, restartig the services and the server itself.
@summerson, I think we have found the solution.
Someone else had an very similar issue (No desktop in Chrome · Issue #11728 · piwik/piwik · GitHub) and it was because the CSS file was empty. When he deleted everything in tmp
so piwik recreated it, it worked again.