question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Concurrent file serving is broken?

See original GitHub issue

I’ve filled this here but as it seems bug report of that repository is not that active and my previous bug didn’t get any response I feel I should report it here also,

(rest is copied from https://github.com/jupyter/jupyter_server/issues/11, feel free close one of the files)


I am experiencing a very weird issue with jupyter that possibly is a regression. Here is its steps to reproduce:

Create a notebook, put this code on first cell to create test images:

from PIL import Image
from PIL import ImageDraw

for i in range(1, 21):
    img = Image.new('RGBA', (10, 10), 255)
    draw = ImageDraw.Draw(img)
    draw.text((0, 0), str(i), fill="black")
    img.save(str(i) + '.png')

Put this on the next cell as markdown:

<img src="1.png" width="30">
<img src="2.png" width="30">
<img src="3.png" width="30">
<img src="4.png" width="30">
<img src="5.png" width="30">
<img src="6.png" width="30">
<img src="7.png" width="30">
<img src="8.png" width="30">
<img src="9.png" width="30">
<img src="10.png" width="30">
<img src="11.png" width="30">
<img src="12.png" width="30">
<img src="13.png" width="30">
<img src="14.png" width="30">
<img src="15.png" width="30">
<img src="17.png" width="30">
<img src="18.png" width="30">
<img src="19.png" width="30">
<img src="20.png" width="30">

Actual: I see such result this, differently every time:

screen shot 2017-10-08 at 4 59 12 pm

Expected: To images loaded correctly.

My system: jupyter --version: 4.3.0 macOS High Sierra

I can reproduce this very consistently on my setup, Is jupyter server somehow fails on serving concurrent requests or something else is wrong?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:25 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
minrkcommented, Oct 10, 2017

Figured it out. The way AuthenticatedFilesHandler was being called involved mixing Handler instances in a not-entirely-safe way. I’ve switched how the files handler is registered so that only the CM’s handler is registered and fully initialized, rather than trying to handoff from one handler to another.

0reactions
takluyvercommented, Oct 11, 2017

Thanks for making a reproducible example to demonstrate the bug!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Strip file and write the chunks concurrently to server through ...
My client divides a file into multiple amount of chunks (128mb each), then it will upload the chunks to multiple servers concurrently using ......
Read more >
Concurrent uploads completely broken since V2 api.
It appears that uploading multiple different files to the same dropbox at the same time, is completely broken in the V2 api.
Read more >
Concurrent NFS access - Server Fault
Say that one client is updating/overwriting a file on a NFS server, and a process on the server is reading that same file...
Read more >
Pro 2.1.2 concurrent licenses not working - Esri Community
Hi, I have ArcGIS Pro 2.1.2 and concurrent use licenses in two license ... Update the SERVER entry to replace "ANY" to the...
Read more >
Uploading Files Sequentially and Concurrently - Aurigma
Sometimes the upload process can be broken because of some external reasons (for example, physical connection problems, timeout, etc). If the single request ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found