[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-08 Thread MidGe
No, the problem does not go away.

Not having been able to play with web2py yet, awaiting success of a working 
install, I am not sure or confident that the changes I made are being run. I 
think so, but I will take some experience with web2py on my turf of choice 
before I will get there, I guess.  :)


Thanks for the help

Michel


[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-08 Thread Cliff
Does the problem go away if you store sessions in the database?

If so, it would tend to indicate a file permissions problem.

Put this line in db.py right after the line instantiating DAL:

session.connect(request, response, db, masterapp=None)

On Oct 8, 2:19 am, MidGe  wrote:
> "Unfortunately, Python deployment remains tricky, especially on shared
> hosting."
>
> Interesting. pbreit, as Python is pretty much new for me too.  I find this
> tethering on the edge of an abyss a very strange stance
> in software development deployment and very different from anything I have
> ever done before in the field!  Amazing perhaps but bizarre for sure, I'd
> call it...  :)


[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread MidGe


"Unfortunately, Python deployment remains tricky, especially on shared 
hosting."


Interesting. pbreit, as Python is pretty much new for me too.  I find this 
tethering on the edge of an abyss a very strange stance 
in software development deployment and very different from anything I have 
ever done before in the field!  Amazing perhaps but bizarre for sure, I'd 
call it...  :)


[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread MidGe
Anthony,

As I have said before on this forum on this an another topic trying to solve 
this problem.  The problem is dependent on having webfaction as a host, 
web2py as application framework and using uwsgi. That is the only problem I 
am trying to solve. I have no problem with using Apache instead of 
nginx-uwsgi, django instead of web2py or fluxflex or local instead of 
webfaction. 


Grr!  I am getting really frustrated with this  Sorry...

Again, thank you for at least trying to help me.  :)

Michel


[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread Anthony
Well, maybe try a different host and/or different web server.

On Saturday, October 8, 2011 12:37:30 AM UTC-4, MidGe wrote:
>
> Anthony,
>
> I do not find it very re-assuring that I  have to get to that level of 
> understanding of the framework in order to be able to complete an evaluation 
> of the product.
> I am not sure if I can really afford the amount of time and effort for an 
> evaluation stage only, with no more to proceed with.  It looks a bit too 
> ambitious for an old man!  :)
>
>
> Thanks anyway
>
> Michel
>


