Re: [Moin-user] Need help migrating to WSGI
Hi, I've filed the bug on http://moinmo.in/MoinMoinBugs/1.9AuthProblemWithNonRootWiki About the last questions: - the problem exists also on Firefox, and also from the server itself. - I cleaned up all the cookies on the client before any testing. I'll post my configuration on the bug page, trying to make it as simple as possible. Hoping to make it easily reproducible. Thanks to all, Nico. 2010/1/8 R.Bauer rb.p...@gmail.com: Please check if there are any old cookies stored for your wiki. if so please delete them and try again. Reimar -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user
Re: [Moin-user] Need help migrating to WSGI
I've found that the problem exist also on a single wiki, if it's not mapped on the virtual root of the web server So, the same single wiki works fine if I have on apache2.conf : WSGIScriptAlias / /wiki/moin.wsgi but doesn't cache login authorization for more than 1 page if I have : WSGIScriptAlias /myonlywiki /wiki/moin.wsgi I'm ready to file a bug if you wish (or are unable to reproduce the problem). Best regards, Nico. 2010/1/8 Nico Zanferrari nicoz...@gmail.com: No, I've already tried the fix : from farmconfig import FarmConfig class Config(FarmConfig): ... from MoinMoin.web.session import FileSessionService session_service = FileSessionService() but it didn't work... From my point of view, this problems is different. The authentication is not valid anymore whatever I do after the first page - even on the same wiki! On the server, I can see the session files but on the client there is no cookie at all. Thank you, Nico. 2010/1/7 Thomas Waldmann tw-pub...@gmx.de: I have exactly the same problem (authentication valid just for the fist page, with a fresh 1.9 WSGI setup on Ubuntu 9.10). I've noticed that in this case the session cookie is not wrote at all on the client (tested with Chrome) - even with cookie_lifetime = (1, 12) parameter in farmconfig.py . Logging does not seem to help Is it maybe related to this fix? http://hg.moinmo.in/moin/1.9/rev/437558fff184 There is also a bug report on the wiki with a workaround without moin code patching: http://moinmo.in/MoinMoinBugs/1.9WikiFarmSessionDirHandlingBroken -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user
Re: [Moin-user] Need help migrating to WSGI
Could you check please: a) whether moin sends a cookie to your browser in the login response? you need some tool like livehttpheaders for firefox or some network packet inspection tool. b) in case it does and the cookie vanishes then mysteriously: could you check whether your server time is correct and your client time is in sync with it (thus also correct)? In case your client is too much ahead in time relative to your server, it might think that the cookie lifetime is over and just deletes the cookie. c) look into the cookie: is the cookie's path the same as your wiki's path? -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user
Re: [Moin-user] Need help migrating to WSGI
Nico Zanferrari schrieb: Hello, I have exactly the same problem (authentication valid just for the fist page, with a fresh 1.9 WSGI setup on Ubuntu 9.10). I've noticed that in this case the session cookie is not wrote at all on the client (tested with Chrome) - even with cookie_lifetime = (1, 12) parameter in farmconfig.py . Logging does not seem to help BTW: you can have different WSGIScriptAlias into the Apache config, but pointing to the same .wsgi file! i.e.: WSGIScriptAlias /wiki1 /path/to/share/moin/server/moin_wiki.wsgi WSGIScriptAlias /wiki2 /path/to/share/moin/server/moin_wiki.wsgi WSGIScriptAlias /wiki3 /path/to/share/moin/server/moin_wiki.wsgi Best regards, Nico. Can you try if it works for one of your wikis if you setup it without a farmconfig configuration? cheers Reimar -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user
Re: [Moin-user] Need help migrating to WSGI
Please check if there are any old cookies stored for your wiki. if so please delete them and try again. Reimar -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user
Re: [Moin-user] Need help migrating to WSGI
I have exactly the same problem (authentication valid just for the fist page, with a fresh 1.9 WSGI setup on Ubuntu 9.10). I've noticed that in this case the session cookie is not wrote at all on the client (tested with Chrome) - even with cookie_lifetime = (1, 12) parameter in farmconfig.py . Logging does not seem to help Is it maybe related to this fix? http://hg.moinmo.in/moin/1.9/rev/437558fff184 There is also a bug report on the wiki with a workaround without moin code patching: http://moinmo.in/MoinMoinBugs/1.9WikiFarmSessionDirHandlingBroken -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user
Re: [Moin-user] Need help migrating to WSGI
No, I've already tried the fix : from farmconfig import FarmConfig class Config(FarmConfig): ... from MoinMoin.web.session import FileSessionService session_service = FileSessionService() but it didn't work... From my point of view, this problems is different. The authentication is not valid anymore whatever I do after the first page - even on the same wiki! On the server, I can see the session files but on the client there is no cookie at all. Thank you, Nico. 2010/1/7 Thomas Waldmann tw-pub...@gmx.de: I have exactly the same problem (authentication valid just for the fist page, with a fresh 1.9 WSGI setup on Ubuntu 9.10). I've noticed that in this case the session cookie is not wrote at all on the client (tested with Chrome) - even with cookie_lifetime = (1, 12) parameter in farmconfig.py . Logging does not seem to help Is it maybe related to this fix? http://hg.moinmo.in/moin/1.9/rev/437558fff184 There is also a bug report on the wiki with a workaround without moin code patching: http://moinmo.in/MoinMoinBugs/1.9WikiFarmSessionDirHandlingBroken -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user
Re: [Moin-user] Need help migrating to WSGI
m...@heavy.ch wrote: well, I running a farmwiki with different subdomains (like wiki1.example.com), and I have only one WSGIScriptAlias and one central moin.wsgi. the key is that you include the correct sys.path.insert to your farmconfig dir, in your wsgi file, like: sys.path.insert(0, '/var/www/moinmoin/config') Yes, I understand that; I was trying for a configuration *without* using different host names. I looked in on the IRC channel but it was pretty silent; I may try again next week. Thanks for your responses! -- Mark Bradford, NCAR/EOL/CDS/CTM m...@ucar.edu (303) 497-8169 -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user
Re: [Moin-user] Need help migrating to WSGI
Mark, I have my wiki farm configured identically to how you are describing yours. http://wiki.example.com/project1 http://wiki.example.com/project2 Etc. I can give you my farmconfig example, etc., but I won't be able to get that to you until Monday (I'm out of town for the holidays), if you can wait that long. - Rick sent from iPhone On Dec 24, 2009, at 10:55 AM, Mark Bradford m...@ucar.edu wrote: m...@heavy.ch wrote: well, I running a farmwiki with different subdomains (like wiki1.example.com), and I have only one WSGIScriptAlias and one central moin.wsgi. the key is that you include the correct sys.path.insert to your farmconfig dir, in your wsgi file, like: sys.path.insert(0, '/var/www/moinmoin/config') Yes, I understand that; I was trying for a configuration *without* using different host names. I looked in on the IRC channel but it was pretty silent; I may try again next week. Thanks for your responses! -- Mark Bradford, NCAR/EOL/CDS/CTM m...@ucar.edu (303) 497-8169 --- --- --- - This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user
Re: [Moin-user] Need help migrating to WSGI
m...@heavy.ch wrote: Am Mittwoch, den 23.12.2009, 12:12 -0700 schrieb Mark Bradford: My next attempt was to put WSGIScriptAlias /wiki1 /path/to/share/moin/server/moin_wiki1.wsgi WSGIScriptAlias /wiki2 /path/to/share/moin/server/moin_wiki2.wsgi WSGIScriptAlias /wiki3 /path/to/share/moin/server/moin_wiki3.wsgi only one is enough! If you do not want separate the wikis by hostname (like wiki1.example.com), but do seperate those with a directory name (like example.com/wiki), you can use WSGIScriptAliasMatch. See here some configuration hints: http://code.google.com/p/modwsgi/wiki/IntegrationWithMoinMoin Marcle, thanks for your reply! I spotted that IntegrationWithMoinMoin page, actually, but it seems to be doing something very similar to what I'm doing above -- it just looks like a single line because it's doing regular expression matching. You still need a new something.wsgi script for each wiki instance. I'll try grabbing the code from Mercurial, thank you! -- Mark Bradford, NCAR/EOL/CDS/CTM m...@ucar.edu (303) 497-8169 -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user