Description
I’ve installed ApisCP and after installation i tried to change the Timezone and Locale from the Admin Menu (so for the admin profile) and its reporting fatal(): `common_set_timezone': crash or other nasty error detected
. When trying to change the system.timezone over Configuration Tab to Europe/Berlin i get the error Postback failed!!!
. When i try to change the system.timezone via CLI i get the following error:
[root@master ~]# cpcmd scope:set system.timezone Europe/Berlin
WARNING: dba_open(/etc/php.ini): Failed to open stream: No such file or directory
[/usr/local/apnscp/lib/Opcenter/Map.php:56]
0. dba_open("/etc/php.ini", "wd", "inifile", null)
[/usr/local/apnscp/lib/Opcenter/Map.php:56]
1. Opcenter\Map->__construct("/etc/php.ini", "wd", "inifile", null)
[/usr/local/apnscp/lib/Opcenter/Map.php:268]
2. Opcenter\Map::load("/etc/php.ini", "wd", null)
[/usr/local/apnscp/lib/Opcenter/Map.php:128]
3. Opcenter\Map::write("/etc/php.ini")
[/usr/local/apnscp/lib/Opcenter/Admin/Settings/System/Timezone.php:46]
4. Opcenter\Admin\Settings\System\Timezone->set("Europe/Berlin")
[/usr/local/apnscp/lib/modules/scope.php:68]
5. Scope_Module->set("system.timezone", "Europe/Berlin")
[/usr/local/apnscp/lib/Module/Skeleton/Standard.php:145]
6. Module\Skeleton\Standard->_invoke("set", ["system.timezone", "Europe/Berlin"])
[/usr/local/apnscp/lib/apnscpfunction.php:992]
7. apnscpFunctionInterceptor->call("scope_set", ["system.timezone", "Europe/Berlin"])
[/usr/local/apnscp/lib/CLI/cmd.php:62]
8. CLI\__call("scope_set", ["system.timezone", "Europe/Berlin"])
[/usr/local/apnscp/lib/CLI/cmd.php:581]
9. CLI\main()
[/usr/local/apnscp/bin/cmd:7]
WARNING: dba_open(/etc/php.ini): Failed to open stream: No such file or directory
[/usr/local/apnscp/lib/Opcenter/Map.php:56]
0. dba_open("/etc/php.ini", "wd", "inifile", null)
[/usr/local/apnscp/lib/Opcenter/Map.php:56]
1. Opcenter\Map->__construct("/etc/php.ini", "wd", "inifile", null)
[/usr/local/apnscp/lib/Opcenter/Map.php:268]
2. Opcenter\Map::load("/etc/php.ini", "wd", null)
[/usr/local/apnscp/lib/Opcenter/Map.php:128]
3. Opcenter\Map::write("/etc/php.ini")
[/usr/local/apnscp/lib/Opcenter/Admin/Settings/System/Timezone.php:46]
4. Opcenter\Admin\Settings\System\Timezone->set("Europe/Berlin")
[/usr/local/apnscp/lib/modules/scope.php:68]
5. Scope_Module->set("system.timezone", "Europe/Berlin")
[/usr/local/apnscp/lib/Module/Skeleton/Standard.php:145]
6. Module\Skeleton\Standard->_invoke("set", ["system.timezone", "Europe/Berlin"])
[/usr/local/apnscp/lib/apnscpfunction.php:992]
7. apnscpFunctionInterceptor->call("scope_set", ["system.timezone", "Europe/Berlin"])
[/usr/local/apnscp/lib/CLI/cmd.php:62]
8. CLI\__call("scope_set", ["system.timezone", "Europe/Berlin"])
[/usr/local/apnscp/lib/CLI/cmd.php:581]
9. CLI\main()
[/usr/local/apnscp/bin/cmd:7]
FATAL : fatal(): failed to open db `/etc/php.ini'
0. Error_Reporter::trigger_fatal("failed to open db `/etc/php.ini'", ["/etc/php.ini"])
[/usr/local/apnscp/lib/log_wrapper.php:45]
1. fatal("failed to open db `%s'", "/etc/php.ini")
[/usr/local/apnscp/lib/Opcenter/Map.php:58]
2. Opcenter\Map->__construct("/etc/php.ini", "wd", "inifile", null)
[/usr/local/apnscp/lib/Opcenter/Map.php:268]
3. Opcenter\Map::load("/etc/php.ini", "wd", null)
[/usr/local/apnscp/lib/Opcenter/Map.php:128]
4. Opcenter\Map::write("/etc/php.ini")
[/usr/local/apnscp/lib/Opcenter/Admin/Settings/System/Timezone.php:46]
5. Opcenter\Admin\Settings\System\Timezone->set("Europe/Berlin")
[/usr/local/apnscp/lib/modules/scope.php:68]
6. Scope_Module->set("system.timezone", "Europe/Berlin")
[/usr/local/apnscp/lib/Module/Skeleton/Standard.php:145]
7. Module\Skeleton\Standard->_invoke("set", ["system.timezone", "Europe/Berlin"])
[/usr/local/apnscp/lib/apnscpfunction.php:992]
8. apnscpFunctionInterceptor->call("scope_set", ["system.timezone", "Europe/Berlin"])
[/usr/local/apnscp/lib/CLI/cmd.php:62]
9. CLI\__call("scope_set", ["system.timezone", "Europe/Berlin"])
[/usr/local/apnscp/lib/CLI/cmd.php:581]
10. CLI\main()
[/usr/local/apnscp/bin/cmd:7]
ERROR: fatal(): failed to open db `/etc/php.ini'
Steps to Reproduce
- Step 1:
-
- Installing with the following command:
curl https://raw.githubusercontent.com/apisnetworks/apiscp-bootstrapper/master/bootstrap.sh | bash -s - -s use_robust_dns='true' -s has_dns_only='true' -s whitelist_ip='<my-vpn-ip-address>' -s has_low_memory='true' -s limit_memory_2gb="1600" -s limit_memory_1gb="800" -s apnscp_admin_user='admin' -s apnscp_admin_email='admin@domain.tld' -s system_hostname='master.domain.tld'
- Installing with the following command:
- Login to ApisCP Web UI and trying to set Configuration → system.timezone to “Europe/Berlin” and trying to set the timezone from user “admin” to “Europe/Berlin”
- See errors above
Expected Behavior
Expecting to set the timezone for system and admin user without issues
Actual Behavior
When trying to set the admin timezone i get a empty site. When calling again the Dashboard, its shows that error above in a error box. When trying to set the system.timezone i get the error upper right as notification error box.
Environment
ApisCP version:
revision: fe41ead6f8212b4982f57c27bd455ddc22d19c4e
timestamp: 1693411074
ver_maj: 3
ver_min: 2
ver_patch: 38
ver_pre: ‘’
dirty: false
debug: false
Operating System:
Rocky Linux 8
4.18.0-477.21.1.el8_8.x86_64
Additional Information:
I can login while i’m not connected to my vpn? Something does not worked with the whitelist ip address?
Further is it possible to set system.timezone while installation? Didnt found anything about it.
//Edit
maybe it has to do with this?
https://bitbucket.org/apisnetworks/apnscp/branches/compare/fe41ead6f8212b4982f57c27bd455ddc22d19c4e..7e19cbedab0437db3a45cf802d662060a2942f81#commits
My question about locales:
Where can i find supported locales, install them or - if not supported - create my own? (de_DE)