Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Invalid run id from command line #51

Open
trasher opened this issue Mar 14, 2014 · 2 comments
Open

Invalid run id from command line #51

trasher opened this issue Mar 14, 2014 · 2 comments

Comments

@trasher
Copy link

trasher commented Mar 14, 2014

Hello,

First of all, thank you very much for that great bundle! :)

It works perfectly in dev mode from the debugging bar, and I also got the URL in headers when in prod mode.

When I run it in console, with the "option" or the "on" config values, I get a link, but always with a wrong id :(

In my app/config.yml file:

jns_xhprof:
    location_web:    http://localhost/xhprof
    enabled:         true
    command: "option"
    command_option_name: "profile"

An example command and result:

php app/console doctrine:schema:validate --env=dev --profile 
XHProf starting run

---
[Mapping]  OK - The mapping files are correct.
[Database] OK - The database schema is in sync with the mapping files.

---
XHProf run link http://localhost/xhprof?run=5322d47c49104&source=Symfony

And when I follow the link:

Run Report
    Run #5322d47c49104: Invalid Run Id = 5322d47c49104

Did I miss something?

@mathielen
Copy link
Contributor

I ran into this issue, too. Default xhprof_html doesn't use a file suffix, but the xhprof_html that the bundle uses does (.xhprof)
You should link your http://localhost/xhprof to the xhprof_html directory of the bundle (/vendor/facebook/xhprof/xhprof_html) or configure the xhprof_html for using the file suffix .xhprof.

@trasher
Copy link
Author

trasher commented Nov 4, 2014

That does not seems to solve my issue.

Either with my system xhprof_html, or the one in vendor; the runs list provided at http://localhost/xhprof is always empty when called from command line, but not from the web profiler bar; I'm still not ablo to get it working as expected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants