Note that there are some explanatory texts on larger screens.

plurals
  1. POStarman and MovableType 5.2
    primarykey
    data
    text
    <p>MovableType 5.2 has builtin PSGI support (via a mt.psgi in the main directory) and I've been trying to take advantage of it using starman/plackup.</p> <p>Starman w/ MT fires up, but I get odd Not Founds and a silent hang &amp; fail when I run mt-upgrade.cgi. </p> <p>How I am running starman:</p> <pre><code>cd /home/ec2-user/mysite/perl/components/movabletype plackup -s Starman --port 8045 --error-log /home/ec2-user/mysite/perl/logs/starman.log --pid /home/ec2-user/mysite/perl/var/starman.pid -a mt.psgi </code></pre> <p>Mystery 1: My browser returns "Not Found" for index.html, but mt-static and mt.cgi is reachable. </p> <pre><code>X http://mysite:8045/mt/index.html ... Not Found ✓ http://mysite:8045/mt-static ... listing of static assets ✓ http://mysite:8045/mt/mt.cgi ... redirects to ... X http://mysite:8045/mt/mt-upgrade.cgi?__mode=install ... fails </code></pre> <p>Mystery 2: Due to the redirect I believe that MT code is running. But it is mostly silent in the starman log even though I have tried different MT debug options. Worse, the mt-upgrade.cgi seems to be reached then fails with this lone message to the starman log:</p> <pre><code>[mypid] Bootstrap CGI script in non-buffering mode: /home/ec2-user/mysite/perl/components/movabletype/mt-upgrade.cgi </code></pre> <p>This non-buffering message seems informational and normal, and is coming from the MT codebase. </p> <p>I have also run directly under starman and get the same result.</p> <p>Any ideas or help would be appreciated!</p> <p>System/Environment:</p> <pre><code>MT_HOME='/home/ec2-user/mysite/perl/components/movabletype' linux AMI on an amazon ec2. perl-5.16.0 under perlbrew. </code></pre> <p>CPAN modules:</p> <pre><code>cpanm starman cpanm CGI::PSGI cpanm CGI::Parse::PSGI cpanm CGI::Compile yum install expat-devel cpanm XML::Parser cpanm SOAP::Lite cpanm SOAP::Transport::HTTP cpanm XMLRPC::Transport::HTTP::Plack cpanm DBI sudo yum install postgresql9-devel cpanm DBD::Pg cpanm Task::Plack </code></pre> <p>MT config:</p> <pre><code>CGIPath http://mysite:8045/mt StaticWebPath http://mysite:8045/mt-static PIDFilePath /home/ec2-user/mysite/perl/var/starman.pid DebugMode 1 ObjectDriver DBI::postgres Database db DBUser dbuser DBPassword dbpass DBHost dbhost.mysite </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload