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

新建文件时会出现500错误,panic recovered: division by zero #1699

Closed
4 tasks done
kilvn opened this issue Sep 17, 2022 · 0 comments
Closed
4 tasks done

新建文件时会出现500错误,panic recovered: division by zero #1699

kilvn opened this issue Sep 17, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@kilvn
Copy link

kilvn commented Sep 17, 2022

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure it's due to alist and not something else(such as Dependencies or Operational).
  • I'm sure I'm using the latest version

Alist Version / Alist 版本

v3.0.0-rc.0

Driver used / 使用的存储驱动

阿里云盘

Describe the bug / 问题描述

管理员账户登录后在前台网盘列表新建 test.md 文件,返回500,然后进服务器看了log,是个0值panic

Reproduction / 复现链接

无,需要查看日志

image

image

Logs / 日志

2022/09/17 09:49:55 [Recovery] 2022/09/17 - 09:49:55 panic recovered:
division by zero
/opt/hostedtoolcache/go/1.18.5/x64/src/math/big/natdiv.go:507 (0x52a1df)
/opt/hostedtoolcache/go/1.18.5/x64/src/math/big/int.go:239 (0x51bfcf)
/opt/hostedtoolcache/go/1.18.5/x64/src/math/big/int.go:270 (0x51c30b)
/home/runner/work/alist/alist/drivers/aliyundrive/driver.go:237 (0xdcea23)
/home/runner/work/alist/alist/internal/op/fs.go:309 (0x849e73)
/home/runner/work/alist/alist/internal/fs/put.go:54 (0xeaf8c3)
/home/runner/work/alist/alist/internal/fs/fs.go:84 (0xead9c7)
/home/runner/work/alist/alist/server/handles/fsmanage.go:235 (0xede68b)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0xea0413)
/home/runner/work/alist/alist/server/middlewares/auth.go:55 (0xea0274)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0xea06db)
/home/runner/work/alist/alist/server/middlewares/check.go:11 (0xea0680)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0xb4febf)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:101 (0xb4fea0)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0xb4f13f)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:240 (0xb4f11c)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0xb4e293)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:613 (0xb4df6c)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:569 (0xb4db5f)
/opt/hostedtoolcache/go/1.18.5/x64/src/net/http/server.go:2916 (0x6a1c57)
/opt/hostedtoolcache/go/1.18.5/x64/src/net/http/server.go:1966 (0x69d33f)
/opt/hostedtoolcache/go/1.18.5/x64/src/runtime/asm_arm64.s:1263 (0x469ac3)

[GIN] 2022/09/17 - 09:49:55 | 500 |  339.856538ms | ipv6 | PUT      "/api/fs/put"
@kilvn kilvn added the bug Something isn't working label Sep 17, 2022
@xhofe xhofe closed this as completed in 0956410 Sep 17, 2022
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