Re: jetty SIGTERM ignored

2012-05-15 Thread Keith Rarick
On Tue, May 15, 2012 at 1:51 PM, Lev Himmelfarb  wrote:
> I'm running a web-app using Jetty on Heroku Cedar stack and I noticed that
> the app does not react to SIGTERM and does not do a graceful shutdown.

Try enabling the sigterm-all Heroku Labs feature:

$ heroku labs:enable -a  sigterm-all

Full documentation at
https://devcenter.heroku.com/articles/labs-sigterm-all

Does that solve the problem?

kr

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


jetty SIGTERM ignored

2012-05-15 Thread Lev Himmelfarb
I'm running a web-app using Jetty on Heroku Cedar stack and I noticed that 
the app does not react to SIGTERM and does not do a graceful shutdown. 
Every time I stop the process, restart it, deploy new version - whenever 
Heroku needs to stop running app I get something like this:

2012-05-15T20:41:43+00:00 heroku[web.2]: Stopping process with SIGTERM
2012-05-15T20:41:54+00:00 heroku[web.2]: Error R12 (Exit timeout) -> 
Process failed to exit within 10 seconds of SIGTERM
2012-05-15T20:41:54+00:00 heroku[web.2]: Stopping process with SIGKILL
2012-05-15T20:41:55+00:00 heroku[web.2]: Process exited with status 137
2012-05-15T20:41:55+00:00 heroku[web.2]: State changed from up to down

My Procfile looks like this:

web: java $JAVA_OPTS -Djetty.port=$PORT -jar 
target/dependency/jetty-runner.jar --lib target/dependency --config 
etc/jetty.xml etc/context.xml

And when I run it locally and send SIGTERM to it it shuts down gracefully 
no problem. Does anyone have any clue on what's going on?

Thanks,
Lev.

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Missing dependencies for Play 2.0.1

2012-05-15 Thread Magnus Andersson
Hi

That worked fine, thank you for your help and patience! I actually did some 
experimentation earlier today before I read this and got it working by 
doing exactly what you suggested. I didn't know that there was a bug 
involved in this story.

I already had a ticket opened with Heroku around this issue, so I added the 
information from your post above.

Thanks again.
/Magnus 

