Closed danniculescu closed 6 years ago
notes for myself: most likely caused by the absence of additional CBSD modules for the ClonOS database
The code has been updated and the instruction has been supplemented (with instructions for initializing the database): https://clonos.tekroutine.com/installation_on_freebsd.html
. I assume that the problem is fixed. Thanks for issue!
Same problem on FreeBSD-12.0 RELEASE-p3 here:
[17-May-2019 01:04:28] WARNING: [pool www] child 70497 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught Error: Call to a member function query() on null in /usr/local/www/clonos/php/db.php:147"
[17-May-2019 01:04:28] WARNING: [pool www] child 70497 said into stderr: "Stack trace:"
[17-May-2019 01:04:28] WARNING: [pool www] child 70497 said into stderr: "#0 /usr/local/www/clonos/public/pages/sources/a.json.php(5): Db->select('select nodename...')"
[17-May-2019 01:04:28] WARNING: [pool www] child 70497 said into stderr: "#1 /usr/local/www/clonos/php/clonos.php(199): include('/usr/local/www/...')"
[17-May-2019 01:04:28] WARNING: [pool www] child 70497 said into stderr: "#2 /usr/local/www/clonos/public/json.php(12): ClonOS->__construct('/usr/local/www/...')"
[17-May-2019 01:04:28] WARNING: [pool www] child 70497 said into stderr: "#3 {main}"
[17-May-2019 01:04:28] WARNING: [pool www] child 70497 said into stderr: " thrown in /usr/local/www/clonos/php/db.php on line 147"
I initialized database along https://clonos.tekroutine.com/installation_on_freebsd.html , but it doesn't work.
I found getenv('WORKDIR')
differs than I expect, then I finally found the statement fastcgi_param WORKDIR /usr/jails;
in /usr/local/etc/nginx/sites-enabled/cbsdweb.conf
was wrong.
I hardly found this statement because there's no information about this file (and envvar) in the install manual nor after install message, so I will write PR to add additional info in case of not-default $WORKDIR
.
Hi Oleg, I just installed ClonOS on a 12.0-CURRENT and I get the following error in /var/log/nginx/cbsdweb.err
If I navigate to settings I get a pop-up with the message: