Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#7 closed task (fixed)

Enable Google Drive plugin for ownCloud

Reported by: chris Owned by: chris
Priority: major Milestone: Maintenance
Component: owncloud Version:
Keywords: Cc: jenny, gillian
Estimated Number of Hours: 1.5 Add Hours to Ticket: 0
Billable?: yes Total Hours: 1.47

Description

Configure the external storage application on https://cloud.crin.org/ on the existing GreenCloud server for mounting Google Drive.

Attachments (1)

ScreenShot2015-04-29at12.49.14.png (85.0 KB) - added by chris 3 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 3 years ago by chris

  • Add Hours to Ticket changed from 0 to 0.26
  • Total Hours set to 0.26

The "External storage support" app was already enabled on this page:

In the ownCloud admin interface "Google Drive" needed ticking on this page:

And then "Client ID" and "Client Secret" are needed. I should be able to get these following the instructions here:

Once access to the Google account has been sorted.

comment:2 Changed 3 years ago by chris

  • Add Hours to Ticket changed from 0 to 0.25
  • Total Hours changed from 0.26 to 0.51

Google access has been sorted out, on this page:

An owncloud project has already been created, click it and go to APIs & Auth > Credentials then
copy the "Client ID" and "Client Secret" into ownCloud and granty access it's ready to be tested!

Jonas can you look to see if it is all working and if it is close this ticket as "fixed"?

Changed 3 years ago by chris

comment:3 Changed 3 years ago by chris

  • Add Hours to Ticket changed from 0 to 0.75
  • Total Hours changed from 0.51 to 1.26

Jonas has reported this error:


Looking in the Apache logs there are these issues:

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

The only 500 errors seem to be on PROPFIND requests.

grep " 500 " cloud.ssl_access.log | grep -v PROPFIND

For example:

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"

I found this:

Google Drive Large Files Fail with 500 Error

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.

https://doc.owncloud.org/server/8.0/admin_manual/release_notes.html

Is this related?

The tmp directory is set in /etc/apache2/sites-available/cloud:

php_admin_value upload_tmp_dir /var/www/owncloud/tmp

But a php file with this in:

<?php echo sys_get_temp_dir(); ?>

Generates:

/tmp

Which is odd and adding this to the Apache config didn't change this:

SetEnv TMPDIR /var/www/owncloud/tmp

Some values in /etc/php5/apache2/php.ini have been increased to see if this helps:

#memory_limit = 256M
memory_limit = 512M

#max_execution_time = 30
max_execution_time = 60

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?

comment:4 follow-up: Changed 3 years ago by jonas

Maybe it is the problem of large files.. How big would be too large?

I am using the ownCloud desktop app and simply opened the settings. It is still synching all the files at the moment.

I am not sure this is helpful to solve the issue..

comment:5 in reply to: ↑ 4 Changed 3 years ago by chris

  • Add Hours to Ticket changed from 0 to 0.15
  • Total Hours changed from 1.26 to 1.41

Replying to jonas:

Maybe it is the problem of large files.. How big would be too large?

I'm not sure, the limits set by php are quite big:

post_max_size = 2G

upload_max_filesize = 2G

max_file_uploads = 200

So I doubt you are hitting these.

I am using the ownCloud desktop app and simply opened the settings. It is still synching all the files at the moment.

Ah, OK, let me know how that goes.

I am not sure this is helpful to solve the issue..

The file / directory generating the error has a "'" and a "&" 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?

comment:6 Changed 3 years ago by chris

  • Add Hours to Ticket changed from 0 to 0.06
  • Estimated Number of Hours changed from 0 to 1.5
  • Resolution set to fixed
  • Status changed from new to closed
  • Total Hours changed from 1.41 to 1.47

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.

comment:7 Changed 3 years ago by chris

  • Milestone set to Maintenance

comment:8 Changed 3 years ago by chris

  • Cc jenny gillian added; jonas removed

CCs changed.

Note: See TracTickets for help on using tickets.