Bridgewater / scala-notebook

Interactive Scala REPL in a browser
Other
742 stars 155 forks source link

I couldn't access WebPage #9

Open badend opened 11 years ago

badend commented 11 years ago

Hello,

I cloned by git and run sbt command project server, run.

So server was successfully started, i tried to open page localhost:8899 but Unauthorized returned

How could solve it?

OriolLopezMassaguer commented 11 years ago

The same here

copumpkin commented 11 years ago

Hmm, that's strange. It seems to work here, still. Do you see anything interesting in the server log at the sbt prompt? Can you give details on your set-up/OS/versions/etc.?

KenCoder commented 11 years ago

Running the server should end with Scala launching Firefox with a URL of the form http://127.0.0.1:8899/login/a_long_hex_string

Perhaps Firefox is not launching? Are you typing the URL manually?

On Wed, Apr 3, 2013 at 8:10 PM, Daniel Peebles notifications@github.comwrote:

Hmm, that's strange. It seems to work here, still. Do you see anything interesting in the server log at the sbt prompt? Can you give details on your set-up/OS/versions/etc.?

— Reply to this email directly or view it on GitHubhttps://github.com/Bridgewater/scala-notebook/issues/9#issuecomment-15873335 .

joshmarcus commented 11 years ago

A great feature would be the ability to connect to a remote instance: I would like to use the notebook on remote servers. Perhaps there could be an authentication endpoint of some kind?

On Apr 3, 2013, at 8:49 PM, KenCoder notifications@github.com wrote:

Running the server should end with Scala launching Firefox with a URL of the form http://127.0.0.1:8899/login/a_long_hex_string

Perhaps Firefox is not launching? Are you typing the URL manually?

On Wed, Apr 3, 2013 at 8:10 PM, Daniel Peebles notifications@github.comwrote:

Hmm, that's strange. It seems to work here, still. Do you see anything interesting in the server log at the sbt prompt? Can you give details on your set-up/OS/versions/etc.?

— Reply to this email directly or view it on GitHubhttps://github.com/Bridgewater/scala-notebook/issues/9#issuecomment-15873335 .

— Reply to this email directly or view it on GitHub.

badend commented 11 years ago

type "project server and run"

the message is following next [info] No sbt-js sources requiring compilation [info] No sbt-js sources requiring compilation [info] Running com.bwater.notebook.Server log4j:WARN No appenders could be found for logger (com.bwater.notebook.server.ScalaNotebookConfig$). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Embedded server running on port 8899. Press any key to stop.

and then i should run firefox or chrome and type http://localhost:8899

according to your message web browser shoud be launched by sbt(or scala note book server?)

i don't know how can i do it..

KenCoder commented 11 years ago

That wouldn't be too hard - we currently authenticate using a shared secret, but I could easily imagine plugging in any kind of authentication. What's useful to you - username/password or pre-shared secret?

On Wed, Apr 3, 2013 at 8:59 PM, Josh Marcus notifications@github.comwrote:

A great feature would be the ability to connect to a remote instance: I would like to use the notebook on remote servers. Perhaps there could be an authentication endpoint of some kind?

On Apr 3, 2013, at 8:49 PM, KenCoder notifications@github.com wrote:

Running the server should end with Scala launching Firefox with a URL of the form http://127.0.0.1:8899/login/a_long_hex_string

Perhaps Firefox is not launching? Are you typing the URL manually?

On Wed, Apr 3, 2013 at 8:10 PM, Daniel Peebles notifications@github.comwrote:

Hmm, that's strange. It seems to work here, still. Do you see anything interesting in the server log at the sbt prompt? Can you give details on your set-up/OS/versions/etc.?

— Reply to this email directly or view it on GitHub< https://github.com/Bridgewater/scala-notebook/issues/9#issuecomment-15873335>

.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/Bridgewater/scala-notebook/issues/9#issuecomment-15874755 .

badend commented 11 years ago

i use ubuntu 12.10, scala version is 2.9.2 , ..

joshmarcus commented 11 years ago

That's great to hear. I think username and password would be the most immediately useful to me.

On Apr 3, 2013, at 9:21 PM, KenCoder notifications@github.com wrote:

That wouldn't be too hard - we currently authenticate using a shared secret, but I could easily imagine plugging in any kind of authentication. What's useful to you - username/password or pre-shared secret?

On Wed, Apr 3, 2013 at 8:59 PM, Josh Marcus notifications@github.comwrote:

A great feature would be the ability to connect to a remote instance: I would like to use the notebook on remote servers. Perhaps there could be an authentication endpoint of some kind?

On Apr 3, 2013, at 8:49 PM, KenCoder notifications@github.com wrote:

Running the server should end with Scala launching Firefox with a URL of the form http://127.0.0.1:8899/login/a_long_hex_string

Perhaps Firefox is not launching? Are you typing the URL manually?

On Wed, Apr 3, 2013 at 8:10 PM, Daniel Peebles notifications@github.comwrote:

Hmm, that's strange. It seems to work here, still. Do you see anything interesting in the server log at the sbt prompt? Can you give details on your set-up/OS/versions/etc.?

— Reply to this email directly or view it on GitHub< https://github.com/Bridgewater/scala-notebook/issues/9#issuecomment-15873335>

.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/Bridgewater/scala-notebook/issues/9#issuecomment-15874755 .

— Reply to this email directly or view it on GitHub.

KenCoder commented 11 years ago

Looking at the code, unfiltered.util.Browser.open must be failing. It returns an Option[Exception], which we are ignoring. I just committed a change to display the URL and the exception (if any). Can you pull latest and try again?

On Wed, Apr 3, 2013 at 9:21 PM, badend notifications@github.com wrote:

i use ubuntu 12.10, scala version is 2.9.2 , ..

— Reply to this email directly or view it on GitHubhttps://github.com/Bridgewater/scala-notebook/issues/9#issuecomment-15875314 .

badend commented 11 years ago

I open page successfully but it was with --disable_security option...,

ok your committed source i will do it soon

badend commented 11 years ago

Error Message is Launching browswer on http://127.0.0.1:8899/login/5FCB51F27A4A394126DD114C38673F12C938DA6C Cannot open browser to http://127.0.0.1:8899/login/5FCB51F27A4A394126DD114C38673F12C938DA6C java.lang.reflect.InvocationTargetException

but i can open that URL Directly

KenCoder commented 11 years ago

Ah, forgot the inner exception. Just pushed again with better logging.

On Wed, Apr 3, 2013 at 9:41 PM, badend notifications@github.com wrote:

Error Message is Launching browswer on http://127.0.0.1:8899/login/5FCB51F27A4A394126DD114C38673F12C938DA6C Cannot open browser to http://127.0.0.1:8899/login/5FCB51F27A4A394126DD114C38673F12C938DA6C java.lang.reflect.InvocationTargetException

— Reply to this email directly or view it on GitHubhttps://github.com/Bridgewater/scala-notebook/issues/9#issuecomment-15875771 .