Server: Inconsistent sync (A HTTP transmission error happened. The server file discovery reply is missing data)

Created on 20 May 2019  路  6Comments  路  Source: nextcloud/server

Hi,
A sharing file, cause a inconsistent sync or failure.
Capture d鈥櫭ヽran de 2019-05-09 11-44-19

Steps to reproduce

  1. I don't now

Expected behaviour

Success full client sync

Actual behaviour

Not success full sync, see attached file

A HTTP transmission error happened. The server file discovery reply is missing data

Server configuration

Operating system:
Debian 4.9.168-1

Web server:
Apache/2.4.25

Database:
(PostgreSQL) 10.7

PHP version:
7.3.5

Nextcloud version: (see Nextcloud admin page)
16.0.0

Updated from an older Nextcloud/ownCloud or fresh install:
15.0.8

Are you using encryption: no

Logs

Web server error log

Nextcloud log (data/nextcloud.log)


Nextcloud log

{"reqId":"XOKmc38AAQEAABTkM-sAAAAI","level":3,"time":"2019-05-20T13:07:01+00:00","remoteAddr":"87.89.174.149","user":"Martin","app":"index","method":"GET","url":"/index.php/apps/recommendations/api/recommendations","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"Node for share not found, fileid: 8488","Code":0,"Trace":[{"file":"/srv/www/cloud/apps/recommendations/lib/Service/RecentlySharedFilesSource.php","line":123,"function":"getNode","class":"OC\\Share20\\Share","type":"->","args":[]},{"function":"OCA\\Recommendations\\Service\\{closure}","class":"OCA\\Recommendations\\Service\\RecentlySharedFilesSource","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/srv/www/cloud/apps/recommendations/lib/Service/RecentlySharedFilesSource.php","line":127,"function":"array_map","args":[{"__class__":"Closure"},[{"__class__":"OC\\Share20\\Share"},"*** sensitive parameter replaced ***",{"__class__":"OC\\Share20\\Share"}]]},{"file":"/srv/www/cloud/apps/recommendations/lib/Service/RecommendationService.php","line":91,"function":"getMostRecentRecommendation","class":"OCA\\Recommendations\\Service\\RecentlySharedFilesSource","type":"->","args":[{"__class__":"OC\\User\\User"},6]},{"function":"OCA\\Recommendations\\Service\\{closure}","class":"OCA\\Recommendations\\Service\\RecommendationService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/srv/www/cloud/apps/recommendations/lib/Service/RecommendationService.php","line":92,"function":"array_reduce","args":[[{"__class__":"OCA\\Recommendations\\Service\\RecentlyCommentedFilesSource"},{"__class__":"OCA\\Recommendations\\Service\\RecentlyEditedFilesSource"},"*** sensitive parameter replaced ***"],{"__class__":"Closure"},[]]},{"file":"/srv/www/cloud/apps/recommendations/lib/Controller/RecommendationController.php","line":63,"function":"getRecommendations","class":"OCA\\Recommendations\\Service\\RecommendationService","type":"->","args":[{"__class__":"OC\\User\\User"}]},{"file":"/srv/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":166,"function":"index","class":"OCA\\Recommendations\\Controller\\RecommendationController","type":"->","args":[]},{"file":"/srv/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Recommendations\\Controller\\RecommendationController"},"index"]},{"file":"/srv/www/cloud/lib/private/AppFramework/App.php","line":126,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Recommendations\\Controller\\RecommendationController"},"index"]},{"file":"/srv/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Recommendations\\Controller\\RecommendationController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"recommendations.recommendation.index"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"recommendations.recommendation.index"}]},{"file":"/srv/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"recommendations.recommendation.index"}]},{"file":"/srv/www/cloud/lib/base.php","line":975,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/recommendations/api/recommendations"]},{"file":"/srv/www/cloud/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/srv/www/cloud/lib/private/Share20/Share.php","Line":182,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0","version":"16.0.1.1","id":"5ce2aaff7ae72"}

PGSQL


pgsql result

SELECT * FROM oc_share WHERE file_source = 8488;
 id | share_type | share_with | password | uid_owner | uid_initiator | parent | item_type | item_source | item_target | file_source |          file_target          | permissions |   stime    | accepted | expiration | token | mail_send | share_name | password_by_talk | note | hide_download | label 
----+------------+------------+----------+-----------+---------------+--------+-----------+-------------+-------------+-------------+-------------------------------+-------------+------------+----------+------------+-------+-----------+------------+------------------+------+---------------+-------
 58 |          0 | Martin     |          | Marie     | Marie         |        | file      | 8488        |             |        8488 | /feuille de route 1er rdv.pdf |           3 | 1552413059 |        0 |            |       |         0 |            | f                |      |             0 | 
(1 row)

Resolve

Remove shared file (from web interface or psql)
ex: DELETE FROM oc_share WHERE file_source = 8488;

1. to develop bug files sharing needs info

Most helpful comment

I received this error due to an External Storage that was no longer available on the network. I didn't need the External Storage connection anymore so I removed it from Nextcloud, and the error immediately stopped occurring on my desktop client.

All 6 comments

Formatted error

{
  "reqId": "XOKmc38AAQEAABTkM-sAAAAI",
  "level": 3,
  "time": "2019-05-20T13:07:01+00:00",
  "remoteAddr": "87.89.174.149",
  "user": "Martin",
  "app": "index",
  "method": "GET",
  "url": "/index.php/apps/recommendations/api/recommendations",
  "message": {
    "Exception": "OCP\\Files\\NotFoundException",
    "Message": "Node for share not found, fileid: 8488",
    "Code": 0,
    "Trace": [
      {
        "file": "/srv/www/cloud/apps/recommendations/lib/Service/RecentlySharedFilesSource.php",
        "line": 123,
        "function": "getNode",
        "class": "OC\\Share20\\Share",
        "type": "->",
        "args": []
      },
      {
        "function": "OCA\\Recommendations\\Service\\{closure}",
        "class": "OCA\\Recommendations\\Service\\RecentlySharedFilesSource",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/srv/www/cloud/apps/recommendations/lib/Service/RecentlySharedFilesSource.php",
        "line": 127,
        "function": "array_map",
        "args": [
          {
            "__class__": "Closure"
          },
          [
            {
              "__class__": "OC\\Share20\\Share"
            },
            "*** sensitive parameter replaced ***",
            {
              "__class__": "OC\\Share20\\Share"
            }
          ]
        ]
      },
      {
        "file": "/srv/www/cloud/apps/recommendations/lib/Service/RecommendationService.php",
        "line": 91,
        "function": "getMostRecentRecommendation",
        "class": "OCA\\Recommendations\\Service\\RecentlySharedFilesSource",
        "type": "->",
        "args": [
          {
            "__class__": "OC\\User\\User"
          },
          6
        ]
      },
      {
        "function": "OCA\\Recommendations\\Service\\{closure}",
        "class": "OCA\\Recommendations\\Service\\RecommendationService",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/srv/www/cloud/apps/recommendations/lib/Service/RecommendationService.php",
        "line": 92,
        "function": "array_reduce",
        "args": [
          [
            {
              "__class__": "OCA\\Recommendations\\Service\\RecentlyCommentedFilesSource"
            },
            {
              "__class__": "OCA\\Recommendations\\Service\\RecentlyEditedFilesSource"
            },
            "*** sensitive parameter replaced ***"
          ],
          {
            "__class__": "Closure"
          },
          []
        ]
      },
      {
        "file": "/srv/www/cloud/apps/recommendations/lib/Controller/RecommendationController.php",
        "line": 63,
        "function": "getRecommendations",
        "class": "OCA\\Recommendations\\Service\\RecommendationService",
        "type": "->",
        "args": [
          {
            "__class__": "OC\\User\\User"
          }
        ]
      },
      {
        "file": "/srv/www/cloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 166,
        "function": "index",
        "class": "OCA\\Recommendations\\Controller\\RecommendationController",
        "type": "->",
        "args": []
      },
      {
        "file": "/srv/www/cloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 99,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\\Recommendations\\Controller\\RecommendationController"
          },
          "index"
        ]
      },
      {
        "file": "/srv/www/cloud/lib/private/AppFramework/App.php",
        "line": 126,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\\Recommendations\\Controller\\RecommendationController"
          },
          "index"
        ]
      },
      {
        "file": "/srv/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php",
        "line": 47,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\Recommendations\\Controller\\RecommendationController",
          "index",
          {
            "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
          },
          {
            "_route": "recommendations.recommendation.index"
          }
        ]
      },
      {
        "function": "__invoke",
        "class": "OC\\AppFramework\\Routing\\RouteActionHandler",
        "type": "->",
        "args": [
          {
            "_route": "recommendations.recommendation.index"
          }
        ]
      },
      {
        "file": "/srv/www/cloud/lib/private/Route/Router.php",
        "line": 297,
        "function": "call_user_func",
        "args": [
          {
            "__class__": "OC\\AppFramework\\Routing\\RouteActionHandler"
          },
          {
            "_route": "recommendations.recommendation.index"
          }
        ]
      },
      {
        "file": "/srv/www/cloud/lib/base.php",
        "line": 975,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/apps/recommendations/api/recommendations"
        ]
      },
      {
        "file": "/srv/www/cloud/index.php",
        "line": 42,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/srv/www/cloud/lib/private/Share20/Share.php",
    "Line": 182,
    "CustomMessage": "--"
  },
  "userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0",
  "version": "16.0.1.1",
  "id": "5ce2aaff7ae72"
}

