From ryanlee at zepheira.com Wed Jun 1 19:09:57 2011 From: ryanlee at zepheira.com (Ryan Lee) Date: Wed, 01 Jun 2011 16:09:57 -0700 Subject: [Moin-user] Multiple authentication pass through Message-ID: <4DE6C6C5.2020709@zepheira.com> Hi, I currently have a MoinMoin auth list comprised of a primary LDAP server, backup mirror LDAP to the primary, and MoinAuth. While the fact that the primary and backup were out of sync was very helpfully exposed by the fact that Moin used both (so users who hadn't made it to the mirror couldn't log in even after a successful auth against the primary), this isn't how we want things to run normally. The way I understand the semantics of the auth list, the first successful authenticator should take precedence over any that follow. I see in MoinMoin 1.9.3 that MoinMoin.auth.MoinAuth.login contains this snippet near its start: # simply continue if something else already logged in successfully if user_obj and user_obj.valid: return ContinueLogin(user_obj) It is perhaps not so straightforward that every authenticator should do the same, but MoinMoin.auth.ldap_login.LDAPAuth.login does not, and I think it should. Does that sound reasonable? Thanks. From clements at galaxyproject.org Fri Jun 3 20:10:22 2011 From: clements at galaxyproject.org (Dave Clements) Date: Fri, 3 Jun 2011 17:10:22 -0700 Subject: [Moin-user] Uploading attachments when migrating to MoinMoin Message-ID: Hello all, I'm migrating from another wiki system (that uses Creole) to MoinMoin. I've figured out how to upload pages using the "moin import wikipages" command. I can't figure out how to also upload attachments. Is there any way to upload attachments with a script, or do I have to do this manually? Thanks, Dave C. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rb.proj at gmail.com Mon Jun 6 04:30:14 2011 From: rb.proj at gmail.com (R.Bauer) Date: Mon, 06 Jun 2011 10:30:14 +0200 Subject: [Moin-user] Uploading attachments when migrating to MoinMoin In-Reply-To: References: Message-ID: Am 04.06.2011 02:10, schrieb Dave Clements: > Hello all, > > I'm migrating from another wiki system (that uses Creole) to MoinMoin. I've > figured out how to upload pages using the "moin import wikipages" command. > I can't figure out how to also upload attachments. > > Is there any way to upload attachments with a script, or do I have to do > this manually? > Hi you can do everything by xmlrpc two examples: http://moinmo.in/ReimarBauer/xmlrpc https://coconuts.icg.kfa-juelich.de/hg/coconuts-0.4/file/5381eecd6508/Coconuts/xmlrpc/__init__.py or introduce a new command by using http://hg.moinmo.in/moin/1.9/file/c162353f99ed/MoinMoin/action/AttachFile.py#l207 cheers Reimar > Thanks, > > Dave C. > > > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > > > > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user From mark.scheufele at diasemi.com Mon Jun 6 06:02:24 2011 From: mark.scheufele at diasemi.com (Mark Scheufele) Date: Mon, 6 Jun 2011 10:02:24 +0000 Subject: [Moin-user] Uploading attachments when migrating to MoinMoin In-Reply-To: References: Message-ID: <39080CC9D403A94F992B5A8183FE77BC0CDB7FE8@NB-EX-MBX01.diasemi.com> Hi David, if you are able to run a script on the moinmoin server itself you can also use the script interface. Information can be found here http://moinmo.in/MoinAPI/Examples . Uploading attachments is described here http://moinmo.in/MoinAPI/Examples#AttachFile. mark From: Dave Clements [mailto:clements at galaxyproject.org] Sent: Samstag, 4. Juni 2011 02:10 To: MoinMoin User List Subject: [Moin-user] Uploading attachments when migrating to MoinMoin Hello all, I'm migrating from another wiki system (that uses Creole) to MoinMoin. I've figured out how to upload pages using the "moin import wikipages" command. I can't figure out how to also upload attachments. Is there any way to upload attachments with a script, or do I have to do this manually? Thanks, Dave C. _______________________________________________________________________________________ Dialog Semiconductor GmbH Neue Str. 95 D-73230 Kirchheim Managing Director: Dr. Jalal Bagherli Chairman of the Supervisory Board: Gregorio Reyes Commercial register: Amtsgericht Stuttgart: HRB 231181 UST-ID-Nr. DE 811121668 Legal Disclaimer: This e-mail communication (and any attachment/s) is confidential and contains proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Sebastien.Hinderer at ens-lyon.org Sat Jun 11 14:52:25 2011 From: Sebastien.Hinderer at ens-lyon.org (=?iso-8859-1?Q?Sh=E9rab?=) Date: Sat, 11 Jun 2011 20:52:25 +0200 Subject: [Moin-user] Moin notifications considered as spam !? Message-ID: <20110611185225.GA25170@pema> Dear all, I just discovered that the notifications usually sent by Moin stopped working, a few days ago. After some investigation, I discovered that they are sent correctly by the machine hosting the wiki, but then silently discarded. So I thought that it is perhaps my provider which has a very bad spam detection algorithm and changed the delivery address for the notifications. But then the delivery failed once more, and this time there was an explicite failure message in the logs of the MTA, on the machine hosting the wiki. The message said sending failed because the message was considered as a spam. Needless to say, I find it rather sad that providers do their own spam detection, seemingly without any possibility to turn it off. I'm wondering whether some of you guys already faced this problem and how you solved it. Many thanks in advance for any suggestion, Sherab. From pierre.boizot at gmail.com Sun Jun 12 06:44:17 2011 From: pierre.boizot at gmail.com (Pierre BOIZOT) Date: Sun, 12 Jun 2011 12:44:17 +0200 Subject: [Moin-user] Moin notifications considered as spam !? In-Reply-To: <20110611185225.GA25170@pema> References: <20110611185225.GA25170@pema> Message-ID: Hi, You can use, your own smtp relay on dyndns by example 20$ by year. A+ Pierre Le 11 juin 2011 21:12, "Sh?rab" a ?crit : > Dear all, > > I just discovered that the notifications usually sent by Moin stopped > working, a few days ago. > After some investigation, I discovered that they are sent correctly by > the machine hosting the wiki, but then silently discarded. So I thought > that it is perhaps my provider which has a very bad spam detection > algorithm and changed the delivery address for the notifications. > But then the delivery failed once more, and this time there was an > explicite failure message in the logs of the MTA, on the machine hosting > the wiki. The message said sending failed because the message was > considered as a spam. > > Needless to say, I find it rather sad that providers do their own spam > detection, seemingly without any possibility to turn it off. > > I'm wondering whether some of you guys already faced this problem and > how you solved it. > > Many thanks in advance for any suggestion, > Sherab. > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From daryl.spitzer at gmail.com Tue Jun 14 14:33:55 2011 From: daryl.spitzer at gmail.com (Daryl Spitzer) Date: Tue, 14 Jun 2011 11:33:55 -0700 Subject: [Moin-user] HelpOnEditing, HelpOnMoinWikiSyntax & HelpContents don't exist on new installation? Message-ID: I installed MoinMoin on Ubuntu 11.04 using the instructions in http://moinmo.in/HowTo/UbuntuQuick, including the (first two) bullets for Ubuntu 10.10 in the Suggestions section at the bottom (http://moinmo.in/HowTo/UbuntuQuick#Suggestions). Apache and MoinMoin are running on a machine at my employer with the hostname "daryls". (Only visible behind the firewall, of course.) So http://daryls/ goes to MyStartingPage. When I click on HelpOnEditing and HelpOnMoinWikiSyntax while editing a page, I get a blank page. HelpContents (when I click on the HelpContents tab), is also blank. I found http://moinmo.in/MoinMoinQuestions#MoinMoinQuestions.2BAC8-Errors.reference_to_mywiki_for_HelpOnEditing_.2BAC8_SyntaxReference, where a similar problem to mine is described. But clicking on HelpOnEditing goes to http://daryls/HelpOnEditing, HelpOnMoinWikiSyntax to http://daryls/HelpOnMoinWikiSyntax and HelpContents goes to http://daryls/HelpContents. (I don't have the extra "/instance_name/" in the URL as they describe.) But just to be sure, I cleared the contents of /usr/share/moin/data/cache, which made no difference. I too wonder (like "twm" in the question) whether this is a configuration error. Do I need to tell MoinMoin or Apache that the domain name of the server is "daryls"? -- Daryl From nicozanf at gmail.com Tue Jun 14 16:32:42 2011 From: nicozanf at gmail.com (Nico Zanferrari) Date: Tue, 14 Jun 2011 22:32:42 +0200 Subject: [Moin-user] HelpOnEditing, HelpOnMoinWikiSyntax & HelpContents don't exist on new installation? In-Reply-To: References: Message-ID: Hi Daryl! 2011/6/14 Daryl Spitzer : > I installed MoinMoin on Ubuntu 11.04 using the instructions in > http://moinmo.in/HowTo/UbuntuQuick, including the (first two) bullets > for Ubuntu 10.10 in the Suggestions section at the bottom > (http://moinmo.in/HowTo/UbuntuQuick#Suggestions). > > http://daryls/ goes to MyStartingPage. How is this page? Is it the Welcome one like that on 2.8 chapter of my guide? If it works, I think you've not installed the System and Help pages. Follow my guide on 3.3 chapter. > ?Do I need to tell MoinMoin or Apache that the > domain name of the server is "daryls"? > no. Cheers, Nico From daryl.spitzer at gmail.com Tue Jun 14 16:46:46 2011 From: daryl.spitzer at gmail.com (Daryl Spitzer) Date: Tue, 14 Jun 2011 13:46:46 -0700 Subject: [Moin-user] HelpOnEditing, HelpOnMoinWikiSyntax & HelpContents don't exist on new installation? In-Reply-To: References: Message-ID: > If it works, I think you've not installed the System and Help pages. I completely missed that. > Follow my guide on 3.3 chapter. I did, and everything is there now. Thank you. -- Daryl On Tue, Jun 14, 2011 at 1:32 PM, Nico Zanferrari wrote: > Hi Daryl! > > 2011/6/14 Daryl Spitzer : >> I installed MoinMoin on Ubuntu 11.04 using the instructions in >> http://moinmo.in/HowTo/UbuntuQuick, including the (first two) bullets >> for Ubuntu 10.10 in the Suggestions section at the bottom >> (http://moinmo.in/HowTo/UbuntuQuick#Suggestions). >> >> http://daryls/ goes to MyStartingPage. > > How is this page? Is it the Welcome one like that on 2.8 chapter of my guide? > If it works, I think you've not installed the System and Help pages. > Follow my guide on 3.3 chapter. > >> ??Do I need to tell MoinMoin or Apache that the >> domain name of the server is "daryls"? >> > > no. > > Cheers, > Nico > From chris at cvs.rochester.edu Thu Jun 23 11:08:20 2011 From: chris at cvs.rochester.edu (Chris Freemesser) Date: Thu, 23 Jun 2011 11:08:20 -0400 Subject: [Moin-user] Question about upgrading Message-ID: <4E0356E4.2070106@cvs.rochester.edu> Hi all. I'm in the process of replacing our old wiki server (a Mac running the MoinMoin 1.5.3-based MoinX wiki software) with a new Mac OSX 10.6 machine running a "normal" version of MoinMoin 1.9.3 + Apache. I have the new installation running, and ran the page files from the old server through the necessary conversion scripts (mig10 and 152_to_1050300). I then invoked the moin "migration data" command specified for post 1.5.3 new style migrations. The scripts seemed to work fine, but I'm not 100% sure that the "migration data" command ran correctly. I find that if I try to view a page on the new server, the web browser displays an unhandled exception error. If I then go into the "revisions" directory for that page, load the last revision into vi and immediately resave it (making no changes to the file), I can now view the page *and* view all previous revisions. The file permissions don't seem to change after using vi, so I'm at a loss as to why this works. The one thing I do notice is that when I load the file into vi, the line at the bottom of the window shows the filename as well as '[dos]'. With about 600 pages on our wiki server, the prospect of editing these revisions by hand is not particularly appealing. :) Does anybody either know why this is happening and how to fix it, or conversely, know a way to automate this "editing" process? Thanks much, Chris _____________________________________________ Chris Freemesser, University of Rochester Department of Brain & Cognitive Sciences / Center for Visual Science Meliora Hall, Room 244 E-Mail: chris at cvs.rochester.edu Phone: (585)275-0786 _____________________________________________ From rcuza at unis.org Thu Jun 23 14:09:43 2011 From: rcuza at unis.org (Raul Cuza) Date: Thu, 23 Jun 2011 14:09:43 -0400 Subject: [Moin-user] Question about upgrading In-Reply-To: <4E0356E4.2070106@cvs.rochester.edu> References: <4E0356E4.2070106@cvs.rochester.edu> Message-ID: Hola Chris, If you use `touch filename` instead of `vi filename` do you get the same results? You can use `stat filename` to see what changes before and after using the vi. I suspect `touch` will make the same change. You can easily touch all 600 files with one command: `find /path/to/moin/site/data/pages -type f -regex '.*/revisions/.* -exec touch {} \;` You can replace "-exec touch {} \;" with "-ls" to get a list of all the files that will be affected by the execution of the `touch` command. I do NOT know what touching all these files will do to moin; can someone more familiar with how moin works comment on that? If you JUST want to touch the file listed as current, then the following command will just touch that file: for i in `ls /path/to/moin/site/data/pages`; do ls -l $i/revisions/`cat $i/current`; done But you will get errors for any files that don't have a revisions or current dir/file. A more complicated shell script could avoid the errors. You may already know about the touch command and automating it using find and for, so please chalk it up to eagerness to be helpful. I am curious if using touch does the same thing as your vi-save-quit steps, so please share the results of that test. Ra?l > -----Original Message----- > From: Chris Freemesser [mailto:chris at cvs.rochester.edu] > Sent: Thursday, June 23, 2011 11:08 AM > To: moin-user at lists.sourceforge.net > Subject: [Moin-user] Question about upgrading > > Hi all. > > I'm in the process of replacing our old wiki server (a Mac running the > MoinMoin 1.5.3-based MoinX wiki software) with a new Mac OSX 10.6 > machine running a "normal" version of MoinMoin 1.9.3 + Apache. > > I have the new installation running, and ran the page files from the old server > through the necessary conversion scripts (mig10 and 152_to_1050300). I > then invoked the moin "migration data" command specified for post 1.5.3 > new style migrations. The scripts seemed to work fine, but I'm not 100% sure > that the "migration data" command ran correctly. > > I find that if I try to view a page on the new server, the web browser displays > an unhandled exception error. If I then go into the "revisions" directory for > that page, load the last revision into vi and immediately resave it (making no > changes to the file), I can now view the page *and* view all previous > revisions. The file permissions don't seem to change after using vi, so I'm at a > loss as to why this works. The one thing I do notice is that when I load the file > into vi, the line at the bottom of the window shows the filename as well as > '[dos]'. > > With about 600 pages on our wiki server, the prospect of editing these > revisions by hand is not particularly appealing. :) Does anybody either know > why this is happening and how to fix it, or conversely, know a way to > automate this "editing" process? > > Thanks much, > > Chris > > _____________________________________________ > Chris Freemesser, University of Rochester Department of Brain & Cognitive > Sciences / Center for Visual Science Meliora Hall, Room 244 > E-Mail: chris at cvs.rochester.edu > Phone: (585)275-0786 > _____________________________________________ > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with > vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user From chris at cvs.rochester.edu Thu Jun 23 14:43:51 2011 From: chris at cvs.rochester.edu (Chris Freemesser) Date: Thu, 23 Jun 2011 14:43:51 -0400 Subject: [Moin-user] Question about upgrading In-Reply-To: References: <4E0356E4.2070106@cvs.rochester.edu> Message-ID: <4E038967.9070003@cvs.rochester.edu> On 6/23/11 2:09 PM, Raul Cuza wrote: > Hola Chris, > > If you use `touch filename` instead of `vi filename` do you get the same > results? You can use `stat filename` to see what changes before and after > using the vi. I suspect `touch` will make the same change. Thanks for the reply. I already figured out that 'touch' does the same thing as 'vi'...it allows the file to be read. Another reader e-mailed me with a few suggestions. I originally tried "find . -exec touch {} \;", which changed the timestamp on the files, but did NOT fix the problem. Just a minute or two ago, I tried "find . -name 00* -exec touch {} \;", and a quick check of a few pages would seem to indicate that it might have done the trick. The magic of Unix, I guess. :) Chris _____________________________________________ Chris Freemesser, University of Rochester Department of Brain & Cognitive Sciences / Center for Visual Science Meliora Hall, Room 244 E-Mail: chris at cvs.rochester.edu Phone: (585)275-0786 _____________________________________________ From rcuza at unis.org Thu Jun 23 15:09:02 2011 From: rcuza at unis.org (Raul Cuza) Date: Thu, 23 Jun 2011 15:09:02 -0400 Subject: [Moin-user] Question about upgrading In-Reply-To: <4E038967.9070003@cvs.rochester.edu> References: <4E0356E4.2070106@cvs.rochester.edu> <4E038967.9070003@cvs.rochester.edu> Message-ID: Can someone who is more familiar than me with how moin works please explain why changing the last access/modified time on the files is necessary? I'm curious as to what the logic in the code is that prevented Chris's migration from working in the first place. If you feel the urge to answer 'Use the code, Luke' please guide me in the right direction. I haven't looked under the hood of moin yet, so I don't have a map yet of how it is laid out. Thank you. > -----Original Message----- > From: Chris Freemesser [mailto:chris at cvs.rochester.edu] > Sent: Thursday, June 23, 2011 2:44 PM > To: Raul Cuza > Cc: moin-user at lists.sourceforge.net > Subject: Re: [Moin-user] Question about upgrading > > On 6/23/11 2:09 PM, Raul Cuza wrote: > > Hola Chris, > > > > If you use `touch filename` instead of `vi filename` do you get the > > same results? You can use `stat filename` to see what changes before > > and after using the vi. I suspect `touch` will make the same change. > > Thanks for the reply. I already figured out that 'touch' does the same thing as > 'vi'...it allows the file to be read. Another reader e-mailed me with a few > suggestions. > > I originally tried "find . -exec touch {} \;", which changed the timestamp on > the files, but did NOT fix the problem. Just a minute or two ago, I tried "find . > -name 00* -exec touch {} \;", and a quick check of a few pages would seem > to indicate that it might have done the trick. The magic of Unix, I guess. :) > > Chris > > _____________________________________________ > Chris Freemesser, University of Rochester Department of Brain & Cognitive > Sciences / Center for Visual Science Meliora Hall, Room 244 > E-Mail: chris at cvs.rochester.edu > Phone: (585)275-0786 > _____________________________________________ From jerry.levan at gmail.com Thu Jun 23 15:23:15 2011 From: jerry.levan at gmail.com (Jerry LeVan) Date: Thu, 23 Jun 2011 15:23:15 -0400 Subject: [Moin-user] Moin-user Digest, Vol 60, Issue 2 In-Reply-To: References: Message-ID: <1308856997.24498.4.camel@bigbox.skynet> On Thu, 2011-06-23 at 18:22 +0000, moin-user-request at lists.sourceforge.net wrote: > > Hi all. > > I'm in the process of replacing our old wiki server (a Mac running the > MoinMoin > 1.5.3-based MoinX wiki software) with a new Mac OSX 10.6 machine > running a > "normal" version of MoinMoin 1.9.3 + Apache. > > I have the new installation running, and ran the page files from the > old server > through the necessary conversion scripts (mig10 and 152_to_1050300). > I then > invoked the moin "migration data" command specified for post 1.5.3 new > style > migrations. The scripts seemed to work fine, but I'm not 100% sure > that the > "migration data" command ran correctly. > > I find that if I try to view a page on the new server, the web browser > displays > an unhandled exception error. If I then go into the "revisions" > directory for > that page, load the last revision into vi and immediately resave it > (making no > changes to the file), I can now view the page *and* view all previous > revisions. The file permissions don't seem to change after using vi, > so I'm at > a loss as to why this works. The one thing I do notice is that when I > load the > file into vi, the line at the bottom of the window shows the filename > as well > as '[dos]'. > > With about 600 pages on our wiki server, the prospect of editing > these > revisions by hand is not particularly appealing. :) Does anybody > either know > why this is happening and how to fix it, or conversely, know a way to > automate > this "editing" process? > > Thanks much, > > Chris > These errors might be due to a python mismatch...The cached pages contain python code. I pull the data pages from a mac to a linux box and found that I needed something like: /bin/rm -r /var/mywiki/data/pages/*/cache/* In order to make sure that I am not pulling incompatible python byte code from the mac to the linux box Jerry From ndw at nwalsh.com Thu Jun 23 17:24:49 2011 From: ndw at nwalsh.com (Norman Walsh) Date: Thu, 23 Jun 2011 17:24:49 -0400 Subject: [Moin-user] Internal server error Message-ID: I've had two moin wiki's running for a while now. They share some common data in /usr/local/moin-1.9.2 and reside in /home/www/wiki.xproc.org/ and /home/www/wiki.docbook.org/ respectively. No prizes for guessing which wikis they are :-) This morning the server crashed hard and fatally with an unrecoverable disk error on the root partition. Yay me. I had a spare drive so I rebuilt the server on that and copied over the relevant data. (None appeared to be part of the damage.) When I got the apache config back up and running I got dict object not callable errors. A little poking about on Google lead me to the 'cleancache' command. Now the docbook wiki works fine, but the xproc wiki fails with a different error: Thu Jun 23 17:18:33 2011] [error] 2011-06-23 17:18:33,624 ERROR MoinMoin.wsgiapp:293 An exception has occurred [http://microwave:8192/]. [Thu Jun 23 17:18:33 2011] [error] Traceback (most recent call last): [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 282, in __call__ [Thu Jun 23 17:18:33 2011] [error] response = run(context) [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 88, in run [Thu Jun 23 17:18:33 2011] [error] response = dispatch(request, context, action_name) [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 136, in dispatch [Thu Jun 23 17:18:33 2011] [error] response = handle_action(context, pagename, action_name) [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 195, in handle_action [Thu Jun 23 17:18:33 2011] [error] handler(context.page.page_name, context) [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/action/__init__.py", line 261, in do_show [Thu Jun 23 17:18:33 2011] [error] content_only=content_only, [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/Page.py", line 1171, in send_page [Thu Jun 23 17:18:33 2011] [error] html_head=html_head, [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/theme/__init__.py", line 1750, in send_title [Thu Jun 23 17:18:33 2011] [error] bodyattr.append(' %s' % self.ui_lang_attr()) [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/theme/__init__.py", line 1553, in ui_lang_attr [Thu Jun 23 17:18:33 2011] [error] return ' lang="%s" dir="%s"' % (lang, i18n.getDirection(lang)) [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/i18n/__init__.py", line 257, in getDirection [Thu Jun 23 17:18:33 2011] [error] return languages[lang]['x-direction'] [Thu Jun 23 17:18:33 2011] [error] TypeError: 'NoneType' object is not subscriptable [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] mod_wsgi (pid=7541): Exception occurred processing WSGI script '/home/www/wiki.xproc.org/wiki/moin.wsgi'. [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] Traceback (most recent call last): [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] File "/usr/local/moin-1.9.2/MoinMoin/support/werkzeug/utils.py", line 248, in __call__ [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] return self.app(environ, start_response) [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 282, in __call__ [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] response = run(context) [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 88, in run [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] response = dispatch(request, context, action_name) [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 136, in dispatch [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] response = handle_action(context, pagename, action_name) [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 195, in handle_action [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] handler(context.page.page_name, context) [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] File "/usr/local/moin-1.9.2/MoinMoin/action/__init__.py", line 261, in do_show [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] content_only=content_only, [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] File "/usr/local/moin-1.9.2/MoinMoin/Page.py", line 1171, in send_page [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] html_head=html_head, [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] File "/usr/local/moin-1.9.2/MoinMoin/theme/__init__.py", line 1750, in send_title [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] bodyattr.append(' %s' % self.ui_lang_attr()) [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] File "/usr/local/moin-1.9.2/MoinMoin/theme/__init__.py", line 1553, in ui_lang_attr [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] return ' lang="%s" dir="%s"' % (lang, i18n.getDirection(lang)) [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] File "/usr/local/moin-1.9.2/MoinMoin/i18n/__init__.py", line 257, in getDirection [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] return languages[lang]['x-direction'] [Thu Jun 23 17:18:33 2011] [error] [client 192.168.1.98] TypeError: 'NoneType' object is not subscriptable This is running against python2.6, btw, since I saw some 2.7 issues. I don't see any significant differences between the two wikiconfig.py files. Anyone got a clue-by-four? Be seeing you, norm -- Norman Walsh | To probe a hole we first use a straight http://nwalsh.com/ | stick to see how far it takes us. To | probe the visible world we use the | assumption that things are simple until | they prove to be otherwise.--E. H. | Gombrich -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 186 bytes Desc: not available URL: From tw at waldmann-edv.de Sat Jun 25 14:52:23 2011 From: tw at waldmann-edv.de (Thomas Waldmann) Date: Sat, 25 Jun 2011 20:52:23 +0200 Subject: [Moin-user] Internal server error In-Reply-To: References: Message-ID: <1309027943.11629.2.camel@x300> Hi Norman, > I've had two moin wiki's running for a while now. They share some common data > in /usr/local/moin-1.9.2 and reside in /home/www/wiki.xproc.org/ and > /home/www/wiki.docbook.org/ respectively. No prizes for guessing which > wikis they are :-) > > This morning the server crashed hard and fatally with an unrecoverable > disk error on the root partition. Yay me. Uuh, bad luck. > I had a spare drive so I rebuilt the server on that and copied over > the relevant data. (None appeared to be part of the damage.) > > When I got the apache config back up and running I got dict object not > callable errors. That's because of unpickling pickled data on a more recent python than the pickle was made with. > A little poking about on Google lead me to the > 'cleancache' command. Yup. > Now the docbook wiki works fine, but the xproc wiki fails with a > different error: > > Thu Jun 23 17:18:33 2011] [error] 2011-06-23 17:18:33,624 ERROR MoinMoin.wsgiapp:293 An exception has occurred [http://microwave:8192/]. > [Thu Jun 23 17:18:33 2011] [error] Traceback (most recent call last): > [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 282, in __call__ > [Thu Jun 23 17:18:33 2011] [error] response = run(context) > [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 88, in run > [Thu Jun 23 17:18:33 2011] [error] response = dispatch(request, context, action_name) > [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 136, in dispatch > [Thu Jun 23 17:18:33 2011] [error] response = handle_action(context, pagename, action_name) > [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/wsgiapp.py", line 195, in handle_action > [Thu Jun 23 17:18:33 2011] [error] handler(context.page.page_name, context) > [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/action/__init__.py", line 261, in do_show > [Thu Jun 23 17:18:33 2011] [error] content_only=content_only, > [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/Page.py", line 1171, in send_page > [Thu Jun 23 17:18:33 2011] [error] html_head=html_head, > [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/theme/__init__.py", line 1750, in send_title > [Thu Jun 23 17:18:33 2011] [error] bodyattr.append(' %s' % self.ui_lang_attr()) > [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/theme/__init__.py", line 1553, in ui_lang_attr > [Thu Jun 23 17:18:33 2011] [error] return ' lang="%s" dir="%s"' % (lang, i18n.getDirection(lang)) > [Thu Jun 23 17:18:33 2011] [error] File "/usr/local/moin-1.9.2/MoinMoin/i18n/__init__.py", line 257, in getDirection > [Thu Jun 23 17:18:33 2011] [error] return languages[lang]['x-direction'] > [Thu Jun 23 17:18:33 2011] [error] TypeError: 'NoneType' object is not subscriptable Just kill the i18n cache and try again. data/cache/.../i18n/* Cheers, Thomas