From ryanlraines at gmail.com Mon Jun 1 09:58:30 2015 From: ryanlraines at gmail.com (Ryan L. Raines) Date: Mon, 1 Jun 2015 09:58:30 -0400 Subject: [Moin-user] 500 Internal Server Error on v1.9.8 In-Reply-To: References: Message-ID: Initially, the command was *NOT* run with any params. I ran the command again with the '--wiki-url=foo' and '--config-dir=bar' params and that appears to have resolved the issue. Thank you. On Fri, May 29, 2015 at 2:57 PM, Ryan L. Raines wrote: > Thanks Thomas for your reply. > > *I never saw your reply in an email, I just stumbled upon it in the > archives. * > > I followed your steps: stop apache, cleancache, start apache. > > Same results were experienced: 'Internal Server Error 500' and same errors > in the apache error_log. > > On Wed, May 27, 2015 at 9:18 PM, Ryan L. Raines > wrote: > >> Hello, >> >> I've installed moinmoin v1.9.8 and python v2.6.6 on Oracle Linux. . >> >> I have copied the data/ DIR from a server running moinmoin v1.5.4 and >> pythoon v2.3.3 to our new server and performed the migrating steps listed >> here (https://moinmo.in/HowTo/Migrate%20from%201.5%20to%201.6). Some >> pages load as expected, however, some pages return HTTP status code 500. >> >> If I append the page url to include '?highlight=x', then the page loads, >> I can save the page (with out making any changes), reload it, and it will >> load as expected. >> >> When the pages return HTTP status code, the below is captured in the >> apache error_log. >> >> I'm confused why some pages load just fine, initially. But, some pages I >> have to save (without making any changes) before it will load correctly. >> >> Thanks for your time. >> >> >> apache error_log output: >> >> [Wed May 27 18:04:29 2015] [error] 2015-05-27 18:04:29,467 ERROR >> MoinMoin.wsgiapp:281 An exception has occurred [ >> http://162.70.42.248/SM_Web_GUI_Setup]. >> [Wed May 27 18:04:29 2015] [error] Traceback (most recent call last): >> [Wed May 27 18:04:29 2015] [error] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/wsgiapp.py", >> line 264, in __call__ >> [Wed May 27 18:04:29 2015] [error] response = run(context) >> [Wed May 27 18:04:29 2015] [error] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/wsgiapp.py", >> line 89, in run >> [Wed May 27 18:04:29 2015] [error] response = dispatch(request, >> context, action_name) >> [Wed May 27 18:04:29 2015] [error] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/wsgiapp.py", >> line 137, in dispatch >> [Wed May 27 18:04:29 2015] [error] response = handle_action(context, >> pagename, action_name) >> [Wed May 27 18:04:29 2015] [error] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/wsgiapp.py", >> line 203, in handle_action >> [Wed May 27 18:04:29 2015] [error] handler(context.page.page_name, >> context) >> [Wed May 27 18:04:29 2015] [error] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/action/__init__.py", >> line 268, in do_show >> [Wed May 27 18:04:29 2015] [error] content_only=content_only, >> [Wed May 27 18:04:29 2015] [error] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/Page.py", >> line 1332, in send_page >> [Wed May 27 18:04:29 2015] [error] start_line=pi['lines']) >> [Wed May 27 18:04:29 2015] [error] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/Page.py", >> line 1426, in send_page_content >> [Wed May 27 18:04:29 2015] [error] self.execute(request, parser, code) >> [Wed May 27 18:04:29 2015] [error] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/Page.py", >> line 1457, in execute >> [Wed May 27 18:04:29 2015] [error] exec code >> [Wed May 27 18:04:29 2015] [error] File "SM Web GUI Setup", line 4, in ? >> [Wed May 27 18:04:29 2015] [error] TypeError: exceptions must be >> old-style classes or derived from BaseException, not str >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] mod_wsgi >> (pid=28088): Exception occurred processing WSGI script >> '/opt/installs/moin-1.9.8/share/moin/moin.wsgi'. >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] Traceback >> (most recent call last): >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/support/werkzeug/wsgi.py", >> line 411, in __call__ >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] return >> self.app(environ, start_response) >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/wsgiapp.py", >> line 264, in __call__ >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] response = >> run(context) >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/wsgiapp.py", >> line 89, in run >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] response = >> dispatch(request, context, action_name) >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/wsgiapp.py", >> line 137, in dispatch >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] response = >> handle_action(context, pagename, action_name) >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/wsgiapp.py", >> line 203, in handle_action >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] >> handler(context.page.page_name, context) >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/action/__init__.py", >> line 268, in do_show >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] >> content_only=content_only, >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/Page.py", >> line 1332, in send_page >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] >> start_line=pi['lines']) >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/Page.py", >> line 1426, in send_page_content >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] >> self.execute(request, parser, code) >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] File >> "/opt/installs/moin-1.9.8/lib/python2.6/site-packages/MoinMoin/Page.py", >> line 1457, in execute >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] exec code >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] File "SM Web >> GUI Setup", line 4, in ? >> [Wed May 27 18:04:29 2015] [error] [client 162.70.129.224] TypeError: >> exceptions must be old-style classes or derived from BaseException, not str >> >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From philip.colmer at linaro.org Fri Jun 19 07:22:29 2015 From: philip.colmer at linaro.org (Philip Colmer) Date: Fri, 19 Jun 2015 12:22:29 +0100 Subject: [Moin-user] Unable to successfully access user account browser Message-ID: I'm trying to access the user account browser (SystemAdmin/sysadm=users) but the page just bombs out and Apache logs the following: mod_wsgi (pid=9621): Exception occurred processing WSGI script '/srv/moin-config/moin.wsgi'. IOError: failed to write data How can I troubleshoot this further? Is it being caused by the page taking too long to load? I need to clean up the accounts from ex-staff, particularly since some of them have got notifications firing. Thanks. Philip -------------- next part -------------- An HTML attachment was scrubbed... URL: From tw at waldmann-edv.de Mon Jun 22 07:11:23 2015 From: tw at waldmann-edv.de (Thomas Waldmann) Date: Mon, 22 Jun 2015 13:11:23 +0200 Subject: [Moin-user] Unable to successfully access user account browser In-Reply-To: References: Message-ID: <5587ED5B.2020500@waldmann-edv.de> > I'm trying to access the user account browser (SystemAdmin/sysadm=users) > but the page just bombs out and Apache logs the following: > > mod_wsgi (pid=9621): Exception occurred processing WSGI script > '/srv/moin-config/moin.wsgi'. > IOError: failed to write data Sounds like you run into a timeout. Maybe just retry (due to caching, it might be faster the 2nd time). Or increase timeouts the web server waits for data of the wsgi process. > I need to clean up the accounts from ex-staff, particularly since some > of them have got notifications firing. If nothing else helps, you can always have a look at data/user/* in the filesystem. -- GPG Fingerprint: 6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393 Encrypted E-Mail is preferred / Verschluesselte E-Mail wird bevorzugt. From philip.colmer at linaro.org Tue Jun 23 08:11:23 2015 From: philip.colmer at linaro.org (Philip Colmer) Date: Tue, 23 Jun 2015 13:11:23 +0100 Subject: [Moin-user] Unable to successfully access user account browser In-Reply-To: <5587ED5B.2020500@waldmann-edv.de> References: <5587ED5B.2020500@waldmann-edv.de> Message-ID: Thank you for that, Thomas. It turned out to be the proxy system that was causing the problem. Having now got that page to work, I can see a lot of legacy/dead accounts. Rather than deactivating accounts that are definitely gone - particularly since that action causes the browser to go back to the System Admin page which would then mean I've got to reload the user page all over again - is there a good way for me to clean things up? If I delete files from data/user/, will bad things happen? Is there an API for managing user accounts that I can use? Thanks. Philip On 22 June 2015 at 12:11, Thomas Waldmann wrote: > > I'm trying to access the user account browser (SystemAdmin/sysadm=users) > > but the page just bombs out and Apache logs the following: > > > > mod_wsgi (pid=9621): Exception occurred processing WSGI script > > '/srv/moin-config/moin.wsgi'. > > IOError: failed to write data > > Sounds like you run into a timeout. > > Maybe just retry (due to caching, it might be faster the 2nd time). > Or increase timeouts the web server waits for data of the wsgi process. > > > I need to clean up the accounts from ex-staff, particularly since some > > of them have got notifications firing. > > If nothing else helps, you can always have a look at data/user/* in the > filesystem. > > -- > > GPG Fingerprint: 6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393 > Encrypted E-Mail is preferred / Verschluesselte E-Mail wird bevorzugt. > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rvanderveer at cognitivearts.com Tue Jun 23 09:26:01 2015 From: rvanderveer at cognitivearts.com (Rick Vanderveer) Date: Tue, 23 Jun 2015 13:26:01 +0000 Subject: [Moin-user] Unable to successfully access user account browser Message-ID: <8d170e0c38b54c1094a2e86a87e3ed8a@ATL-CPP-MAIL1.us.niit.com> If you manually delete files from the data/user folder, your server will not implode. Every once in a rare while, I've had to do this for one reason or another. Here's the impact of deleting a user file, as far as I can determine-- * Assuming a majority of those users have done nothing but view pages, then there's just about zero impact. * If a user subscribed to page change notifications, those emailed notifications will stop (a good thing). * If that user edited a page, then those edited pages will show their UUID instead of their proper name, which looks kinda odd. In my experience, the vast majority of users fall into the first category, and only a small handful fall into the 3rd category. So, I only really worry about those in the last category, but that list is small enough that they're easy to avoid. One final step-- Be sure to restart the WSGI and/or Apache service (depending on how you have it set up) to clear the memory cache, after you're done. -Rick From: Philip Colmer [mailto:philip.colmer at linaro.org] Sent: Tuesday, June 23, 2015 7:11 AM To: Thomas Waldmann Cc: moin-user at lists.sourceforge.net Subject: [spamsphishing] Re: [Moin-user] Unable to successfully access user account browser Thank you for that, Thomas. It turned out to be the proxy system that was causing the problem. Having now got that page to work, I can see a lot of legacy/dead accounts. Rather than deactivating accounts that are definitely gone - particularly since that action causes the browser to go back to the System Admin page which would then mean I've got to reload the user page all over again - is there a good way for me to clean things up? If I delete files from data/user/, will bad things happen? Is there an API for managing user accounts that I can use? Thanks. Philip On 22 June 2015 at 12:11, Thomas Waldmann > wrote: > I'm trying to access the user account browser (SystemAdmin/sysadm=users) > but the page just bombs out and Apache logs the following: > > mod_wsgi (pid=9621): Exception occurred processing WSGI script > '/srv/moin-config/moin.wsgi'. > IOError: failed to write data Sounds like you run into a timeout. Maybe just retry (due to caching, it might be faster the 2nd time). Or increase timeouts the web server waits for data of the wsgi process. > I need to clean up the accounts from ex-staff, particularly since some > of them have got notifications firing. If nothing else helps, you can always have a look at data/user/* in the filesystem. -- GPG Fingerprint: 6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393 Encrypted E-Mail is preferred / Verschluesselte E-Mail wird bevorzugt. ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Moin-user mailing list Moin-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: