[web2py] Re: Admin disabled because too many invalid login attempts

2015-04-15 Thread Massimo Di Pierro
In admin/models/access.py deny_file = os.path.join(request.folder, 'private', 'hosts.deny') allowed_number_of_attempts = 5 expiration_failed_logins = 3600 You can remove/edit the file private/hosts.deny, or increase the number of attempts On Friday, 10 April 2015 23:00:33 UTC-5, Shreyas Pand

[web2py] Re: Admin disabled because too many invalid login attempts

2015-04-10 Thread Shreyas Pandya
same problem here, Anybody? On Sunday, 22 September 2013 22:27:51 UTC+5:30, Pascal wrote: > > Hello mate, > > I forgot the password of the https online admin page of my Web2py > application and I tried several password. > After few attempt it disable the Admin. > Please can you let me know h

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-05 Thread Niphlod
the strange thing is that while I don't have access to your setup, web2py.py -a password -p 8000 definitely checks for a parameters_8000.py file, while in your case doesn't. Even anyserver.py -s gunicorn -p 8000 checks for a parameters_8000.py file. Are you totally sure that you aren't copy-p

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-05 Thread Gour
On Sat, 5 Oct 2013 05:05:26 -0700 (PDT) Niphlod wrote: > then let's make things even easier web2py expects a > parameters_xxx.py file that is extracted from > request.env.server_port OK, now it's even more clear. > make a test page that does > > def test(): > return dict(a=request.env

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-05 Thread Niphlod
then let's make things even easier web2py expects a parameters_xxx.py file that is extracted from request.env.server_port make a test page that does def test(): return dict(a=request.env.server_port) and see where web2py is told to listen on :D BTW, I didn't mean that you **need**

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-05 Thread Gour
On Fri, 4 Oct 2013 14:04:09 -0700 (PDT) Niphlod wrote: Hello Niphlod, > > > > > as often, you're making things much more complicated then they > > > really are. > > > > I don't understand? > > > > if you read the code of admin, you'll quickly realize. First of all I thought that in the above

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Niphlod
On Friday, October 4, 2013 9:30:17 PM UTC+2, Gour wrote: > > On Fri, 4 Oct 2013 11:53:22 -0700 (PDT) > Niphlod > wrote: > > > as often, you're making things much more complicated then they really > > are. > > I don't understand? > if you read the code of admin, you'll quickly realize. >

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Gour
On Fri, 4 Oct 2013 14:41:30 -0400 Richard Vézina wrote: > This may help! Thank you. I'll try to learn something about nginx from it, but let me say that I do NOT have access to the setup of nginx at the front-end and therefore not sure, how much I can do via custom *.conf file. Of course, I cou

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Gour
On Fri, 4 Oct 2013 11:53:22 -0700 (PDT) Niphlod wrote: > as often, you're making things much more complicated then they really > are. I don't understand? > web2py "calculates" what password_portnumber.py to use seeing where > the server listens to. It has (and can't have) knowledge of any > pr

Re: [web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Richard Vézina
:) On Fri, Oct 4, 2013 at 2:53 PM, Niphlod wrote: > as often, you're making things much more complicated then they really are. > web2py "calculates" what password_portnumber.py to use seeing where the > server listens to. It has (and can't have) knowledge of any proxies in > between. > So, even

Re: [web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Niphlod
as often, you're making things much more complicated then they really are. web2py "calculates" what password_portnumber.py to use seeing where the server listens to. It has (and can't have) knowledge of any proxies in between. So, even if your site is reachable from the outside world on the port

Re: [web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Richard Vézina
This may help! server { listen 80; return 301 https://appname.domain.med$request_uri; # http://wiki.nginx.org/Pitfalls#Taxing_Rewrites charset utf-8; server_name $hostname; root /var/www; access_log /var/log/nginx/yoursite.access.log;

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Gour
On Fri, 4 Oct 2013 10:45:13 -0700 (PDT) LightDot wrote: > Couple of things I don't understand - are you using anyserver.py or > not? No. > Are you using nginx in front of gunicorn, or..? Yes, nginx is used as reverse proxy. > Please post your relevant config files and full startup lines. He

Re: [web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Richard Vézina
In this script you can see how is web2py started by uwsgi in emperor mode : https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh the python web2py.py in included... Hope it could help you figure it out. I remember that with unicorn I start redmine with a redmin

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread LightDot
Couple of things I don't understand - are you using anyserver.py or not? Are you using nginx in front of gunicorn, or..? Please post your relevant config files and full startup lines. Regards On Friday, October 4, 2013 7:23:27 PM UTC+2, Gour wrote: > > On Fri, 4 Oct 2013 13:10:48 -0400 > Richa

Re: [web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Richard Vézina
Not sure about that, but I think that specifying a port maybe mean that it is runned in local only... Richard On Fri, Oct 4, 2013 at 1:23 PM, Gour wrote: > On Fri, 4 Oct 2013 13:10:48 -0400 > Richard Vézina > wrote: > > > You miss the -a "password" parameter I think! > > > > You pass the same

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Gour
On Fri, 4 Oct 2013 13:10:48 -0400 Richard Vézina wrote: > You miss the -a "password" parameter I think! > > You pass the same password that is encrypted in you parameters_443.py > file... > > It may still miss some parameter to specify you want to run the > server in https mode. I know about '

[web2py] Re: "admin disabled because unable to access password file"

2012-07-21 Thread Alec Taylor
Ah, got it to work. Forgot to run web2py directly initially over SSH with python2.7 ./web2py.py -p -a All working now :D On Sat, Jul 21, 2012 at 8:56 PM, Alec Taylor wrote: > Recently got my site hosted remotely (on WebFaction), but I'm getting this > error for some reason. > > After doing a

Re: [web2py] Re: Admin Disabled

2012-02-29 Thread Bruce Wade
Thanks that worked. My web2py process is starting with my logged in user. I did this to prevent having to su all the time, and I can do git pull and changes from a single user account. Anyway with my setup you don't need: sudo -u user_name instead you just run: python -c "from gluon.widget impor

Re: [web2py] Re: Admin Disabled

2012-02-28 Thread Bruce Wade
Yes I have ssh. The site is on an amazon ubuntu instance. If my python process is running with a user other then www-data do I just change the first part of the command? sudo -u user_name python -c "from gluon main import save_password; save_password(raw_input('admin password:'), 443)" On Tue, F

[web2py] Re: Admin Disabled

2012-02-28 Thread Massimo Di Pierro
Do you have ssh access? You better do. cd under web2py/ then do: sudo -u www-data python -c "from gluon.main import save_password; save_password(raw_input('admin password: '),443)" replace 443 with the port you use for admin. Should be 443 for https On Feb 28, 7:15 pm, Bruce Wade wrote: > For s