Skip to content

Production 4.0.0: Empty trash bin causes error message log spam when using the Windows desktop client #1983

Closed
opencloud-eu/reva
#454

Description

@Stylishly8742

Describe the bug

An empty trash bin will cause an error message to be logged every 30 seconds when using the Windows desktop client.

Steps to reproduce

  1. Use the Windows desktop client

  2. Empty trash bin

  3. If already empty, create text file

  4. Delete created text file

  5. Empty trash bin

Expected behavior

An empty trash bin and no error message(s).

Actual behavior

Once emptied. the system will log an error every 30 seconds:

2025-12-05T13:27:58Z ERR trashbin: error reading trash directory error=EOF driver=posix host.name= pkg=rgrpc service=storage-users spaceID=

This error message is logged for every empty trashbin, so once every 30 seconds for each spaceID. This is also not dependent on the number of spaces actually synced to the Windows machine, as it seems to check all of them.

The messages are logged per connected client, so 3 active Windows clients -> 3 times the logged error messages.

Setup

  • Opencloud on Docker via docker-compose based on official compose file, image opencloudeu/opencloud:4 sha256:72c2298b0a77b0b2809da6223d0b8a65f92d7fd5818f5ab4002609a2c2846605
  • behind existing Traefik 3 reverse proxy
  • default posix storage
  • Windows desktop client v3.0.2, installed from Microsoft store
  • no other additional opencloud containers/services/extensions (e.g Collabora, ClamAV, etc) except the mandatory notification service

Additional context

It looks like the server doesn't simply empty the trash folder but might actually delete the whole folder. As soon as I close down all Windows clients the error messages stop, so the web client and the Android client seem to do it another way.

If this is expected behaviour, would it be possible to demote this message down to INFO or DEBUG levels?

Activity

  1. micbar commented on Dec 8, 2025

    @micbar
    Member

    @TheOneRing @dragotin

    Can you help?

  2. TheOneRing commented on Dec 8, 2025

    @TheOneRing
    Contributor

    That's the server log.

  3. micbar commented on Dec 8, 2025

    @micbar
    Member

    Yes I know 🤣

    But how does the client trigger activity in the trashbin

  4. TheOneRing commented on Dec 8, 2025

    @TheOneRing
    Contributor

    By doing PROPFINDS, why the server then looks in the trashbin I don't know 🗑️ 🐼.
    Maybe a bug in the sharejail implementation?

  5. self-assigned this
    on Dec 9, 2025
  6. aduffeck commented on Dec 9, 2025

    @aduffeck
    Member

    This is actually caused by the ListStorageSpaces call which calls trashbin.IsEmpty() for each of the spaces. The log message is indeed misleading, encountering an EOF error is the expected behavior for empty directories. I'll push a fix for that soon.

  7. moved this from Qualification to Done in OpenCloud Team Boardon Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions