Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure shared file permissions handled properly in Google connector #16

Open
pnedonosko opened this issue Mar 17, 2014 · 0 comments
Open

Comments

@pnedonosko
Copy link
Contributor

This issue is a follow up of internal CLDINT-1051. An user reported a 500 error from Google for his files. In logs we found this:

2013-06-10 20:22:16,976 | INFO  | Google Drive - [email protected] connect started. [o.e.clouddrive.rest.ConnectService<http-bio-8080-exec-10>] 
2013-06-10 20:24:40,563 | WARN  | Error running connect command: Error requesting Files service: 404 Not Found
{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc",
    "reason" : "notFound"
  } ],
  "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc"
}. Rolled back and running next attempt. [org.exoplatform.clouddrive.CloudDrive<Google Drive - [email protected] connect 20130610.202216>] 
2013-06-10 20:26:40,984 | WARN  | Error running connect command: Error requesting Files service: 404 Not Found
{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc",
    "reason" : "notFound"
  } ],
  "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc"
}. Rolled back and running next attempt. [org.exoplatform.clouddrive.CloudDrive<Google Drive - [email protected] connect 20130610.202216>] 
2013-06-10 20:28:45,653 | WARN  | Error running connect command: Error requesting Files service: 404 Not Found
{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc",
    "reason" : "notFound"
  } ],
  "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc"
}. Rolled back and running next attempt. [org.exoplatform.clouddrive.CloudDrive<Google Drive - [email protected] connect 20130610.202216>] 
2013-06-10 20:31:11,403 | ERROR | Error requesting Files service: 404 Not Found
{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc",
    "reason" : "notFound"
  } ],
  "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc"
} [org.exoplatform.clouddrive.CloudDrive<Google Drive - [email protected] connect 20130610.202216>] 
org.exoplatform.clouddrive.googledrive.GoogleDriveException: Error requesting Files service: 404 Not Found
{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc",
    "reason" : "notFound"
  } ],
  "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc"
}
    at org.exoplatform.clouddrive.googledrive.GoogleDriveAPI.file(GoogleDriveAPI.java:577) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at org.exoplatform.clouddrive.googledrive.JCRLocalGoogleDrive$GoogleDriveConnect.fetchChilds(JCRLocalGoogleDrive.java:106) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at org.exoplatform.clouddrive.googledrive.JCRLocalGoogleDrive$GoogleDriveConnect.fetchChilds(JCRLocalGoogleDrive.java:129) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at org.exoplatform.clouddrive.googledrive.JCRLocalGoogleDrive$GoogleDriveConnect.fetchChilds(JCRLocalGoogleDrive.java:129) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at org.exoplatform.clouddrive.googledrive.JCRLocalGoogleDrive$GoogleDriveConnect.fetchFiles(JCRLocalGoogleDrive.java:92) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive$ConnectCommand.process(JCRLocalCloudDrive.java:861) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive$AbstractCommand.exec(JCRLocalCloudDrive.java:717) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive$CommandRunnable.run(JCRLocalCloudDrive.java:629) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at java.lang.Thread.run(Thread.java:662) ~[na:1.6.0_32]
Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found
{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc",
    "reason" : "notFound"
  } ],
  "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc"
}
    at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:159) ~[google-api-client-1.10.3-beta.jar:1.10.3-beta]
    at com.google.api.client.googleapis.json.GoogleJsonResponseException.execute(GoogleJsonResponseException.java:203) ~[google-api-client-1.10.3-beta.jar:1.10.3-beta]
    at com.google.api.client.googleapis.services.GoogleClient.executeUnparsed(GoogleClient.java:237) ~[google-api-client-1.10.3-beta.jar:1.10.3-beta]
    at com.google.api.client.http.json.JsonHttpRequest.executeUnparsed(JsonHttpRequest.java:207) ~[google-http-client-1.10.3-beta.jar:1.10.3-beta]
    at com.google.api.services.drive.Drive$Files$Get.execute(Drive.java:865) ~[google-api-services-drive-v2-rev1-1.7.2-beta.jar:na]
    at org.exoplatform.clouddrive.googledrive.GoogleDriveAPI.file(GoogleDriveAPI.java:575) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    ... 8 common frames omitted
2013-06-10 20:38:32,302 | WARN  | Item collaboration:/Users/f___/fd___/fdr___/fdrouet/Private not a cloud file or drive not connected. [o.e.clouddrive.rest.DriveService<http-bio-8080-exec-5>] 
2013-06-10 20:38:45,481 | INFO  | Google Drive - [email protected] connect started. [o.e.clouddrive.rest.ConnectService<http-bio-8080-exec-22>] 
2013-06-10 20:40:51,966 | WARN  | Error running connect command: Error requesting Files service: 404 Not Found
{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc",
    "reason" : "notFound"
  } ],
  "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc"
}. Rolled back and running next attempt. [org.exoplatform.clouddrive.CloudDrive<Google Drive - [email protected] connect 20130610.203845>] 
2013-06-10 20:42:50,656 | WARN  | Error running connect command: Error requesting Files service: 404 Not Found
{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc",
    "reason" : "notFound"
  } ],
  "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc"
}. Rolled back and running next attempt. [org.exoplatform.clouddrive.CloudDrive<Google Drive - [email protected] connect 20130610.203845>] 
2013-06-10 20:44:53,393 | WARN  | Error running connect command: Error requesting Files service: 404 Not Found
{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc",
    "reason" : "notFound"
  } ],
  "message" : "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc"
}. Rolled back and running next attempt. [org.exoplatform.clouddrive.CloudDrive<Google Drive - [email protected] connect 20130610.203845>] 
2013-06-10 20:46:54,286 | ERROR | Error requesting Files service: 500 Internal Server Error
{
  "code" : 500,
  "errors" : [ {
    "domain" : "global",
    "message" : "Internal Error",
    "reason" : "internalError"
  } ],
  "message" : "Internal Error"
} [org.exoplatform.clouddrive.CloudDrive<Google Drive - [email protected] connect 20130610.203845>] 
org.exoplatform.clouddrive.googledrive.GoogleDriveException: Error requesting Files service: 500 Internal Server Error
{
  "code" : 500,
  "errors" : [ {
    "domain" : "global",
    "message" : "Internal Error",
    "reason" : "internalError"
  } ],
  "message" : "Internal Error"
}
    at org.exoplatform.clouddrive.googledrive.GoogleDriveAPI.file(GoogleDriveAPI.java:577) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at org.exoplatform.clouddrive.googledrive.JCRLocalGoogleDrive$GoogleDriveConnect.fetchChilds(JCRLocalGoogleDrive.java:106) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at org.exoplatform.clouddrive.googledrive.JCRLocalGoogleDrive$GoogleDriveConnect.fetchChilds(JCRLocalGoogleDrive.java:129) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at org.exoplatform.clouddrive.googledrive.JCRLocalGoogleDrive$GoogleDriveConnect.fetchFiles(JCRLocalGoogleDrive.java:92) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive$ConnectCommand.process(JCRLocalCloudDrive.java:861) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive$AbstractCommand.exec(JCRLocalCloudDrive.java:717) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive$CommandRunnable.run(JCRLocalCloudDrive.java:629) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    at java.lang.Thread.run(Thread.java:662) ~[na:1.6.0_32]
Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error
{
  "code" : 500,
  "errors" : [ {
    "domain" : "global",
    "message" : "Internal Error",
    "reason" : "internalError"
  } ],
  "message" : "Internal Error"
}
    at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:159) ~[google-api-client-1.10.3-beta.jar:1.10.3-beta]
    at com.google.api.client.googleapis.json.GoogleJsonResponseException.execute(GoogleJsonResponseException.java:203) ~[google-api-client-1.10.3-beta.jar:1.10.3-beta]
    at com.google.api.client.googleapis.services.GoogleClient.executeUnparsed(GoogleClient.java:237) ~[google-api-client-1.10.3-beta.jar:1.10.3-beta]
    at com.google.api.client.http.json.JsonHttpRequest.executeUnparsed(JsonHttpRequest.java:207) ~[google-http-client-1.10.3-beta.jar:1.10.3-beta]
    at com.google.api.services.drive.Drive$Files$Get.execute(Drive.java:865) ~[google-api-services-drive-v2-rev1-1.7.2-beta.jar:na]
    at org.exoplatform.clouddrive.googledrive.GoogleDriveAPI.file(GoogleDriveAPI.java:575) ~[exo-clouddrive-services-core-1.1.0-20130609.020134-5.jar:1.1.0-SNAPSHOT]
    ... 7 common frames omitted
2013-06-10 20:59:16,187 | WARN  | Item collaboration:/Users/f___/fd___/fdr___/fdrouet/Private not a cloud file or drive not connected. 

What was observed, that such error happened in this case more that three times in row and before 500 it precedes 404 "File not found: 0At0ql2KIfyMAdDFvQkl3Y21SLWZMWXJPVmNXdkl6NXc". In following log two your attempts to connect, first time it failed due to 404, next time was 404 but finally connector faced with 500 from Google

It's possible that "File not found" happens due to not sufficient rights to a file (probably shared by another user).

@pnedonosko pnedonosko added this to the 1.1.0-RC2 milestone Jun 11, 2014
@pnedonosko pnedonosko modified the milestones: 1.1.0-RC3, 1.1.0-RC2 Jul 9, 2014
@pnedonosko pnedonosko modified the milestones: 1.2.x, 1.2.2 Aug 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant