<turbo-stream action="replace" target="forum-thread-gap-382-400"><template>
<div id="messages-post-component-383">
  <div data-view-component="true" class="op-forum-post-stem border-left"></div>
  <div id="message-383" tabindex="-1" autofocus="autofocus" data-test-selector="forum-post-383" data-view-component="true" class="Box op-forum-post position-relative">
  <div id="header-8f36b2ba-34e9-4626-beaa-851147b45e80" data-view-component="true" class="Box-header py-2 tmp-py-2">
  
  
  <div data-view-component="true" class="flex-items-center flex-justify-between d-flex flex-row">
      
  <div data-view-component="true" class="flex-wrap flex-items-center d-flex flex-row">
      <div data-view-component="true" class="mr-2 tmp-mr-2"><opce-principal class="" data-principal="{&quot;href&quot;:&quot;/api/v3/users/8997&quot;,&quot;name&quot;:&quot;Tiago Geada&quot;,&quot;id&quot;:8997}" data-link="true" data-size="&quot;mini&quot;" data-hide-name="true" data-name-classes="&quot;&quot;" data-title="null" data-hover-card="true" data-hover-card-url="&quot;/users/8997/hover_card&quot;"></opce-principal></div>
      <div data-view-component="true" class="mr-2 tmp-mr-2"><a target="_blank" data-hover-card-url="/users/8997/hover_card" data-hover-card-trigger-target="trigger" href="/users/8997" data-view-component="true" class="Link--primary Link text-bold">Tiago Geada</a></div>
      <div data-view-component="true"><a data-turbo="false" href="/projects/OP/forums/6/topics/382?r=383#message-383" data-view-component="true" class="Link--secondary Link text-small">02/02/2014 07:34 PM</a></div>
</div>

      
  <div data-view-component="true" class="ml-1 tmp-ml-1 flex-items-center d-flex flex-row">
      <div data-view-component="true"><action-menu data-select-variant="none" data-view-component="true">
  <button id="primary-menu-8358e3c9-2a3d-42af-b942-9d42a4ecd21e-button" popovertarget="primary-menu-8358e3c9-2a3d-42af-b942-9d42a4ecd21e-overlay" aria-controls="primary-menu-8358e3c9-2a3d-42af-b942-9d42a4ecd21e-list" aria-haspopup="true" aria-labelledby="tooltip-5207af49-7abc-4751-bdd1-0ccf956b8745" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium">  <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal Button-visual">
    <path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"></path>
</svg>
</button><tool-tip id="tooltip-5207af49-7abc-4751-bdd1-0ccf956b8745" for="primary-menu-8358e3c9-2a3d-42af-b942-9d42a4ecd21e-button" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Message actions</tool-tip>


<anchored-position data-target="action-menu.overlay" id="primary-menu-8358e3c9-2a3d-42af-b942-9d42a4ecd21e-overlay" anchor="primary-menu-8358e3c9-2a3d-42af-b942-9d42a4ecd21e-button" align="start" side="outside-bottom" anchor-offset="normal" popover="auto" data-view-component="true">
  <div data-view-component="true" class="Overlay Overlay--size-auto">
    
      <div data-view-component="true" class="Overlay-body Overlay-body--paddingNone">      <action-list>
  <div data-view-component="true">
    <ul data-target="action-menu.list" aria-labelledby="primary-menu-8358e3c9-2a3d-42af-b942-9d42a4ecd21e-button" id="primary-menu-8358e3c9-2a3d-42af-b942-9d42a4ecd21e-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
        <li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
    
    
    <clipboard-copy value="https://community.openproject.org/projects/OP/forums/6/topics/382?r=383#message-383" tabindex="-1" id="item-2068b943-b72a-416b-a9da-2cc3d43c7c6f" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16">
        <span class="ActionListItem-visual ActionListItem-visual--leading">
          <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy">
    <path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
        </span>
      
        <span data-view-component="true" class="ActionListItem-label">
          Copy link to clipboard
</span>      
</clipboard-copy>
  
</li>
</ul>    
</div></action-list>


</div>
      
</div></anchored-position>
</action-menu></div>
</div>

</div>

</div>
  <div data-view-component="true" class="Box-body"><div class="op-uc-container"><p class="op-uc-p">Also, I turned on MySQL logging, and:</p>
