Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No end_time for any captured request #213

Closed
hashemian opened this issue Sep 20, 2017 · 4 comments
Closed

No end_time for any captured request #213

hashemian opened this issue Sep 20, 2017 · 4 comments

Comments

@hashemian
Copy link

I had setup silk on my dev server and it was working as expected. But recently none of the requests shown there has any time information. They all look like this link.

I checked the silk_request table, and none of the queries have end_time column filled. Any idea how I can figure out what's going on?

Thanks a lot

@leewardbound
Copy link

I have the same issue when I enable SILK_PYTHON_PROFILER_BINARY; disabling the binary profiler fixes the timing issue (but obviously also disables binary profiling, which I need working)

@hashemian
Copy link
Author

You are right. When I set the SILK_PYTHON_PROFILER_BINARY to False it works again, but not otherwise.

@danielbradburn
Copy link
Contributor

I think this is related to silk being unable to store the binary profile files. I normally put this in my settings.py to ensure that the .prof files can be correctly saved:

SILKY_PYTHON_PROFILER_BINARY = True
SILKY_PYTHON_PROFILER_RESULT_PATH = os.path.join(BASE_DIR, '.profiles')
with contextlib.suppress(OSError):
    os.makedirs(SILKY_PYTHON_PROFILER_RESULT_PATH)

It would be nice if silk warned you when unable to save the files, however perhaps you can try this to work around the issue?

@hashemian
Copy link
Author

You are right. The problem was that Silk could not access the path I had specified. Permission problem. It would be very helpful if somehow we could get a more helpful error message, like HTTP 500.

Thanks a lot.

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

No branches or pull requests

3 participants