Invalid Run Id After running drupal page using XHProf
Asked Answered
R

3

6

I have installed the Drupal XHProf 7.x-1.0-beta2 module and enabled it on the Modules page of my site.

I have turned enabled the use of the module at Configuration -> Development -> XHProf settings (/admin/config/development/xhprof) by checking ON " Enable profiling of all page views and drush requests. "

Now what?

When I visit a page and click "XHProf output" at the bottom of the page, I get this error:

" Run #51b789ae8cea0: Invalid Run Id = 51b789ae8cea0 "

And the list of the "Top 100 functions" is totally empty. I am a bit lost as to what I should be seeing or where to go from here. Any help greatly appreciated.

please refer error screenshot

enter image description here

Rabid answered 15/9, 2017 at 11:24 Comment(1)
Maybe you can find some help there pixelite.co.nz/article/…Taphole
R
0

Go to your backend folder structure.create a folder named xhprof in your server, inside tmp folder in your server like 10.20.4.123/tmp

on clicking "XHProf output" at the bottom of the page.it will display output.

Rabid answered 19/10, 2017 at 11:51 Comment(0)
P
0

Looking at the code that returns this error it's a file exists check. I changed $run_desc to output the full filename vs the run id.

if (!file_exists($file_name)) { 
  xhprof_error("Could not find file $file_name"); 
  $run_desc = "Invalid Run Id = $file_name"; 
  return null; 
} 

In my case for a run id of 617064cfe0f71 it was looking for a filename formatted like

617064cfe0f71.xhprof.xhprof

The filename is derived from this function

private function file_name($run_id, $type) {
  $file = "$run_id.$type." . $this->suffix;
  ...
}
Poundal answered 20/10, 2021 at 20:24 Comment(0)
W
-1

It's a permission issue,just set chmod 777 for your xhprof output directory.

Winifred answered 26/2, 2019 at 10:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.