mirror of
https://github.com/clonos/control-pane.git
synced 2026-04-27 05:35:55 +03:00
[GH-ISSUE #59] 500 Internal Server Error #34
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/control-pane#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @krlex on GitHub (Aug 21, 2022).
Original GitHub issue: https://github.com/clonos/control-pane/issues/59
Originally assigned to: @olevole on GitHub.
Hello,
I try to install ClonOS in VM.
I use Instructions from https://clonos.convectix.com/installation_on_freebsd.html
And I configure CBSD over reggae. So
~cbsd/etc/is/usr/cbsd/etcCan you help me how find more logs to send you if I can't solve it problem.
Thanks in advance
@G0Dzilla1984 commented on GitHub (Aug 29, 2022):
Hello. I've got same error.
In nginx logs I can see next:
2022/08/29 16:58:28 [error] 40043#100867: *11 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /usr/local/www/clonos/php/db.php:136 Stack trace: #0 /usr/local/www/clonos/public/pages/overview/a.json.php(17): Db->select() #1 /usr/local/www/clonos/php/clonos.php(265): include('...') #2 /usr/local/www/clonos/php/clonos.php(152): ClonOS->ccmd_getJsonPage() #3 /usr/local/www/clonos/public/json.php(12): ClonOS->__construct() #4 {main} thrown in /usr/local/www/clonos/php/db.php on line 136" while reading response header from upstream, client: bsdman.local, server: _, request: "POST /json.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "cbsd.local", referrer: "http://cbsd.local/overview/"@bozhinov commented on GitHub (Aug 29, 2022):
This is fixable but the question is how stable is the code atm with the upcoming release and all
@olevole commented on GitHub (Aug 29, 2022):
I unfortunately still don't have a server to continue developing.
Сan you set up the error logging in php to a file and try again, e.g:
/usr/local/etc/php.ini
then:
Also please check sudo file for www user: /usr/local/etc/sudoers.d/10_www
and additional group for
wwwuser: this user must be a member of the 'cbsd' group to be able to read the SQLite3 database ( /usr/jails/var/db/local.sqlite )@G0Dzilla1984 commented on GitHub (Aug 30, 2022):
Maybe it might help:
@joneum commented on GitHub (Sep 20, 2022):
I have the same error. Is there a solution?
@bozhinov commented on GitHub (Sep 20, 2022):
Hello,
Please add this:
after:
private $_user_info=array(
'id'=>0,
'username'=>'guest',
'unregistered'=>true,
);
in /usr/local/www/clonos/php/clonos.php
This is only a problem of PHP 8.2
@olevole commented on GitHub (Sep 20, 2022):
@moveee FYI ^^
@joneum commented on GitHub (Sep 21, 2022):
for me, it doesn't work
@G0Dzilla1984 commented on GitHub (Sep 21, 2022):
In my case it doesn't help too. And then I found clonos.log file in /tmp and saw next:
config.php: vm_profile cache file not found: /usr/jails/tmp/bhyve-vm.jsonI made soft link to the right file and all problems are gone (I hope).
@joneum commented on GitHub (Sep 21, 2022):
if it worked, can you share it?
@G0Dzilla1984 commented on GitHub (Sep 22, 2022):
My solution is below.
As I said earlier, I found log file in /tmp/clonos.log. In this log file I can see "file not found" error.
I installed and configured cbsd and clonos with non-default prefixes and then I just made symbolic link to the right place for cbsd's "tmp" dir. In my case it was /vm/tmp via this command:
ln -s /vm /usr/jails.Result you can see here:
Now I can manipulate vms via web-pane.
@joneum commented on GitHub (Oct 11, 2022):
i will test it later - but i had the problem with PHP 8.0 too
Am 20.09.22 um 20:45 schrieb Momchil Bozhinov:
@olevole commented on GitHub (Dec 13, 2022):
Most likely due to the absence of /usr/local/www/clonos/version file. Fixed in clonos ports:
github.com/clonos/clonos-ports-wip@7554b2554b