Den måndagen den 14:e maj 2012 kl. 22:02:17 UTC+2 skrev James Ward:
>
> You need to remove the comment from your project/build.properties file. 
>   It does work to have it there locally with sbt, but the Heroku Scala 
> Buildpack doesn't know how to handle it.  This is a bug in the 
> buildpack.  Feel free to file an issue: 
> https://github.com/heroku/heroku-buildpack-scala/issues 
>
>
> Also you need an empty line between statements in your 
> project/plugins.sbt file: 
>
> // The Typesafe repository 
> resolvers += "Typesafe repository" at 
> "http://repo.typesafe.com/typesafe/releases/"; 
>
> // Use the Play sbt plugin for Play projects 
> addSbtPlugin("play" % "sbt-plugin" % "2.0.1") 
>
>
> Let me know if that works. 
>
> -James 
>
>
> On 05/14/2012 12:53 PM, Magnus Andersson wrote: 
> > Hi, I added the dependency (pushed to github mentioned earlier as well). 
> > But now I get this instead: 
> > -> Heroku receiving push 
> > -> Scala app detected 
> > ! Error, you have defined an unsupported sbt.version in 
> > project/build.properties 
> > ! You must use a release verison of sbt, sbt.version=0.11.0 or greater 
> > ! Heroku push rejected, failed to compile Scala app 
> > 
> > Which makes me confused. 
> > 
> > The plugins.sbt now reads as follows: 
> > // The Typesafe repository 
> > resolvers += "Typesafe repository" at 
> > "http://repo.typesafe.com/typesafe/releases/"; 
> > // Use the Play sbt plugin for Play projects 
> > addSbtPlugin("play" % "sbt-plugin" % "2.0.1") 
> > 
> > build.properties reads: 
> > // Use the Play sbt plugin for Play projects 
> > sbt.version=0.11.2 
> > 
> > I tried this in a clean separate Heroku and got the the same result. So 
> > there is something wrong with my configuration, but I'm not figuring out 
> > why. Any pointers greatly appreciated. 
> > 
> > Code is located at: g...@github.com:magnusart/magnusart-blog.git 
> > 
> > /Magnus 
> > 
> > Den m�ndagen den 14:e maj 2012 kl. 14:55:22 UTC+2 skrev James Ward: 
> > 
> > It looks like you are missing the typesafe resolver in 
> > project/plugins.sbt: 
> > 
> > resolvers += "Typesafe repository" at 
> > "http://repo.typesafe.com/typesafe/releases/ 
> > " 
> > 
> > 
> > Let me know if that helps. 
> > 
> > -James 
> > 
> > 
> > On 05/14/2012 05:59 AM, Magnus Andersson wrote: 
> >  > Hi James 
> >  > Sorry for the late reply, I didn't get anything in my inbox (must 
> > have 
> >  > missed the checkbox for this group) 
> >  > 
> >  > Yes. You can view the source here: 
> >  > https://github.com/magnusart/magnusart-blog 
> >  
> >  > 
> >  > It is very strange in deed. I did have a custom buildpack (with 
> > SBT 11.0 
> >  > configured) but I removed that config as part of upgrading. Could 
> > that 
> >  > have something to do with this issue? 
> >  > 
> >  > I'll try to create a fresh heroku app and deploy to that one 
> > tonight. 
> >  > /Magnus 
> >  > 
> >  > Den fredagen den 11:e maj 2012 kl. 18:24:08 UTC+2 skrev James 
> Ward: 
> >  > 
> >  > Yes, Play 2.0.1 should work fine. I've tested it with a number of 
> >  > projects. So this is strange that it failed. 
> >  > 
> >  > Does your project/plugins.sbt include: 
> >  > addSbtPlugin("play" % "sbt-plugin" % "2.0.1") 
> >  > 
> >  > -James 
> >  > 
> >  > 
> >  > On 05/11/2012 09:36 AM, Magnus Andersson wrote: 
> >  > > Hi 
> >  > > 
> >  > > I have upgraded my application to Play 2.0.1. That works fine 
> >  > locally 
> >  > > but when I deploy to Heroku there are missing dependencies (see 
> >  > snippet 
> >  > > below). Does Heroku support Play 2.0.1 
> >  > > 
> >  > > [warn] :: 
> >  > > [warn] :: UNRESOLVED DEPENDENCIES :: 
> >  > > [warn] :: 
> >  > > [warn] :: play#play_2.9.1;2.0.1: not found 
> >  > > [warn] :: play#templates_2.9.1;2.0.1: not found 
> >  > > [warn] :: play#console_2.9.1;2.0.1: not found 
> >  > > [warn] :: 
> >  > > 
> >  > > Magnus Andersson 
> >  > > 
> >  > > -- 
> >  > > You received this message because you are subscribed to the 
> Google 
> >  > > Groups "Heroku" group. 
> >  > > 
> >  > > To unsubscribe from this group, send email to 
> >  > > heroku+unsubscr...@googlegroups.c

Re: permission denied when trying to run heroku commands

2012-05-15 Thread psychok7
you are right, its the source code i checked into git and 
users don't have access to write on it, i got myself confused for a moment.

thanks for the tip

