这是indexloc提供的服务,不要输入任何密码
Skip to content

[Bug] Trash trash expiration time not working #2933

@RichardHeilmann

Description

@RichardHeilmann

Affected versions

  • Seafile Server 12.0.14 CE docker
  • Seafile Server 12.0.14 Pro docker

Problem

After changing the Default trash expiration time in seafile.conf, the library trash does not get emptied after the specified number of days.

Steps to reproduce

  1. Set expire_days = 1 in [library_trash] section of seafile.conf file
  2. Create a file test.txt in a library of your choice and delete it afterwards
  3. Check the trash of that library, the file test.txt should be there with a deletion timestamp
  4. Wait the number of days specified in the expire_days variable, here one day (24h).
  5. Check the library trash again, the file is still there
  6. Manually run the GC script /opt/seafile/seafile-server-latest/seaf-gc.sh in the seafile docker container, no blocks are cleaned up

seafile.conf

[fileserver]
port = 8082
use_go_fileserver = true
# The unit is in M. Default to 2G.
fs_cache_limit = 1024

[database]
type = mysql
host = db
port = 3306
user = seafile
password = asecurepassword
db_name = seafile_db
connection_charset = utf8

[notification]
enabled = true
# the ip of notification server. (default is `notification-server` in Docker)
host = notification-server
# the port of notification server
port = 8083

[quota]
# default user quota in GB, integer only
default = 1

[history]
keep_days = 1

[library_trash]
expire_days = 1

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions