Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
./run No such file or directory
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Zak  
View profile  
 More options Sep 30 2012, 1:41 pm
From: Zak <zakdan...@gmail.com>
Date: Sun, 30 Sep 2012 10:41:32 -0700 (PDT)
Local: Sun, Sep 30 2012 1:41 pm
Subject: ./run No such file or directory

I'm trying to run a Pyramid app with Heroku's Foreman (via the these
instructions from the Pyramid docs<http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/dep...>).
I've already used these lines to try creating run:

python setup.py develop
python runapp.py

But it keeps giving me this error when I try to foreman start:

zak$ sudo foreman start
12:27:59 web.1     | started with pid 1308
12:27:59 web.1     | /usr/local/foreman/bin/runner: line 36:
/Users/MyProject/run: No such file or directory
12:27:59 web.1     | process terminated
12:27:59 system    | sending SIGTERM to all processes

this is the contents of my procfile:

web: ./run

I've already created a runapp.py. Why is it not able to located run?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Flack  
View profile  
 More options Sep 30 2012, 8:42 pm
From: Flack <brian.ca...@gmail.com>
Date: Sun, 30 Sep 2012 17:42:09 -0700 (PDT)
Local: Sun, Sep 30 2012 8:42 pm
Subject: Re: ./run No such file or directory

I use the following template for running pyramid apps on heroku.
https://github.com/bcajes/pyramid-heroku-template


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zak  
View profile  
 More options Sep 30 2012, 9:58 pm
From: Zak <zakdan...@gmail.com>
Date: Sun, 30 Sep 2012 18:58:28 -0700 (PDT)
Local: Sun, Sep 30 2012 9:58 pm
Subject: Re: ./run No such file or directory

I'm pretty sure my runapp.py is correct...but for some reason, foreman is
not detecting the run command. Do you know what determines the run command?
What is that line from the procfile pointing to exactly?

Also a quick correction:

12:27:59 web.1     | /usr/local/foreman/bin/runner: line 36:
/Users/zak/MyProject/run: No such file or directory


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Flack  
View profile  
 More options Sep 30 2012, 10:03 pm
From: Flack <brian.ca...@gmail.com>
Date: Sun, 30 Sep 2012 19:03:53 -0700 (PDT)
Local: Sun, Sep 30 2012 10:03 pm
Subject: Re: ./run No such file or directory

You should be calling your runapp.py.  run isn't supposed to be command.
eg. my proc file:
web: ./run.py


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Whit Morriss  
View profile  
 More options Oct 1 2012, 11:16 am
From: Whit Morriss <w...@surveymonkey.com>
Date: Mon, 1 Oct 2012 15:16:11 +0000
Local: Mon, Oct 1 2012 11:16 am
Subject: Re: ./run No such file or directory

On Sep 30, 2012, at 12:41 PM, Zak <zakdan...@gmail.com<mailto:zakdan...@gmail.com>>

 wrote:

I'm trying to run a Pyramid app with Heroku's Foreman (via the these instructions from the Pyramid docs<http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/dep...>). I've already used these lines to try creating run:

python setup.py develop
python runapp.py

But it keeps giving me this error when I try to foreman start:

zak$ sudo foreman start
12:27:59 web.1     | started with pid 1308
12:27:59 web.1     | /usr/local/foreman/bin/runner: line 36: /Users/MyProject/run: No such file or directory
12:27:59 web.1     | process terminated
12:27:59 system    | sending SIGTERM to all processes

this is the contents of my procfile:

web: ./run

I've already created a runapp.py. Why is it not able to located run?

try this:

web: python runapp.py

iirc, it's looking for something on the path (and you have created runapp.py not a script called run)

-w


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dougzor  
View profile  
 More options Oct 1 2012, 8:17 pm
From: dougzor <doug.mor...@gmail.com>
Date: Mon, 1 Oct 2012 17:17:19 -0700 (PDT)
Local: Mon, Oct 1 2012 8:17 pm
Subject: Re: ./run No such file or directory

Hey Zak,

I wrote the most updated version of those Heroku docs. Are you trying to
run your stack locally or have it deploy successfully to Heroku? Generally
I just use the standard "paster serve development.ini" or "pserve
development.ini", etc. when testing locally.

Doug


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zak  
View profile  
 More options Oct 4 2012, 3:20 pm
From: Zak <zakdan...@gmail.com>
Date: Thu, 4 Oct 2012 12:20:32 -0700 (PDT)
Local: Thurs, Oct 4 2012 3:20 pm
Subject: Re: ./run No such file or directory

Doug -

I'm trying to run the stack locally with foreman. I'm not using "paster
serve development.ini" because I'm using Gunicorn and it takes arguments
that can't be set exclusively in an INI file. In the Pyramid tutorial for
Heroku, the example says to create a procfile with the line "web: ./run" This
is the source of my confusion. What is "run" exactly? How am I suppose to
generate that command? web: python runapp.py seems to work because I do
actually have a runapp.py in the app directory, but that is different than
the example in the tutorial.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zak  
View profile  
 More options Oct 4 2012, 3:21 pm
From: Zak <zakdan...@gmail.com>
Date: Thu, 4 Oct 2012 12:21:34 -0700 (PDT)
Local: Thurs, Oct 4 2012 3:21 pm
Subject: Re: ./run No such file or directory

> Then why does the tutorial instruct a "web: ./run" procfile?

 try this:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zak  
View profile  
 More options Oct 4 2012, 3:22 pm
From: Zak <zakdan...@gmail.com>
Date: Thu, 4 Oct 2012 12:22:42 -0700 (PDT)
Local: Thurs, Oct 4 2012 3:22 pm
Subject: Re: ./run No such file or directory

correction: "I'm not using "paster serve development.ini" because I'm using
Gunicorn and it takes arguments that can't be set exclusively in an INI
file *to my knowledge*"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dougzor  
View profile  
 More options Oct 5 2012, 5:04 pm
From: dougzor <doug.mor...@gmail.com>
Date: Fri, 5 Oct 2012 14:04:54 -0700 (PDT)
Local: Fri, Oct 5 2012 5:04 pm
Subject: Re: ./run No such file or directory

The "run" file is just an executable shell file (it's created in the step
after creating the Procfile). You can create it by doing something like:
"vim run" and then add the following lines to that file:

#!/bin/bash
python setup.py develop
python runapp.py

 After saving that file, run "chmod +x run" to make that file executable. I
hope that helps!

P.S. I'm not an expert with gunicorn, so I'll yield to other's expertise on
that.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Huang  
View profile  
 More options Oct 7 2012, 4:45 am
From: Mark Huang <zhengha...@gmail.com>
Date: Sun, 7 Oct 2012 01:45:52 -0700 (PDT)
Local: Sun, Oct 7 2012 4:45 am
Subject: Re: ./run No such file or directory

Hi Zak,

Like you, I also tried to use a run shell script when deploying my Pyramid
aplication locally on my own server (not Heroku).   Maybe I can shed some
light on the run script.  

The run script is just a shell script (in my case a BASH script) to run
your pyramid app.  I also use Gunicorn.  In my project root directory I had
a config.py file to store the gunicorn initialization variables.  It's
something like:

import multiprocessing

workers = multiprocessing.cpu_count() * 2 +1
timeout = 60
daemon = True
pidfile = "/srv/web/run/test/test.pid"
errorlog = "/srv/web/log/test/test.log"

Then in my run script I have:

#!/bin/bash
gunicorn_paster --config=<path_to_config.py_file>
/srv/web/prod/test/production.ini

I'm pretty sure this will be similar when used under Heroku.  

I hope this helps your use case.  

Regards,
Mark Huang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »