Re: Heroku console

2009-04-16 Thread Robert Sköld

I found it finally by using the trusty google, for anyone interested
this is how it's done:

irb -r sinatra_app.rb

I found it here: http://gist.github.com/74761 among with some other
tricks.

On Apr 16, 12:33 pm, Robert Sköld  wrote:
> The heroku console can be a real time saver sometimes, just like the
> rails script/console. The magic about the heroku console is that it
> also works on a non-rails application like sinatra (any rack served
> app maybe?).
>
> I wonder, is there any way of doing the same thing locally on a
> sinatra/rack application?
>
> best,
>
> /bob
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~--~~~~--~~--~--~---



Heroku console

2009-04-16 Thread Robert Sköld

The heroku console can be a real time saver sometimes, just like the
rails script/console. The magic about the heroku console is that it
also works on a non-rails application like sinatra (any rack served
app maybe?).

I wonder, is there any way of doing the same thing locally on a
sinatra/rack application?

best,

/bob
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~--~~~~--~~--~--~---



Re: Error 503 Service Unavailable

2009-04-15 Thread Robert Sköld

Yeah, i'm getting the fail whale on mine too, as well as this:

Error 503 Service Unavailable

Service Unavailable
Guru Meditation:

XID: 491352589
Varnish

And docs.heroku.com also seems to be down currently. I hope this will
stabilize soon, hasn't been very reliable these days, hopefully it's
the final touches going live before the big 1.0 :)

/bob

On Apr 15, 11:07 pm, Chap  wrote:
> I got this error a couple of times today. Pushing to git and
> redeploying solved it once, the second time it produced the fail
> whale.
>
> Error 503 Service Unavailable
>
> Service Unavailable
>
> Guru Meditation:
>
> XID: 946101578
>
> Varnish
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~--~~~~--~~--~--~---



Re: I can't access my app

2009-04-14 Thread Robert Sköld

Woo! Mine is back up now, on all the domains :)

On Apr 14, 2009, at 11:03, GreenAsJade wrote:

>
> Woo hoo, my app is back.
>
> 30 mins noticeable outage.  Not too bad.
>
> Would have been nice to have something saying "we're on it", but glad
> to be past it!
>
>
>
> On Apr 14, 5:55 pm, GreenAsJade  wrote:
>> Heh heh - I guess blog.heroku.com is a heroku app, because it too
>> fails at the moment!
>>
>> I guess we get what we pay for eh?
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~--~~~~--~~--~--~---



Re: I can't access my app

2009-04-14 Thread Robert Sköld

I can't access mine either, i get "Heroku | No such app", even though  
it was there yesterday...

And going directly to the heroku url (not my CNAME redirect) i get:


Heroku Error
Oops, we seem to have a glitch in our system.
We've been notified; you might try reloading the page in a little while.

Event ID: 04d7000aa49700043348


I'm sure they're working on it now though, since stuff seems to be  
changing atleast...

On Apr 14, 2009, at 10:21, GreenAsJade wrote:

>
> Hmm - I'm tracing mine ... it seems it is my DNS provider, not
> heroku.  Yay heroku.  Boo DNS provider...
>
> On Apr 14, 5:13 pm, GreenAsJade  wrote:
>> Doc.heroku.com is responding, it just serves the docs.
>>
>> However, neither of my heroku apps are responding.
>>
>> My users get
>>
>> 503 Service Unavailable.
>>
>> Anyone else with this?
>>
>> On Apr 14, 4:54 pm, Robert Sköld  wrote:
>>
>>> Actually, seems like all of Heroku is down:http://docs.heroku.com/
>>
>>> On Apr 14, 9:51 am, Robert Sköld  wrote:
>>
>>>> I even get development error logs in the browser:
>>
>>>> App failed to start
>>
>>>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>>>> `gem_original_require': no such file to load -- /disk1/home/slugs/
>>>> 4935_a9799a5_fa8c/mnt/config/environment (LoadError)
>>>> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ 
>>>> custom_require.rb:
>>>> 31:in `require'
>>>> from /usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/ 
>>>> rack/adapter/
>>>> rails.rb:31:in `load_application'
>>>> from /usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/ 
>>>> rack/adapter/
>>>> rails.rb:23:in `initialize'
>>>> from /home/heroku_rack/heroku.ru:15:in `new'
>>>> from /home/heroku_rack/heroku.ru:15
>>>> from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/ 
>>>> rack/builder.rb:
>>>> 29:in `instance_eval'
>>>> from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/ 
>>>> rack/builder.rb:
>>>> 29:in `initialize'
>>>> from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/ 
>>>> rack/builder.rb:
>>>> 50:in `new'
>>>>  ... 6 levels...
>>>> from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/ 
>>>> rack/builder.rb:
>>>> 29:in `instance_eval'
>>>> from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/ 
>>>> rack/builder.rb:
>>>> 29:in `initialize'
>>>> from /home/heroku_rack/heroku.ru:1:in `new'
>>>> from /home/heroku_rack/heroku.ru:1
>>
>>>> And i can't see any of my files in that stack trace so i'm assuming
>>>> it's something wrong with some update of the servers?
>>
>>>> Tried to do an restart of my app but it seems to be the same...
>>
>>>> Fixing this quickly would make a stressed developer happy :)
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~--~~~~--~~--~--~---



Re: I can't access my app

2009-04-14 Thread Robert Sköld

Actually, seems like all of Heroku is down: http://docs.heroku.com/

On Apr 14, 9:51 am, Robert Sköld  wrote:
> I even get development error logs in the browser:
>
> App failed to start
>
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require': no such file to load -- /disk1/home/slugs/
> 4935_a9799a5_fa8c/mnt/config/environment (LoadError)
>         from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `require'
>         from /usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/rack/adapter/
> rails.rb:31:in `load_application'
>         from /usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/rack/adapter/
> rails.rb:23:in `initialize'
>         from /home/heroku_rack/heroku.ru:15:in `new'
>         from /home/heroku_rack/heroku.ru:15
>         from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/builder.rb:
> 29:in `instance_eval'
>         from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/builder.rb:
> 29:in `initialize'
>         from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/builder.rb:
> 50:in `new'
>          ... 6 levels...
>         from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/builder.rb:
> 29:in `instance_eval'
>         from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/builder.rb:
> 29:in `initialize'
>         from /home/heroku_rack/heroku.ru:1:in `new'
>         from /home/heroku_rack/heroku.ru:1
>
> And i can't see any of my files in that stack trace so i'm assuming
> it's something wrong with some update of the servers?
>
> Tried to do an restart of my app but it seems to be the same...
>
> Fixing this quickly would make a stressed developer happy :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~--~~~~--~~--~--~---



Re: File uploads timeout?

2009-04-14 Thread Robert Sköld

I got it while trying to do an upload of a 20M file using WebKit (the
413 Request Entity Too Large error that is) and the Connection
Interrupted error i got while using firefox.

On Apr 14, 5:17 am, GreenAsJade  wrote:
> Dang, I've got this sort of problem now too.
>
> Users reporting timeouts on uploads to S3 via heroku of files
> larger than 10M
>
> 9M : OK
>
> 10M: not OK.
>
> Where did you get the error message: I haven't even got as far as
> finding anything
> telling me what's behind this.
>
> Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~--~~~~--~~--~--~---



I can't access my app

2009-04-14 Thread Robert Sköld

I even get development error logs in the browser:

App failed to start

/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- /disk1/home/slugs/
4935_a9799a5_fa8c/mnt/config/environment (LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/rack/adapter/
rails.rb:31:in `load_application'
from /usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/rack/adapter/
rails.rb:23:in `initialize'
from /home/heroku_rack/heroku.ru:15:in `new'
from /home/heroku_rack/heroku.ru:15
from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/builder.rb:
29:in `instance_eval'
from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/builder.rb:
29:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/builder.rb:
50:in `new'
 ... 6 levels...
