From post at volker-wysk.de Sun Jul 2 12:40:19 2017 From: post at volker-wysk.de (Volker Wysk) Date: Sun, 02 Jul 2017 18:40:19 +0200 Subject: [moin-user] Can't install package: "Unhandled Exception" In-Reply-To: <201706242138.53654.paul@boddie.org.uk> References: <2620341.8dklWILFsA@desktop> <201706242138.53654.paul@boddie.org.uk> Message-ID: <5801123.i5JSX7O162@desktop> Am Samstag, 24. Juni 2017, 21:38:53 CEST schrieb Paul Boddie: > On Saturday 24. June 2017 20.09.28 Volker Wysk wrote: > > I'm trying to upload my wiki pages via the package installer. I've written > > a program, which creates packages from source files. This worked > > relatively well. But now, when I upload the .zip, and click on "install" I > > get: > > > > "Unhandled Exception - An unhandled exception was thrown by the > > application." > > > > I've found no moin logfiles in /var/log. > > > > This is a bug. And no chance to find out, what's going wrong, isn't it? > > I guess so! But I should have been clearer about the way I install packages. > Instead of going through the workflow on the HelpOnPackageInstaller page > (upload file, click on "install"), I tend to use the command line tool, > which is also mentioned on that page. > > So, given a pages.zip file, I run the following command: > > python MoinMoin/packages.py i pages.zip URL_PATH > > Here, URL_PATH corresponds to the published location of the wiki on the > host. I've tried packages.py, and it worked, a little: This is /home/v/tmp/moinmoin/inst.sh: export PYTHONPATH=/usr/local/lib/python2.7/dist-packages:/usr/local/share/ moin/config python /usr/local/lib/python2.7/dist-packages/MoinMoin/packages.py i /home/ v/tmp/moinmoin/musik.zip /home/v/tmp/moinmoin % sudo -u www-data /home/v/tmp/moinmoin/inst.sh 2017-07-02 18:22:13,771 INFO MoinMoin.log:151 using logging configuration read from built-in fallback in MoinMoin.log module 2017-07-02 18:22:13,771 INFO MoinMoin.log:157 Running MoinMoin 1.9.9 release code from /usr/local/lib/python2.7/dist-packages/MoinMoin 2017-07-02 18:22:14,133 INFO MoinMoin.config.multiconfig:127 using wiki config: / usr/local/share/moin/config/wikiconfig.pyc Installation was successful! action add revision: not enough rights - nothing done action add revision: not enough rights - nothing done action add attachment: not enough rights - nothing done action add revision: not enough rights - nothing done action add attachment: not enough rights - nothing done action add attachment: not enough rights - nothing done action add attachment: not enough rights - nothing done action add attachment: not enough rights - nothing done action add attachment: not enough rights - nothing done action add attachment: not enough rights - nothing done /home/v/tmp/moinmoin % sudo /home/v/tmp/moinmoin/inst.sh 2017-07-02 18:23:16,979 INFO MoinMoin.log:151 using logging configuration read from built-in fallback in MoinMoin.log module 2017-07-02 18:23:16,979 INFO MoinMoin.log:157 Running MoinMoin 1.9.9 release code from /usr/local/lib/python2.7/dist-packages/MoinMoin 2017-07-02 18:23:17,347 INFO MoinMoin.config.multiconfig:127 using wiki config: / usr/local/share/moin/config/wikiconfig.pyc Installation was successful! action add revision: not enough rights - nothing done action add revision: not enough rights - nothing done action add attachment: not enough rights - nothing done action add revision: not enough rights - nothing done action add attachment: not enough rights - nothing done action add attachment: not enough rights - nothing done action add attachment: not enough rights - nothing done action add attachment: not enough rights - nothing done action add attachment: not enough rights - nothing done action add attachment: not enough rights - nothing done So why are there insufficient rights? How does one specify the (super) user to use, when installing via packages.py? The only wiki page dealing with it seems to be HelpOnPackageInstaller, and that's incomplete. > For me, this almost always works, where failure is usually something to do > with the permissions. Yes, seems the same, here. > In fact, I'm using a tool that I wrote to administer > Moin instances, but the actual command issued is ultimately the same. > > You might need to set PYTHONPATH to include the location of the MoinMoin > package and also the location of the wikiconfig.py file. Otherwise, the > program won't find what it needs and will just fail straight away. Yes, so far it works. > As for the logging, you might want to look first at the general error log > for your Web server. I'd have to remind myself about Moin's logging > configuration if I were to provide any insight on this, anyway. ;-) In wikiconfig.py and config/more_samples, there are no settings applying to logging. I've looked at the Apache error log, and there are a few entries, but nothing about the Package Installer. Thanks for your help, Volker From paul at boddie.org.uk Sun Jul 2 13:46:41 2017 From: paul at boddie.org.uk (Paul Boddie) Date: Sun, 2 Jul 2017 19:46:41 +0200 Subject: [moin-user] Can't install package: "Unhandled Exception" In-Reply-To: <5801123.i5JSX7O162@desktop> References: <2620341.8dklWILFsA@desktop> <201706242138.53654.paul@boddie.org.uk> <5801123.i5JSX7O162@desktop> Message-ID: <201707021946.42277.paul@boddie.org.uk> On Sunday 2. July 2017 18.40.19 Volker Wysk wrote: > > I've tried packages.py, and it worked, a little: [...] > /home/v/tmp/moinmoin % sudo -u www-data /home/v/tmp/moinmoin/inst.sh [...] > action add attachment: not enough rights - nothing done > > > /home/v/tmp/moinmoin % sudo /home/v/tmp/moinmoin/inst.sh [...] > action add attachment: not enough rights - nothing done So, we can see here that neither root nor www-data will get around this permission error. This means that it isn't a system-level privilege issue. > So why are there insufficient rights? How does one specify the (super) user > to use, when installing via packages.py? The only wiki page dealing with > it seems to be HelpOnPackageInstaller, and that's incomplete. What seems to be happening is that the package installer cannot gain sufficient wiki-level privileges. You may be familiar with ACLs within the wiki, but they also apply for command line operations, too. (This actually might also be the reason why the through-the-Web operation failed.) > > For me, this almost always works, where failure is usually something to > > do with the permissions. > > Yes, seems the same, here. For me, it's usually forgetting the system-level privileges, though. ;-) You might want to check your wikiconfig.py file (or other configuration file) to see what the ACL-related settings say. I'm not completely sure that the installer tries to become superuser, which is what some tools do to avoid these kinds of problems. Paul P.S. I actually wrote an extension that queues edits that are submitted to a wiki, and I seem to recall that even the installer had its edits queued. So the mechanisms around editing are pretty general. Of course, modifying the filesystem directly is an alternative, as previously mentioned, but I don't think that Moin exposes that functionality very conveniently, and it could be awkward to get everything right doing it yourself. From post at volker-wysk.de Sun Jul 2 17:39:13 2017 From: post at volker-wysk.de (Volker Wysk) Date: Sun, 02 Jul 2017 23:39:13 +0200 Subject: [moin-user] Can't install package: "Unhandled Exception" In-Reply-To: <201707021946.42277.paul@boddie.org.uk> References: <2620341.8dklWILFsA@desktop> <5801123.i5JSX7O162@desktop> <201707021946.42277.paul@boddie.org.uk> Message-ID: <59974688.QaYYY040UW@desktop> Am Sonntag, 2. Juli 2017, 19:46:41 CEST schrieb Paul Boddie: > So, we can see here that neither root nor www-data will get around this > permission error. This means that it isn't a system-level privilege issue. > > > So why are there insufficient rights? How does one specify the (super) > > user > > to use, when installing via packages.py? The only wiki page dealing with > > it seems to be HelpOnPackageInstaller, and that's incomplete. > > What seems to be happening is that the package installer cannot gain > sufficient wiki-level privileges. You may be familiar with ACLs within the > wiki, but they also apply for command line operations, too. (This actually > might also be the reason why the through-the-Web operation failed.) Yes, you're probably right. But which user name does the package installer use? > > > For me, this almost always works, where failure is usually something to > > > do with the permissions. > > > > Yes, seems the same, here. > > For me, it's usually forgetting the system-level privileges, though. ;-) > > You might want to check your wikiconfig.py file (or other configuration > file) to see what the ACL-related settings say. I'm not completely sure > that the installer tries to become superuser, which is what some tools do > to avoid these kinds of problems. I have this in my wikiconfig.py: superuser = [u"v", ] acl_rights_before = u"v:read,write,delete,revert,admin All:" User "v" has all rights, and all others are locked out. So this looks like the package installer logs in a as an other user. But which one? > P.S. I actually wrote an extension that queues edits that are submitted to a > wiki, and I seem to recall that even the installer had its edits queued. So > the mechanisms around editing are pretty general. Of course, modifying the > filesystem directly is an alternative, as previously mentioned, but I don't > think that Moin exposes that functionality very conveniently, and it could > be awkward to get everything right doing it yourself. Bye Volker From paul at boddie.org.uk Sun Jul 2 18:52:13 2017 From: paul at boddie.org.uk (Paul Boddie) Date: Mon, 3 Jul 2017 00:52:13 +0200 Subject: [moin-user] Can't install package: "Unhandled Exception" In-Reply-To: <59974688.QaYYY040UW@desktop> References: <2620341.8dklWILFsA@desktop> <201707021946.42277.paul@boddie.org.uk> <59974688.QaYYY040UW@desktop> Message-ID: <201707030052.14440.paul@boddie.org.uk> On Sunday 2. July 2017 23.39.13 Volker Wysk wrote: > > Yes, you're probably right. But which user name does the package installer > use? Typically, you get the user reported as "Scripting subsystem" in the RecentChanges output. However, that is a constructed name for the purposes of logging the edits. [...] > I have this in my wikiconfig.py: > > superuser = [u"v", ] > acl_rights_before = u"v:read,write,delete,revert,admin All:" > > User "v" has all rights, and all others are locked out. So the problem is that even the package installer cannot write to the wiki. Interestingly, I have a similar configuration for a wiki I routinely update using the installer, with the only significant difference being "All:read" in my case. > So this looks like the package installer logs in a as an other user. But > which one? I'm not entirely sure, and looking at the 1.9 and 1.8 code (which differ in the way they set up the machinery, with 1.8 being arguably easier to follow), I can't track this down at the moment. Maybe with a bit more energy tomorrow I'll figure it out. Paul From post at volker-wysk.de Sun Jul 2 19:52:41 2017 From: post at volker-wysk.de (Volker Wysk) Date: Mon, 03 Jul 2017 01:52:41 +0200 Subject: [moin-user] Can't install package: "Unhandled Exception" In-Reply-To: <201707030052.14440.paul@boddie.org.uk> References: <2620341.8dklWILFsA@desktop> <59974688.QaYYY040UW@desktop> <201707030052.14440.paul@boddie.org.uk> Message-ID: <6858355.aacbed6bmR@desktop> Hi Am Montag, 3. Juli 2017, 00:52:13 CEST schrieb Paul Boddie: > On Sunday 2. July 2017 23.39.13 Volker Wysk wrote: > > I have this in my wikiconfig.py: > > superuser = [u"v", ] > > acl_rights_before = u"v:read,write,delete,revert,admin All:" > > > > User "v" has all rights, and all others are locked out. > > So the problem is that even the package installer cannot write to the wiki. > Interestingly, I have a similar configuration for a wiki I routinely update > using the installer, with the only significant difference being "All:read" > in my case. > > > So this looks like the package installer logs in a as an other user. But > > which one? > > I'm not entirely sure, and looking at the 1.9 and 1.8 code (which differ in > the way they set up the machinery, with 1.8 being arguably easier to > follow), I can't track this down at the moment. Maybe with a bit more > energy tomorrow I'll figure it out. I've changed the ACL, to allow everything to everyone. Then it works, so far. This is an acceptable workaround for me, as I'll need it only once. But I've found another problem. The package installer chokes on a German umlaut in the file name of one of the attachments. When I rename the file, and set the ACL as described, installation is successful. Bye Volker From Christian.Molecki at stala.bwl.de Thu Jul 6 02:12:38 2017 From: Christian.Molecki at stala.bwl.de (Molecki, Christian (STL)) Date: Thu, 6 Jul 2017 06:12:38 +0000 Subject: [moin-user] Systemadmin Macro and Groups Message-ID: <205F109FB2535542BD9DB0753EFF6D3326DDC1E9@BWLSM15.ZD.BWL.NET> Hello, when using the systemadmin macro, all users of a wiki farm are shown. Certainly the related groups only for the current wiki instance, there the macro is executed, are found. Is there a possibility that all groups of all instances are associted to the users? Mit freundlichen Gr??en Christian Molecki -------------------------------------------- Statistisches Landesamt Baden-W?rttemberg Referat 14: Systemtechnik und Datenmanagement OE 143: Systemtechnik, Gro?rechner, Internettechnik, Datenmanagement B?blinger Str. 68 70199 Stuttgart Tel.: 0711/641-2457 Fax: 0711/641-2440 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christian.Molecki at stala.bwl.de Thu Jul 6 02:20:59 2017 From: Christian.Molecki at stala.bwl.de (Molecki, Christian (STL)) Date: Thu, 6 Jul 2017 06:20:59 +0000 Subject: [moin-user] How do I edit or remove the page footer? In-Reply-To: References: Message-ID: <205F109FB2535542BD9DB0753EFF6D3326DDCA33@BWLSM15.ZD.BWL.NET> Hello Roland, you have to search for the multiconfig.py file in the moinmoin installation path. It?s like: /usr/lib/python2.7/site-packages/MoinMoin/config/multiconfig.py In this file, the section ??page_credits?? (approx. line 970) describes the footer. Best Regards Christian Molecki Von: moin-user [mailto:moin-user-bounces+christian.molecki=stala.bwl.de at python.org] Im Auftrag von Roland Giesler Gesendet: Mittwoch, 28. Juni 2017 22:16 An: moin-user at python.org Betreff: [moin-user] How do I edit or remove the page footer? [https://mailtrack.io/trace/mail/f236f9569fd8d9b96b87a8445b0ef150b2cf983b.png?u=977006] I'd like to change the footer on each page. How can I do that? I have seen some references to pre and post footer customisation, but the wiki is not clear on how to use this. Anyway, it's not what I actually want to do. I'd rather change the whole footer. thanks Roland -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christian.Molecki at stala.bwl.de Thu Jul 6 05:45:30 2017 From: Christian.Molecki at stala.bwl.de (Molecki, Christian (STL)) Date: Thu, 6 Jul 2017 09:45:30 +0000 Subject: [moin-user] Linking UserNames to UserWiki Message-ID: <205F109FB2535542BD9DB0753EFF6D3326DDCB2F@BWLSM15.ZD.BWL.NET> Hello, we have a wikifarm with shared authentication and a wiki instance only for userhomepages. When I write a username on any site, MoinMoin tries to link on a page named with username on the current instance. The correct linking, should be like clicking on the profile. current write MyUser on TestWiki -> linking to testwiki/MyUser correct write MyUser on TestWiki -> linking to userwiki/MyUser Is this possible? Best Regards Christian Molecki -------------- next part -------------- An HTML attachment was scrubbed... URL: From kauer at biplane.com.au Sat Jul 8 13:39:30 2017 From: kauer at biplane.com.au (Karl Auer) Date: Sun, 09 Jul 2017 03:39:30 +1000 Subject: [moin-user] Migrate from 1.8.1 to 1.9.9 Message-ID: <1499535570.2603.100.camel@biplane.com.au> Hullo (again) I have a long-standing effort to migrate my 1.8.1 wiki to the latest version, currently 1.9.9. But I need to migrate it off the hardware it is on, too. What I have done is essentially this: - do a clean install of 1.9.9 (which works!)[1] - delete the data directory (except dict) - copy my old data directory in? - run Rick Vandermeer's cache-cleaning command[2] ???(modified for Linux and my paths) - fix permissions on data/cache/__sessions__ - restart Apache If I do this, basically nothing works. I get only "Internal server error". Ricks' instructions say to install the new version OVER the old version, but I don't have the old version working on the new hardware and getting it working seems like a serious task, as the old system has an older python, different paths... So I took the end state of the above and re-installed 1.9.9 over the top of it, re-ran the cache-clearing, fixed all permissions and ownership, and restarted Apache again. Still just an internal server error. As a sanity check I tested the clean install again, and it still worked. In the Apache error log, I see only two likely candidates. The first is only a warning: WARNING MoinMoin.log:112 /usr/local/lib/python2.7/dist- packages/MoinMoin/support/werkzeug/filesystem.py:63: BrokenFilesystemWarning: Detected a misconfigured UNIX filesystem: Will use UTF-8 as filesystem encoding instead of 'ANSI_X3.4-1968' The second seems to be more serious (I've removed syslog prefixes, pids and tids for readability, and elided most of the traceback): [wsgi:error] 2017-07-09 02:40:10,510 ERROR MoinMoin.wsgiapp:281 An exception has occurred [http://otherpi/]. [wsgi:error] [remote 192.168.1.142:54646] Traceback (most recent call last): [wsgi:error] [remote 192.168.1.142:54646]???File "/usr/local/lib/python2.7/dist- packages/MoinMoin/support/werkzeug/wsgi.py", line 599, in __call__[...] [wsgi:error] File "/usr/local/lib/python2.7/dist- packages/MoinMoin/Page.py", line 1030, in parse_processing_instructions [wsgi:error]?????if args in i18n.wikiLanguages(): [wsgi:error] TypeError: argument of type 'NoneType' is not iterable Anyway - I'm stuck. Can anyone offer assistance? Is there a better migration method? Regards, K. [1] https://moinmo.in/HowTo/UbuntuQuick [2] https://moinmo.in/RickVanderveer/UpgradingFromMoin18ToMoin19 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Karl Auer (kauer at biplane.com.au) http://www.biplane.com.au/kauer http://twitter.com/kauer389 GPG fingerprint: A52E F6B9 708B 51C4 85E6?1634 0571 ADF9 3C1C 6A3A Old fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B From paul at boddie.org.uk Sat Jul 8 14:51:56 2017 From: paul at boddie.org.uk (Paul Boddie) Date: Sat, 8 Jul 2017 20:51:56 +0200 Subject: [moin-user] Migrate from 1.8.1 to 1.9.9 In-Reply-To: <1499535570.2603.100.camel@biplane.com.au> References: <1499535570.2603.100.camel@biplane.com.au> Message-ID: <201707082051.57247.paul@boddie.org.uk> On Saturday 8. July 2017 19.39.30 Karl Auer wrote: > > In the Apache error log, I see only two likely candidates. The first is > only a warning: > > WARNING MoinMoin.log:112 /usr/local/lib/python2.7/dist- > packages/MoinMoin/support/werkzeug/filesystem.py:63: > BrokenFilesystemWarning: Detected a misconfigured UNIX filesystem: Will > use UTF-8 as filesystem encoding instead of 'ANSI_X3.4-1968' This reminds me of discussions in the Python core development community, but I think they only concern Python 3, unless they're planning to backport them to Python 2.7 and break people's code. > The second seems to be more serious (I've removed syslog prefixes, pids > and tids for readability, and elided most of the traceback): > > [wsgi:error] 2017-07-09 02:40:10,510 ERROR MoinMoin.wsgiapp:281 An > exception has occurred [http://otherpi/]. > [wsgi:error] [remote 192.168.1.142:54646] Traceback (most recent call > last): > [wsgi:error] [remote 192.168.1.142:54646] File > "/usr/local/lib/python2.7/dist- > packages/MoinMoin/support/werkzeug/wsgi.py", line 599, in __call__[...] > [wsgi:error] File "/usr/local/lib/python2.7/dist- > packages/MoinMoin/Page.py", line 1030, in parse_processing_instructions > [wsgi:error] if args in i18n.wikiLanguages(): > [wsgi:error] TypeError: argument of type 'NoneType' is not iterable I hate this error! Every time I encounter it, I cannot remember what the cause of it is. https://moinmo.in/MoinMoinBugs/argument_of_type_'NoneType'_is_not_iterable If it isn't filesystem permissions within data/cache, then it could be old cache files that have not been eliminated, or it could be .pyc files from older libraries within the MoinMoin package. Paul From kauer at biplane.com.au Sat Jul 8 21:09:09 2017 From: kauer at biplane.com.au (Karl Auer) Date: Sun, 09 Jul 2017 11:09:09 +1000 Subject: [moin-user] Migrate from 1.8.1 to 1.9.9 In-Reply-To: <201707082051.57247.paul@boddie.org.uk> References: <1499535570.2603.100.camel@biplane.com.au> <201707082051.57247.paul@boddie.org.uk> Message-ID: <1499562549.2603.112.camel@biplane.com.au> On Sat, 2017-07-08 at 20:51 +0200, Paul Boddie wrote: > > [wsgi:error] TypeError: argument of type 'NoneType' is not iterable > I hate this error! Every time I encounter it, I cannot remember what > the cause of it is. > > https://moinmo.in/MoinMoinBugs/argument_of_type_'NoneType'_is_not_ite > rable Thanks. I've had a look at that page. And made progress, see end of this email. The cache was cleaned using "sudo python /usr/local/lib/python2.7/dist- packages/MoinMoin/script/moin.py --config-dir=/usr/local/share/moin -- wiki-url=localhost maint cleancache" Every file in the entire tree below /usr/local/share/moin is readable and writeable by www-data:www-data. I don't understand "moin migration data". I'm guessing it is shorthand for: sudo python /usr/local/lib/python2.7/dist- packages/MoinMoin/script/moin.py --config-dir=/usr/local/share/moin -- wiki-url=localhost migration data" Can you confirm, or gove me a little more info on the exact procedure there? > If it isn't filesystem permissions within data/cache, then it could > be old?cache files that have not been eliminated, or it could be .pyc > files from?older libraries within the MoinMoin package. Unless there is code inside the data directory, the installation is a clean 1.9.9 install, with only my data replacing the default data. That does include the languages though... and wikiconfig.py. I've been over and over wikiconfig.py and apache has been multiply restarted... Now to progress: More or less on a hunch, I wiped my install back to clean (I kept a copy of the clean install), copied my data into the data directory, then copied the clean install's version of data/cache/wikiconfig over mine. That replaced the i18n and surgeprotect directories. Ran "maint cleancache" again and reset the permissions again, and my site now works! With one fairly big exception: No editor. All I get is the option to edit text. Preferences are set to "free choice". Any clues on where the editor is hiding? Regards, K -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Karl Auer (kauer at biplane.com.au) http://www.biplane.com.au/kauer http://twitter.com/kauer389 GPG fingerprint: A52E F6B9 708B 51C4 85E6?1634 0571 ADF9 3C1C 6A3A Old fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B From kauer at biplane.com.au Sat Jul 8 21:22:30 2017 From: kauer at biplane.com.au (Karl Auer) Date: Sun, 09 Jul 2017 11:22:30 +1000 Subject: [moin-user] Migrate from 1.8.1 to 1.9.9 In-Reply-To: <1499562549.2603.112.camel@biplane.com.au> References: <1499535570.2603.100.camel@biplane.com.au> <201707082051.57247.paul@boddie.org.uk> <1499562549.2603.112.camel@biplane.com.au> Message-ID: <1499563350.2603.115.camel@biplane.com.au> On Sun, 2017-07-09 at 11:09 +1000, Karl Auer wrote: > With one fairly big exception: No editor. All I get is the option to > edit text. Preferences are set to "free choice". > Any clues on where the editor is hiding? BTW I installed MoinMoin from the downloaded tarball, not via apt-get. Regards, K. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Karl Auer (kauer at biplane.com.au) http://www.biplane.com.au/kauer http://twitter.com/kauer389 GPG fingerprint: A52E F6B9 708B 51C4 85E6?1634 0571 ADF9 3C1C 6A3A Old fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B From kauer at biplane.com.au Sat Jul 8 22:07:21 2017 From: kauer at biplane.com.au (Karl Auer) Date: Sun, 09 Jul 2017 12:07:21 +1000 Subject: [moin-user] Migrate from 1.8.1 to 1.9.9 In-Reply-To: <1499563350.2603.115.camel@biplane.com.au> References: <1499535570.2603.100.camel@biplane.com.au> <201707082051.57247.paul@boddie.org.uk> <1499562549.2603.112.camel@biplane.com.au> <1499563350.2603.115.camel@biplane.com.au> Message-ID: <1499566041.2603.117.camel@biplane.com.au> On Sun, 2017-07-09 at 11:22 +1000, Karl Auer wrote: > On Sun, 2017-07-09 at 11:09 +1000, Karl Auer wrote: > > With one fairly big exception: No editor. All I get is the option > > to edit text. Preferences are set to "free choice". > > Any clues on where the editor is hiding? > BTW I installed MoinMoin from the downloaded tarball, not via apt- > get. And also BTW, there is no GUI editor in the clean install either :-( I've checked and it is certainly in the tarball. It is also present as a bunch of files in?/usr/local/lib/python2.7/dist- packages/MoinMoin/web/static/htdocs/applets/FCKeditor Regards, K. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Karl Auer (kauer at biplane.com.au) http://www.biplane.com.au/kauer http://twitter.com/kauer389 GPG fingerprint: A52E F6B9 708B 51C4 85E6?1634 0571 ADF9 3C1C 6A3A Old fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B From lists at sumpfralle.de Sun Jul 9 07:20:14 2017 From: lists at sumpfralle.de (Lars Kruse) Date: Sun, 9 Jul 2017 13:20:14 +0200 Subject: [moin-user] Migrate from 1.8.1 to 1.9.9 In-Reply-To: <1499566041.2603.117.camel@biplane.com.au> References: <1499535570.2603.100.camel@biplane.com.au> <201707082051.57247.paul@boddie.org.uk> <1499562549.2603.112.camel@biplane.com.au> <1499563350.2603.115.camel@biplane.com.au> <1499566041.2603.117.camel@biplane.com.au> Message-ID: <20170709132014.1a391f3c@erker.lan> Hello Karl, Am Sun, 09 Jul 2017 12:07:21 +1000 schrieb Karl Auer : > And also BTW, there is no GUI editor in the clean install either :-( > > I've checked and it is certainly in the tarball. It is also present as > a bunch of files in?/usr/local/lib/python2.7/dist- > packages/MoinMoin/web/static/htdocs/applets/FCKeditor did you check if your browser console (or the webserver error log) contains "not found" responses for editor-related ressources? Cheers, Lars From david.franzkoch at mh-trossingen.de Sun Jul 9 07:22:02 2017 From: david.franzkoch at mh-trossingen.de (david.franzkoch at mh-trossingen.de) Date: Sun, 9 Jul 2017 11:22:02 +0000 Subject: [moin-user] AUTOREPLY Re: Migrate from 1.8.1 to 1.9.9 Message-ID: <0019E246.59622DFA@nt01.mh-trossingen.de> Sehr geehrte Damen und Herren, ich bis zum 10.7.17 im urlaub. Meine eMails werde ich nur sporadisch lesen. Wenn Sie schnelle hilfe ben?tigen, kontaktieren Sie mich bitte auf dem Handy (na?rlich nur in dringenden F?llen). 01520 / 6535 378 David Franzkoch, Administration IT Hello Karl, Am Sun, 09 Jul 2017 12:07:21 +1000 schrieb Karl Auer : > And also BTW, there is no GUI editor in the clean install either :-( > > I've checked and it is certainly in the tarball. It is also present as > a bunch of files in?/usr/local/lib/python2.7/dist- > packages/MoinMoin/web/static/htdocs/applets/FCKeditor did you check if your browser console (or the webserver error log) contains "not found" responses for editor-related ressources? Cheers, Lars _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user From kauer at biplane.com.au Sun Jul 9 08:04:34 2017 From: kauer at biplane.com.au (Karl Auer) Date: Sun, 09 Jul 2017 22:04:34 +1000 Subject: [moin-user] Migrate from 1.8.1 to 1.9.9 In-Reply-To: <20170709132014.1a391f3c@erker.lan> References: <1499535570.2603.100.camel@biplane.com.au> <201707082051.57247.paul@boddie.org.uk> <1499562549.2603.112.camel@biplane.com.au> <1499563350.2603.115.camel@biplane.com.au> <1499566041.2603.117.camel@biplane.com.au> <20170709132014.1a391f3c@erker.lan> Message-ID: <1499601874.2603.136.camel@biplane.com.au> On Sun, 2017-07-09 at 13:20 +0200, Lars Kruse wrote: > did you check if your browser console (or the webserver error log) > contains "not found" responses for editor-related ressources? Not until you asked. There is no "Edit (GUI)" button on any page, so no way to invoke the editor normally, so no reason (I would think) for errors to be thrown. However, I manually entered a GUI edit link: http://otherpi/FrontPage?action=edit&editor=gui What happened was a page showing Save Changes, Preview, Text mode, Check Spelling, and Cancel buttons, plus a comment field and an "Add To" drop-down list. The actual editor pane was missing. Clicking in the "Text Mode" button took me to a working (text) editor pane. No entries except the one about "Detected a misconfigured UNIX filesystem" were written to the Apache error log. The access log shows nothing of note either. Just in case, I looked further afield in places like syslog and messages - didn't expect to see anything, and didn't. The GUI editor is clearly present, it's just sort of disconnected from the wiki. Could this be something to do with the URL for static web pages? I'm running the wiki from the root of this server, so left that URL alone in wikiconfig.py. I'm talking about this section: ? ? # The URL prefix we use to access the static stuff (img, css, js). ????# Note: moin runs a static file server at url_prefix_static path (relative ????# to the script url). ????# If you run your wiki script at the root of your site (/), just do NOT ????# use this setting and it will automatically work. ????# If you run your wiki script at /mywiki, you need to use this: ????#url_prefix_static = '/mywiki' + url_prefix_static Since the wiki can find my custom logo, and the custom logo was placed in /usr/local/lib/python2.7/dist- packages/MoinMoin/web/static/htdocs/common, it seems that url_prefix_static is that path, up to and including "htdocs". The editor code is below that path, in ./applets/FCKeditor. So I remain mystified as to why the editor is not being found (or if found is not being used) by MoinMoin. Regards, K. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Karl Auer (kauer at biplane.com.au) http://www.biplane.com.au/kauer http://twitter.com/kauer389 GPG fingerprint: A52E F6B9 708B 51C4 85E6?1634 0571 ADF9 3C1C 6A3A Old fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B From kauer at biplane.com.au Sun Jul 9 08:18:54 2017 From: kauer at biplane.com.au (Karl Auer) Date: Sun, 09 Jul 2017 22:18:54 +1000 Subject: [moin-user] Migrate from 1.8.1 to 1.9.9 In-Reply-To: <20170709132014.1a391f3c@erker.lan> References: <1499535570.2603.100.camel@biplane.com.au> <201707082051.57247.paul@boddie.org.uk> <1499562549.2603.112.camel@biplane.com.au> <1499563350.2603.115.camel@biplane.com.au> <1499566041.2603.117.camel@biplane.com.au> <20170709132014.1a391f3c@erker.lan> Message-ID: <1499602734.2603.139.camel@biplane.com.au> On Sun, 2017-07-09 at 13:20 +0200, Lars Kruse wrote: > did you check if your browser console (or the webserver error log) > contains "not found" responses for editor-related ressources? Oh, the embarrassment :-( I had scripts blocked. Unblocked them, GUI editor now working :-) Regards, K. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Karl Auer (kauer at biplane.com.au) http://www.biplane.com.au/kauer http://twitter.com/kauer389 GPG fingerprint: A52E F6B9 708B 51C4 85E6?1634 0571 ADF9 3C1C 6A3A Old fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B From cdmartz at gmail.com Sun Jul 9 12:57:57 2017 From: cdmartz at gmail.com (Chris Martzloff) Date: Sun, 9 Jul 2017 12:57:57 -0400 Subject: [moin-user] latest moin 1.9.9 patches Message-ID: Hello, I'm not quite sure of how to go about applying the latest patch for 1.9.9. Is it just editing these 4 files ? I did edit the 4 files but after I ran this install script: python setup.py install --force --prefix /usr/local --record=install.log Is this ok, or should i have done this before running the install script ? Thanks, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at boddie.org.uk Sun Jul 9 13:11:23 2017 From: paul at boddie.org.uk (Paul Boddie) Date: Sun, 9 Jul 2017 19:11:23 +0200 Subject: [moin-user] latest moin 1.9.9 patches In-Reply-To: References: Message-ID: <201707091911.24477.paul@boddie.org.uk> On Sunday 9. July 2017 18.57.57 Chris Martzloff wrote: > > I'm not quite sure of how to go about applying the latest patch for 1.9.9. > > Is it just editing these 4 files ? > > I did edit the 4 files but after I ran this install script: > > python setup.py install --force --prefix /usr/local --record=install.log > > > Is this ok, or should i have done this before running the install script ? I would think that if you apply the patch as described here... https://moinmo.in/SecurityFixes/Installation ...and if it was done in the distribution rather than in the installation location (which that page doesn't really make very clear), then running the install command as you've done should apply the patch to your installation. But you have to apply the patch *before* running the install command. Otherwise, you will only be installing the unchanged files again. Once you've done these things in the correct order, you can of course check the installation by viewing various files in-place to see if the fixes were introduced. I hope this makes a bit more sense! Paul From kauer at biplane.com.au Mon Jul 10 03:39:16 2017 From: kauer at biplane.com.au (Karl Auer) Date: Mon, 10 Jul 2017 17:39:16 +1000 Subject: [moin-user] Migrate from 1.8.1 to 1.9.9 In-Reply-To: <1499535570.2603.100.camel@biplane.com.au> References: <1499535570.2603.100.camel@biplane.com.au> Message-ID: <1499672356.2603.161.camel@biplane.com.au> On Sun, 2017-07-09 at 03:39 +1000, Karl Auer wrote: > I have a long-standing effort to migrate my 1.8.1 wiki to the latest > version, currently 1.9.9. But I need to migrate it off the hardware > it is on, too. Many thanks to those who offered assistance. And many thanks to Paul Vanderveer for his upgrade page, which though it did not apply exactly to my situation, was a VERY useful starting point. Just in case it might be helpful to others, here's what I ended up doing (with the detours and stuff-ups removed): ? ?http://biplane.com.au/blog/?p=487 My wiki is now alive and well again, running on a Raspberry Pi 3 :-)? The old IBM ThinkPad T30 that it used to run on will be retired. In triumph, because it ain't dead yet! Purchased in July 2003, the T30 has been running Linux 24/7 with only the occasional pause of a day or two here and there. In that time it has had one new fan and one new HDD, both over six years ago. Damn fine hardware. Regards, K. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Karl Auer (kauer at biplane.com.au) http://www.biplane.com.au/kauer http://twitter.com/kauer389 GPG fingerprint: A52E F6B9 708B 51C4 85E6?1634 0571 ADF9 3C1C 6A3A Old fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B From lars.nooden at gmail.com Sat Jul 29 09:53:56 2017 From: lars.nooden at gmail.com (=?UTF-8?Q?Lars_Nood=c3=a9n?=) Date: Sat, 29 Jul 2017 16:53:56 +0300 Subject: [moin-user] moinmoin 1.9.8 : errors attempting to reset account password via shell Message-ID: <1381d01e-e7cc-bd35-ecca-7e7f8c0f552c@gmail.com> I seem to have MoinMoin 1.9.8 at least partially set up. I can add new accounts via the web and edit pages and so on. What I would like to do is use the shell interface to reset the password for an account. From what I understand it should be the following: moin account resetpw --name=someaccount newpassword However, when I run "moin" from the shell with those options I get the errors below. What do I need to change to be able to reset passwords manually via the shell? Regards, Lars 2017-07-29 16:07:13,271 INFO MoinMoin.log:151 using logging configuration read from built-in fallback in MoinMoin.log module 2017-07-29 16:07:13,274 INFO MoinMoin.log:157 Running MoinMoin 1.9.8 release code from /usr/local/lib/python2.7/site-packages/MoinMoin 2017-07-29 16:07:14,773 INFO MoinMoin.config.multiconfig:93 using farm config: /home/wiki/farmconfig.pyc Traceback (most recent call last): File "./moin", line 6, in run() File "/usr/local/lib/python2.7/site-packages/MoinMoin/script/moin.py", line 15, in run MoinScript().run(showtime=0) File "/usr/local/lib/python2.7/site-packages/MoinMoin/script/__init__.py", line 138, in run self.mainloop() File "/usr/local/lib/python2.7/site-packages/MoinMoin/script/__init__.py", line 266, in mainloop plugin_class(args[2:], self.options).run() # all starts again there File "/usr/local/lib/python2.7/site-packages/MoinMoin/script/__init__.py", line 138, in run self.mainloop() File "/usr/local/lib/python2.7/site-packages/MoinMoin/script/account/resetpw.py", line 116, in mainloop self.init_request() File "/usr/local/lib/python2.7/site-packages/MoinMoin/script/__init__.py", line 185, in init_request self.request = ScriptContext(url, self.options.page) File "/usr/local/lib/python2.7/site-packages/MoinMoin/web/contexts.py", line 439, in __init__ wsgiapp.init(self) File "/usr/local/lib/python2.7/site-packages/MoinMoin/wsgiapp.py", line 52, in init context.lang = setup_i18n_preauth(context) File "/usr/local/lib/python2.7/site-packages/MoinMoin/wsgiapp.py", line 241, in setup_i18n_preauth i18n.i18n_init(context) File "/usr/local/lib/python2.7/site-packages/MoinMoin/i18n/__init__.py", line 73, in i18n_init meta_cache = caching.CacheEntry(request, 'i18n', 'meta', scope='wiki', use_pickle=True) File "/usr/local/lib/python2.7/site-packages/MoinMoin/caching.py", line 73, in __init__ self.arena_dir = get_arena_dir(request, arena, scope) File "/usr/local/lib/python2.7/site-packages/MoinMoin/caching.py", line 32, in get_arena_dir return os.path.join(request.cfg.cache_dir, request.cfg.siteid, arena) File "/usr/local/lib/python2.7/site-packages/MoinMoin/web/contexts.py", line 56, in get res = obj.environ.setdefault(self.name, factory(obj)) File "/usr/local/lib/python2.7/site-packages/MoinMoin/web/contexts.py", line 132, in cfg raise NotFound('

No wiki configuration matching the URL found!

') werkzeug.exceptions.NotFound: 404:

No wiki configuration matching the URL found!

From paul at boddie.org.uk Sat Jul 29 10:43:47 2017 From: paul at boddie.org.uk (Paul Boddie) Date: Sat, 29 Jul 2017 16:43:47 +0200 Subject: [moin-user] moinmoin 1.9.8 : errors attempting to reset account password via shell In-Reply-To: <1381d01e-e7cc-bd35-ecca-7e7f8c0f552c@gmail.com> References: <1381d01e-e7cc-bd35-ecca-7e7f8c0f552c@gmail.com> Message-ID: <201707291643.48199.paul@boddie.org.uk> On Saturday 29. July 2017 15.53.56 Lars Nood?n wrote: > I seem to have MoinMoin 1.9.8 at least partially set up. I can add new > accounts via the web and edit pages and so on. What I would like to do > is use the shell interface to reset the password for an account. From > what I understand it should be the following: > > moin account resetpw --name=someaccount newpassword > > However, when I run "moin" from the shell with those options I get the > errors below. What do I need to change to be able to reset passwords > manually via the shell? You may need to adjust the following... The PYTHONPATH environment variable so that moin can find the right libraries. You seem to have Moin in /usr/local, so this may not be an issue. The --config-dir option to the moin program. This usually needs setting to the path where your wikiconfig.py file is found. The --wiki-url option to the moin program. This seems to be important when dealing with wikifarms where multiple wikis are available, but it is also possible that some operations need URL information. The privileges used to run the command. Some operations won't work if moin encounters files it cannot update with the privileges it has. In the traceback, I see some references to the dreaded caching system: [...] > File > "/usr/local/lib/python2.7/site-packages/MoinMoin/i18n/__init__.py", line > 73, in i18n_init > meta_cache = caching.CacheEntry(request, 'i18n', 'meta', > scope='wiki', use_pickle=True) > File "/usr/local/lib/python2.7/site-packages/MoinMoin/caching.py", > line 73, in __init__ > self.arena_dir = get_arena_dir(request, arena, scope) > File "/usr/local/lib/python2.7/site-packages/MoinMoin/caching.py", > line 32, in get_arena_dir > return os.path.join(request.cfg.cache_dir, request.cfg.siteid, arena) I always get worried about this because you can get some very difficult-to- follow errors when the cache mechanism isn't working for some reason. However, I think it may be the following request-related operations which fail: > File > "/usr/local/lib/python2.7/site-packages/MoinMoin/web/contexts.py", line > 56, in get > res = obj.environ.setdefault(self.name, factory(obj)) > File > "/usr/local/lib/python2.7/site-packages/MoinMoin/web/contexts.py", line > 132, in cfg > raise NotFound('

No wiki configuration matching the URL found!

') > werkzeug.exceptions.NotFound: 404:

No wiki configuration matching the > URL found!

I would start with setting --config-dir and see what error you get next. Paul From lars.nooden at gmail.com Sat Jul 29 11:00:17 2017 From: lars.nooden at gmail.com (=?UTF-8?Q?Lars_Nood=c3=a9n?=) Date: Sat, 29 Jul 2017 18:00:17 +0300 Subject: [moin-user] moinmoin 1.9.8 : errors attempting to reset account password via shell In-Reply-To: <201707291643.48199.paul@boddie.org.uk> References: <1381d01e-e7cc-bd35-ecca-7e7f8c0f552c@gmail.com> <201707291643.48199.paul@boddie.org.uk> Message-ID: On 07/29/2017 05:43 PM, Paul Boddie wrote: [snip] > I would start with setting --config-dir and see what error you get next. Thanks for the reply. I'm not sure I have applied that option correctly as I still get quite a long error message. From the following: moin --config-dir=/home/wiki/ \ account resetpw --name=someaccount newpassword I get the errors below. Regards, Lars 2017-07-29 17:47:48,726 INFO MoinMoin.log:151 using logging configuration read from built-in fallback in MoinMoin.log module 2017-07-29 17:47:48,730 INFO MoinMoin.log:157 Running MoinMoin 1.9.8 release code from /usr/local/lib/python2.7/site-packages/MoinMoin 2017-07-29 17:47:50,477 INFO MoinMoin.config.multiconfig:93 using farm config: /home/wiki/farmconfig.pyc Traceback (most recent call last): File "/usr/local/bin/moin", line 6, in run() File "/usr/local/lib/python2.7/site-packages/MoinMoin/script/moin.py", line 15, in run MoinScript().run(showtime=0) File "/usr/local/lib/python2.7/site-packages/MoinMoin/script/__init__.py", line 138, in run self.mainloop() File "/usr/local/lib/python2.7/site-packages/MoinMoin/script/__init__.py", line 266, in mainloop plugin_class(args[2:], self.options).run() # all starts again there File "/usr/local/lib/python2.7/site-packages/MoinMoin/script/__init__.py", line 138, in run self.mainloop() File "/usr/local/lib/python2.7/site-packages/MoinMoin/script/account/resetpw.py", line 116, in mainloop self.init_request() File "/usr/local/lib/python2.7/site-packages/MoinMoin/script/__init__.py", line 185, in init_request self.request = ScriptContext(url, self.options.page) File "/usr/local/lib/python2.7/site-packages/MoinMoin/web/contexts.py", line 439, in __init__ wsgiapp.init(self) File "/usr/local/lib/python2.7/site-packages/MoinMoin/wsgiapp.py", line 52, in init context.lang = setup_i18n_preauth(context) File "/usr/local/lib/python2.7/site-packages/MoinMoin/wsgiapp.py", line 241, in setup_i18n_preauth i18n.i18n_init(context) File "/usr/local/lib/python2.7/site-packages/MoinMoin/i18n/__init__.py", line 73, in i18n_init meta_cache = caching.CacheEntry(request, 'i18n', 'meta', scope='wiki', use_pickle=True) File "/usr/local/lib/python2.7/site-packages/MoinMoin/caching.py", line 73, in __init__ self.arena_dir = get_arena_dir(request, arena, scope) File "/usr/local/lib/python2.7/site-packages/MoinMoin/caching.py", line 32, in get_arena_dir return os.path.join(request.cfg.cache_dir, request.cfg.siteid, arena) File "/usr/local/lib/python2.7/site-packages/MoinMoin/web/contexts.py", line 56, in get res = obj.environ.setdefault(self.name, factory(obj)) File "/usr/local/lib/python2.7/site-packages/MoinMoin/web/contexts.py", line 132, in cfg raise NotFound('

No wiki configuration matching the URL found!

') werkzeug.exceptions.NotFound: 404:

No wiki configuration matching the URL found!

From paul at boddie.org.uk Sat Jul 29 11:05:21 2017 From: paul at boddie.org.uk (Paul Boddie) Date: Sat, 29 Jul 2017 17:05:21 +0200 Subject: [moin-user] moinmoin 1.9.8 : errors attempting to reset account password via shell In-Reply-To: References: <1381d01e-e7cc-bd35-ecca-7e7f8c0f552c@gmail.com> <201707291643.48199.paul@boddie.org.uk> Message-ID: <201707291705.21805.paul@boddie.org.uk> On Saturday 29. July 2017 17.00.17 Lars Nood?n wrote: > On 07/29/2017 05:43 PM, Paul Boddie wrote: > [snip] > > > I would start with setting --config-dir and see what error you get next. > > Thanks for the reply. I'm not sure I have applied that option correctly > as I still get quite a long error message. From the following: > > moin --config-dir=/home/wiki/ \ > account resetpw --name=someaccount newpassword > > I get the errors below. This is what I might have written, if /home/wiki contains wikiconfig.py, so we may be dealing with another problem. Can the user running this command access the configuration file? [...] > File > "/usr/local/lib/python2.7/site-packages/MoinMoin/web/contexts.py", line > 132, in cfg > raise NotFound('

No wiki configuration matching the URL found!

') > werkzeug.exceptions.NotFound: 404:

No wiki configuration matching the > URL found!

This does seem familiar, but I can't immediately remember what I did wrong the last time I saw this using the moin program. Paul From lars.nooden at gmail.com Sat Jul 29 11:12:21 2017 From: lars.nooden at gmail.com (=?UTF-8?Q?Lars_Nood=c3=a9n?=) Date: Sat, 29 Jul 2017 18:12:21 +0300 Subject: [moin-user] moinmoin 1.9.8 : errors attempting to reset account password via shell In-Reply-To: <201707291705.21805.paul@boddie.org.uk> References: <1381d01e-e7cc-bd35-ecca-7e7f8c0f552c@gmail.com> <201707291643.48199.paul@boddie.org.uk> <201707291705.21805.paul@boddie.org.uk> Message-ID: On 07/29/2017 06:05 PM, Paul Boddie wrote: > On Saturday 29. July 2017 17.00.17 Lars Nood?n wrote: >> On 07/29/2017 05:43 PM, Paul Boddie wrote: >> [snip] >> >>> I would start with setting --config-dir and see what error you get next. >> >> Thanks for the reply. I'm not sure I have applied that option correctly >> as I still get quite a long error message. From the following: >> >> moin --config-dir=/home/wiki/ \ >> account resetpw --name=someaccount newpassword >> >> I get the errors below. > > This is what I might have written, if /home/wiki contains wikiconfig.py, so we > may be dealing with another problem. Can the user running this command access > the configuration file? Yes, though I am not sure what level of permission is adequate. $ whoami user1 $ ls -lhd /home/wiki/ drwxr-xr-x 5 user1 user1 512B Jul 29 17:47 /home/wiki/ $ ls -lh /home/wiki/ total 52 drwxr-xr-x 5 user1 user1 512B Jul 14 20:39 wiki1 -rw-r--r-- 1 user1 user1 1.4K Jul 14 21:31 wiki1.py -rw-r--r-- 1 user1 user1 819B Jul 14 21:31 wiki1.pyc -rw-r--r-- 1 user1 user1 6.9K Jul 29 16:41 farmconfig.py -rw-r----- 1 user1 user1 1.6K Jul 29 16:42 farmconfig.pyc -rw-r--r-- 1 user1 user1 571B Jul 14 20:48 log.conf drwxr-xr-x 2 user1 user1 512B Jul 14 20:48 logs -rwxr-xr-x 1 user1 user1 3.3K Jul 29 11:36 moin.fcgi drwxr-xr-x 3 user1 user1 512B Jul 14 21:01 underlay [...] Regards, Lars From paul at boddie.org.uk Sat Jul 29 11:43:50 2017 From: paul at boddie.org.uk (Paul Boddie) Date: Sat, 29 Jul 2017 17:43:50 +0200 Subject: [moin-user] moinmoin 1.9.8 : errors attempting to reset account password via shell In-Reply-To: References: <1381d01e-e7cc-bd35-ecca-7e7f8c0f552c@gmail.com> <201707291705.21805.paul@boddie.org.uk> Message-ID: <201707291743.51210.paul@boddie.org.uk> On Saturday 29. July 2017 17.12.21 Lars Nood?n wrote: > On 07/29/2017 06:05 PM, Paul Boddie wrote: > > > > This is what I might have written, if /home/wiki contains wikiconfig.py, > > so we may be dealing with another problem. Can the user running this > > command access the configuration file? > > Yes, though I am not sure what level of permission is adequate. > > $ whoami > user1 > > $ ls -lhd /home/wiki/ > drwxr-xr-x 5 user1 user1 512B Jul 29 17:47 /home/wiki/ > > $ ls -lh /home/wiki/ > total 52 > drwxr-xr-x 5 user1 user1 512B Jul 14 20:39 wiki1 > -rw-r--r-- 1 user1 user1 1.4K Jul 14 21:31 wiki1.py > -rw-r--r-- 1 user1 user1 819B Jul 14 21:31 wiki1.pyc > -rw-r--r-- 1 user1 user1 6.9K Jul 29 16:41 farmconfig.py > -rw-r----- 1 user1 user1 1.6K Jul 29 16:42 farmconfig.pyc > -rw-r--r-- 1 user1 user1 571B Jul 14 20:48 log.conf > drwxr-xr-x 2 user1 user1 512B Jul 14 20:48 logs > -rwxr-xr-x 1 user1 user1 3.3K Jul 29 11:36 moin.fcgi > drwxr-xr-x 3 user1 user1 512B Jul 14 21:01 underlay These look OK to me. Obviously, what the Web server thinks is another matter, but given that you're running moin as user1 and the configuration files are read/write for user1, it should be able to read the configuration. I see you have a farmconfig.py file. Can you specify the --wiki-url option to moin with the appropriate site address? Something like this... --wiki-url=mysite.tld/wiki1 In other words, something that will cause a match in the wikis list in your farmconfig.py file. In that list you might have an entry like this: ("wiki1" : r"^([^/]*//)?mysite.tld/wiki1(/.*)?$") Here, the first bracketed expression just handles any scheme information. I can't remember whether Moin likes to present that when matching URLs, so in this example I include it. Maybe it could be written like this, though: ("wiki1" : r"^mysite.tld/wiki1(/.*)?$") I'd have to look at the actual code to remind myself of the details. Paul From lars.nooden at gmail.com Sat Jul 29 12:07:45 2017 From: lars.nooden at gmail.com (=?UTF-8?Q?Lars_Nood=c3=a9n?=) Date: Sat, 29 Jul 2017 19:07:45 +0300 Subject: [moin-user] Solved - moinmoin 1.9.8 : errors attempting to reset account password via shell In-Reply-To: <201707291743.51210.paul@boddie.org.uk> References: <1381d01e-e7cc-bd35-ecca-7e7f8c0f552c@gmail.com> <201707291705.21805.paul@boddie.org.uk> <201707291743.51210.paul@boddie.org.uk> Message-ID: On 07/29/2017 06:43 PM, Paul Boddie wrote: [...] > I see you have a farmconfig.py file. Can you specify the --wiki-url option to > moin with the appropriate site address? Something like this... > > --wiki-url=mysite.tld/wiki1 > > In other words, something that will cause a match in the wikis list in your > farmconfig.py file. [...] Thanks! It turns out I had to use both --wiki-url and --config-dir to get the password reset to work for that user on that wiki. moin --wiki-url=https://wiki1.example.org/wiki/wiki1/ \ --config-dir=/home/wiki/ / account resetpw --name=someaccount newpassword I don't suppose there's a way to configure things once and for all so that I can skip that step? Regards, Lars From paul at boddie.org.uk Sat Jul 29 13:09:23 2017 From: paul at boddie.org.uk (Paul Boddie) Date: Sat, 29 Jul 2017 19:09:23 +0200 Subject: [moin-user] Solved - moinmoin 1.9.8 : errors attempting to reset account password via shell In-Reply-To: References: <1381d01e-e7cc-bd35-ecca-7e7f8c0f552c@gmail.com> <201707291743.51210.paul@boddie.org.uk> Message-ID: <201707291909.23724.paul@boddie.org.uk> On Saturday 29. July 2017 18.07.45 Lars Nood?n wrote: > > Thanks! It turns out I had to use both --wiki-url and --config-dir to > get the password reset to work for that user on that wiki. > > moin --wiki-url=https://wiki1.example.org/wiki/wiki1/ \ > --config-dir=/home/wiki/ / > account resetpw --name=someaccount newpassword > > I don't suppose there's a way to configure things once and for all so > that I can skip that step? Not that I know of. Moin needs to know both in order to configure the right wiki. Although some things are common to all the wikis in a farm, I don't know whether the moin tool and especially the general configuration framework are easily able to just ignore wiki-specific things and configure the common things. My own solution to wiki management is a kind of wrapper with its own configuration file that tells the moin tool about the site it is configuring. I notice now, looking at it, that it doesn't use --wiki-url at all. But maybe I haven't given it a proper workout configuring wikifarms. Paul From post at volker-wysk.de Mon Jul 31 08:52:08 2017 From: post at volker-wysk.de (Volker Wysk) Date: Mon, 31 Jul 2017 14:52:08 +0200 Subject: [moin-user] Deleting revisions with the package installer Message-ID: <2292762.0E2iFfyGRl@desktop> Hi! Just a little feedback: I'm missing some "DeleteRevision" or "DeleteLastRevision" command in the package installer. Bye V.W. From post at volker-wysk.de Mon Jul 31 12:26:19 2017 From: post at volker-wysk.de (Volker Wysk) Date: Mon, 31 Jul 2017 18:26:19 +0200 Subject: [moin-user] How to rename pages and subpages? Message-ID: <4198067.TvaymrWUTI@desktop> Hello! Let's look at this: I have some page named "foo" and subpages "foo/bar" and "foo/baz". Now, how to rename "foo" to "foo1", such that the path component "foo" in the subpages changes as well? I want them to be "foo1/bar" and "foo1/ baz", but they stay at "foo/bar" and "foo/baz". Bye Volker