@juliushaertl for recommendations :)

For recommendations that would be rather @ChristophWurst :wink:

A HTTP transmission error happened. The server file discovery reply is missing data

Which version of the desktop client are you running? This should actually be fixed in the most recent one.

For understanding why the share still exists while the node is not available anymore, it would actually be very useful to know where the share is originating from, but I guess you cannot run the following anylonger since you have deleted the entry: select * from oc_share where item_source = '8488';

For recommendations that would be rather @ChristophWurst

Sorry! :hugs:

It happens in our setup as well. When an employee left company after some time others got these errors when they have (still) some shared resources from such left employee. Removing such a stale share resolves this issue. The employee that left is still present in the database (e.g. oc_preferences, oc_shares, oc_files) but not present on the LDAP server.

In the log I can see this for example

{"reqId":"66kl8wHwO5xuj7E9TG6d","level":3,"time":"2020-04-16T08:46:44+00:00","remoteAddr":"10.75.135.106","user":"97000F04-C4E6-4A6E-BCAF-7B5161B8F59D","app":"files","method":"PROPFIND","url":"\/remote.php\/dav\/files\/97000F04-C4E6-4A6E-BCAF-7B5161B8F59D\/","message":" Backends provided no user object for 47C9694C-8C64-4B6B-A167-5B296FC76122","userAgent":"Mozilla\/5.0 (Linux) mirall\/2.3.3 (Nextcloud)","version":"17.0.3.1"}

where 97000F04-C4E6-4A6E-BCAF-7B5161B8F59D is still present employee and 47C9694C-8C64-4B6B-A167-5B296FC76122 is the one that left. But I am not sure this I related to displaying that error.

But.

It also happened to me today with the share from the same user 47C9694C-8C64-4B6B-A167-5B296FC76122 but recovered itself without any action needed. My case was "special" in the way that the resource was shared by this employee that left the company, but he was re-sharing a resource, that is owned by an employee still present in the company. And there is no log entry containing my uuid and the left employee uuid - like something crashed and produced no output? but I got this "discovery reply is missing data" error. Not now anymore.

I received this error due to an External Storage that was no longer available on the network. I didn't need the External Storage connection anymore so I removed it from Nextcloud, and the error immediately stopped occurring on my desktop client.

Was this page helpful?
0 / 5 - 0 ratings