View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001511 | bareos-core | webui | public | 2023-02-05 23:51 | 2023-02-13 09:47 |
Reporter | makruger | Assigned To | bruno-at-bareos | ||
Priority | normal | Severity | crash | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | x86 | OS | Windows | OS Version | 2016 |
Product Version | 22.0.0 | ||||
Summary | 0001511: Webui crash on PHP exception | ||||
Description | Operating system - Windows 2019 Bareos version - winbareos-22.0.2_pre20.b9c9c7256-release-64-bit.exe SQL version - postgresql-15.1-1-windows-x64.exe Unable to access the webui. Looked at C:\ProgramData\Bareos\logs\bareos-webui.log which contains the following: [Sun Feb 5 17:16:15 2023] PHP 7.4.25 Development Server (http://127.0.0.1:9100) started [Sun Feb 5 17:31:58 2023] 127.0.0.1:49708 Accepted [Sun Feb 5 17:31:59 2023] PHP Fatal error: Uncaught Error: Call to undefined function _() in C:\Program Files\Bareos\bareos-webui\module\Application\config\module.config.php:127 Stack trace: #0 C:\Program Files\Bareos\bareos-webui\module\Application\Module.php(56): include() 0000001 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\Listener\ConfigListener.php(126): Application\Module->getConfig() 0000002 [internal function]: Zend\ModuleManager\Listener\ConfigListener->onLoadModule() 0000003 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-eventmanager\src\EventManager.php(490): call_user_func() 0000004 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-eventmanager\src\EventManager.php(211): Zend\EventManager\EventManager->triggerListeners() 0000005 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(174): Zend\EventManager\EventManager->trigger() 0000006 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(96): Zend\ModuleManager\Mo in C:\Program Files\Bareos\bareos-webui\module\Application\config\module.config.php on line 127 | ||||
Steps To Reproduce | Full installation (director, storage, client) | ||||
Additional Information | tray monitor shows everything operating normally | ||||
Tags | No tags attached. | ||||
bareos-webui.log (8,217 bytes)
[Sun Feb 5 16:53:28 2023] PHP 7.4.25 Development Server (http://127.0.0.1:9100) started [Sun Feb 5 16:54:30 2023] 127.0.0.1:49835 Accepted [Sun Feb 5 16:54:30 2023] 127.0.0.1:49836 Accepted [Sun Feb 5 16:54:31 2023] PHP Fatal error: Uncaught Error: Call to undefined function _() in C:\Program Files\Bareos\bareos-webui\module\Application\config\module.config.php:127 Stack trace: #0 C:\Program Files\Bareos\bareos-webui\module\Application\Module.php(56): include() #1 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\Listener\ConfigListener.php(126): Application\Module->getConfig() #2 [internal function]: Zend\ModuleManager\Listener\ConfigListener->onLoadModule() #3 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-eventmanager\src\EventManager.php(490): call_user_func() #4 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-eventmanager\src\EventManager.php(211): Zend\EventManager\EventManager->triggerListeners() #5 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(174): Zend\EventManager\EventManager->trigger() #6 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(96): Zend\ModuleManager\Mo in C:\Program Files\Bareos\bareos-webui\module\Application\config\module.config.php on line 127 [Sun Feb 5 16:54:31 2023] 127.0.0.1:49836 [500]: GET / - Uncaught Error: Call to undefined function _() in C:\Program Files\Bareos\bareos-webui\module\Application\config\module.config.php:127 Stack trace: #0 C:\Program Files\Bareos\bareos-webui\module\Application\Module.php(56): include() #1 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\Listener\ConfigListener.php(126): Application\Module->getConfig() #2 [internal function]: Zend\ModuleManager\Listener\ConfigListener->onLoadModule() #3 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-eventmanager\src\EventManager.php(490): call_user_func() #4 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-eventmanager\src\EventManager.php(211): Zend\EventManager\EventManager->triggerListeners() #5 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(174): Zend\EventManager\EventManager->trigger() #6 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(96): Zend\ModuleManager\Mo in C:\Program Files\Bareos\bareos-webui\module\Application\config\module.config.php on line 127 [Sun Feb 5 16:54:31 2023] 127.0.0.1:49836 Closing [Sun Feb 5 16:54:49 2023] 127.0.0.1:49835 Invalid request (An existing connection was forcibly closed by the remote host. ) [Sun Feb 5 16:54:49 2023] 127.0.0.1:49835 Closing [Sun Feb 5 16:56:20 2023] 127.0.0.1:49846 Accepted [Sun Feb 5 16:56:20 2023] 127.0.0.1:49847 Accepted [Sun Feb 5 16:56:20 2023] PHP Fatal error: Uncaught Error: Call to undefined function _() in C:\Program Files\Bareos\bareos-webui\module\Application\config\module.config.php:127 Stack trace: #0 C:\Program Files\Bareos\bareos-webui\module\Application\Module.php(56): include() #1 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\Listener\ConfigListener.php(126): Application\Module->getConfig() #2 [internal function]: Zend\ModuleManager\Listener\ConfigListener->onLoadModule() #3 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-eventmanager\src\EventManager.php(490): call_user_func() #4 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-eventmanager\src\EventManager.php(211): Zend\EventManager\EventManager->triggerListeners() #5 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(174): Zend\EventManager\EventManager->trigger() #6 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(96): Zend\ModuleManager\Mo in C:\Program Files\Bareos\bareos-webui\module\Application\config\module.config.php on line 127 [Sun Feb 5 16:56:20 2023] 127.0.0.1:49847 [500]: GET / - Uncaught Error: Call to undefined function _() in C:\Program Files\Bareos\bareos-webui\module\Application\config\module.config.php:127 Stack trace: #0 C:\Program Files\Bareos\bareos-webui\module\Application\Module.php(56): include() #1 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\Listener\ConfigListener.php(126): Application\Module->getConfig() #2 [internal function]: Zend\ModuleManager\Listener\ConfigListener->onLoadModule() #3 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-eventmanager\src\EventManager.php(490): call_user_func() #4 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-eventmanager\src\EventManager.php(211): Zend\EventManager\EventManager->triggerListeners() #5 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(174): Zend\EventManager\EventManager->trigger() #6 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(96): Zend\ModuleManager\Mo in C:\Program Files\Bareos\bareos-webui\module\Application\config\module.config.php on line 127 [Sun Feb 5 16:56:20 2023] 127.0.0.1:49847 Closing [Sun Feb 5 16:56:29 2023] 127.0.0.1:49846 Invalid request (An existing connection was forcibly closed by the remote host. ) [Sun Feb 5 16:56:29 2023] 127.0.0.1:49846 Closing [Sun Feb 5 17:16:15 2023] PHP 7.4.25 Development Server (http://127.0.0.1:9100) started [Sun Feb 5 17:31:58 2023] 127.0.0.1:49708 Accepted [Sun Feb 5 17:31:59 2023] PHP Fatal error: Uncaught Error: Call to undefined function _() in C:\Program Files\Bareos\bareos-webui\module\Application\config\module.config.php:127 Stack trace: #0 C:\Program Files\Bareos\bareos-webui\module\Application\Module.php(56): include() #1 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\Listener\ConfigListener.php(126): Application\Module->getConfig() #2 [internal function]: Zend\ModuleManager\Listener\ConfigListener->onLoadModule() #3 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-eventmanager\src\EventManager.php(490): call_user_func() #4 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-eventmanager\src\EventManager.php(211): Zend\EventManager\EventManager->triggerListeners() #5 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(174): Zend\EventManager\EventManager->trigger() #6 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(96): Zend\ModuleManager\Mo in C:\Program Files\Bareos\bareos-webui\module\Application\config\module.config.php on line 127 [Sun Feb 5 17:31:59 2023] 127.0.0.1:49708 [500]: GET / - Uncaught Error: Call to undefined function _() in C:\Program Files\Bareos\bareos-webui\module\Application\config\module.config.php:127 Stack trace: #0 C:\Program Files\Bareos\bareos-webui\module\Application\Module.php(56): include() #1 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\Listener\ConfigListener.php(126): Application\Module->getConfig() #2 [internal function]: Zend\ModuleManager\Listener\ConfigListener->onLoadModule() #3 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-eventmanager\src\EventManager.php(490): call_user_func() #4 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-eventmanager\src\EventManager.php(211): Zend\EventManager\EventManager->triggerListeners() #5 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(174): Zend\EventManager\EventManager->trigger() #6 C:\Program Files\Bareos\bareos-webui\vendor\zendframework\zend-modulemanager\src\ModuleManager.php(96): Zend\ModuleManager\Mo in C:\Program Files\Bareos\bareos-webui\module\Application\config\module.config.php on line 127 [Sun Feb 5 17:31:59 2023] 127.0.0.1:49708 Closing [Sun Feb 5 17:31:59 2023] 127.0.0.1:49709 Accepted [Sun Feb 5 17:32:02 2023] 127.0.0.1:49709 Closed without sending a request; it was probably just an unused speculative preconnection [Sun Feb 5 17:32:02 2023] 127.0.0.1:49709 Closing |
|
Uncaught Error: Call to undefined function _() seems to be related to missing gettext | |
Tested again on Windows 2022 + postgresql15 + bareos 22.0.2~pre32 It works directly out of the box with extension loaded. C:\program files\bareos\bareos-webui\php.exe -i will show you loaded extension. Could you retry with newer version, and be sure you don't have any other PhP installation installed or interfering with bareos-webui. |
|
I tried the original version (22.0.2_pre20) on a fresh installation of Windows Server 2022 and experienced the same error. However, the newer version (22.0.2~pre32) works just fine. So, whatever the original issue was, it looks to be fixed in this later build. |
|
Ok strange. the most important is that available version is fixed and working. Closing. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2023-02-05 23:51 | makruger | New Issue | |
2023-02-05 23:51 | makruger | File Added: bareos-webui.log | |
2023-02-06 10:18 | bruno-at-bareos | Note Added: 0004873 | |
2023-02-09 12:04 | bruno-at-bareos | Note Added: 0004882 | |
2023-02-11 08:22 | makruger | Note Added: 0004883 | |
2023-02-13 09:47 | bruno-at-bareos | Assigned To | => bruno-at-bareos |
2023-02-13 09:47 | bruno-at-bareos | Status | new => closed |
2023-02-13 09:47 | bruno-at-bareos | Resolution | open => fixed |
2023-02-13 09:47 | bruno-at-bareos | Note Added: 0004884 |