I added GoogleDrive as a source for WorkplaceSearch.
After a few hours, I was able to retrieve the data from GoogleDrive and search for documents from WorkplaceSearch, but suddenly I got the following message.
Unknown problem occurred when syncing. [Check diagnostic bundle for details - Message id: 60d02e4984c212b38a33d4cd].
How do I resolve this?
I'm posting the contents of a json file that I got by pressing the Download diagnostics data
button in Content Sources > Google Drive > Source Settings
.
{
"general": {
"version": "7.13.2",
"revision": "af74d68aafaab071eafa00c2ab628ecf5a1daa27",
"elasticsearchVersion": "7.11.0"
},
"source": {
"id": "60c09c5b84c21256a3a17b64",
"serviceType": "google_drive",
"name": "Google Drive",
"context": "organization",
"dlpEnabled": false,
"recentJobs": {
"incremental": [
{
"createdAt": "2021-06-21T06:14:28Z",
"status": "error",
"fatalException": {
"friendly_message": "Unknown problem occurred when syncing.",
"stack_trace": "/usr/share/enterprise-search/lib/war/frito_pie/lib/secret_keeper/google.class:35:in `refresh_client\u0027: undefined method `[]\u0027 for nil:NilClass\n\tfrom /usr/share/enterprise-search/lib/war/frito_pie/lib/secret_keeper/google.class:19:in `refresh\u0027\n\tfrom /usr/share/enterprise-search/lib/war/frito_pie/lib/secret_keeper.class:274:in `ensure_valid!\u0027\n\tfrom /usr/share/enterprise-search/lib/war/frito_pie/lib/secret_keeper.class:249:in `fetch_secret_details\u0027\n\tfrom /usr/share/enterprise-search/lib/war/frito_pie/lib/secret_keeper.class:115:in `fetch_content_source_secret_details!\u0027\n\tfrom /usr/share/enterprise-search/lib/war/frito_pie/app/models/frito_pie/content_source.class:663:in `authorization_details\u0027\n\tfrom /usr/share/enterprise-search/lib/war/frito_pie/app/models/frito_pie/content_source.class:671:in `authorization_data\u0027\n\tfrom /usr/share/enterprise-search/lib/war/frito_pie/lib/frito_pie/content_source_service/google_drive.class:141:in `block in web_client\u0027\n\tfrom org/jruby/RubyKernel.java:1897:in `tap\u0027\n\tfrom /usr/share/enterprise-search/lib/war/frito_pie/lib/frito_pie/content_source_service/google_drive.class:140:in `web_client\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/base/extractor.class:93:in `client\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/google_drive/extractor.class:193:in `get_files\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/google_drive/extractor.class:123:in `block in yield_files\u0027\n\tfrom org/jruby/RubyKernel.java:1442:in `loop\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/google_drive/extractor.class:122:in `yield_files\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/google_drive/extractor.class:109:in `yield_actions_and_files\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/google_drive/extractor.class:97:in `yield_domain_actions_and_files\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/google_drive/extractor.class:21:in `yield_document_changes\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/base/extractor.class:151:in `block in document_changes\u0027\n\tfrom org/jruby/RubyGenerator.java:104:in `each\u0027\n\tfrom org/jruby/RubyEnumerator.java:396:in `each\u0027\n\tfrom org/jruby/RubyEnumerator.java:414:in `each\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/base/extractor.class:158:in `block in document_changes\u0027\n\tfrom /usr/share/enterprise-search/lib/war/gems/gems/statsd-instrument-2.1.1/lib/statsd/instrument.rb:284:in `block in measure\u0027\n\tfrom /usr/share/enterprise-search/lib/war/gems/gems/statsd-instrument-2.1.1/lib/statsd/instrument.rb:53:in `duration\u0027\n\tfrom /usr/share/enterprise-search/lib/war/gems/gems/statsd-instrument-2.1.1/lib/statsd/instrument.rb:284:in `measure\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/stats.class:4:in `measure\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/base/extractor.class:148:in `block in document_changes\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/base/extractor.class:109:in `block in with_auth_tokens_and_retry\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/google_drive/extractor.class:84:in `convert_rate_limit_errors\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/base/extractor.class:108:in `block in with_auth_tokens_and_retry\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/base/extractor.class:223:in `convert_transient_server_errors\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/base/extractor.class:107:in `with_auth_tokens_and_retry\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/base/extractor.class:147:in `block in document_changes\u0027\n\tfrom /usr/share/enterprise-search/lib/war/gems/gems/statsd-instrument-2.1.1/lib/statsd/instrument.rb:284:in `block in measure\u0027\n\tfrom /usr/share/enterprise-search/lib/war/gems/gems/statsd-instrument-2.1.1/lib/statsd/instrument.rb:53:in `duration\u0027\n\tfrom /usr/share/enterprise-search/lib/war/gems/gems/statsd-instrument-2.1.1/lib/statsd/instrument.rb:284:in `measure\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/stats.class:4:in `measure\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/content_sources/base/extractor.class:146:in `document_changes\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/work/index.class:13:in `block in run\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/work/abstract_extractor_work.class:83:in `run_with_suspension\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/work/index.class:12:in `run\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/work/abstract_extractor_work.class:121:in `execute\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/lib/connectors/workers/extract_worker.class:7:in `block in run\u0027\n\tfrom /usr/share/enterprise-search/lib/war/gems/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute\u0027\n\tfrom com/concurrent_ruby/ext/SynchronizationLibrary.java:232:in `synchronize\u0027\n\tfrom /usr/share/enterprise-search/lib/war/gems/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:19:in `execute\u0027\n\tfrom /usr/share/enterprise-search/lib/war/connectors/config/initializers/concurrent.class:16:in `block in realize\u0027\n\tfrom /usr/share/enterprise-search/lib/war/gems/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby/concurrent/executor/java_executor_service.rb:79:in `run\u0027\n",
"id": "60d02e4884c212d93133d463",
"message": "undefined method `[]\u0027 for nil:NilClass",
"class": "NoMethodError"
},
"errorReason": "unknown",
"completedAt": "2021-06-21T06:14:32Z",
"durationSeconds": 4.0,
"documentErrorCount": 0,
"documentErrors": []
},
... snip ...