On Tuesday, May 15, 2012 7:04:28 PM UTC+1, Keenan wrote:
>
> Hi,
>
> Not sure if I understand what you are asking.
>
> I assumed this was source code that you checked into git.
> And you want to run your script.
>
> I also assume that while web users may upload files to a temp directory or 
> something, the are not be able to modify any of your website code.
>
>
> Are you running code that any random person uploaded to your site?
> That would be a very bad security risk.
>
> The vast majority of the time you would be trying to prevent users from 
> writing to any of your scripts.
>
> —Keenan
>  
> On Tuesday, May 15, 2012 at 10:14 AM, psychok7 wrote:
>
> thanks, chmod 755 fastparqsite/manage.py fixed my problem
>
> but wont this be a security issue if i am allowing anyuser to write to my 
> file?
>
> On Tuesday, May 15, 2012 2:08:21 PM UTC+1, Keenan wrote:
>
> hi,
>
> a. may want to check the first line of manage.py
> ensure it doesn't hardcode the location of python
> #!/usr/bin/env python
>
> b. also make sure it is executable
> chmod 755 fastparqsite/manage.py
> (and commit it)
>
> c. add python to the command?
> heroku run python fastparqsite/manage.py
>
>
> Just a few ideas
>
> Good luck
>
> On Tuesday, May 15, 2012 at 7:27 AM, psychok7 wrote:
>
> hi there, up until yesterday everything seemed to work fine, but today i 
> did a commit and when i try to run "heroku run fastparqsite/manage.py shell 
> " i get a :
>
>  sh: fastparqsite/manage.py: Permission denied
>
> how can i fix this?? i can still push to my heroku without any problems
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>  
> 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_US?hl=en
>  
>
>   -- 
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>  
> 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_US?hl=en
>  
>  
> 

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: permission denied when trying to run heroku commands

2012-05-15 Thread Keenan Brock
Hi,

Not sure if I understand what you are asking.

I assumed this was source code that you checked into git.
And you want to run your script.

I also assume that while web users may upload files to a temp directory or 
something, the are not be able to modify any of your website code.


Are you running code that any random person uploaded to your site?
That would be a very bad security risk.

The vast majority of the time you would be trying to prevent users from writing 
to any of your scripts.

—Keenan  


On Tuesday, May 15, 2012 at 10:14 AM, psychok7 wrote:

> thanks, chmod 755 fastparqsite/manage.py fixed my problem
>  
> but wont this be a security issue if i am allowing anyuser to write to my 
> file?
>  
> On Tuesday, May 15, 2012 2:08:21 PM UTC+1, Keenan wrote:
> > hi,
> >  
> > a. may want to check the first line of manage.py
> > ensure it doesn't hardcode the location of python
> > #!/usr/bin/env python
> >  
> > b. also make sure it is executable
> > chmod 755 fastparqsite/manage.py
> > (and commit it)
> >  
> > c. add python to the command?
> > heroku run python fastparqsite/manage.py
> >  
> >  
> > Just a few ideas
> >  
> > Good luck  
> >  
> > On Tuesday, May 15, 2012 at 7:27 AM, psychok7 wrote:
> >  
> > > hi there, up until yesterday everything seemed to work fine, but today i 
> > > did a commit and when i try to run "heroku run fastparqsite/manage.py 
> > > shell " i get a :
> > >  
> > >  sh: fastparqsite/manage.py: Permission denied
> > >  
> > > how can i fix this?? i can still push to my heroku without any problems  
> > >  
> > > --  
> > > You received this message because you are subscribed to the Google
> > > Groups "Heroku" group.
> > >   
> > > To unsubscribe from this group, send email to
> > > heroku+unsubscr...@googlegroups.com 
> > > (mailto:heroku+unsubscr...@googlegroups.com)
> > > For more options, visit this group at
> > > http://groups.google.com/group/heroku?hl=en_US?hl=en
> >  
> --  
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>   
> To unsubscribe from this group, send email to
> heroku+unsubscr...@googlegroups.com 
> (mailto:heroku+unsubscr...@googlegroups.com)
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en_US?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Testers wanted for Heroku add-on

2012-05-15 Thread Morten Bagai
Hi there,

I think you should describe what your add-on does. That should help you attract 
users.

Best,

Morten

On May 14, 2012, at 1:29 AM, Doğa Armangil wrote:

> Hello,
> I am a software engineer, and I work for a Switzerland-based software 
> company. 
> 
> We are currently looking for testers for our Heroku add-on. This job should 
> take about 15 minutes of your time if you are already a Heroku developer, and 
> it will earn you a free 2-year unlimited Qworum Service Provider license.
> 
> We have only 9 tester slots left, so please contact us if you are interested: 
> http://www.qworum.com/about .
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>  
> 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_US?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: permission denied when trying to run heroku commands

2012-05-15 Thread psychok7
thanks, chmod 755 fastparqsite/manage.py fixed my problem

but wont this be a security issue if i am allowing anyuser to write to my 
file?

On Tuesday, May 15, 2012 2:08:21 PM UTC+1, Keenan wrote:
>
> hi,
>
> a. may want to check the first line of manage.py
> ensure it doesn't hardcode the location of python
> #!/usr/bin/env python
>
> b. also make sure it is executable
> chmod 755 fastparqsite/manage.py
> (and commit it)
>
> c. add python to the command?
> heroku run python fastparqsite/manage.py
>
>
> Just a few ideas
>
> Good luck
>  
> On Tuesday, May 15, 2012 at 7:27 AM, psychok7 wrote:
>
> hi there, up until yesterday everything seemed to work fine, but today i 
> did a commit and when i try to run "heroku run fastparqsite/manage.py shell 
> " i get a :
>
>  sh: fastparqsite/manage.py: Permission denied
>
> how can i fix this?? i can still push to my heroku without any problems
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>  
> 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_US?hl=en
>  
>  
>  

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Imminent Death of the Heroku Google Group

2012-05-15 Thread Thufir
On Wed, 25 Apr 2012 13:22:29 -0500, Sara Dornsife wrote:


> For those reasons, we feel its best to consolidate to support and
> Stackoverflow. Sara


Is there a particular reason for not integrating the mailing list into 
support.heroku.com?  This would have the advantage of putting everything 
under one roof, which definitely makes sense, while allowing, to pick a 
random feature, NNTP access.

Possibly Google even has some sort of ready-made thing so that the web 
interface to the group can show as support.heroku.com?  



-Thufir


-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: permission denied when trying to run heroku commands

2012-05-15 Thread Keenan Brock
hi,

a. may want to check the first line of manage.py
ensure it doesn't hardcode the location of python
#!/usr/bin/env python

b. also make sure it is executable
chmod 755 fastparqsite/manage.py
(and commit it)

c. add python to the command?
heroku run python fastparqsite/manage.py


Just a few ideas

Good luck 


On Tuesday, May 15, 2012 at 7:27 AM, psychok7 wrote:

> hi there, up until yesterday everything seemed to work fine, but today i did 
> a commit and when i try to run "heroku run fastparqsite/manage.py shell " i 
> get a :
> 
>  sh: fastparqsite/manage.py: Permission denied
> 
> how can i fix this?? i can still push to my heroku without any problems 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>  
> To unsubscribe from this group, send email to
> heroku+unsubscr...@googlegroups.com 
> (mailto:heroku+unsubscr...@googlegroups.com)
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en_US?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Imminent Death of the Heroku Google Group

2012-05-15 Thread Thufir
On Wed, 25 Apr 2012 12:33:11 -0500, Jeff Schmitz wrote:


> Stack Overflow is completely different from a mailing list.  Here
> discussion is encouraged.  There, it is penalized and can be edited or
> deleted.

Stackoverflow doesn't have an NNTP gateway and is not geared towards 
discussion.  The founder himself has answered meta questions on this 
acknowledging that SO is not geared towards discussions and is strictly a 
Q&A site.


-Thufir

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


permission denied when trying to run heroku commands

2012-05-15 Thread psychok7
hi there, up until yesterday everything seemed to work fine, but today i 
did a commit and when i try to run "heroku run fastparqsite/manage.py shell 
" i get a :

 sh: fastparqsite/manage.py: Permission denied

how can i fix this?? i can still push to my heroku without any problems

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en