quirkey / vegas

Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps.
http://code.quirkey.com/vegas
MIT License
183 stars 24 forks source link

"Couldn't get a file descriptor referring to the console" on Ubuntu #15

Open matthurne opened 12 years ago

matthurne commented 12 years ago

On Ubuntu, I see the following when starting up genghis (which uses vegas):

user@host:~$ genghisapp 
[2012-09-26 16:08:58 -0400] Starting 'genghisapp'...
[2012-09-26 16:08:58 -0400] trying port 5678...
Couldn't get a file descriptor referring to the console

I see the same last line when starting up humongous which I suspect also uses vegas.

Some quick web searches leads me to believe that the command being used to attempt to launch the default web browser with the URL of the newly started application isn't quite right for Ubuntu. This is further evidenced by the fact that the browser launch never happens.

The author of genghis suggested that this is likely an issue with vegas.

Also see bobthecow/genghis#34

anxiousmodernman commented 12 years ago

+1. I'm having this same issue. It looks like genghis actually executes, because I did this the second time after getting the error @mhurne described.

$ genghisapp -L

[2012-09-30 14:22:27 -0400] Starting 'genghisapp'...
[2012-09-30 14:22:27 -0400] 'genghisapp' is already running at http://0.0.0.0:5678

I went to that address and genghis was running.

matthurne commented 12 years ago

I did fail to mention that the application does run properly despite the message on startup.

bndn commented 11 years ago

More informations here : https://github.com/markbates/cover_me/issues/55 The solution is to call xdg-open [url] (for Debian/Ubuntu…) if open (for Mac) is not available.

priyolahiri commented 11 years ago

A simple fix is to add -L to the command line when starting genghisapp. The error goes away. But using genghis with supervisor does not work as it shows exited too quickly, but is actually running.