<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CRIN Trac: Ticket #7: Enable Google Drive plugin for ownCloud</title>
    <link>https://trac.crin.org/trac/ticket/7</link>
    <description>&lt;p&gt;
Configure the &lt;a class="ext-link" href="https://doc.owncloud.org/server/7.0/admin_manual/configuration/external_storage_configuration_gui.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;external storage&lt;/a&gt; application on &lt;a class="ext-link" href="https://cloud.crin.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://cloud.crin.org/&lt;/a&gt; on the existing GreenCloud server for mounting Google Drive.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CRIN Trac</title>
      <url>https://trac.crin.org/trac/chrome/site/logo.gif</url>
      <link>https://trac.crin.org/trac/ticket/7</link>
    </image>
    <generator>Trac 1.0.2</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 29 Apr 2015 09:59:14 GMT</pubDate>
      <title>hours changed; totalhours set</title>
      <link>https://trac.crin.org/trac/ticket/7#comment:1</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/7#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.26&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                set to &lt;em&gt;0.26&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The "External storage support" app was already enabled on this page:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://cloud.crin.org/index.php/settings/apps"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://cloud.crin.org/index.php/settings/apps&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
In the ownCloud admin interface "Google Drive" needed ticking on this page:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://cloud.crin.org/index.php/settings/admin#goto-external-storage"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://cloud.crin.org/index.php/settings/admin#goto-external-storage&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
And then "Client ID" and "Client Secret" are needed. I should be able to get these following the instructions here:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://doc.owncloud.org/server/7.0/admin_manual/configuration/external_storage_configuration_gui.html#google-drive"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://doc.owncloud.org/server/7.0/admin_manual/configuration/external_storage_configuration_gui.html#google-drive&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Once access to the Google account has been sorted.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 29 Apr 2015 11:15:38 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/7#comment:2</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/7#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;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.26&lt;/em&gt; to &lt;em&gt;0.51&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Google access has been sorted out, on this page:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://console.developers.google.com/project"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://console.developers.google.com/project&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
An owncloud project has already been created, click it and go to &lt;tt&gt;APIs &amp;amp; Auth &amp;gt; Credentials&lt;/tt&gt; then
copy the "Client ID" and "Client Secret" into ownCloud and granty access it's ready to be tested!
&lt;/p&gt;
&lt;p&gt;
Jonas can you look to see if it is all working and if it is close this ticket as "fixed"?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 29 Apr 2015 14:02:39 GMT</pubDate>
      <title>attachment set</title>
      <link>https://trac.crin.org/trac/ticket/7</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/7</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;ScreenShot2015-04-29at12.49.14.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 29 Apr 2015 14:48:35 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/7#comment:3</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/7#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.75&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.51&lt;/em&gt; to &lt;em&gt;1.26&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Jonas has reported this error:
&lt;/p&gt;
&lt;p&gt;
&lt;a style="padding:0; border:none" href="https://trac.crin.org/trac/attachment/ticket/7/ScreenShot2015-04-29at12.49.14.png"&gt;&lt;img src="https://trac.crin.org/trac/raw-attachment/ticket/7/ScreenShot2015-04-29at12.49.14.png" /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Looking in the Apache logs there are these issues:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mkstemp("/var/www/owncloud/.execoooh2tIcT") failed: Permission denied
[Wed Apr 29 11:14:55 2015] [error] [client X.X.X.X] client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
&lt;/pre&gt;&lt;p&gt;
The only 500 errors seem to be on PROPFIND requests.
&lt;/p&gt;
&lt;pre class="wiki"&gt;grep " 500 " cloud.ssl_access.log | grep -v PROPFIND
&lt;/pre&gt;&lt;p&gt;
For example:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cloud.ssl_access.log:X.X.X.X - Jonas [29/Apr/2015:14:02:24 +0000] "PROPFIND /remote.php/webdav/GoogleDrive/XX HTTP/1.1" 500 2544 "-" "Mozilla/5.0 (Macintosh) mirall/1.8.0"
&lt;/pre&gt;&lt;p&gt;
I found this:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;h2 id="GoogleDriveLargeFilesFailwith500Error"&gt;Google Drive Large Files Fail with 500 Error&lt;/h2&gt;
&lt;p&gt;
Google Drive tries to download the entire file into memory, then write it to a temp file, and then stream it to the client, so very large file downloads from Google Drive may fail with a 500 internal server error.
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://doc.owncloud.org/server/8.0/admin_manual/release_notes.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://doc.owncloud.org/server/8.0/admin_manual/release_notes.html&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Is this related?
&lt;/p&gt;
&lt;p&gt;
The tmp directory is set in &lt;tt&gt;/etc/apache2/sites-available/cloud&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;php_admin_value upload_tmp_dir /var/www/owncloud/tmp
&lt;/pre&gt;&lt;p&gt;
But a php file with this in:
&lt;/p&gt;
&lt;pre class="wiki"&gt;&amp;lt;?php echo sys_get_temp_dir(); ?&amp;gt;
&lt;/pre&gt;&lt;p&gt;
Generates:
&lt;/p&gt;
&lt;pre class="wiki"&gt;/tmp
&lt;/pre&gt;&lt;p&gt;
Which is odd and adding this to the Apache config didn't change this:
&lt;/p&gt;
&lt;pre class="wiki"&gt;SetEnv TMPDIR /var/www/owncloud/tmp
&lt;/pre&gt;&lt;p&gt;
Some values in &lt;tt&gt;/etc/php5/apache2/php.ini&lt;/tt&gt; have been increased to see if this helps:
&lt;/p&gt;
&lt;pre class="wiki"&gt;#memory_limit = 256M
memory_limit = 512M
#max_execution_time = 30
max_execution_time = 60
&lt;/pre&gt;&lt;p&gt;
I think I need to be able to reproduce this bug myself to proceed -- Jonas what application were you using and what action did you do to generate the error?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jonas</dc:creator>

      <pubDate>Wed, 29 Apr 2015 15:03:11 GMT</pubDate>
      <title></title>
      <link>https://trac.crin.org/trac/ticket/7#comment:4</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/7#comment:4</guid>
      <description>
        &lt;p&gt;
Maybe it is the problem of large files.. How big would be too large?
&lt;/p&gt;
&lt;p&gt;
I am using the ownCloud desktop app and simply opened the settings. It is still synching all the files at the moment.
&lt;/p&gt;
&lt;p&gt;
I am not sure this is helpful to solve the issue..
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 29 Apr 2015 15:16:23 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/7#comment:5</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/7#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.26&lt;/em&gt; to &lt;em&gt;1.41&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a class="ticket" href="https://trac.crin.org/trac/ticket/7#comment:4" title="Comment 4"&gt;jonas&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Maybe it is the problem of large files.. How big would be too large?
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I'm not sure, the limits set by php are quite big:
&lt;/p&gt;
&lt;pre class="wiki"&gt;post_max_size = 2G
upload_max_filesize = 2G
max_file_uploads = 200
&lt;/pre&gt;&lt;p&gt;
So I doubt you are hitting these.
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
I am using the ownCloud desktop app and simply opened the settings. It is still synching all the files at the moment.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Ah, OK, let me know how that goes.
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
I am not sure this is helpful to solve the issue..
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
The file / directory generating the error has a "'" and a "&amp;amp;" is the file/directory name -- I wonder if this could be the cause of the problem, I'll email this to you, perhaps removing those chars might solve this?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 07 May 2015 11:23:35 GMT</pubDate>
      <title>hours, estimatedhours, status, totalhours changed; resolution set</title>
      <link>https://trac.crin.org/trac/ticket/7#comment:6</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/7#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.06&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;estimatedhours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;1.5&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;1.41&lt;/em&gt; to &lt;em&gt;1.47&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
This ticket can be closed, for future reference having Google Drive directories with a single quote character in the directory name was the cause of the problem and it was resolved by renaming the folder.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 13 May 2015 11:27:55 GMT</pubDate>
      <title>milestone set</title>
      <link>https://trac.crin.org/trac/ticket/7#comment:7</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/7#comment:7</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                set to &lt;em&gt;Maintenance&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 18 Jun 2015 11:58:38 GMT</pubDate>
      <title>cc changed</title>
      <link>https://trac.crin.org/trac/ticket/7#comment:8</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/7#comment:8</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;cc&lt;/strong&gt;
              &lt;em&gt;jenny&lt;/em&gt; &lt;em&gt;gillian&lt;/em&gt; added; &lt;em&gt;jonas&lt;/em&gt; removed
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
CCs changed.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>