Skip to content

Syncing from linux client to server gives "unexpected EOF" errors #67

@c00

Description

@c00

Syncing files from the local folder to the server fails.

The client logs show:

Put "http://localhost:9090/data/personal-files/PXL_20230410_055825298.jpg": readfrom tcp [::1]:55958->[::1]:9090: http: ContentLength=2380533 with Body length 0

The server logs show a multitude of:

cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1  Error: unexpected EOF (*errors.errorString)
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1         5: github.com/minio/[email protected]/cmd/fs-v1-helpers.go:323:cmd.fsCreateFile()
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1         4: github.com/minio/[email protected]/cmd/fs-v1.go:1214:cmd.(*FSObjects).putObject()
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1         3: github.com/minio/[email protected]/cmd/fs-v1.go:1130:cmd.(*FSObjects).PutObject()
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1         2: github.com/minio/[email protected]/cmd/object-handlers.go:1669:cmd.objectAPIHandlers.PutObjectHandler()
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1         1: net/http/server.go:2220:http.HandlerFunc.ServeHTTP()
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1  API: PutObject(bucket=personal, object=b250dd13-aecb-462b-91e9-4b026680b94b)
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1  Time: 07:13:39 UTC 08/26/2025
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1  DeploymentID: a507edbc-be50-4de2-9814-8b61a18d7fe6
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1  RequestID: 185F3FB36B132916
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1  RemoteHost: 127.0.0.1
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1  Host: 127.0.0.1:42443
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1  UserAgent: MinIO (linux; amd64) minio-go/v7.0.65
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1  Error: unexpected EOF (*errors.errorString)
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1         5: github.com/minio/[email protected]/cmd/fs-v1-helpers.go:323:cmd.fsCreateFile()
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1         4: github.com/minio/[email protected]/cmd/fs-v1.go:1214:cmd.(*FSObjects).putObject()
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1         3: github.com/minio/[email protected]/cmd/fs-v1.go:1130:cmd.(*FSObjects).PutObject()
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1         2: github.com/minio/[email protected]/cmd/object-handlers.go:1669:cmd.objectAPIHandlers.PutObjectHandler()
cells-1  | 2025-08-26T07:13:39.526Z     INFO    pydio.grpc.data.objects.local1         1: net/http/server.go:2220:http.HandlerFunc.ServeHTTP()
cells-1  | 2025-08-26T07:13:39.541Z     ERROR   pydio.gateway.data      Error while putting object:Put "http://127.0.0.1:42443/personal/b250dd13-aecb-462b-91e9-4b026680b94b": context canceled
cells-1  | 2025-08-26T07:13:39.541Z     ERROR   pydio.gateway.data      Error while putting object:Put "http://127.0.0.1:42443/personal/b250dd13-aecb-462b-91e9-4b026680b94b": context canceled

I have downloaded the binary for linux (fedora in this case), and am running the latest server on docker. I have exposed both the standard port (9090) and grpc port (9091). TLS is turned off as I'm testing locally. Also, the web client works, including uploading files. (I have not tried the mobile client yet)

The ./cells-sync start starts normally. Connecting to the server works, setting up the sync task works. Files are successfully downloaded from the server into the sync folder.

It is only when the client tries to upload files from the local sync folder to the server that this error occurs.

From the error it seems like the PUT request isn't attaching the body. It says "Body length 0", which seems wrong.

Is this a bug? or am I just doing something wrong?

For completeness, here's the docker compose:

services:
  cells:
    image: pydio/cells:latest
    restart: unless-stopped
    ports:
      - "9090:9090"
      - "9091:9091"
    environment:
      CELLS_SITE_NO_TLS: 1
      CELLS_SITE_BIND: "0.0.0.0:9090"
      CELLS_GRPC_EXTERNAL: "9091"
      CELLS_LOG: verbose
    volumes:
      - ./data:/var/cells
      # - cellsdir:/var/cells
      # - data:/var/cells/data

  mysql:
    image: mysql:8
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: redacted
      MYSQL_DATABASE: cells
      MYSQL_USER: pydio
      MYSQL_PASSWORD: redacted
    command:
      [
        mysqld,
        --character-set-server=utf8mb4,
        --collation-server=utf8mb4_unicode_ci,
      ]
    volumes:
      - mysqldir:/var/lib/mysql

volumes:
  # data: {}
  # cellsdir: {}
  mysqldir: {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions