[web2py] Re: web2py 1.99.1 OUT

2011-09-26 Thread robsan
BTW I used the update feature in the admin interface, it gave out some
error and then I restarted uwsgi, but normally it should generate
welcome.w2p, right?

On Sep 23, 4:28 pm, robsan  wrote:
> OK I figured it out: no welcome.w2p.
>
> On Sep 23, 4:07 pm, robsan  wrote:
>
>
>
>
>
>
>
> > I'm having trouble with the new version, namely it cannot create a new
> > app (returned msg is "unable to create application "test" (it may
> > exist already)"). However if I upload a test app created on my desktop
> > (same web2py version) it works ok.
>
> > I am following pbreit'shttps://bitbucket.org/pbreit/web2py-automation
> > and have recreated the web2py folder from scratch (and even restarted
> > the server).


[web2py] Re: web2py 1.99.1 OUT

2011-09-23 Thread robsan
OK I figured it out: no welcome.w2p.

On Sep 23, 4:07 pm, robsan  wrote:
> I'm having trouble with the new version, namely it cannot create a new
> app (returned msg is "unable to create application "test" (it may
> exist already)"). However if I upload a test app created on my desktop
> (same web2py version) it works ok.
>
> I am following pbreit'shttps://bitbucket.org/pbreit/web2py-automation
> and have recreated the web2py folder from scratch (and even restarted
> the server).


[web2py] Re: web2py 1.99.1 OUT

2011-09-23 Thread robsan
I'm having trouble with the new version, namely it cannot create a new
app (returned msg is "unable to create application "test" (it may
exist already)"). However if I upload a test app created on my desktop
(same web2py version) it works ok.

I am following pbreit's https://bitbucket.org/pbreit/web2py-automation
and have recreated the web2py folder from scratch (and even restarted
the server).


[web2py] Re: Memory problems on Webfaction

2011-08-25 Thread robsan
This is great Vasile! Will try it and report back.

On Aug 24, 4:55 pm, Vasile Ermicioi  wrote:
> [web2py]
> wgethttp://www.web2py.com/examples/static/web2py_src.zip
> unzip web2py_src.zip
> python2.7 web2py.py #seems needed before using it
>
> [uwsgi]
> wgethttp://projects.unbit.it/downloads/uwsgi-0.9.8.3.tar.gz
> tar xvzf uwsgi-0.9.8.3.tar.gz
> cd uwsgi-0.9.8.3
> /home/yourname/bin/python2.7 uwsgiconfig.py --build
> mv uwsgi /home/yourname/bin
> uwsgi --protocol=http --socket 127.0.0.1:your_custom_port_number
> --pythonpath /home/yourname/web2py --module wsgihandler -d
> /home/yourname/tmp/uwsgi.log -t 20 --async 24 --ugreen --limit-as 64 -r
> --no-orphans -M -p 1 --touch-reload /home/yourname/tmp/uwsgireload.txt
> --reload-on-rss 50
> touch /home/yourname/tmp/uwsgireload.txt
>
> [utils]
> ps -u fermer -o rss,command
>
> notes/comments:
>
>    -  --protocol=http means that you don't need another webserver
>    - it is still nginx + uwsgi because you have webfaction nginx instance in
>    front
>    - I use "touch /home/yourname/tmp/uwsgireload.txt" to reload uwsgi
>    server, it is useful when I change routes.py file, or adding some modules 
> in
>    site-packages folder
>    - -M -p 1  will generate 2 processes, a master process and a slave one
>
> an example of website powered by web2py+uwsgi+webfaction(nginx) 
> ishttp://fermer.md/(hosted in Amsterdam)
>
> for Johann: you need to check uwsgi documentation to configure itself these
> paramaters
>  --async 24    - number of green threads
>  --ugreen --limit-as 64  - memory limit per process !!!
>  -p 1    - number of processes, total memory that is allowed to be consumed
> is = number of processes * limit-as
>
> for Massimo:
> - Robert is working on uwsgi - pypy integration, please make web2py pypy
> compatible,
> - please add my website (fermer.md) to web2py powered websites and please
> add me to web2py professional website, or tell me what to do to achieve that
> thank you :)


[web2py] Re: Memory problems on Webfaction

2011-08-24 Thread robsan
I would say so, with 2 uwsgi and 2 nginx instances the total is
~24Mb. :)

On Aug 24, 11:11 am, Johann Spies  wrote:
> On 24 August 2011 11:51, robsan  wrote:
>
> > Check out this thread
> >https://groups.google.com/group/web2py/browse_thread/thread/24b6d1b3a...
>
> > I followed Vasile's indications and it's working great!
>
> Thanks robsan. Did it make a significant difference to the memory
> consumption on Webfaction?
>
> Regards
> Johann
> --
>  May grace and peace be yours in abundance through the full knowledge of God
> and of Jesus our Lord!  His divine power has given us everything we need for
> life and godliness through the full knowledge of the one who called us by
> his own glory and excellence.
>                                                     2 Pet. 1:2b,3a


[web2py] Re: Memory problems on Webfaction

2011-08-24 Thread robsan
Check out this thread 
https://groups.google.com/group/web2py/browse_thread/thread/24b6d1b3a51eebb6

I followed Vasile's indications and it's working great!


On Aug 23, 8:42 pm, Johann Spies  wrote:
> On 23 August 2011 21:36, Gour-Gadadhara Dasa  wrote
>
> > On Tue, 23 Aug 2011 21:21:50 +0200
> > Johann Spies 
> > wrote:
>
> > > I experience memory usage problems on Webfaction from time to time.
> > > Even after doubling the initial configuration from 80Mb to 160Mb I
> > > get messages like intermittently this from Webfaction:
>
> > Install your own instance of nginx, Cherokee...and save memory.
>
> > I cannot move from Webfaction in this case.  We have bought a 2 year
>
> contract.
>
> I have read mentions of nginx on this list but know about nothing about it.
> Can this be done on Webfaction?  How?
>
> Regards
> Johann
>
> --
>  May grace and peace be yours in abundance through the full knowledge of God
> and of Jesus our Lord!  His divine power has given us everything we need for
> life and godliness through the full knowledge of the one who called us by
> his own glory and excellence.
>                                                     2 Pet. 1:2b,3a


[web2py] Re: how to upgrade Web2py in Webfaction?

2011-06-02 Thread robsan
I have the basic package (no extra mem) and the builtin upgrade works
well. Maybe you got some other stuff running?

On Jun 2, 2:08 am, JorgeH  wrote:
> It didnt for me
>
> It went out of memory and the web2py process was killed automatically by the
> server


[web2py] Re: webfaction python2.5 -> python2.6

2011-05-07 Thread robsan
Thanks Vasile, I will give it a go.


[web2py] Re: webfaction python2.5 -> python2.6

2011-05-06 Thread robsan
I'd appreciate if you could share your insight on that configuration,
as I'm currently using Apache and would like to slim down the setup.

On May 6, 5:29 pm, Vasile Ermicioi  wrote:
> I also use webfaction : python2.7 + uwsgi + nginx
>
> if you like and need help with that configuration...


[web2py] Re: DEMO_MODE

2010-10-13 Thread robsan
Just seen the other thread... waiting for new version ;)

On Oct 13, 3:07 pm, robsan  wrote:
> Hi,
>
> Testing db administration on 1.87.2 (windows), I got the error below:
>
> "NameError: name 'DEMO_MODE' is not defined"
>
> In regards to appadmin.py:
>
> "if DEMO_MODE:
>
>     response.flash = T('disabled in demo mode')
>     redirect(URL('default','site'))"
>
> Which is solved by defining it, but never came across this behavior
> before and it's not mentioned anywhere in the docs or this group?


[web2py] DEMO_MODE

2010-10-13 Thread robsan
Hi,

Testing db administration on 1.87.2 (windows), I got the error below:

"NameError: name 'DEMO_MODE' is not defined"


In regards to appadmin.py:

"if DEMO_MODE:

response.flash = T('disabled in demo mode')
redirect(URL('default','site'))"

Which is solved by defining it, but never came across this behavior
before and it's not mentioned anywhere in the docs or this group?


[web2py:38339] Re: Error reading from pickle

2010-01-05 Thread robsan
BTW, my code runs well standalone. Only on web2py I get this error.
Could it be a locking issue? I'm running web2py with passenger wsgi
and tried to kill the process but still get the error.

Any help would be appreciated...

Thanks,
Roberto

On Dec 30 2009, 4:52 pm, robsan  wrote:
> Hi all,
>
> I'm usinghttp://www.crummy.com/software/ScrapeNFeed/to scrape a
> webpage and produce a RSS feed. ScrapeNFeed uses a pickle file to
> store information/history about this feed. The code below works fine
> on the 1st run when the pickle file does not exist, but after it gets
> created I get the following error:
>
> "File "/home/robsan/run/lib/python2.6/pickle.py", line 1126, in
> find_class
>     klass = getattr(mod, name)
> AttributeError: 'module' object has no attribute 'SSDFeed'"
>
> Code on controllers/default.py:
>
> def feed():
>     class SSDFeed(ScrapeNFeed.ScrapedFeed):
>
>         def HTML2RSS(self, headers, body):
>         [...]
>
>     SSDFeed.load()
>
> Any ideas, please?
>
> Roberto

--

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




[web2py:38069] Error reading from pickle

2009-12-30 Thread robsan
Hi all,

I'm using http://www.crummy.com/software/ScrapeNFeed/ to scrape a
webpage and produce a RSS feed. ScrapeNFeed uses a pickle file to
store information/history about this feed. The code below works fine
on the 1st run when the pickle file does not exist, but after it gets
created I get the following error:

"File "/home/robsan/run/lib/python2.6/pickle.py", line 1126, in
find_class
klass = getattr(mod, name)
AttributeError: 'module' object has no attribute 'SSDFeed'"


Code on controllers/default.py:

def feed():
class SSDFeed(ScrapeNFeed.ScrapedFeed):

def HTML2RSS(self, headers, body):
[...]

SSDFeed.load()


Any ideas, please?

Roberto

--

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




[web2py:13268] Re: Suggestion for web2py hosting

2008-12-10 Thread robsan


Checkout my tutorial for Dreamhost at:

http://wiki.dreamhost.com/Web2py


On Dec 7, 3:45 pm, carlo <[EMAIL PROTECTED]> wrote:
> I need to open a new domain where some web2py apps will be hosted and
> I am trying to browse the various offers.
>
> At the moment I get:
>
> WebFaction: I see we2py not officially supported but many of you seem
> to get web2py running good.
>
> Alwaysdata: newcomer, anyone can comment his experience? They look
> committed to offer a good web2py service, but nearly everything is in
> French.
>
> Starnix?
>
> Any others?
>
> Thank you,
>
> carlo

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---