21.7.4: Dashboard error: A problem was detected. Click here for more information

Started by Gilad, October 29, 2021, 03:23:31 PM

Previous topic - Next topic
Hi,

I've upgraded to version 21.7.4 yesterday, and didn't have any problems.
However, today I've noticed this error displayed on the dashboard, and it seems like it a PHP error:

[29-Oct-2021 11:39:15 Europe/London] PHP Warning:  Phalcon\Session\Adapter\Stream::read(/var/lib/php/sessions/sess_be911bfde6d67e18ba8a619c4b5cb3cb): failed to open stream: No such file or directory in /usr/local/opnsense/mvc/app/config/services_api.php on line 73

From /usr/local/opnsense/mvc/app/config/services_api.php:

62
63 /**
64  * Start the session the first time some component request the session service
65  */
66 $di->setShared('session', function () {
67     $session = new Manager();
68     $files = new Stream([
69         'savePath' => session_save_path(),
70         'prefix'   => 'sess_',
71     ]);
72     $session->setAdapter($files);
73     $session->start()
74     // Set session response cookie, unfortunalty we need to read the config here to determine if secure option is
75     // a valid choice.
76     $cnf = Config::getInstance();
77     if ((string)$cnf->object()->system->webgui->protocol == 'https') {
78         $secure = true;
79     } else {
80         $secure = false;
81     }
82     setcookie(session_name(), session_id(), null, '/', null, $secure, true);
83
84     return $session;
85 });
86


I thought It's a session/cookie issue, but restarting Google Chrome and even using Firefox doesn't help...


Any ideas?

(I've submitted a crash report)