bareos-webui shows blank login page

29 views
Skip to first unread message

Jürgen Bereuter

unread,
Aug 20, 2024, 4:14:54 AM8/20/24
to bareos-users
Hi,
i installed a new bareos package on omnios and try to get the webui via nginx running. 
I get this error in the log file:

omnios2:~$ sudo tail -f /var/log/opt/ooce/nginx/error.log 


#6 /var/www/webui/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): Zend\Mvc\Controller\AbstractController->dispat" while reading response header from upstream, client: 192.168.88.243, server: 192.168.88.11, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/opt/ooce/php/run/www-8.1.sock:", host: "192.168.88.11:9100"

2024/08/20 10:07:49 [error] 449#1: *23 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "directors" in /var/www/webui/module/Auth/src/Auth/Controller/AuthController.php on line 72PHP message: PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/webui/module/Auth/src/Auth/Controller/AuthController.php:72

Stack trace:

#0 /var/www/webui/module/Auth/src/Auth/Controller/AuthController.php(72): count()

#1 /var/www/webui/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): Auth\Controller\AuthController->loginAction()

#2 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch()

#3 /var/www/webui/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func()

#4 /var/www/webui/vendor/zendframework/zend-eventmanager/src/EventManager.php(211): Zend\EventManager\EventManager->triggerListeners()

#5 /var/www/webui/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->trigger()

#6 /var/www/webui/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): Zend\Mvc\Controller\AbstractController->dispat" while reading response header from upstream, client: 192.168.88.243, server: 192.168.88.11, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/opt/ooce/php/run/www-8.1.sock:", host: "192.168.88.11:9100"



In nginx the server is listening to port 9100, the bareos director is running and i can use the bconsole.
I have found something related to this, but it seems actually not relevant:


Jürgen Bereuter

unread,
Aug 20, 2024, 5:47:29 AM8/20/24
to bareos-users
i looks like, that i had some wrong paths (in nginx root directory of the server), the config files (directors.ini and configuration.ini) exists, but where not accessed (also no missing-warning, when i had removed them).

Now its working :-)

Bruno Friedmann (bruno-at-bareos)

unread,
Aug 21, 2024, 3:31:18 AM8/21/24
to bareos-users
I wouldn't imagine to place them elsewhere than the default /etc/bareos-webui directory ;-)
Reply all
Reply to author
Forward
0 new messages