Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

魔盘上传文件失败,错误码411 #6158

Closed
4 tasks done
stilltooyoung opened this issue Mar 7, 2024 · 1 comment
Closed
4 tasks done

魔盘上传文件失败,错误码411 #6158

stilltooyoung opened this issue Mar 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@stilltooyoung
Copy link

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.32.0

Driver used / 使用的存储驱动

魔盘

Describe the bug / 问题描述

上传文件时报错,“All attempts fail: #1: upload err,code=411 #2: upload err,code=411 #3: upload err,code=411”

Reproduction / 复现链接

/api/fs/put

Config / 配置

config.json:

{
  "force": false,
  "site_url": "",
  "cdn": "",
  "jwt_secret": "******",
  "token_expires_in": 48,
  "database": {
    "type": "sqlite3",
    "host": "",
    "port": 0,
    "user": "",
    "password": "",
    "name": "",
    "db_file": "data/data.db",
    "table_prefix": "x_",
    "ssl_mode": "",
    "dsn": ""
  },
  "meilisearch": {
    "host": "http://localhost:7700",
    "api_key": "",
    "index_prefix": ""
  },
  "scheme": {
    "address": "0.0.0.0",
    "http_port": 5244,
    "https_port": -1,
    "force_https": false,
    "cert_file": "",
    "key_file": "",
    "unix_file": "",
    "unix_file_perm": ""
  },
  "temp_dir": "data/temp",
  "bleve_dir": "data/bleve",
  "dist_dir": "",
  "log": {
    "enable": true,
    "name": "data/log/log.log",
    "max_size": 50,
    "max_backups": 30,
    "max_age": 28,
    "compress": false
  },
  "delayed_start": 0,
  "max_connections": 0,
  "tls_insecure_skip_verify": true,
  "tasks": {
    "download": {
      "workers": 5,
      "max_retry": 1
    },
    "transfer": {
      "workers": 5,
      "max_retry": 2
    },
    "upload": {
      "workers": 5,
      "max_retry": 0
    },
    "copy": {
      "workers": 5,
      "max_retry": 2
    }
  },
  "cors": {
    "allow_origins": [
      "*"
    ],
    "allow_methods": [
      "*"
    ],
    "allow_headers": [
      "*"
    ]
  }
}

存储配置:
image

Logs / 日志

�[31mERRO�[0m[2024-03-07 08:31:21] failed to close file streamer, close /data/data/com.termux/files/home/shells/data/temp/file-******: file already closed 
�[31mERRO�[0m[2024-03-07 08:31:21] failed put /mopan/test/: All attempts fail:
#1: upload err,code=411
#2: upload err,code=411
#3: upload err,code=411
github.com/alist-org/alist/v3/internal/op.Put
	/home/builder/.termux-build/alist/src/internal/op/fs.go:580
github.com/alist-org/alist/v3/internal/fs.putDirectly
	/home/builder/.termux-build/alist/src/internal/fs/put.go:70
github.com/alist-org/alist/v3/internal/fs.PutDirectly
	/home/builder/.termux-build/alist/src/internal/fs/fs.go:97
github.com/alist-org/alist/v3/server/handles.FsStream
	/home/builder/.termux-build/alist/src/server/handles/fsup.go:65
github.com/gin-gonic/gin.(*Context).Next
	/home/builder/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/alist-org/alist/v3/server/middlewares.FsUp
	/home/builder/.termux-build/alist/src/server/middlewares/fsup.go:43
github.com/gin-gonic/gin.(*Context).Next
	/home/builder/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/alist-org/alist/v3/server/middlewares.Auth
	/home/builder/.termux-build/alist/src/server/middlewares/auth.go:73
github.com/gin-gonic/gin.(*Context).Next
	/home/builder/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/home/builder/.termux-build/alist/src/server/middlewares/check.go:14
github.com/gin-gonic/gin.(*Context).Next
	/home/builder/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/home/builder/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
	/home/builder/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/home/builder/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/home/builder/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/home/builder/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/home/builder/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576
net/http.serverHandler.ServeHTTP
	/home/builder/.termux-build/_cache/go1.21.6/src/net/http/server.go:2938
net/http.(*conn).serve
	/home/builder/.termux-build/_cache/go1.21.6/src/net/http/server.go:2009
runtime.goexit
	/home/builder/.termux-build/_cache/go1.21.6/src/runtime/asm_arm64.s:1197 
@stilltooyoung stilltooyoung added the bug Something isn't working label Mar 7, 2024
Copy link

welcome bot commented Mar 7, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

foxxorcat added a commit to foxxorcat/alist that referenced this issue Mar 8, 2024
@xhofe xhofe closed this as completed in 45e009a Mar 9, 2024
EtherealAO pushed a commit to EtherealAO/alist that referenced this issue Apr 12, 2024
EtherealAO pushed a commit to EtherealAO/alist that referenced this issue Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant