Closed kintaro1981 closed 1 year ago
am I the only one with this issue?
anyone have any ideas how to fix this?
We would need to see the syntax error itself to understand the issue. It may be due to some unexpected chars in some variable, that broke the JS syntax. For instance, on Chrome, when you have an error, you can expand the stack trace and access see the related code by clicking on the link that is shown here.
Hello,
Same error with same config :
The entire error :
The error is occurred on the underline :
The base.min.js file is located in public/lib/ folder.
What is displayed when you click on the link located on the right (VM316:21) ?
Below the information :
Hi @AnthoDingo
Can you check whether you have any SQL / PHP errors from GLPI logs?
Best regards
Hi @stonebuzz
The log from php_error.log file.
[2023-08-16 08:21:52] glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "last_taskjobstate" in glpi\10.0.9\plugins\glpiinventory\inc\deploypackage.class.php at line 1582
Backtrace :
...\glpiinventory\inc\deploypackage.class.php:1097 PluginGlpiinventoryDeployPackage->showPackageForMe()
src\CommonGLPI.php:691 PluginGlpiinventoryDeployPackage::displayTabContentForItem()
ajax\common.tabs.php:117 CommonGLPI::displayStandardTab()
[2023-08-16 08:21:52] glpiphplog.WARNING: *** PHP Warning (2): Trying to access array offset on value of type null in glpi\10.0.9\plugins\glpiinventory\inc\deploypackage.class.php at line 1582
Backtrace :
...\glpiinventory\inc\deploypackage.class.php:1097 PluginGlpiinventoryDeployPackage->showPackageForMe()
src\CommonGLPI.php:691 PluginGlpiinventoryDeployPackage::displayTabContentForItem()
ajax\common.tabs.php:117 CommonGLPI::displayStandardTab()
I can't reproduce it. I don't know if you're familiar with development, but the problem must be here.
File : deploypackage.class.php
Function : getPackageForMe
(L1726)
The last lines of this function should set the last_taskjobstate
key (which is missing in the rest of the process)
Can you try to debug ?
@stonebuzz the function getMyDepoyPackagesState return an empty array
$last_job_state => array(0) { }
The query return nothing
$taskjobstates = current($pfTaskJobState->find(
['plugin_glpiinventory_taskjobs_id' => $taskjobs_id,
'agents_id' => $agents_id],
['id DESC'],
1
));
In prod, this is what I have:
$taskjobs_id = 906 $agents_id = 167
On my sql instance, when I put my resquest, nothing is found :
Is it possible that on the task creation, the taskjobstate insert has an error ?
have you prepared the task ?
Hi @stonebuzz ,
I push the package from the Computer element, on the tab "Packages Deployment" ( http://myserver/front/computer.form.php?id=808 => tab "Packages Deployment")
can you run "Force Start" from task and retry
in my case, even if I click the button "Force start" in the [deploy on demand] task the job is not getting prepared. In Job executions all is 0.
after clicking on Force start
Can you show me related package (all tab)
Best regards
can you try #393
@stonebuzz in my case #393 fixed the issue thank you
Describe the bug
On demand deploy packages are are not working.
To reproduce
Expected behavior
I expect that:
Instead:
I can only see that the package is listed in grey "waiting" in the deploy package tab
if I try to click on the + to get more info I can't - firefox console say this:
The agent on the computer starts, it runs scheduled tasks but not the on demand ones
The ondemand task is not present in the Task/Group tab
the ondemand task is correctly added to the Tasks page (/plugins/glpiinventory/front/task.php)
In the agent log I can see the other deploy tasks running ok but not the on-demand one.
Operating system
Windows
GLPI Agent version
1.4, Other (See additional context below)
GLPI version
10.0.9
GLPIInventory plugin
1.2.3
Additional context
fusion agent 2.5.2