[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread pbreit
I understand your concern but will note that in a year and a half, Ive never 
seen this problem mentioned.

It sounds like either your sessions are not getting written to disk. As 
Anthony suggested, double check /sessions to make sure you see some files 
there. Try deleting all of them and then accessing admin again. Make sure 
that directory is writable and/or owned by the correct owner (root, 
www-data, etc).

The other thing is if cookies are getting blocked for some reason. Could be 
a Firefox security setting blocking mixed security cookies or third party 
cookies.

Unfortunately, Python deployment remains tricky, especially on shared 
hosting.




[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread MidGe
Anthony,

I do not find it very re-assuring that I  have to get to that level of 
understanding of the framework in order to be able to complete an evaluation 
of the product.
I am not sure if I can really afford the amount of time and effort for an 
evaluation stage only, with no more to proceed with.  It looks a bit too 
ambitious for an old man!  :)


Thanks anyway

Michel


[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread Anthony
To help isolate the problem, maybe start looking at whether the session 
cookies is getting passed back and forth, if the session file is being 
saved/updated in the /sessions folder, and if the /private/hosts.deny file 
is being created. You might also do some debugging in 
/admin/models/access.py.

On Friday, October 7, 2011 9:18:34 PM UTC-4, MidGe wrote:
>
> More and more bizarre...
>
> In the last post I mentioned the difference in behavior between Firefox and 
> chromium.  Well that difference is only occurring when using webfaction.  On 
> a local server, it all works perfectly fine, chromium or not!?
>
> I am getting a bit desperate here.  I am a newbie when it comes to 
> webfaction/web2py/uwsgi and  I can't ascertain where the problem is? 
> Webfaction, web2py, uwsgi or ?
>
>   
>
>
>

[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread MidGe
More and more bizarre...

In the last post I mentioned the difference in behavior between Firefox and 
chromium.  Well that difference is only occurring when using webfaction.  On 
a local server, it all works perfectly fine, chromium or not!?

I am getting a bit desperate here.  I am a newbie when it comes to 
webfaction/web2py/uwsgi and  I can't ascertain where the problem is? 
Webfaction, web2py, uwsgi or ?

  




[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-07 Thread MidGe
I thought the problem was related only to webfaction web2py or uwsgi, but 
now, it seems that there is another issue.

I am not getting the same behavior in different browsers!  

Chromium, gives me a double logo and a right panel log in, but Firefox 
doesn't, it simply shows back the original login page, allowing you to log 
as many times as you wish but never allowing you get anywhere at all except 
at another, and another,and another ... log in 
screen(Kafkaesque, if you ask me) .

What else may help resolve this, or, at least know whether the problem is 
with webfaction, web2py, uwsgi or whatever!?  Frustration mounting!

Thanks


[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-06 Thread MidGe
OK, I did a complete re download and re-install of the system.

Right from the first log in in the admin GUI, using the password given on 
first execution of the rocket server to create the parameters file, I get 
the double logo as soon as I enter the admin area. See what it looks like 
here: http://i.imgur.com/7LZGP.png  

Note: this is web2py out of the box.  No change at all.  I know the 
system recognizes the password because if I enter a wrong one it gives back 
a message to that effect, and if I give the right one it doesn't it just 
presents the login screen again although I appear logged in.

Has anyone got any ideas?  


[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-05 Thread MidGe
Yes, Massimo, as Anthony said, the problem seems to be webfaction/uwsgi 
related.

[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-05 Thread monotasker
This is exactly the same problem I'm having with one project hosted on 
Fluxflex. Oddly, the same application code treats logins fine in one 
fluxflex project, while logins don't persist on another one. I don't know 
enough about the fluxflex server architecture to know how this would work 
(And they're not returning my support emails.)


[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-05 Thread Anthony
On Wednesday, October 5, 2011 9:43:01 AM UTC-4, Massimo Di Pierro wrote:
>
> First time I see this. Looks like it logs you in and then when it does 
> the ajax call it thinks you are not logged in. What browser? Does it 
> work fine locally or is the problem only with webfaction?
>

He has the problem with all logins, not just admin, and it seems specific to 
uwsgi on Webfaction (mentioned apache was OK):  
https://groups.google.com/d/msg/web2py/N3mHxZpSh5A/l1Ck9mW6QfYJ



[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-05 Thread Massimo Di Pierro
First time I see this. Looks like it logs you in and then when it does
the ajax call it thinks you are not logged in. What browser? Does it
work fine locally or is the problem only with webfaction?

On Oct 5, 7:36 am, MidGe  wrote:
> Ah ah,
>
> But then it is very likely everything else odd I am experiencing is related.
>
> What next? Why does the admin home page thinks I am not logged in?
>
> I would dearly love to fix this and start trying using web2py and see what
> it really is all about! Being a newbie at web2py I don't quite have the
> knowledge to do that yet! :)


[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-05 Thread MidGe
Ah ah,

But then it is very likely everything else odd I am experiencing is related.

What next? Why does the admin home page thinks I am not logged in?

I would dearly love to fix this and start trying using web2py and see what 
it really is all about! Being a newbie at web2py I don't quite have the 
knowledge to do that yet! :)


[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-05 Thread Anthony
Looks like it's related to your more general problem with logins not lasting 
on Webfaction with 
uwsgi: https://groups.google.com/d/msg/web2py/N3mHxZpSh5A/l1Ck9mW6QfYJ.

That part of the admin home page involves an Ajax call to check whether the 
web2py version is current. Because it thinks you're not logged in, the Ajax 
call ends up getting redirected to the login page, so the login page gets 
inserted in the div that's supposed to include the version check. The image 
in the upper left just looks like a fixed positioning of the logo that's 
supposed to appear on the login page (i.e., it's floating outside the div).

Anthony

On Wednesday, October 5, 2011 2:46:40 AM UTC-4, MidGe wrote:
>
> hiya pbreit,
>
> Here ( http://i.imgur.com/7LZGP.png)  is a screenshot in all its glory and 
> yes, it is a brand new install.
>
> Is this normal?
>


[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-04 Thread MidGe
hiya pbreit,

Here ( http://i.imgur.com/7LZGP.png)  is a screenshot in all its glory and 
yes, it is a brand new install.

Is this normal?


[web2py] Re: Why showing a log in option inside of the admin interface

2011-10-04 Thread pbreit
Something is wrong. Are you running a new install? Are you able to show a 
screen shot?