<p dir="ltr">Help</p>
<div class="gmail_quote">On Oct 13, 2014 5:02 PM,  <<a href="mailto:moin-user-request@lists.sourceforge.net">moin-user-request@lists.sourceforge.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Moin-user mailing list submissions to<br>
        <a href="mailto:moin-user@lists.sourceforge.net">moin-user@lists.sourceforge.net</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.sourceforge.net/lists/listinfo/moin-user" target="_blank">https://lists.sourceforge.net/lists/listinfo/moin-user</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:moin-user-request@lists.sourceforge.net">moin-user-request@lists.sourceforge.net</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:moin-user-owner@lists.sourceforge.net">moin-user-owner@lists.sourceforge.net</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Moin-user digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Moin-user Digest, Vol 96, Issue 2 (Mansi Gokhale)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 13 Oct 2014 17:02:01 +0530<br>
From: Mansi Gokhale <<a href="mailto:gokhalemansi12@gmail.com">gokhalemansi12@gmail.com</a>><br>
Subject: Re: [Moin-user] Moin-user Digest, Vol 96, Issue 2<br>
To: <a href="mailto:moin-user@lists.sourceforge.net">moin-user@lists.sourceforge.net</a><br>
Message-ID:<br>
        <CANuZ4SFZsG7NDks3jkd=<a href="mailto:F0EE-aoNM%2BRx9x-bia6Og4oMbombiA@mail.gmail.com">F0EE-aoNM+Rx9x-bia6Og4oMbombiA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Help<br>
