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

Problem running client/server webcam demo #24

Closed
mkhademi opened this issue Aug 4, 2016 · 11 comments
Closed

Problem running client/server webcam demo #24

mkhademi opened this issue Aug 4, 2016 · 11 comments

Comments

@mkhademi
Copy link

mkhademi commented Aug 4, 2016

Hi @jcjohnson,

I followed your instruction to run the client/server webcam demo. I was able to generate my self-signed signature on my server. When I point my client browser to the following address with SERVER_URL replaced by my server ip-address, i.e.:
https://cs.stanford.edu/people/jcjohns/densecap/demo/web-client.html?server_url=SERVER_URL

I see the following:
image but none of the buttons work! It seems they are disabled

Even if I point my client browser directly to my server ip-address, it does not show me anything to let the browser manually know that the server is trusted. I tried with chrome, firefox and ie but neither of them worked.

I appreciate your help!

@mkhademi mkhademi changed the title Problem running client/server demo Problem running client/server webcam demo Aug 4, 2016
@jcjohnson
Copy link
Owner

A couple of things to debug:

(1) In the terminal tab that is running the server, do you see the requests going through to the server? Are there any error messages there?

(2) Are there any errors in the Javascript console?

@mkhademi
Copy link
Author

mkhademi commented Aug 4, 2016

Thanks Justin for your prompt answer. On the server side, I do not see any errors. As you mentioned in the instruction, it seems both of them are running for ever. Here are the outputs:

$th webcam/daemon.lua
loading checkpoint from data/models/densecap/densecap-pretrained-vgg16.t7
done loading checkpoint

$python webcam/server.py
--does not show any output


On the client JS console: it says: Failed to load, error connection closed, 404 (Not Found). Probably because of the SSL authentication. But I do not know where to fix it!

Btw, the ip-address I am using for my URL server works fine in case of visualization of random images assuming I replace "localhost" with that in the following address:
http://localhost:8181/view_results.html

Thanks!

@jcjohnson
Copy link
Owner

Did you by some chance start the web server using python -m SimpleHTTPServer 8181? You should be starting it by just running python webserver/server.py; the latter should be listening on port 5000 instead of port 8181, and should not be able to serve files such as view_results.html.

@mkhademi
Copy link
Author

mkhademi commented Aug 5, 2016

No, I only used: python webserver/server.py

From the previous comment, I just wanted to tell you that although the error shows 404, my ip-address works fine when I use it with this command: http://server-ip:8181/view_results.html which means the server ip is correct and accessible from my client machine.

So basically the only thing I can think of is SSL. For some reason I cannot see the page you showed in the instruction to manually set the server is trusted and because of that it gives the "fail to load" error.

@mkhademi
Copy link
Author

mkhademi commented Aug 9, 2016

Hi @jcjohnson, I played a little bit more with that and here is the error that I get from the server side:

$python webcam/server.py

WARNING:tornado.general:SSL Error on 9 ('10.101.139.48', 63041): [SSL: HTTP_REQUEST] http request (_ssl.c:590)

Does that ring a bell?

Thanks!

@mkhademi
Copy link
Author

mkhademi commented Aug 9, 2016

It works now. The problem was that I was not including the port number in the server URL. After including 5000, it worked!

@jcjohnson
Copy link
Owner

Awesome, glad to hear it!

Sorry I couldn't be of more help - I don't really know what I'm doing
when it comes to web dev / SSL / etc.

On Tue, Aug 9, 2016 at 3:53 PM, Maryam Khademi [email protected]
wrote:

It works now. The problem was that I was not including the port number in
the server URL. After including 5000, it worked!


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#24 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACl7-nPkurJlxx4bt0hmKeoEwVy3RkDCks5qeQT5gaJpZM4JdFfY
.

@mkhademi
Copy link
Author

mkhademi commented Aug 9, 2016

No worries! This is an awesome work and the instruction to get the code up and running was pretty straight forward. Thanks for sharing it!

@mkhademi mkhademi closed this as completed Aug 9, 2016
@sampathchanda
Copy link

@mkhademi Can you please elaborate on, how you fixed the issue by including the port number in the server URL ?
I am also getting the same error message as you mentioned.

@sampathchanda
Copy link

I got this working. To make things clear for another person trying this out, following fixed the issue.
As mentioned in the steps, point out your browser at client side to the server url with port as below, first:
https://<server-ip>:5000/

After accepting the certificate, you can use this server url along with the port number in place of the SERVER_URL, in the following url:
https://cs.stanford.edu/people/jcjohns/densecap/demo/web-client.html?server_url=SERVER_URL

@kilmarnock
Copy link

I have a problem I could nail down:
https://localhost:5000/ shows The DenseCap server seems to be running!

https://cs.stanford.edu/people/jcjohns/densecap/demo/web-client.html?server_url=localhost:5000
gives
WARNING:tornado.general:error on read: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1754)
on the sever side.

According to https://stackoverflow.com/questions/37356579/python-ssl-server-reporting-tlsv1-alert-unknown-ca, it is a problem of the server accepting the browser certificate? Anyone seen this? I would install a ca, but I do not which ca is responsible now.

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

4 participants