#59 ✓hold

server shuts down when fails to open browser

Reported by Novbert | January 24th, 2014 @ 08:19 PM

I'm using piggydb standalone on multiple computers sycing the db files with Google Drive. I love it so far but recently I moved to a new computer and observed an issue :

  • When the launcher fails to open localhost in the default browser, a window pops up saying: An unexpected error occured, and if I click okay, it shuts down the app.

I'm not sure what is going wrong. My default browser is Chrome and all my chrome settings are synced with my laptop, and piggydb didn't have a problem launching there. But on my desktop, this error message appeared. Sounds like a little annoyance but actually it took me about two hours to figure out that if I don't click okay on the error message and open localhost manually in Chrome - it works just fine. The source of the problem was especially hard to identify as the logfile said such helpful things as:

ERROR 2014/01/24 20:17:04 java.io.IOException: Failed to open http://localhost:8080. Error message: Access is denied.

java.io.IOException: Failed to open http://localhost:8080. Error message: Access is denied.

So I ended up manually editing my hostfile before I realized that I can modify the launcher.properties file to prevent the app from attempting to open my browser.

I'm not sure how this bug should be handled, maybe the user should be presented a popup at the first launch asking if he wants the app to automaticall open a browser, notifying that this may not work.

Other than that: I love piggydb, so keep up the good work!

Comments and changes to this ticket

  • marubinotto

    marubinotto January 29th, 2014 @ 08:11 AM

    • State changed from “new” to “hold”

    Hi Novbert,

    Thank you for your report. It is very helpful.

    So the problem is that some environments don't permit an application to launch the default browser. As you mentioned, it can be worked around by editing the launcher.properties file, but it needs some work not to confuse users.

  • Novbert

    Novbert January 29th, 2014 @ 08:17 AM

    Hi marubinotto,

    One addition I forgot to mention: It seems to be something Chrome-related. Automatic browser-launch worked even on my desktop, but only if I've set Internet Explorer to be the default browser.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Piggydb is a Web notebook application that provides you with a platform to build your knowledge personally or collaboratively.

Shared Ticket Bins

People watching this ticket