On Oct 13, 2014 4:27 PM, <<a href="mailto:moin-user-request@lists.sourceforge.net">moin-user-request@lists.sourceforge.net</a>> wrote:<br>
<br>
> Send Moin-user mailing list submissions to<br>
>         <a href="mailto:moin-user@lists.sourceforge.net">moin-user@lists.sourceforge.net</a><br>
><br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
>         <a href="https://lists.sourceforge.net/lists/listinfo/moin-user" target="_blank">https://lists.sourceforge.net/lists/listinfo/moin-user</a><br>
> or, via email, send a message with subject or body 'help' to<br>
>         <a href="mailto:moin-user-request@lists.sourceforge.net">moin-user-request@lists.sourceforge.net</a><br>
><br>
> You can reach the person managing the list at<br>
>         <a href="mailto:moin-user-owner@lists.sourceforge.net">moin-user-owner@lists.sourceforge.net</a><br>
><br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of Moin-user digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
>    1. Where to catch FileTooLong error (Nikolaus Rath)<br>
>    2. Re: Where to catch FileTooLong error (Thomas Waldmann)<br>
>    3. Fwd: data_underlay_dir Not being what it's supposed to    be<br>
>       (Rovanion Luckey)<br>
>    4. Re: Where to catch FileTooLong error (Nikolaus Rath)<br>
>    5. Re: Fwd: data_underlay_dir Not being what it's supposed   to be<br>
>       (Paul Boddie)<br>
>    6. Re: Fwd: data_underlay_dir Not being what it's supposed to be<br>
>       (Rovanion Luckey)<br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Mon, 06 Oct 2014 17:16:21 -0700<br>
> From: Nikolaus Rath <<a href="mailto:Nikolaus@rath.org">Nikolaus@rath.org</a>><br>
> Subject: [Moin-user] Where to catch FileTooLong error<br>
> To: <a href="mailto:moin-user@lists.sourceforge.net">moin-user@lists.sourceforge.net</a><br>
> Message-ID: <<a href="mailto:87d2a468fe.fsf@vostro.rath.org">87d2a468fe.fsf@vostro.rath.org</a>><br>
> Content-Type: text/plain; charset=utf-8<br>
><br>
> Hello,<br>
><br>
> Several times a day I get the errors like the following in my moinmoin<br>
> server logs:<br>
><br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204] Traceback (most<br>
> recent call last):<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]   File<br>
> "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 411, in __call__<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]     return<br>
> self.app(environ, start_response)<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]   File<br>
> "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 282, in<br>
> __call__<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]     response =<br>
> run(context)<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]   File<br>
> "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 88, in run<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]     response =<br>
> dispatch(request, context, action_name)<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]   File<br>
> "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 136, in<br>
> dispatch<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]     response =<br>
> handle_action(context, pagename, action_name)<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]   File<br>
> "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 195, in<br>
> handle_action<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]<br>
>  handler(context.page.page_name, context)<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]   File<br>
> "/usr/lib/python2.7/dist-packages/MoinMoin/action/__init__.py", line 268,<br>
> in do_show<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]<br>
>  content_only=content_only,<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]   File<br>
> "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1134, in send_page<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]     body =<br>
> self.data<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]   File<br>
> "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 246, in get_data<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]     self.__meta,<br>
> self.__data = wikiutil.get_processing_instructions(self.body)<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]   File<br>
> "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 212, in get_body<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]     f =<br>
> codecs.open(self._text_filename(), 'rb', config.charset)<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]   File<br>
> "/usr/lib/python2.7/codecs.py", line 881, in open<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]     file =<br>
> __builtin__.open(filename, mode, buffering)<br>
> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204] IOError:<br>
> [Errno 36] File name too long: '/srv/<br>
> <a href="http://www.rath.org/wiki/pages/mail_err(2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b)Result(3a2befbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbd2befbfbdefbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbd3b2b)Result(3a2befbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbd2befbfbdefbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbd3b2b)Result(3a2befbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbd2befbfbdefbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbd3b)/revisions/99999999" target="_blank">www.rath.org/wiki/pages/mail_err(2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b)Result(3a2befbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbd2befbfbdefbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbd3b2b)Result(3a2befbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbd2befbfbdefbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbd3b2b)Result(3a2befbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbd2befbfbdefbfbdefbfbd2befbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbd3b)/revisions/99999999</a><br>
> '<br>
><br>
> I believe this is just some attempted exploit failing miserably and no<br>
> cause for concern. However, the length of the message (and the embedded<br>
> newlines) makes it very hard to filter, so I'm constantly getting nagged<br>
> by my log analyzer.<br>
><br>
> What would be the best way to catch this exception and log a short,<br>
> standard message instead?<br>
><br>
><br>
> I am proficient in Python, but not in moinmoin. So my question is mostly<br>
> *where* to insert the necessary code, and how to generate the error<br>
> message (just print to stderr, or is there a logging function I should<br>
> use?). Ideally, I'd also like to change something in /etc rather than<br>
> changing e.g. "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", so<br>
> that the changes are not lost on the next update.<br>
><br>
> Best,<br>
> -Nikolaus<br>
><br>
> --<br>
> GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F<br>
> Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F<br>
><br>
>              ?Time flies like an arrow, fruit flies like a Banana.?<br>
><br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 2<br>
> Date: Wed, 08 Oct 2014 14:01:12 +0200<br>
> From: Thomas Waldmann <<a href="mailto:tw@waldmann-edv.de">tw@waldmann-edv.de</a>><br>
> Subject: Re: [Moin-user] Where to catch FileTooLong error<br>
> To: <a href="mailto:moin-user@lists.sourceforge.net">moin-user@lists.sourceforge.net</a><br>
> Message-ID: <<a href="mailto:54352788.2040908@waldmann-edv.de">54352788.2040908@waldmann-edv.de</a>><br>
> Content-Type: text/plain; charset=utf-8<br>
><br>
> Moin Nikolaus,<br>
><br>
> > Several times a day I get the errors like the following in my moinmoin<br>
> > server logs:<br>
><br>
> Yeah, seen them also. Not too often, not causing issues here, so I just<br>
> ignored them.<br>
><br>
> > [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]   File<br>
> "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 212, in get_body<br>
> > [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]     f =<br>
> codecs.open(self._text_filename(), 'rb', config.charset)<br>
> > [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204] IOError:<br>
> [Errno 36] File name too long: '...'<br>
> ><br>
> > I believe this is just some attempted exploit failing miserably and no<br>
> > cause for concern.<br>
><br>
> Correct.<br>
><br>
> Not even sure it is an exploit. Sometimes such stuff are also just<br>
> crappy bots using links from crappy services or constructing links badly.<br>
><br>
> But somehow it looks like trying a buffer overflow, yes (which can't<br>
> happen in python).<br>
><br>
> > What would be the best way to catch this exception and log a short,<br>
> > standard message instead?<br>
><br>
> I guess you could catch it at the place I quoted. Make sure you do not<br>
> catch stuff also which you did not want to catch. Maybe check errno?<br>
><br>
> Important: run your code, practically try if it really fixes the<br>
> problem. Run our unit tests (== run ./pytest from top level dir).<br>
><br>
> > I am proficient in Python, but not in moinmoin. So my question is mostly<br>
> > *where* to insert the necessary code, and how to generate the error<br>
> > message (just print to stderr, or is there a logging function I should<br>
> > use?).<br>
><br>
> We use the stdlib "logging", just look in some code to find how it is<br>
> usually imported and used (our "logging" is NOT the logging module object).<br>
><br>
> > Ideally, I'd also like to change something in /etc rather than<br>
> > changing e.g. "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", so<br>
> > that the changes are not lost on the next update.<br>
><br>
> If you get the changes done asap and get them adopted upstream (== by<br>
> me), they could be in a release quicker than you think. :D<br>
><br>
> Cheers,<br>
><br>
> Thomas<br>
><br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 3<br>
> Date: Sun, 12 Oct 2014 17:09:53 +0200<br>
> From: Rovanion Luckey <<a href="mailto:rovanion.luckey@gmail.com">rovanion.luckey@gmail.com</a>><br>
> Subject: [Moin-user] Fwd: data_underlay_dir Not being what it's<br>
>         supposed to     be<br>
> To: <a href="mailto:Moin-user@lists.sourceforge.net">Moin-user@lists.sourceforge.net</a><br>
> Message-ID:<br>
>         <CAAaf0CB8foxAugcvR_r4aBSFV+y6bDJE01BoCjnF=<br>
> <a href="mailto:mxcqNgUjQ@mail.gmail.com">mxcqNgUjQ@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Hi,<br>
> I'm trying to set up MoinMoin using the packages in the Ubuntu<br>
> repositories, nginx and uwsgi. I'm having an issue [0] where I get an error<br>
> stating that the underlay directory is not accessible where<br>
> data_underlay_dir is stated to be located in a directory not set in any<br>
> config file.<br>
><br>
> You see the error [0] says that data_underlay_dir is set to ./underlay<br>
> while the wikiconfig.py clearly sets it to a non-relative url.<br>
><br>
> For completeness my site conf [2], uwsgi conf [3] and farmconf [4] is also<br>
> provided in the links below.<br>
><br>
> I've made sure to restart uwsgi after changing the configurations related<br>
> to moinmoin, even though a reload should suffice. The nginx conf [5] points<br>
> to the socket provided by uwsgi, has been restarted and .. well .. I'm<br>
> running short of ideas.<br>
><br>
> [0] <a href="http://paste.debian.net/125837/" target="_blank">http://paste.debian.net/125837/</a><br>
> [1] <a href="http://paste.ubuntu.com/8546386/" target="_blank">http://paste.ubuntu.com/8546386/</a><br>
> [2] <a href="http://paste.ubuntu.com/8546401/" target="_blank">http://paste.ubuntu.com/8546401/</a><br>
> [3] <a href="http://paste.ubuntu.com/8546403/" target="_blank">http://paste.ubuntu.com/8546403/</a><br>
> [4] <a href="http://paste.ubuntu.com/8546406/" target="_blank">http://paste.ubuntu.com/8546406/</a><br>
> [5] <a href="http://paste.ubuntu.com/8546415/" target="_blank">http://paste.ubuntu.com/8546415/</a><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
><br>
> ------------------------------<br>
><br>
> Message: 4<br>
> Date: Sun, 12 Oct 2014 14:18:49 -0700<br>
> From: Nikolaus Rath <<a href="mailto:Nikolaus@rath.org">Nikolaus@rath.org</a>><br>
> Subject: Re: [Moin-user] Where to catch FileTooLong error<br>
> To: <a href="mailto:moin-user@lists.sourceforge.net">moin-user@lists.sourceforge.net</a><br>
> Message-ID: <<a href="mailto:87wq85gf5y.fsf@vostro.rath.org">87wq85gf5y.fsf@vostro.rath.org</a>><br>
> Content-Type: text/plain; charset=utf-8<br>
><br>
> Thomas Waldmann <<a href="mailto:tw@waldmann-edv.de">tw@waldmann-edv.de</a>> writes:<br>
> >> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]   File<br>
> "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 212, in get_body<br>
> >> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204]     f =<br>
> codecs.open(self._text_filename(), 'rb', config.charset)<br>
> >> [Wed Oct 01 17:50:31 2014] [error] [client 176.194.6.204] IOError:<br>
> [Errno 36] File name too long: '...'<br>
> [...]<br>
> >> What would be the best way to catch this exception and log a short,<br>
> >> standard message instead?<br>
> ><br>
> > I guess you could catch it at the place I quoted. Make sure you do not<br>
> > catch stuff also which you did not want to catch. Maybe check errno?<br>
> ><br>
> > Important: run your code, practically try if it really fixes the<br>
> > problem. Run our unit tests (== run ./pytest from top level dir).<br>
> ><br>
> >> I am proficient in Python, but not in moinmoin. So my question is mostly<br>
> >> *where* to insert the necessary code, and how to generate the error<br>
> >> message (just print to stderr, or is there a logging function I should<br>
> >> use?).<br>
> ><br>
> > We use the stdlib "logging", just look in some code to find how it is<br>
> > usually imported and used (our "logging" is NOT the logging module<br>
> object).<br>
> ><br>
> >> Ideally, I'd also like to change something in /etc rather than<br>
> >> changing e.g. "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", so<br>
> >> that the changes are not lost on the next update.<br>
> ><br>
> > If you get the changes done asap and get them adopted upstream (== by<br>
> > me), they could be in a release quicker than you think. :D<br>
><br>
> How about this patch?<br>
><br>
> diff --git a/MoinMoin/Page.py b/MoinMoin/Page.py<br>
> --- a/MoinMoin/Page.py<br>
> +++ b/MoinMoin/Page.py<br>
> @@ -217,6 +217,10 @@<br>
>                      # never store empty pages, so this is detectable and<br>
> also<br>
>                      # safe when passed to a function expecting a string)<br>
>                      return ""<br>
> +                elif er.errno == errno.ENAMETOOLONG:<br>
> +                    # If the name is too long, the page can't exist on<br>
> this<br>
> +                    # system either.<br>
> +                    return ""<br>
>                  else:<br>
>                      raise<br>
><br>
> It fixed the issue for me, and applies cleanly against the 1.9 hg<br>
> repository. I decided against an error message and instead opted to<br>
> treat this like a file-not-found error (which, in some way it is).<br>
> ./pytest also runs fine with the patched source.<br>
><br>
><br>
> Best,<br>
> -Nikolaus<br>
> --<br>
> GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F<br>
> Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F<br>
><br>
>              ?Time flies like an arrow, fruit flies like a Banana.?<br>
><br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 5<br>
> Date: Sun, 12 Oct 2014 23:44:34 +0200<br>
> From: Paul Boddie <<a href="mailto:paul@boddie.org.uk">paul@boddie.org.uk</a>><br>
> Subject: Re: [Moin-user] Fwd: data_underlay_dir Not being what it's<br>
>         supposed        to be<br>
> To: <a href="mailto:moin-user@lists.sourceforge.net">moin-user@lists.sourceforge.net</a><br>
> Message-ID: <<a href="mailto:201410122344.35163.paul@boddie.org.uk">201410122344.35163.paul@boddie.org.uk</a>><br>
> Content-Type: Text/Plain;  charset="iso-8859-15"<br>
><br>
> On Sunday 12. October 2014 17.09.53 Rovanion Luckey wrote:<br>
> > Hi,<br>
> > I'm trying to set up MoinMoin using the packages in the Ubuntu<br>
> > repositories, nginx and uwsgi. I'm having an issue [0] where I get an<br>
> error<br>
> > stating that the underlay directory is not accessible where<br>
> > data_underlay_dir is stated to be located in a directory not set in any<br>
> > config file.<br>
> ><br>
> > You see the error [0] says that data_underlay_dir is set to ./underlay<br>
> > while the wikiconfig.py clearly sets it to a non-relative url.<br>
><br>
> The wikiconfig.py file probably isn't used. See below for why I think this<br>
> is.<br>
><br>
> > For completeness my site conf [2], uwsgi conf [3] and farmconf [4] is<br>
> also<br>
> > provided in the links below.<br>
> ><br>
> > I've made sure to restart uwsgi after changing the configurations related<br>
> > to moinmoin, even though a reload should suffice. The nginx conf [5]<br>
> points<br>
> > to the socket provided by uwsgi, has been restarted and .. well .. I'm<br>
> > running short of ideas.<br>
> ><br>
> > [0] <a href="http://paste.debian.net/125837/" target="_blank">http://paste.debian.net/125837/</a><br>
> > [1] <a href="http://paste.ubuntu.com/8546386/" target="_blank">http://paste.ubuntu.com/8546386/</a><br>
><br>
> In this copy of the configuration (wikiconfig.py), I see the following<br>
> lines...<br>
><br>
>     instance_dir = /usr/share/moin/<br>
><br>
>     # Where your own wiki pages are (make regular backups of this<br>
> directory):<br>
>     data_dir = os.path.join(instance_dir, 'data', '') # path with trailing<br>
> /<br>
><br>
>     # Where system and help pages are (you may exclude this from backup):<br>
>     data_underlay_dir = /usr/share/moin/underlay/ # path with trailing /<br>
><br>
> Note that neither instance_dir nor data_underlay_dir seem to be set to<br>
> valid<br>
> strings. Remember that this file is a Python source file and thus these<br>
> values<br>
> must be valid Python syntax.<br>
><br>
> Since this file seems to be for a single wiki and not for a farm (or<br>
> instance<br>
> thereof), I imagine that you aren't using this particular file, however. If<br>
> this file were being used, you'd get a syntax error from Moin, certainly.<br>
><br>
> Meanwhile...<br>
><br>
> > [2] <a href="http://paste.ubuntu.com/8546401/" target="_blank">http://paste.ubuntu.com/8546401/</a><br>
><br>
> ...in this file (mywiki.py) you might consider setting something like...<br>
><br>
>     data_underlay_dir = '/usr/share/moin/underlay'<br>
><br>
> ...just to see if it helps.<br>
><br>
> Paul<br>
><br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 6<br>
> Date: Mon, 13 Oct 2014 12:56:09 +0200<br>
> From: Rovanion Luckey <<a href="mailto:rovanion.luckey@gmail.com">rovanion.luckey@gmail.com</a>><br>
> Subject: Re: [Moin-user] Fwd: data_underlay_dir Not being what it's<br>
>         supposed to be<br>
> To: Paul Boddie <<a href="mailto:paul@boddie.org.uk">paul@boddie.org.uk</a>><br>
> Cc: moin-user <<a href="mailto:moin-user@lists.sourceforge.net">moin-user@lists.sourceforge.net</a>><br>
> Message-ID:<br>
>         <<br>
> <a href="mailto:CAAaf0CCZneMncL6PSwuLRiHOqd4zQoRG1Z4PMMSJCCkgx-etrg@mail.gmail.com">CAAaf0CCZneMncL6PSwuLRiHOqd4zQoRG1Z4PMMSJCCkgx-etrg@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Yes, thank you! Adding the line in mywiki.py about data_underlay_dir ended<br>
> up working!<br>
><br>
> 2014-10-12 23:44 GMT+02:00 Paul Boddie <<a href="mailto:paul@boddie.org.uk">paul@boddie.org.uk</a>>:<br>
><br>
> > On Sunday 12. October 2014 17.09.53 Rovanion Luckey wrote:<br>
> > > Hi,<br>
> > > I'm trying to set up MoinMoin using the packages in the Ubuntu<br>
> > > repositories, nginx and uwsgi. I'm having an issue [0] where I get an<br>
> > error<br>
> > > stating that the underlay directory is not accessible where<br>
> > > data_underlay_dir is stated to be located in a directory not set in any<br>
> > > config file.<br>
> > ><br>
> > > You see the error [0] says that data_underlay_dir is set to ./underlay<br>
> > > while the wikiconfig.py clearly sets it to a non-relative url.<br>
> ><br>
> > The wikiconfig.py file probably isn't used. See below for why I think<br>
> this<br>
> > is.<br>
> ><br>
> > > For completeness my site conf [2], uwsgi conf [3] and farmconf [4] is<br>
> > also<br>
> > > provided in the links below.<br>
> > ><br>
> > > I've made sure to restart uwsgi after changing the configurations<br>
> related<br>
> > > to moinmoin, even though a reload should suffice. The nginx conf [5]<br>
> > points<br>
> > > to the socket provided by uwsgi, has been restarted and .. well .. I'm<br>
> > > running short of ideas.<br>
> > ><br>
> > > [0] <a href="http://paste.debian.net/125837/" target="_blank">http://paste.debian.net/125837/</a><br>
> > > [1] <a href="http://paste.ubuntu.com/8546386/" target="_blank">http://paste.ubuntu.com/8546386/</a><br>
> ><br>
> > In this copy of the configuration (wikiconfig.py), I see the following<br>
> > lines...<br>
> ><br>
> >     instance_dir = /usr/share/moin/<br>
> ><br>
> >     # Where your own wiki pages are (make regular backups of this<br>
> > directory):<br>
> >     data_dir = os.path.join(instance_dir, 'data', '') # path with<br>
> trailing<br>
> > /<br>
> ><br>
> >     # Where system and help pages are (you may exclude this from backup):<br>
> >     data_underlay_dir = /usr/share/moin/underlay/ # path with trailing /<br>
> ><br>
> > Note that neither instance_dir nor data_underlay_dir seem to be set to<br>
> > valid<br>
> > strings. Remember that this file is a Python source file and thus these<br>
> > values<br>
> > must be valid Python syntax.<br>
> ><br>
> > Since this file seems to be for a single wiki and not for a farm (or<br>
> > instance<br>
> > thereof), I imagine that you aren't using this particular file, however.<br>
> If<br>
> > this file were being used, you'd get a syntax error from Moin, certainly.<br>
> ><br>
> > Meanwhile...<br>
> ><br>
> > > [2] <a href="http://paste.ubuntu.com/8546401/" target="_blank">http://paste.ubuntu.com/8546401/</a><br>
> ><br>
> > ...in this file (mywiki.py) you might consider setting something like...<br>
> ><br>
> >     data_underlay_dir = '/usr/share/moin/underlay'<br>
> ><br>
> > ...just to see if it helps.<br>
> ><br>
> > Paul<br>
> ><br>
> ><br>
> ><br>
> ------------------------------------------------------------------------------<br>
> > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer<br>
> > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports<br>
> > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper<br>
> > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer<br>
> > <a href="http://p.sf.net/sfu/Zoho" target="_blank">http://p.sf.net/sfu/Zoho</a><br>
> > _______________________________________________<br>
> > Moin-user mailing list<br>
> > <a href="mailto:Moin-user@lists.sourceforge.net">Moin-user@lists.sourceforge.net</a><br>
> > <a href="https://lists.sourceforge.net/lists/listinfo/moin-user" target="_blank">https://lists.sourceforge.net/lists/listinfo/moin-user</a><br>
> ><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
><br>
> ------------------------------<br>
><br>
><br>
> ------------------------------------------------------------------------------<br>
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer<br>
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports<br>
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper<br>
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer<br>
> <a href="http://p.sf.net/sfu/Zoho" target="_blank">http://p.sf.net/sfu/Zoho</a><br>
><br>
> ------------------------------<br>
><br>
> _______________________________________________<br>
> Moin-user mailing list<br>
> <a href="mailto:Moin-user@lists.sourceforge.net">Moin-user@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/moin-user" target="_blank">https://lists.sourceforge.net/lists/listinfo/moin-user</a><br>
><br>
><br>
> End of Moin-user Digest, Vol 96, Issue 2<br>
> ****************************************<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
<br>
------------------------------<br>
<br>
------------------------------------------------------------------------------<br>
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer<br>
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports<br>
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper<br>
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer<br>
<a href="http://p.sf.net/sfu/Zoho" target="_blank">http://p.sf.net/sfu/Zoho</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Moin-user mailing list<br>
<a href="mailto:Moin-user@lists.sourceforge.net">Moin-user@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/moin-user" target="_blank">https://lists.sourceforge.net/lists/listinfo/moin-user</a><br>
<br>
<br>
End of Moin-user Digest, Vol 96, Issue 3<br>
****************************************<br>
</blockquote></div>