View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001489 | bareos-core | webui | public | 2022-11-02 06:23 | 2022-11-09 14:11 |
Reporter | dimmko | Assigned To | frank | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Ubuntu | OS Version | 22.04 |
Product Version | 21.1.4 | ||||
Summary | 0001489: broken storage pool link | ||||
Description | Hello! Sorry for my very bad English! I have a error when go to see detail bareos-webui/pool/details/Diff | ||||
Steps To Reproduce | 1) login in webui 2) click on jobid 3) click on "+" 4) click on pool - Full (for example). | ||||
Additional Information | Error: An error occurred An error occurred during execution; please try again later. Additional information: Exception File: /usr/share/bareos-webui/module/Pool/src/Pool/Model/PoolModel.php:94 Message: Missing argument. Stack trace: #0 /usr/share/bareos-webui/module/Pool/src/Pool/Controller/PoolController.php(137): Pool\Model\PoolModel->getPool() 0000001 /usr/share/bareos-webui/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): Pool\Controller\PoolController->detailsAction() 0000002 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch() 0000003 /usr/share/bareos-webui/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func() 0000004 /usr/share/bareos-webui/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners() 0000005 /usr/share/bareos-webui/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->trigger() 0000006 /usr/share/bareos-webui/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): Zend\Mvc\Controller\AbstractController->dispatch() 0000007 [internal function]: Zend\Mvc\DispatchListener->onDispatch() 0000008 /usr/share/bareos-webui/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func() 0000009 /usr/share/bareos-webui/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners() 0000010 /usr/share/bareos-webui/vendor/zendframework/zend-mvc/src/Application.php(314): Zend\EventManager\EventManager->trigger() 0000011 /usr/share/bareos-webui/public/index.php(46): Zend\Mvc\Application->run() 0000012 {main} | ||||
Tags | No tags attached. | ||||
|
|
What is needed to try to understand the error is you pool configuration, also maybe you can use your browser console to log POST and GET answer and headers. Maybe you can also afford the effort to check the php-fpm if used log and apache log (access and error) when the problem occur. Thanks. |
|
bruno-at-bareos, thank's for you comment. 1) my pool - Diff Pool { Name = Diff Pool Type = Backup RecyclePool = Diff Purge Oldest Volume = yes Recycle = no Recycle Oldest Volume = no AutoPrune = no Volume Retention = 21 days ActionOnPurge = Truncate Maximum Volume Jobs = 1 Label Format = "${Client}_${Level}_${Pool}.${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}-${Hour:p/2/0/r}-${Minute:p/2/0/r}_${JobId}" } apache2 access.log [07/Nov/2022:10:40:58 +0300] "GET /pool/details/Diff HTTP/1.1" 500 3225 "http://192.168.5.16/job/?period=1&status=Success" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" apache error.log [Mon Nov 07 10:50:09.844798 2022] [php:warn] [pid 1340] [client 192.168.1.13:61800] PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /usr/share/bareos-webui/vendor/zendframework/zend-stdlib/src/ArrayObject.php on line 426, referer: http://192.168.5.16/job/?period=1&status=Success In Chrome (103): General: Request URL: http://192.168.5.16/pool/details/Diff Request Method: GET Status Code: 500 Internal Server Error Remote Address: 192.168.5.16:80 Referrer Policy: strict-origin-when-cross-origin Response Headers: HTTP/1.1 500 Internal Server Error Date: Mon, 07 Nov 2022 07:59:54 GMT Server: Apache/2.4.52 (Ubuntu) Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache Content-Length: 2927 Connection: close Content-Type: text/html; charset=UTF-8 Request Headers: GET /pool/details/Diff HTTP/1.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 Accept-Encoding: gzip, deflate Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 Cache-Control: no-cache Connection: keep-alive Cookie: bareos=o87i7ftkdsf2r160k2j0g5vic2 DNT: 1 Host: 192.168.5.16 Pragma: no-cache Referer: http://192.168.5.16/job/?period=1&status=Success Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36 |
|
Enable display_error in php [Mon Nov 07 11:17:57.573002 2022] [php:error] [pid 1545] [client 192.168.1.13:63174] PHP Fatal error: Uncaught Zend\\Session\\Exception\\InvalidArgumentException: 'session.name' is not a valid sessions-related ini setting. in /usr/share/bareos-webui/vendor/zendframework/zend-session/src/Config/SessionConfig.php:90\nStack trace:\n#0 /usr/share/bareos-webui/vendor/zendframework/zend-session/src/Config/StandardConfig.php(266): Zend\\Session\\Config\\SessionConfig->setStorageOption()\n#1 /usr/share/bareos-webui/vendor/zendframework/zend-session/src/Config/StandardConfig.php(114): Zend\\Session\\Config\\StandardConfig->setName()\n#2 /usr/share/bareos-webui/module/Application/Module.php(154): Zend\\Session\\Config\\StandardConfig->setOptions()\n#3 [internal function]: Application\\Module->Application\\{closure}()\n#4 /usr/share/bareos-webui/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(939): call_user_func()\n#5 /usr/share/bareos-webui/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(1099): Zend\\ServiceManager\\ServiceManager->createServiceViaCallback()\n#6 /usr/share/bareos-webui/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(638): Zend\\ServiceManager\\ServiceManager->createFromFactory()\n#7 /usr/share/bareos-webui/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(598): Zend\\ServiceManager\\ServiceManager->doCreate()\n#8 /usr/share/bareos-webui/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(530): Zend\\ServiceManager\\ServiceManager->create()\n#9 /usr/share/bareos-webui/module/Application/Module.php(82): Zend\\ServiceManager\\ServiceManager->get()\n#10 /usr/share/bareos-webui/module/Application/Module.php(42): Application\\Module->initSession()\n#11 [internal function]: Application\\Module->onBootstrap()\n#12 /usr/share/bareos-webui/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func()\n#13 /usr/share/bareos-webui/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): Zend\\EventManager\\EventManager->triggerListeners()\n#14 /usr/share/bareos-webui/vendor/zendframework/zend-mvc/src/Application.php(157): Zend\\EventManager\\EventManager->trigger()\n#15 /usr/share/bareos-webui/vendor/zendframework/zend-mvc/src/Application.php(261): Zend\\Mvc\\Application->bootstrap()\n#16 /usr/share/bareos-webui/public/index.php(46): Zend\\Mvc\\Application::init()\n#17 {main}\n\nNext Zend\\ServiceManager\\Exception\\ServiceNotCreatedException: An exception was raised while creating "Zend\\Session\\SessionManager"; no instance returned in /usr/share/bareos-webui/vendor/zendframework/zend-servicemanager/src/ServiceManager.php:946\nStack trace:\n#0 /usr/share/bareos-webui/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(1099): Zend\\ServiceManager\\ServiceManager->createServiceViaCallback()\n#1 /usr/share/bareos-webui/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(638): Zend\\ServiceManager\\ServiceManager->createFromFactory()\n#2 /usr/share/bareos-webui/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(598): Zend\\ServiceManager\\ServiceManager->doCreate()\n#3 /usr/share/bareos-webui/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(530): Zend\\ServiceManager\\ServiceManager->create()\n#4 /usr/share/bareos-webui/module/Application/Module.php(82): Zend\\ServiceManager\\ServiceManager->get()\n#5 /usr/share/bareos-webui/module/Application/Module.php(42): Application\\Module->initSession()\n#6 [internal function]: Application\\Module->onBootstrap()\n#7 /usr/share/bareos-webui/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func()\n#8 /usr/share/bareos-webui/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): Zend\\EventManager\\EventManager->triggerListeners()\n#9 /usr/share/bareos-webui/vendor/zendframework/zend-mvc/src/Application.php(157): Zend\\EventManager\\EventManager->trigger()\n#10 /usr/share/bareos-webui/vendor/zendframework/zend-mvc/src/Application.php(261): Zend\\Mvc\\Application->bootstrap()\n#11 /usr/share/bareos-webui/public/index.php(46): Zend\\Mvc\\Application::init()\n#12 {main}\n thrown in /usr/share/bareos-webui/vendor/zendframework/zend-servicemanager/src/ServiceManager.php on line 946, referer: http://192.168.5.16/job/?period=1&status=Success |
|
I was able to reproduce, what is funny is if you go to storage -> pool tab -> pool name it will work. We will transfer that to developer. |
|
There's a subtile difference in url called by storage, pool, poolname url is bareos-webui/pool/details/?pool=Full by jobid, + details, pool bareos-webui/pool/details/Full -> create error missing parameter |
|
bruno-at-bareos, your method is work, thank's. | |
Fix committed to bareos master branch with changesetid 16853. | |
bareos: master e2fdc8e9 2022-11-07 13:28 Ported: N/A Details Diff |
webui: fix pool link in job details formatter Adds missing query parameter. Fixes 0001489: broken storage pool link |
Affected Issues 0001489 |
|
mod - webui/module/Job/view/job/job/details.phtml | Diff File | ||
mod - webui/module/Job/view/job/job/index.phtml | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-11-02 06:23 | dimmko | New Issue | |
2022-11-02 06:23 | dimmko | File Added: bareos_webui_error.png | |
2022-11-03 10:18 | bruno-at-bareos | Note Added: 0004821 | |
2022-11-07 09:01 | dimmko | Note Added: 0004824 | |
2022-11-07 09:04 | dimmko | Note Edited: 0004824 | |
2022-11-07 09:05 | dimmko | Note Edited: 0004824 | |
2022-11-07 09:18 | dimmko | Note Added: 0004825 | |
2022-11-07 09:55 | bruno-at-bareos | Note Added: 0004826 | |
2022-11-07 09:57 | bruno-at-bareos | Assigned To | => bruno-at-bareos |
2022-11-07 09:57 | bruno-at-bareos | Status | new => acknowledged |
2022-11-07 09:57 | bruno-at-bareos | Note Added: 0004827 | |
2022-11-07 10:34 | dimmko | Note Added: 0004828 | |
2022-11-07 12:32 | frank | Summary | An error occurred during execution; please try again later. => broken storage pool link |
2022-11-07 13:43 | bruno-at-bareos | Assigned To | bruno-at-bareos => frank |
2022-11-08 15:11 | frank | Changeset attached | => bareos master e2fdc8e9 |
2022-11-08 15:11 | frank | Note Added: 0004830 | |
2022-11-08 15:11 | frank | Status | acknowledged => resolved |
2022-11-08 15:11 | frank | Resolution | open => fixed |
2022-11-09 12:05 | arogge | Relationship added | related to 0001490 |
2022-11-09 14:11 | arogge | Relationship added | related to 0001493 |