<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #665: Wagn "Problem Loading Page" error</title>
    <link>http://localhost:8080/trac/ticket/665</link>
    <description>&lt;p&gt;
Bug report from Tom:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
I've encountered a problem when trying to set up new accounts: I get a 'Problem Loading Page' error when it tries to load &lt;a class="ext-link" href="http://localhost:3000/wagn/Invite_Success"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://localhost:3000/wagn/Invite_Success&lt;/a&gt;. This seems to be explained at &lt;a class="ext-link" href="http://wagn.org/Special_Urls_and_Ports"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wagn.org/Special_Urls_and_Ports&lt;/a&gt; - which I am hoping falls under your area of responsibility as I'm not sure how to do it myself,! But let me know if not...
&lt;/p&gt;
&lt;/blockquote&gt;
</description>
    <language>en-us</language>
    <image>
      <title>Transition Technology</title>
      <url>/trac/chrome/site/TransitionNetwork-Logo-Web-Small.jpg</url>
      <link>http://localhost:8080/trac/ticket/665</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 06 Jan 2014 14:15:38 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/665#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/665#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.3&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.3&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
There was no &lt;tt&gt;config/wagn.rb&lt;/tt&gt; file so I have created one with this in it:
&lt;/p&gt;
&lt;pre class="wiki"&gt;System.base_url = http://patterns.transitionresearchnetwork.org:80
&lt;/pre&gt;&lt;p&gt;
And restarted the server as per &lt;a class="wiki" href="http://localhost:8080/trac/wiki/TransitionResearchWagn"&gt;wiki:TransitionResearchWagn&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 06 Jan 2014 18:48:50 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/665#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/665#comment:2</guid>
      <description>
        &lt;p&gt;
However creating a &lt;tt&gt;wagn.rb&lt;/tt&gt; file didn't solve the problem, Tom has raised a ticket about this here: &lt;a class="ext-link" href="http://wagn.org/Site_admin_functions_redirecting_to_localhost_rather_than_domain_name"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wagn.org/Site_admin_functions_redirecting_to_localhost_rather_than_domain_name&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 07 Jan 2014 10:50:22 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/665#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/665#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.35&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.3&lt;/em&gt; to &lt;em&gt;0.65&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Ethan as replied to the ticket, &lt;a class="ext-link" href="http://wagn.org/Site_admin_functions_redirecting_to_localhost_rather_than_domain_name"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wagn.org/Site_admin_functions_redirecting_to_localhost_rather_than_domain_name&lt;/a&gt; and updated the docs, &lt;a class="ext-link" href="http://wagn.org/Special_Urls_and_Ports"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wagn.org/Special_Urls_and_Ports&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
So I have added this to &lt;tt&gt;config/wagn.yml&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;host: patterns.transitionresearchnetwork.org
protocol: https
&lt;/pre&gt;&lt;p&gt;
And restarted the WEBrick server.
&lt;/p&gt;
&lt;p&gt;
I have also deleted the &lt;tt&gt;config/wagn.rb&lt;/tt&gt; file.
&lt;/p&gt;
&lt;p&gt;
Ethan asked:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
I'm not sure why this is not happening correctly for you or where the "localhost" issue is coming from, unless you already have something like "host: localhost:3000" in wagn.yml?
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
This is because we have a Ngnix reverse proxy running in front of WEBrick see &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/561" title="maintenance: Move Transition Research patterns Wagn website onto Penguin (closed: fixed)"&gt;ticket:561&lt;/a&gt; for more detail, we have also upgraded to Debian Wheezy since then.
&lt;/p&gt;
&lt;p&gt;
Ethan also said:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
I would also suggest you look closely at &lt;a class="ext-link" href="http://wagn.org/wagn_in_production"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;wagn in production&lt;/a&gt;, which offers some key hints for making wagn run more speedily. If, for example, you are not using memcache, I would *strongly* recommend it!!
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I'd be happy to go down this road, installing Phusion Passenger and memcache and using the mysql2 adapter in database.yml, but it would probably take a few hours to set up, we opted for the WEBrick server with a reverse Nginx proxy to start with because it was very quick and easy to set up.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 08 Jan 2014 12:41:33 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/665#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/665#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.65&lt;/em&gt; to &lt;em&gt;0.9&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Report from Tom:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
This has changed the redirect address, but to one with extra text in that
doesn't work!
&lt;a class="ext-link" href="https://patterns.transitionresearchnetwork.org/httpspatterns.transitionresearchnetwork.org/Invite_Success"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://patterns.transitionresearchnetwork.org/httpspatterns.transitionresearchnetwork.org/Invite_Success&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
I've updated the support ticket at
&lt;a class="ext-link" href="http://wagn.org/Site_admin_functions_redirecting_to_localhost_rather_than_domain_name"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://wagn.org/Site_admin_functions_redirecting_to_localhost_rather_than_domain_name&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I have commented out the protocol to see if this helps, so we have this in &lt;tt&gt;wagn.yml&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;host: patterns.transitionresearchnetwork.org
#protocol: https
&lt;/pre&gt;&lt;p&gt;
Ideally we wouldn't specify the protocol and links would either be in this form:
&lt;/p&gt;
&lt;pre class="wiki"&gt;/recent
&lt;/pre&gt;&lt;p&gt;
Or like this so they work with HTTP and HTTPS:
&lt;/p&gt;
&lt;pre class="wiki"&gt;//patterns.transitionresearchnetwork.org/recent
&lt;/pre&gt;&lt;p&gt;
We are using a STS header (see &lt;a class="ext-link" href="https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security&lt;/a&gt; ) and redirecting logins to use HTTPS to ensure security at the Nginx level:
&lt;/p&gt;
&lt;pre class="wiki"&gt;        # Redirect logins to HTTPS
        # http://wiki.nginx.org/NginxHttpCoreModule#location
        location ^~ /account {
                rewrite  ^(.*)$ https://$server_name$1 permanent;
        }
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 14 Jan 2014 14:07:36 GMT</pubDate>
      <title>hours, status, totalhours changed; cc, resolution set</title>
      <link>http://localhost:8080/trac/ticket/665#comment:5</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/665#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;cc&lt;/strong&gt;
              &lt;em&gt;ed&lt;/em&gt;, &lt;em&gt;sam&lt;/em&gt; added
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.01&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.9&lt;/em&gt; to &lt;em&gt;0.91&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
This is resolved, closing the ticket.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>