xJoeyv
June 24, 2019, 4:50pm
1
500
Uuuups, something went wrong.
Where can I see errors or information what causes this? It’s not in my apache server.
Cockpit doesn’t have an error log yet. Sorry.
Without any more information when you got the 500 (suddenly on a working project, directly after installation…), I only have these two options for you:
artur
June 26, 2019, 8:09am
3
look for the php error log (defined in the php.ini)
xJoeyv
June 26, 2019, 7:29pm
4
Something like whoops would be cool when you have an enviroment var set to “local”. But I found out if I run the cp
file with php cp
. The issue was on the other machine I did not had pdo_sqlite enabled.
artur
June 26, 2019, 9:53pm
5
you can set debug
to true
in the config to get more detailed error messages.
$customconfig = [];
// load custom config
if (file_exists(COCKPIT_CONFIG_PATH)) {
$customconfig = preg_match('/\.yaml$/', COCKPIT_CONFIG_PATH) ? Spyc::YAMLLoad(COCKPIT_CONFIG_PATH) : include(COCKPIT_CONFIG_PATH);
}
// load config
$config = array_replace_recursive([
'debug' => preg_match('/(localhost|::1|\.local)$/', @$_SERVER['SERVER_NAME']),
'app.name' => 'Cockpit',
'base_url' => COCKPIT_BASE_URL,
'base_route' => COCKPIT_BASE_ROUTE,
'docs_root' => COCKPIT_DOCS_ROOT,
'session.name' => md5(COCKPIT_ENV_ROOT),
'session.init' => (COCKPIT_ADMIN && !COCKPIT_API_REQUEST) ? true : false,
'sec-key' => 'c3b40c4c-db44-s5h7-a814-b4931a15e5e1',
'i18n' => 'en',
'database' => ['server' => 'mongolite://'.(COCKPIT_STORAGE_FOLDER.'/data'), 'options' => ['db' => 'cockpitdb'], 'driverOptions' => [] ],
'memory' => ['server' => 'redislite://'.(COCKPIT_STORAGE_FOLDER.'/data/cockpit.memory.sqlite'), 'options' => [] ],
1 Like