View Issue Details

IDProjectCategoryView StatusLast Update
0001511bareos-corewebuipublic2023-02-13 09:47
Reportermakruger Assigned Tobruno-at-bareos  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status closedResolutionfixed 
Platformx86OSWindowsOS Version2016
Product Version22.0.0 
Summary0001511: Webui crash on PHP exception
DescriptionOperating 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 ReproduceFull installation (director, storage, client)
Additional Informationtray monitor shows everything operating normally
TagsNo tags attached.

Activities

makruger

makruger

2023-02-05 23:51

reporter  

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
bareos-webui.log (8,217 bytes)   
bruno-at-bareos

bruno-at-bareos

2023-02-06 10:18

manager   ~0004873

Uncaught Error: Call to undefined function _() seems to be related to missing gettext
bruno-at-bareos

bruno-at-bareos

2023-02-09 12:04

manager   ~0004882

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.
makruger

makruger

2023-02-11 08:22

reporter   ~0004883

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.
bruno-at-bareos

bruno-at-bareos

2023-02-13 09:47

manager   ~0004884

Ok strange. the most important is that available version is fixed and working.
Closing.

Issue History

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