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

挂载FTP 500异常 panic recovered: runtime error: invalid memory address or nil pointer dereference #1722

Closed
4 tasks done
kilvn opened this issue Sep 19, 2022 · 4 comments
Closed
4 tasks done
Labels
bug Something isn't working

Comments

@kilvn
Copy link

kilvn commented Sep 19, 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.1

Driver used / 使用的存储驱动

ftp

Describe the bug / 问题描述

挂载ftp后500

Reproduction / 复现链接

Logs / 日志

2022/09/19 14:09:51 [Recovery] 2022/09/19 - 14:09:51 panic recovered:
runtime error: invalid memory address or nil pointer dereference

runtime/debug.Stack()
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/debug/stack.go:24 +0x68
github.com/alist-org/alist/v3/pkg/singleflight.newPanicError({0x1109560?, 0x21c2670})
        /home/runner/work/alist/alist/pkg/singleflight/singleflight.go:35 +0x2c
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2.1()
        /home/runner/work/alist/alist/pkg/singleflight/singleflight.go:188 +0x44
panic({0x1109560, 0x21c2670})
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/panic.go:838 +0x20c
github.com/jlaffaye/ftp.(*ServerConn).List(0x0, {0x2203f58, 0x1})
        /home/runner/go/pkg/mod/github.com/jlaffaye/[email protected]/ftp.go:653 +0x30
github.com/alist-org/alist/v3/drivers/ftp.(*FTP).List(0x4000532280, {0xffff967bc8c8?, 0x4000c58df8?}, {0x1a37758, 0x4000e896e0}, {{0x44e880?, 0x4000c58e38?}})
        /home/runner/work/alist/alist/drivers/ftp/driver.go:48 +0x60
github.com/alist-org/alist/v3/internal/op.List.func1()
        /home/runner/work/alist/alist/internal/op/fs.go:60 +0x5c
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2(0x4000c58e7e?, 0x4000e89740, 0x60)
        /home/runner/work/alist/alist/pkg/singleflight/singleflight.go:193 +0x68
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall(0x40009af350?, 0x40002c0d50?, {0x40002c0d50?, 0x4000c58f28?}, 0x847dd0?)
        /home/runner/work/alist/alist/pkg/singleflight/singleflight.go:195 +0x94
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do(0x224e550, {0x40002c0d50, 0x4}, 0x4000c59010)
        /home/runner/work/alist/alist/pkg/singleflight/singleflight.go:108 +0x1e4
github.com/alist-org/alist/v3/internal/op.List({0x1a35ab0, 0x400022b500}, {0x1a3b210?, 0x4000532280}, {0x12683c0, 0x1}, {{0x40002c0c28?, 0x1?}}, {0x4000c59367, 0x1, ...})
        /home/runner/work/alist/alist/internal/op/fs.go:59 +0x4bc
github.com/alist-org/alist/v3/internal/fs.list({0x1a35ab0, 0x400022b500}, {0x40002c0c28, 0x4}, {0x4000c59367, 0x1, 0x1})
        /home/runner/work/alist/alist/internal/fs/list.go:27 +0x1ac
github.com/alist-org/alist/v3/internal/fs.List({0x1a35ab0?, 0x400022b500?}, {0x40002c0c28, 0x4}, {0x4000c59367?, 0x4000852780?, 0x0?})
        /home/runner/work/alist/alist/internal/fs/fs.go:17 +0x34
github.com/alist-org/alist/v3/server/handles.FsList(0x400022b500?)
        /home/runner/work/alist/alist/server/handles/fsread.go:76 +0x30c
github.com/gin-gonic/gin.(*Context).Next(...)
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/alist-org/alist/v3/server/middlewares.Auth(0x400022b500)
        /home/runner/work/alist/alist/server/middlewares/auth.go:55 +0x374
github.com/gin-gonic/gin.(*Context).Next(...)
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded(0x400022b500)
        /home/runner/work/alist/alist/server/middlewares/check.go:11 +0x8c
github.com/gin-gonic/gin.(*Context).Next(...)
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0x400022b500)
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:101 +0x80
github.com/gin-gonic/gin.(*Context).Next(...)
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1(0x400022b500)
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:240 +0xb0
github.com/gin-gonic/gin.(*Context).Next(...)
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0x4000297380, 0x400022b500)
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:613 +0x574
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0x4000297380, {0x1a34000?, 0x400094c1c0}, 0x400022be00)
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:569 +0x200
net/http.serverHandler.ServeHTTP({0x1a2fc10?}, {0x1a34000, 0x400094c1c0}, 0x400022be00)
        /opt/hostedtoolcache/go/1.18.5/x64/src/net/http/server.go:2916 +0x408
net/http.(*conn).serve(0x400048edc0, {0x1a35768, 0x40006b0180})
        /opt/hostedtoolcache/go/1.18.5/x64/src/net/http/server.go:1966 +0x550
created by net/http.(*Server).Serve
        /opt/hostedtoolcache/go/1.18.5/x64/src/net/http/server.go:3071 +0x448

/home/runner/work/alist/alist/pkg/singleflight/singleflight.go:165 (0x84dbbb)
/home/runner/work/alist/alist/pkg/singleflight/singleflight.go:139 (0x84eaa3)
/home/runner/work/alist/alist/pkg/singleflight/singleflight.go:108 (0x84e883)
/home/runner/work/alist/alist/internal/op/fs.go:59 (0x847e6b)
/home/runner/work/alist/alist/internal/fs/list.go:27 (0xeb89eb)
/home/runner/work/alist/alist/internal/fs/fs.go:17 (0xeb77e3)
/home/runner/work/alist/alist/server/handles/fsread.go:76 (0xee974b)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0xeaaad3)
/home/runner/work/alist/alist/server/middlewares/auth.go:55 (0xeaa934)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0xeaad9b)
/home/runner/work/alist/alist/server/middlewares/check.go:11 (0xeaad40)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0xb509bf)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:101 (0xb509a0)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0xb4fc3f)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:240 (0xb4fc1c)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0xb4ed93)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:613 (0xb4ea6c)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:569 (0xb4e65f)
/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)
@kilvn kilvn added the bug Something isn't working label Sep 19, 2022
@kilvn
Copy link
Author

kilvn commented Sep 19, 2022

通过ftp命令登录ftp没有问题,ls查看根目录为空

@chqcxd
Copy link

chqcxd commented Sep 20, 2022

Request failed with status code 500

@xhofe xhofe closed this as completed in 656f5f1 Sep 20, 2022
@towerstreet
Copy link

我也是这样的情况,有解决办法了不?

@GoodReese
Copy link

这个问题没解决怎么就关了?

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

4 participants