Nextcloud_@snelweg.net

The issue you are facing:
Session will not start, ‘normal’ php files work.

The output of your Nextcloud log in Admin > Logging:

    ==> /home/xxx/nextcloud/data/nextcloud.log <==
    {"reqId":"tHTCnJCUHT8P280XInzK","level":3,"time":"2019-11-28T14:11:45+00:00","remoteAddr":"212.45.54.84","user":"--","app":"base","method":"GET","url":"\/status.php","message":{"Exception":"Exception","Message":"Failed to start session","Code":0,"Trace":[{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":424,"function":"__construct","class":"OC\\Session\\Internal","type":"->","args":["oc7o27t7q1vk"]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":642,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":1081,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/status.php","line":36,"args":["\/home\/nas5\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/home\/nas5\/nextcloud\/lib\/private\/Session\/Internal.php","Line":61,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows) mirall\/2.6.1stable-Win64 (build 20191105) (Nextcloud)","version":"17.0.1.1"}

ikkuh@stats1:/home/xxx/nextcloud# cat version.php

    > <?php
    >     $OC_Version = array(17,0,1,1);
    >     $OC_VersionString = '17.0.1';
    >     $OC_Edition = '';
    >     $OC_Channel = 'stable';
    >     $OC_VersionCanBeUpgradedFrom = array (
    >       'nextcloud' =>
    >       array (
    >         '16.0' => true,
    >         '17.0' => true,
    >       ),
    >       'owncloud' =>
    >       array (
    >       ),
    >     );
    >     $OC_Build = '2019-11-07T12:06:23+00:00 a8405bf175d9924309b3889948b8fb26aa707fd6';
    >     $vendor = 'nextcloud';


The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

PASTE HERE


The output of your Apache/nginx/system log in `/var/log/____`:
> ==> /home/nas5/logs/access_log <==

212.45.54.84 - - [28/Nov/2019:15:20:30 +0100] “GET / HTTP/1.1” 500 3236 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36”
212.45.54.84 - - [28/Nov/2019:15:20:31 +0100] “GET /core/css/guest.css?v=1ed03cae-0 HTTP/1.1” 500 3236 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36”
212.45.54.84 - - [28/Nov/2019:15:20:31 +0100] “GET /core/js/dist/main.js?v=1ed03cae-0 HTTP/1.1” 500 3236 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36”
212.45.54.84 - - [28/Nov/2019:15:20:31 +0100] “GET /js/core/merged-template-prepend.js?v=1ed03cae-0 HTTP/1.1” 500 3236 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36”

==> /home/nas5/nextcloud/data/nextcloud.log <==

    > {"reqId":"FjgpysKcIUryMvVAUL2V","level":3,"time":"2019-11-28T14:20:31+00:00","remoteAddr":"212.45.54.84","user":"--","app":"base","method":"GET","url":"\/core\/css\/guest.css?v=1ed03cae-0","message":{"Exception":"Exception","Message":"Failed to start session","Code":0,"Trace":[{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":424,"function":"__construct","class":"OC\\Session\\Internal","type":"->","args":["oc7o27t7q1vk"]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":642,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":1081,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/index.php","line":40,"args":["\/home\/nas5\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/home\/nas5\/nextcloud\/lib\/private\/Session\/Internal.php","Line":61,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/78.0.3904.108 Safari\/537.36","version":"17.0.1.1"}
    > {"reqId":"O0Oa5xpkhx2posDj2jx7","level":3,"time":"2019-11-28T14:20:31+00:00","remoteAddr":"212.45.54.84","user":"--","app":"base","method":"GET","url":"\/core\/search\/js\/search.js?v=1ed03cae-0","message":{"Exception":"Exception","Message":"Failed to start session","Code":0,"Trace":[{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":424,"function":"__construct","class":"OC\\Session\\Internal","type":"->","args":["oc7o27t7q1vk"]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":642,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":1081,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/index.php","line":40,"args":["\/home\/nas5\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/home\/nas5\/nextcloud\/lib\/private\/Session\/Internal.php","Line":61,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/78.0.3904.108 Safari\/537.36","version":"17.0.1.1"}
    > {"reqId":"Q9nqiXDiuDIn9hGSxCA1","level":3,"time":"2019-11-28T14:20:31+00:00","remoteAddr":"212.45.54.84","user":"--","app":"base","method":"GET","url":"\/core\/search\/js\/searchprovider.js?v=1ed03cae-0","message":{"Exception":"Exception","Message":"Failed to start session","Code":0,"Trace":[{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":424,"function":"__construct","class":"OC\\Session\\Internal","type":"->","args":["oc7o27t7q1vk"]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":642,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":1081,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/index.php","line":40,"args":["\/home\/nas5\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/home\/nas5\/nextcloud\/lib\/private\/Session\/Internal.php","Line":61,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/78.0.3904.108 Safari\/537.36","version":"17.0.1.1"}
    > {"reqId":"k0YQyzOKUv6KSZ0z9ftR","level":3,"time":"2019-11-28T14:20:31+00:00","remoteAddr":"212.45.54.84","user":"--","app":"base","method":"GET","url":"\/core\/js\/files\/fileinfo.js?v=1ed03cae-0","message":{"Exception":"Exception","Message":"Failed to start session","Code":0,"Trace":[{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":424,"function":"__construct","class":"OC\\Session\\Internal","type":"->","args":["oc7o27t7q1vk"]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":642,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":1081,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/index.php","line":40,"args":["\/home\/nas5\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/home\/nas5\/nextcloud\/lib\/private\/Session\/Internal.php","Line":61,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/78.0.3904.108 Safari\/537.36","version":"17.0.1.1"}
    > {"reqId":"YwFzAsuiJRFDjsokX5mb","level":3,"time":"2019-11-28T14:20:32+00:00","remoteAddr":"212.45.54.84","user":"--","app":"base","method":"GET","url":"\/core\/js\/files\/client.js?v=1ed03cae-0","message":{"Exception":"Exception","Message":"Failed to start session","Code":0,"Trace":[{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":424,"function":"__construct","class":"OC\\Session\\Internal","type":"->","args":["oc7o27t7q1vk"]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":642,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":1081,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/index.php","line":40,"args":["\/home\/nas5\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/home\/nas5\/nextcloud\/lib\/private\/Session\/Internal.php","Line":61,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/78.0.3904.108 Safari\/537.36","version":"17.0.1.1"}
    > {"reqId":"KV3D4Djb09uYr3B7xhoa","level":3,"time":"2019-11-28T14:20:32+00:00","remoteAddr":"212.45.54.84","user":"--","app":"base","method":"GET","url":"\/core\/img\/favicon.ico","message":{"Exception":"Exception","Message":"Failed to start session","Code":0,"Trace":[{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":424,"function":"__construct","class":"OC\\Session\\Internal","type":"->","args":["oc7o27t7q1vk"]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":642,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":1081,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/index.php","line":40,"args":["\/home\/nas5\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/home\/nas5\/nextcloud\/lib\/private\/Session\/Internal.php","Line":61,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/78.0.3904.108 Safari\/537.36","version":"17.0.1.1"}
    > {"reqId":"los3xndoY8NjJBT3OBTE","level":3,"time":"2019-11-28T14:20:32+00:00","remoteAddr":"212.45.54.84","user":"--","app":"base","method":"GET","url":"\/core\/img\/manifest.json","message":{"Exception":"Exception","Message":"Failed to start session","Code":0,"Trace":[{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":424,"function":"__construct","class":"OC\\Session\\Internal","type":"->","args":["oc7o27t7q1vk"]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":642,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/lib\/base.php","line":1081,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/home\/nas5\/nextcloud\/index.php","line":40,"args":["\/home\/nas5\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/home\/nas5\/nextcloud\/lib\/private\/Session\/Internal.php","Line":61,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/78.0.3904.108 Safari\/537.36","version":"17.0.1.1"}











==> /home/nas5/logs/access_log <==> 
>     212.45.54.84 - - [28/Nov/2019:15:20:31 +0100] "GET /core/css/guest.css?v=1ed03cae-0 HTTP/1.1" 500 3236 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
>     212.45.54.84 - - [28/Nov/2019:15:20:31 +0100] "GET /core/search/js/search.js?v=1ed03cae-0 HTTP/1.1" 500 3236 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
>     212.45.54.84 - - [28/Nov/2019:15:20:31 +0100] "GET /core/search/js/searchprovider.js?v=1ed03cae-0 HTTP/1.1" 500 3236 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
>     212.45.54.84 - - [28/Nov/2019:15:20:31 +0100] "GET /core/js/files/fileinfo.js?v=1ed03cae-0 HTTP/1.1" 500 3236 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
>     212.45.54.84 - - [28/Nov/2019:15:20:32 +0100] "GET /core/js/files/client.js?v=1ed03cae-0 HTTP/1.1" 500 3236 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
>     212.45.54.84 - - [28/Nov/2019:15:20:32 +0100] "GET /core/img/favicon.ico HTTP/1.1" 500 3236 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
>     212.45.54.84 - - [28/Nov/2019:15:20:32 +0100] "GET /core/img/manifest.json HTTP/1.1" 500 3236 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"

Unfortunately the pasted data is nearly unreadable. Please insert a line containing three backticks (```) before and after the configuration and log lines. Additionally describe your problem in detail using more than only four words.

This editor crapped out on me, so here is a remake of the post. This forum software is terrible, crapped out again!

When I remove the four tickmarks my browser freezes.

This posting might help you solving the problem:

This posting might help you solving the problem:

Wow, thank you very much, this led me quickly to the solution. Kuddos!

This is an install that ran for over two months with no problems at all. It is installed on a 2Tb dedicated server in France. I use Virtualmin on Debian 9 to maintain the server, never had any problems with that combination.
This week I tried to change the php version from fcgi to fpm, and that is where the troubles began. It (Nextcloud) would not run on my machine in fpm mode, so I switched back and then nothing worked anymore.

I did have error_reporting set to the max, I changed the Nextcloud logging to max: ‘loglevel’ => 0, but no decent messages were shown.

The error-messages (from both nginx, php and Nextcloud) were less then helpfull, so in desperation I turned to the forum and I am happy to say that @j-ed pointed me in the right direction.

I had to change the php.ini file:

;open_basedir =
to
open_basedir = /home/xxx
and
sys_temp_dir = “/tmp”
to
sys_temp_dir = “/home/xxx/tmp”

And then everything started working again.

So once again thanks to @j-ed and good to know that this forum really does help people.

1 Like