from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/builder.rb:
29:in `instance_eval'
from /usr/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/builder.rb:
29:in `initialize'
from /home/heroku_rack/heroku.ru:1:in `new'
from /home/heroku_rack/heroku.ru:1

And i can't see any of my files in that stack trace so i'm assuming
it's something wrong with some update of the servers?

Tried to do an restart of my app but it seems to be the same...

Fixing this quickly would make a stressed developer happy :)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~--~~~~--~~--~--~---



Re: File uploads timeout?

2009-04-13 Thread Robert Sköld

Now that i attempted to upload again at least i got an error message,
which is more than before, but i can not seem to get it again...:

413 Request Entity Too Large

Is there anything i can do to get around this? I'm assuming it's
heroku not liking me to upload (big files) to s3 through the web
server, so should i instead, as a workaround, send it directly to s3
(using the swf upload, i saw in another thread, perhaps?)?

Because an administration tool for uploading files, without being able
to upload (large-ish) files, is not a very good administration tool.

Any other suggestions would be nice though, even though swf upload is
nice and all, as i may show the progress, i'd really prefer to be
using the regular html form upload.


Cheers!

/bob

On Apr 9, 2:36 pm, Robert Sköld  wrote:
> Thanks for you answer, i've tried changing my amazon connection to:
>
> AWS::S3::Base.establish_connection!( :access_key_id =>  
> Settings[:amazon_key], :secret_access_key =>  
> Settings[:amazon_secret] , :persistent => false )
>
> and it doesn't seem to make any difference unfortunately. It's after  
> about 30 seconds i get the "Connection Interrupted" message if it  
> makes more sense to anyone...
>
> This is too bad, and is really the only limit i've found so far in  
> heroku (if it's where the limit is) and seems unnecessary to me...
>
> On Apr 9, 2009, at 14:11, GreenAsJade wrote:
>
>
>
>
>
> > Is your connection to S3 set up as "persistent" (the default)?
>
> > I read:
>
> >    * :persistent - Whether to use a persistent connection to the
> > server. Having this on provides around a two fold performance increase
> > but for long running processes some firewalls may find the long lived
> > connection suspicious and close the connection. If you run into
> > connection errors, try setting :persistent to false. Defaults to
> > true.
>
> > On Apr 9, 6:23 pm, Robert Sköld  wrote:
> >> Hey there,
>
> >> I'm using your heroku service (not herokugarden) and when i'm trying
> >> to upload a file that's 20Mb or 10Mb through heroku to my S3 storage,
> >> using firefox, it tells me:
>
> >> "Connection Interrupted
>
> >> The connection to the server was reset while the page was loading.
> >> The network link was interrupted while negotiating a connection.
> >> Please try again."
>
> >> And nothing shows up when i run "heroku logs".
>
> >> And using safari it seems like it never finishes at all (like a  
> >> silent
> >> failure?). So i'm curious if there's some kind of upload limit on  
> >> your
> >> service, or a timeout in your web server that might occur while
> >> uploading a larger file (a file that's 4Mb seems to work fine).
> >> Because using the same application over localhost works fine.
>
> >> Anyone had a similar problem maybe? I've read something similar in
> >> another thread (http://groups.google.com/group/heroku/browse_thread/
> >> thread/a838e289afc7a927/ae476e49b0d909de?
> >> lnk=gst&q=upload#ae476e49b0d909de) but i'm not sure if it's the same.
> >> And how do you setup one of those heroku.yml config files if it is?
>
> >> Any light on this problem would be appreciated!
>
> >> I'm running a setup with Sinatra and DataMapper.
>
> >> / Robert
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~--~~~~--~~--~--~---



Re: File uploads timeout?

2009-04-09 Thread Robert Sköld

Thanks for you answer, i've tried changing my amazon connection to:

AWS::S3::Base.establish_connection!( :access_key_id =>  
Settings[:amazon_key], :secret_access_key =>  
Settings[:amazon_secret] , :persistent => false )

and it doesn't seem to make any difference unfortunately. It's after  
about 30 seconds i get the "Connection Interrupted" message if it  
makes more sense to anyone...

This is too bad, and is really the only limit i've found so far in  
heroku (if it's where the limit is) and seems unnecessary to me...

On Apr 9, 2009, at 14:11, GreenAsJade wrote:

>
> Is your connection to S3 set up as "persistent" (the default)?
>
> I read:
>
>* :persistent - Whether to use a persistent connection to the
> server. Having this on provides around a two fold performance increase
> but for long running processes some firewalls may find the long lived
> connection suspicious and close the connection. If you run into
> connection errors, try setting :persistent to false. Defaults to
> true.
>
>
>
> On Apr 9, 6:23 pm, Robert Sköld  wrote:
>> Hey there,
>>
>> I'm using your heroku service (not herokugarden) and when i'm trying
>> to upload a file that's 20Mb or 10Mb through heroku to my S3 storage,
>> using firefox, it tells me:
>>
>> "Connection Interrupted
>>
>> The connection to the server was reset while the page was loading.
>> The network link was interrupted while negotiating a connection.
>> Please try again."
>>
>> And nothing shows up when i run "heroku logs".
>>
>> And using safari it seems like it never finishes at all (like a  
>> silent
>> failure?). So i'm curious if there's some kind of upload limit on  
>> your
>> service, or a timeout in your web server that might occur while
>> uploading a larger file (a file that's 4Mb seems to work fine).
>> Because using the same application over localhost works fine.
>>
>> Anyone had a similar problem maybe? I've read something similar in
>> another thread (http://groups.google.com/group/heroku/browse_thread/
>> thread/a838e289afc7a927/ae476e49b0d909de?
>> lnk=gst&q=upload#ae476e49b0d909de) but i'm not sure if it's the same.
>> And how do you setup one of those heroku.yml config files if it is?
>>
>> Any light on this problem would be appreciated!
>>
>> I'm running a setup with Sinatra and DataMapper.
>>
>> / Robert
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~--~~~~--~~--~--~---



File uploads timeout?

2009-04-09 Thread Robert Sköld

Hey there,

I'm using your heroku service (not herokugarden) and when i'm trying
to upload a file that's 20Mb or 10Mb through heroku to my S3 storage,
using firefox, it tells me:

"Connection Interrupted

The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection.
Please try again."

And nothing shows up when i run "heroku logs".

And using safari it seems like it never finishes at all (like a silent
failure?). So i'm curious if there's some kind of upload limit on your
service, or a timeout in your web server that might occur while
uploading a larger file (a file that's 4Mb seems to work fine).
Because using the same application over localhost works fine.

Anyone had a similar problem maybe? I've read something similar in
another thread (http://groups.google.com/group/heroku/browse_thread/
thread/a838e289afc7a927/ae476e49b0d909de?
lnk=gst&q=upload#ae476e49b0d909de) but i'm not sure if it's the same.
And how do you setup one of those heroku.yml config files if it is?

Any light on this problem would be appreciated!

I'm running a setup with Sinatra and DataMapper.

/ Robert

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~--~~~~--~~--~--~---