<p class="op-uc-p">These were the last queries before updating a issue (look at the time before each query)</p>
<p class="op-uc-p">130 Query SELECT `users`.* FROM `users` INNER JOIN `watchers` ON `users`.id = `watchers`.user_id WHERE ((`watchers`.watchable_type = ‘Issue’) AND (`watchers`.watchable_id = 312)) AND (users.status = 1) AND ( (`users`.`type` = ‘User’ OR `users`.`type` = ‘AnonymousUser’ OR `users`.`type` = ‘DeletedUser’ ) )<br>
130 Query SELECT * FROM `users` WHERE (LOWER (mail) IN (‘luciano.dias@domain’,‘tiago.geada@domain’)) AND ( (`users`.`type` = ‘User’ OR `users`.`type` = ‘AnonymousUser’ OR `users`.`type` = ‘DeletedUser’ ) )<br>
130 Query SELECT * FROM `trackers` WHERE (`trackers`.`id` = 11)<br>
130 Query SELECT * FROM `issue_statuses` WHERE (`issue_statuses`.`id` = 9)<br>
130 Query SELECT * FROM `enumerations` WHERE (`enumerations`.`id` = 4) AND ( (`enumerations`.`type` = ‘IssuePriority’ ) ) ORDER BY enumerations.position ASC<br>
130 Query SELECT * FROM `custom_fields` WHERE (is_for_all=1) AND ( (`custom_fields`.`type` = ‘IssueCustomField’ ) ) ORDER BY position<br>
130 Query SELECT * FROM `custom_fields` INNER JOIN `custom_fields_projects` ON `custom_fields`.id = `custom_fields_projects`.custom_field_id WHERE (`custom_fields_projects`.project_id = 10 ) AND ( (`custom_fields`.`type` = ‘IssueCustomField’ ) ) ORDER BY custom_fields.position<br>
130 Query SELECT `custom_fields`.* FROM `custom_fields` INNER JOIN `custom_fields_trackers` ON `custom_fields`.id = `custom_fields_trackers`.custom_field_id WHERE (`custom_fields_trackers`.tracker_id = 11 ) AND ( (`custom_fields`.`type` = ‘IssueCustomField’ ) )<br>
140202 18:29:07 130 Query SELECT * FROM `user_preferences` WHERE (`user_preferences`.user_id = 3) LIMIT 1</p>
<p class="op-uc-p">Then it took about 25 seconds or so and performed these:</p>
<p class="op-uc-p">140202 18:29:38 130 Query SELECT `journals`.id FROM `journals` WHERE (`journals`.`version` = 14 AND `journals`.`journaled_id` = 312 AND `journals`.`type` = ‘IssueJournal’ AND `journals`.id &lt;&gt; 1570) LIMIT 1<br>
130 Query UPDATE `journals` SET `changes` = ‘—- {}\n\n’ WHERE `id` = 1570<br>
130 Query SELECT * FROM `journals` WHERE (`journals`.journaled_id = 312) AND ( (`journals`.`type` = ‘IssueJournal’ ) ) ORDER BY journals.version DESC LIMIT 1<br>
130 Query SELECT * FROM `users` WHERE (`users`.`id` = 3) AND ( (`users`.`type` = ‘User’ OR `users`.`type` = ‘AnonymousUser’ OR `users`.`type` = ‘DeletedUser’ ) )<br>
130 Query COMMIT</p>
<p class="op-uc-p">And it took a few more seconds to show the response in the browser and everything else</p></div></div>
  
</div>
</div>
<div id="messages-post-component-389">
  <div data-view-component="true" class="op-forum-post-stem border-left"></div>
  <div id="message-389" data-test-selector="forum-post-389" data-view-component="true" class="Box op-forum-post position-relative">
  <div id="header-c7e1116b-2a20-4104-b6ce-f40ebcaeb0ad" data-view-component="true" class="Box-header py-2 tmp-py-2">
  
  
  <div data-view-component="true" class="flex-items-center flex-justify-between d-flex flex-row">
      
  <div data-view-component="true" class="flex-wrap flex-items-center d-flex flex-row">
      <div data-view-component="true" class="mr-2 tmp-mr-2"><opce-principal class="" data-principal="{&quot;href&quot;:&quot;/api/v3/users/100&quot;,&quot;name&quot;:&quot;Philipp Tessenow&quot;,&quot;id&quot;:100}" data-link="true" data-size="&quot;mini&quot;" data-hide-name="true" data-name-classes="&quot;&quot;" data-title="null" data-hover-card="true" data-hover-card-url="&quot;/users/100/hover_card&quot;"></opce-principal></div>
      <div data-view-component="true" class="mr-2 tmp-mr-2"><a target="_blank" data-hover-card-url="/users/100/hover_card" data-hover-card-trigger-target="trigger" href="/users/100" data-view-component="true" class="Link--primary Link text-bold">Philipp Tessenow</a></div>
      <div data-view-component="true"><a data-turbo="false" href="/projects/OP/forums/6/topics/382?r=389#message-389" data-view-component="true" class="Link--secondary Link text-small">02/03/2014 02:41 PM</a></div>
