From ryanlraines at gmail.com Wed May 27 21:18:35 2015 From: ryanlraines at gmail.com (Ryan L. Raines) Date: Wed, 27 May 2015 21:18:35 -0400 Subject: [Moin-user] 500 Internal Server Error on v1.9.8 Message-ID: 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 tw at waldmann-edv.de Thu May 28 12:30:52 2015 From: tw at waldmann-edv.de (Thomas Waldmann) Date: Thu, 28 May 2015 18:30:52 +0200 Subject: [Moin-user] 500 Internal Server Error on v1.9.8 In-Reply-To: References: Message-ID: <556742BC.9070308@waldmann-edv.de> Stop the moin process / web server. Try moin ... maint cleancache to clear the precompiles pages' cache. Start the moin process / web server. The retry accessing that page. > [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 ^^ Typical weird error msg that happens when changing python version and not clearing the cache. From ryanlraines at gmail.com Fri May 29 14:57:00 2015 From: ryanlraines at gmail.com (Ryan L. Raines) Date: Fri, 29 May 2015 14:57:00 -0400 Subject: [Moin-user] 500 Internal Server Error on v1.9.8 In-Reply-To: References: Message-ID: 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 tw at waldmann-edv.de Fri May 29 15:27:32 2015 From: tw at waldmann-edv.de (Thomas Waldmann) Date: Fri, 29 May 2015 21:27:32 +0200 Subject: [Moin-user] 500 Internal Server Error on v1.9.8 In-Reply-To: References: Message-ID: <5568BDA4.7000005@waldmann-edv.de> On 05/29/2015 08: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. / Strange. I just hit "reply list". > 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. Then you maybe didn't run it on the right wiki / with the right config? You likely will need --wiki-url and --config-dir params to tell where it finds the config and which wiki you mean. -- GPG ID: FAF7B393 GPG FP: 6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393