From lists at sumpfralle.de Sun Oct 1 06:58:27 2017 From: lists at sumpfralle.de (Lars Kruse) Date: Sun, 1 Oct 2017 12:58:27 +0200 Subject: [moin-user] =?utf-8?q?=22ListPages=3A_Ausf=C3=BChrung__fehlgesch?= =?utf-8?q?lagen_=5Btoo_many_values_to_unpack=5D_=28siehe_auch_die_Log-Dat?= =?utf-8?q?ei=29=22?= In-Reply-To: <12473496.WW7TMjYd1I@desktop> References: <3570903.Wy0xoMh9pI@desktop> <12473496.WW7TMjYd1I@desktop> Message-ID: <20171001125827.1f4fa4bc@erker.lan> Hello Volker, Am Sat, 30 Sep 2017 16:56:59 +0200 schrieb Volker Wysk : > Does anyone know, what that "too many values to unpack" message means? It > doesn't occur in the MoinMoin source code (all .py files). To me this looks > like it is an exception generated by python. correct. Consider the following code: a, b = [1, 2, 3] Here the iterable on the right side contains more items than the set of target variables on the left side. A similar ValueError exception ("not enough values to unpack") is raised for the oppsite problematic situation. Probably the macro call parser in munin does not check its input in a way that would allow to emit error messages that point at the specific source of the problem. Cheers, Lars From post at volker-wysk.de Sun Oct 1 08:16:29 2017 From: post at volker-wysk.de (Volker Wysk) Date: Sun, 01 Oct 2017 14:16:29 +0200 Subject: [moin-user] =?utf-8?q?=22ListPages=3A_Ausf=C3=BChrung_fehlgeschl?= =?utf-8?q?agen_=5Btoo_many_values_to_unpack=5D_=28siehe_auch_die_Log-Date?= =?utf-8?b?aSki?= In-Reply-To: <20171001125827.1f4fa4bc@erker.lan> References: <3570903.Wy0xoMh9pI@desktop> <12473496.WW7TMjYd1I@desktop> <20171001125827.1f4fa4bc@erker.lan> Message-ID: <24313089.n3bSgHLH6i@desktop> Am Sonntag, 1. Oktober 2017, 12:58:27 CEST schrieb Lars Kruse: > Hello Volker, > > > Am Sat, 30 Sep 2017 16:56:59 +0200 > > schrieb Volker Wysk : > > Does anyone know, what that "too many values to unpack" message means? It > > doesn't occur in the MoinMoin source code (all .py files). To me this > > looks > > like it is an exception generated by python. > > correct. > > Consider the following code: > > a, b = [1, 2, 3] > > Here the iterable on the right side contains more items than the set > of target variables on the left side. > A similar ValueError exception ("not enough values to unpack") is raised for > the oppsite problematic situation. > > Probably the macro call parser in munin does not check its input in a way > that would allow to emit error messages that point at the specific source > of the problem. That's what I've thought. Some message "Parse error at '...'" would be nice. I've needed to inspect the moin source code, with my almost-none familiarity of python, for a hint of what goes wrong. Then I found a clue for it being a parse error. Cheers Volker From post at volker-wysk.de Fri Oct 6 01:18:13 2017 From: post at volker-wysk.de (Volker Wysk) Date: Fri, 06 Oct 2017 07:18:13 +0200 Subject: [moin-user] double click on wiki page Message-ID: <1827680.lDTpUrDiNX@desktop> Hi When you double click on a wiki page, the editor is started. Even when I just want to copy some text to the clipboard... Can this behaviour be turned off? Bye Volker From Christian.Molecki at stala.bwl.de Fri Oct 6 01:51:55 2017 From: Christian.Molecki at stala.bwl.de (Molecki, Christian (STL)) Date: Fri, 6 Oct 2017 05:51:55 +0000 Subject: [moin-user] double click on wiki page In-Reply-To: <1827680.lDTpUrDiNX@desktop> References: <1827680.lDTpUrDiNX@desktop> Message-ID: <205F109FB2535542BD9DB0753EFF6D3326E17743@BWLSM15.ZD.BWL.NET> Hello Volker, take a look to the personal settings of the current user: generally options -> open editor per double click Mit freundlichen Gr??en Christian Molecki -------------------------------------------- Referat 14: Systemtechnik und Datenmanagement OE 143: Systemtechnik, Gro?rechner, Internettechnik, Datenmanagement -----Urspr?ngliche Nachricht----- Von: moin-user [mailto:moin-user-bounces+christian.molecki=stala.bwl.de at python.org] Im Auftrag von Volker Wysk Gesendet: Freitag, 6. Oktober 2017 07:18 An: moin-user at python.org Betreff: [moin-user] double click on wiki page Hi When you double click on a wiki page, the editor is started. Even when I just want to copy some text to the clipboard... Can this behaviour be turned off? Bye Volker _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user From post at volker-wysk.de Fri Oct 6 02:05:44 2017 From: post at volker-wysk.de (Volker Wysk) Date: Fri, 06 Oct 2017 08:05:44 +0200 Subject: [moin-user] double click on wiki page In-Reply-To: <205F109FB2535542BD9DB0753EFF6D3326E17743@BWLSM15.ZD.BWL.NET> References: <1827680.lDTpUrDiNX@desktop> <205F109FB2535542BD9DB0753EFF6D3326E17743@BWLSM15.ZD.BWL.NET> Message-ID: <1589501.pkKoLMNkB8@desktop> Am Freitag, 6. Oktober 2017, 05:51:55 CEST schrieb Molecki, Christian (STL): > take a look to the personal settings of the current user: > > generally options -> open editor per double click Found it. Thanks! Volker From zarko.dudic at oracle.com Tue Oct 10 20:49:03 2017 From: zarko.dudic at oracle.com (Zarko Dudic) Date: Tue, 10 Oct 2017 17:49:03 -0700 Subject: [moin-user] archive of moin 1.5.8-1 site Message-ID: <17c814ba-68e3-f893-b1bf-a95b31a7ebfd@oracle.com> Hi there, there is moin 1.5.8-1 wiki and I'd like to export it to a static site, I've been trying something like # /usr/share/moin/server/moin.py --config-dir=/srv/www-data/moin/calpg \ > --wiki-url=wiki.domain.com/calpg \ > export dump \ > --target-dir=/tmp/calpg After pressing enter, the output I see is: Serving on localhost:8000 Running as uid/gid 33/33 ... and nothing else is happening, no files created in target-dir. And after cancelling the comment the output is: "Thanks for using MoinMoin!" Appreciate any help how to make this work. Or any other idea how to "archive" this legacy site. -- Thanks, Zarko From zarko.dudic at oracle.com Fri Oct 13 15:11:48 2017 From: zarko.dudic at oracle.com (Zarko Dudic) Date: Fri, 13 Oct 2017 12:11:48 -0700 Subject: [moin-user] archive of moin 1.5.8-1 site In-Reply-To: <17c814ba-68e3-f893-b1bf-a95b31a7ebfd@oracle.com> References: <17c814ba-68e3-f893-b1bf-a95b31a7ebfd@oracle.com> Message-ID: Does anyone have experience with this, thanks in advance. On 10/10/2017 5:49 PM, Zarko Dudic wrote: > Hi there, there is moin 1.5.8-1 wiki and I'd like to export it to a > static site, I've been trying something like > > > # /usr/share/moin/server/moin.py --config-dir=/srv/www-data/moin/calpg \ > > --wiki-url=wiki.domain.com/calpg \ > > export dump \ > > --target-dir=/tmp/calpg > > After pressing enter, the output I see is: > > Serving on localhost:8000 > Running as uid/gid 33/33 > > ... and nothing else is happening, no files created in target-dir. And > after cancelling the comment the output is: > > "Thanks for using MoinMoin!" > > Appreciate any help how to make this work. Or any other idea how to > "archive" this legacy site. > -- Thanks, Zarko From crosseyedpenguin at yahoo.com Sat Oct 14 10:37:20 2017 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Sat, 14 Oct 2017 14:37:20 +0000 (UTC) Subject: [moin-user] archive of moin 1.5.8-1 site In-Reply-To: <17c814ba-68e3-f893-b1bf-a95b31a7ebfd@oracle.com> References: <17c814ba-68e3-f893-b1bf-a95b31a7ebfd@oracle.com> Message-ID: <86930784.1765429.1507991840970@mail.yahoo.com> I use export dump regularly, but on Windows and with the current release of moin. If the command you are using was copied correctly, then you should try the script directory, not server: ? ? /usr/share/moin/server/moin.py should be: ? ? /usr/share/moin/script/moin.py Also, some of my pages are ACL protected, so in addition to the parameters you are using, I add: ? ??--username MyName On Tuesday, October 10, 2017 5:57 PM, Zarko Dudic wrote: Hi there, there is moin 1.5.8-1 wiki and I'd like to export it to a static site, I've been trying something like # /usr/share/moin/server/moin.py --config-dir=/srv/www-data/moin/calpg \ > --wiki-url=wiki.domain.com/calpg \ > export dump \ > --target-dir=/tmp/calpg After pressing enter, the output I see is: Serving on localhost:8000 Running as uid/gid 33/33 ... and nothing else is happening, no files created in target-dir. And after cancelling the comment the output is: "Thanks for using MoinMoin!" Appreciate any help how to make this work. Or any other idea how to "archive" this legacy site. -- Thanks, Zarko _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at boddie.org.uk Sat Oct 14 11:23:18 2017 From: paul at boddie.org.uk (Paul Boddie) Date: Sat, 14 Oct 2017 17:23:18 +0200 Subject: [moin-user] archive of moin 1.5.8-1 site In-Reply-To: References: <17c814ba-68e3-f893-b1bf-a95b31a7ebfd@oracle.com> Message-ID: <201710141723.19091.paul@boddie.org.uk> [Reordering quoting] On Friday 13. October 2017 21.11.48 Zarko Dudic wrote: > > On 10/10/2017 5:49 PM, Zarko Dudic wrote: > > Hi there, there is moin 1.5.8-1 wiki and I'd like to export it to a > > static site, I've been trying something like > > > > > > # /usr/share/moin/server/moin.py --config-dir=/srv/www-data/moin/calpg \ > > > --wiki-url=wiki.domain.com/calpg \ > > > export dump \ > > > --target-dir=/tmp/calpg > > Does anyone have experience with this, thanks in advance. The short answer is "yes", but with newer Moin versions such as 1.8 and 1.9. I am not really sure why Moin would want to run the built-in Web server to generate a dump, given that it can be run as a normal command line process and emulate the necessary request machinery without running an actual Web server. Maybe you are running the wrong program, but it is a long time since I used Moin 1.5, and without additional context (distribution information) it is not possible to confirm this readily. You may need to do some troubleshooting yourself, especially with such an old Moin version as the one you're using. Maybe look for a moin program outside the "server" directory first. Paul P.S. Indeed, I have used this function to generate pages and associated content for the cache so that I could be sure that pages load properly in the shared Web hosting environment I use. Otherwise, the page loading can risk timeouts due to the general server load obstructing the work of the Moin process. Obviously, generating cached content is a side-effect of running the export. From lars.nooden at gmail.com Sun Oct 15 06:27:30 2017 From: lars.nooden at gmail.com (=?UTF-8?Q?Lars_Nood=c3=a9n?=) Date: Sun, 15 Oct 2017 13:27:30 +0300 Subject: [moin-user] MoinMoin 1.9.8 Unhandled Exception Message-ID: <5d8d5ca9-c879-21ab-bd06-933d8ffbbf31@gmail.com> I have MoinMoin 1.9.8 with Python 2.7.14 using FastCGI and am seeing the following errors now. How should I debug or fix the following? In the browser, the wiki shows only the error "Unhandled Exception" "An unhandled exception was thrown by the application." The web server's logs show the following for each such exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/MoinMoin/support/flup/server/fcgi_base.py", line 574, in run protocolStatus, appStatus = self.server.handler(self) File "/usr/local/lib/python2.7/site-packages/MoinMoin/support/flup/server/fcgi_base.py", line 1159, in handler result = self.application(environ, start_response) File "/usr/local/lib/python2.7/site-packages/MoinMoin/support/werkzeug/wsgi.py", line 411, in __call__ return self.app(environ, start_response) File "/usr/local/lib/python2.7/site-packages/MoinMoin/wsgiapp.py", line 264, in __call__ response = run(context) File "/usr/local/lib/python2.7/site-packages/MoinMoin/wsgiapp.py", line 79, in run check_surge_protect(context) File "/usr/local/lib/python2.7/site-packages/MoinMoin/web/utils.py", line 95, in check_surge_protect data = cache.content() File "/usr/local/lib/python2.7/site-packages/MoinMoin/caching.py", line 287, in content raise CacheError(str(err)) CacheError: 'utf8' codec can't decode byte 0x80 in position 0: invalid start byte Lines 286 and 287 of caching.py show this only (whitespace compressed for the mail): except (pickle.UnpicklingError, IOError, EOFError, ValueError), err: raise CacheError(str(err)) Thanks, /Lars From lars.nooden at gmail.com Sun Oct 15 23:23:30 2017 From: lars.nooden at gmail.com (=?UTF-8?Q?Lars_Nood=c3=a9n?=) Date: Mon, 16 Oct 2017 06:23:30 +0300 Subject: [moin-user] MoinMoin 1.9.8 Unhandled Exception In-Reply-To: <5d8d5ca9-c879-21ab-bd06-933d8ffbbf31@gmail.com> References: <5d8d5ca9-c879-21ab-bd06-933d8ffbbf31@gmail.com> Message-ID: On 10/15/2017 01:27 PM, Lars Nood?n wrote: > I have MoinMoin 1.9.8 with Python 2.7.14 using FastCGI and am seeing the > following errors now. How should I debug or fix the following? > > In the browser, the wiki shows only the error "Unhandled Exception" "An > unhandled exception was thrown by the application." > > The web server's logs show the following for each such exception: [snip] > CacheError: 'utf8' codec can't decode byte 0x80 in position 0: invalid > start byte [snip] I'm not sure of the cause but the work-around was to remove that wiki's ./surgeprotect/surge-log file. All set for now. /Lars From zarko.dudic at oracle.com Wed Oct 18 16:53:55 2017 From: zarko.dudic at oracle.com (Zarko Dudic) Date: Wed, 18 Oct 2017 13:53:55 -0700 Subject: [moin-user] archive of moin 1.5.8-1 site In-Reply-To: <86930784.1765429.1507991840970@mail.yahoo.com> References: <17c814ba-68e3-f893-b1bf-a95b31a7ebfd@oracle.com> <86930784.1765429.1507991840970@mail.yahoo.com> Message-ID: <3607110f-72a8-5bde-32e3-7b80c63f0b0c@oracle.com> Thanks Roger and Paul for the feedback, I've managed to get good progress with command like python /usr/lib/python2.4/site-packages/MoinMoin/script/moin.py \ --config-dir=/srv/www-data/moin/calpg \ --wiki-url=/srv/www-data/html/wiki.domain.com/ \ export dump \ --target-dir=/archive/moin-dump/calpg-dump --show-timing This completes with no errors, but seems that users' MoinEditorBackup pages are not exported. Any suggestion for this? Btw, this is on EL/OL5, if that matters. -- Thanks, Zarko