</div>

      
  <div data-view-component="true" class="ml-1 tmp-ml-1 flex-items-center d-flex flex-row">
      <div data-view-component="true"><action-menu data-select-variant="none" data-view-component="true">
  <button id="primary-menu-065b592d-0dae-4486-97bd-4e675222cc6c-button" popovertarget="primary-menu-065b592d-0dae-4486-97bd-4e675222cc6c-overlay" aria-controls="primary-menu-065b592d-0dae-4486-97bd-4e675222cc6c-list" aria-haspopup="true" aria-labelledby="tooltip-fff9a0da-7453-40a9-be79-6ed6b2568659" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium">  <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal Button-visual">
    <path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"></path>
</svg>
</button><tool-tip id="tooltip-fff9a0da-7453-40a9-be79-6ed6b2568659" for="primary-menu-065b592d-0dae-4486-97bd-4e675222cc6c-button" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Message actions</tool-tip>


<anchored-position data-target="action-menu.overlay" id="primary-menu-065b592d-0dae-4486-97bd-4e675222cc6c-overlay" anchor="primary-menu-065b592d-0dae-4486-97bd-4e675222cc6c-button" align="start" side="outside-bottom" anchor-offset="normal" popover="auto" data-view-component="true">
  <div data-view-component="true" class="Overlay Overlay--size-auto">
    
      <div data-view-component="true" class="Overlay-body Overlay-body--paddingNone">      <action-list>
  <div data-view-component="true">
    <ul data-target="action-menu.list" aria-labelledby="primary-menu-065b592d-0dae-4486-97bd-4e675222cc6c-button" id="primary-menu-065b592d-0dae-4486-97bd-4e675222cc6c-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
        <li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
    
    
    <clipboard-copy value="https://community.openproject.org/projects/OP/forums/6/topics/382?r=389#message-389" tabindex="-1" id="item-a1ad59ec-fee2-4140-b695-b940d0bf2c9c" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16">
        <span class="ActionListItem-visual ActionListItem-visual--leading">
          <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy">
    <path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
        </span>
      
        <span data-view-component="true" class="ActionListItem-label">
          Copy link to clipboard
</span>      
</clipboard-copy>
  
</li>
</ul>    
</div></action-list>


</div>
      
</div></anchored-position>
</action-menu></div>
</div>

</div>

</div>
  <div data-view-component="true" class="Box-body"><div class="op-uc-container"><p class="op-uc-p">Hi Tiago,</p>
<p class="op-uc-p">I don’t have an idea what the problem is (I have never heard of such a problem before), but we might be able to debug it :)</p>
<p class="op-uc-p">From your log I see that you use OpenProject 2.4 - is it an option for you to migrate to the recent 3.0 version? It is not officially marked as ‘stable’. However, our production systems (esp. openproject.org) are already running version 3.</p>
<p class="op-uc-p">Because we upgraded the whole software stack (ruby 2.0, rails 3) you might get rid of that problem. We don’t have an official upgrade guide yet, but I’ll ask Markus if he can answer here with his personal instructions. Once you are on OpenProject 3, you might consider using memcached for caching.</p>
<p class="op-uc-p">From your e-mail, I see that you have posted this related question (<a href="http://stackoverflow.com/questions/21514078" class="op-uc-link" rel="noopener noreferrer nofollow" target="_top">http://stackoverflow.com/questions/21514078</a>) on StackOverflow. The wordpress site you added <strong>should</strong> not make a difference. The upgrades you did might change a thing - which ruby do you use? A system provided 1.8 ruby?</p>
<p class="op-uc-p">Do you have the same problem with the PUT request when you acces the site from a stand alone passenger? (so that we can be certain that your apache settings do no harm).<br>
What if you start openproject via <code class="op-uc-code">RAILS_ENV=production script/server</code>?</p>
<p class="op-uc-p">yours,<br>
Philipp</p></div></div>
  
</div>
</div>
<div id="messages-post-component-393">
  <div data-view-component="true" class="op-forum-post-stem border-left"></div>
  <div id="message-393" data-test-selector="forum-post-393" data-view-component="true" class="Box op-forum-post position-relative">
  <div id="header-873fbca7-3ea1-4a64-ac60-16a24d7ccdab" data-view-component="true" class="Box-header py-2 tmp-py-2">
  
  
  <div data-view-component="true" class="flex-items-center flex-justify-between d-flex flex-row">
      
  <div data-view-component="true" class="flex-wrap flex-items-center d-flex flex-row">
      <div data-view-component="true" class="mr-2 tmp-mr-2"><opce-principal class="" data-principal="{&quot;href&quot;:&quot;/api/v3/users/8997&quot;,&quot;name&quot;:&quot;Tiago Geada&quot;,&quot;id&quot;:8997}" data-link="true" data-size="&quot;mini&quot;" data-hide-name="true" data-name-classes="&quot;&quot;" data-title="null" data-hover-card="true" data-hover-card-url="&quot;/users/8997/hover_card&quot;"></opce-principal></div>
      <div data-view-component="true" class="mr-2 tmp-mr-2"><a target="_blank" data-hover-card-url="/users/8997/hover_card" data-hover-card-trigger-target="trigger" href="/users/8997" data-view-component="true" class="Link--primary Link text-bold">Tiago Geada</a></div>
      <div data-view-component="true"><a data-turbo="false" href="/projects/OP/forums/6/topics/382?r=393#message-393" data-view-component="true" class="Link--secondary Link text-small">02/04/2014 10:19 AM</a></div>
</div>

      
  <div data-view-component="true" class="ml-1 tmp-ml-1 flex-items-center d-flex flex-row">
      <div data-view-component="true"><action-menu data-select-variant="none" data-view-component="true">
  <button id="primary-menu-fb5000dc-e574-4185-9cdb-45dd548af96b-button" popovertarget="primary-menu-fb5000dc-e574-4185-9cdb-45dd548af96b-overlay" aria-controls="primary-menu-fb5000dc-e574-4185-9cdb-45dd548af96b-list" aria-haspopup="true" aria-labelledby="tooltip-7d8bc441-5383-4191-91e0-5f3b830e10ca" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium">  <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal Button-visual">
    <path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"></path>
</svg>
</button><tool-tip id="tooltip-7d8bc441-5383-4191-91e0-5f3b830e10ca" for="primary-menu-fb5000dc-e574-4185-9cdb-45dd548af96b-button" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Message actions</tool-tip>


<anchored-position data-target="action-menu.overlay" id="primary-menu-fb5000dc-e574-4185-9cdb-45dd548af96b-overlay" anchor="primary-menu-fb5000dc-e574-4185-9cdb-45dd548af96b-button" align="start" side="outside-bottom" anchor-offset="normal" popover="auto" data-view-component="true">
  <div data-view-component="true" class="Overlay Overlay--size-auto">
    
      <div data-view-component="true" class="Overlay-body Overlay-body--paddingNone">      <action-list>
  <div data-view-component="true">
    <ul data-target="action-menu.list" aria-labelledby="primary-menu-fb5000dc-e574-4185-9cdb-45dd548af96b-button" id="primary-menu-fb5000dc-e574-4185-9cdb-45dd548af96b-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
        <li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
    
    
    <clipboard-copy value="https://community.openproject.org/projects/OP/forums/6/topics/382?r=393#message-393" tabindex="-1" id="item-d76638ac-3105-469c-bc74-45c1899efe95" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16">
        <span class="ActionListItem-visual ActionListItem-visual--leading">
          <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy">
    <path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
        </span>
      
        <span data-view-component="true" class="ActionListItem-label">
          Copy link to clipboard
</span>      
</clipboard-copy>
  
</li>
</ul>    
</div></action-list>


</div>
      
</div></anchored-position>
</action-menu></div>
</div>

</div>

</div>
  <div data-view-component="true" class="Box-body"><div class="op-uc-container"><p class="op-uc-p">Hi Philipp,</p>
<p class="op-uc-p">Thank you for your quick reply.</p>
<p class="op-uc-p">I did try running as a standalone (development, and now as RAILS_ENV=production) and same issue is happening.</p>
<p class="op-uc-p">I did try at the beginning to install 3.0, but it required ruby1.9 and there was some gem (can’t remember the problem for sure) that was giving me trouble regarding ruby 1.9, and as ruby 1.8 is default in debian wheezy, I stucked with 2.4</p>
<p class="op-uc-p">I never used ruby on rails before, and I’m a bit afraid of running into problems.</p>
<p class="op-uc-p">We already configured openproject to our needs and would like to have the lst problems possible.</p>
<p class="op-uc-p">Also you state ruby 2.0, I would need to install it from testing… I guess that would be OK.</p>
<p class="op-uc-p">We run a system provided ruby 1.8</p>
<p class="op-uc-p">How could I debug further?</p>
<p class="op-uc-p">What steps would one need to migrate to openproject 3?</p>
<p class="op-uc-p">Thank you in advance</p></div></div>
  
</div>
</div></template></turbo-stream>