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

FebBox 预览文件出现500错误 #7889

Open
4 tasks done
liulyxandy-codemao opened this issue Jan 27, 2025 · 3 comments
Open
4 tasks done

FebBox 预览文件出现500错误 #7889

liulyxandy-codemao opened this issue Jan 27, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@liulyxandy-codemao
Copy link

liulyxandy-codemao commented Jan 27, 2025

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.41.0

Driver used / 使用的存储驱动

FebBox

Describe the bug / 问题描述

无法正常预览或下载文件,报错500

Image

Reproduction / 复现链接

https://pan.liulyxandy.cn/FebBox/%E6%98%A5%E8%B5%9B%E5%85%8B.webp

Config / 配置

Image

{
  "force": false,
  "site_url": "",
  "cdn": "",
  "jwt_secret": "eOahDVghTrQtdeb4",
  "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,
      "task_persistant": false
    },
    "transfer": {
      "workers": 5,
      "max_retry": 2,
      "task_persistant": false
    },
    "upload": {
      "workers": 5,
      "max_retry": 0,
      "task_persistant": false
    },
    "copy": {
      "workers": 5,
      "max_retry": 2,
      "task_persistant": false
    }
  },
  "cors": {
    "allow_origins": [
      "*"
    ],
    "allow_methods": [
      "*"
    ],
    "allow_headers": [
      "*"
    ]
  },
  "s3": {
    "enable": false,
    "port": 5246,
    "ssl": false
  },
  "ftp": {
    "enable": false,
    "listen": ":5221",
    "find_pasv_port_attempts": 50,
    "active_transfer_port_non_20": false,
    "idle_timeout": 900,
    "connection_timeout": 30,
    "disable_active_mode": false,
    "default_transfer_binary": false,
    "enable_active_conn_ip_check": true,
    "enable_pasv_conn_ip_check": true
  },
  "sftp": {
    "enable": false,
    "listen": ":5222"
  }
}

Logs / 日志

2025/01/27 16:56:45 [Recovery] 2025/01/27 - 16:56:45 panic recovered:
runtime error: index out of range [0] with length 0

runtime/debug.Stack()
        /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/runtime/debug/stack.go:24 +0x5e
github.com/alist-org/alist/v3/pkg/singleflight.newPanicError({0x2444320, 0xc000a6b590})
        /home/runner/work/alist/alist/pkg/singleflight/singleflight.go:35 +0x25
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2.1()
        /home/runner/work/alist/alist/pkg/singleflight/singleflight.go:188 +0x34
panic({0x2444320?, 0xc000a6b590?})
        /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/runtime/panic.go:770 +0x132
github.com/alist-org/alist/v3/drivers/febbox.(*FebBox).getDownloadLink(0xc0000dfe00, {0xc000d0de80, 0x8}, {0xc000b54300, 0xd})
        /home/runner/work/alist/alist/drivers/febbox/util.go:139 +0x285
github.com/alist-org/alist/v3/drivers/febbox.(*FebBox).Link(0xc0000dfe00, {0xc000692e78?, 0x41acf8?}, {0x3d8dc68?, 0xc0004bd7a0?}, {{0xc000b54300, 0xd}, 0xc0005984b0, {0x0, 0x0}, ...})
        /home/runner/work/alist/alist/drivers/febbox/driver.go:74 +0x79
github.com/alist-org/alist/v3/internal/op.Link.func1()
        /home/runner/work/alist/alist/internal/op/fs.go:258 +0x5e
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2(0xc000bb7360, 0x71af02b0da68, 0x50?)
        /home/runner/work/alist/alist/pkg/singleflight/singleflight.go:193 +0x66
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall(0xc0008fc600?, 0xc000925110?, {0xc000925110?, 0xc0007e2bc0?}, 0x3dafac0?)
        /home/runner/work/alist/alist/pkg/singleflight/singleflight.go:195 +0xa5
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do(0x3da93a0, {0xc000925110, 0x6e}, 0xc000693020)
        /home/runner/work/alist/alist/pkg/singleflight/singleflight.go:108 +0x16f
github.com/alist-org/alist/v3/internal/op.Link({0x3d835d0, 0xc0002eb600}, {0x3d8ea40, 0xc0000dfe00}, {0xc000924f57, 0x67}, {{0xc000b54300, 0xd}, 0xc0005984b0, {0x0, ...}, ...})
        /home/runner/work/alist/alist/internal/op/fs.go:276 +0x419
github.com/alist-org/alist/v3/internal/fs.link({0x3d835d0, 0xc0002eb600}, {0xc000924f50?, 0x244b560?}, {{0xc000b54300, 0xd}, 0xc0005984b0, {0x0, 0x0}, 0xc0006fcea0})
        /home/runner/work/alist/alist/internal/fs/link.go:19 +0x105
github.com/alist-org/alist/v3/internal/fs.Link({0x3d835d0?, 0xc0002eb600?}, {0xc000924f50, 0x6e}, {{0xc000b54300, 0xd}, 0xc0005984b0, {0x0, 0x0}, 0xc0006fcea0})
        /home/runner/work/alist/alist/internal/fs/fs.go:48 +0x65
github.com/alist-org/alist/v3/server/handles.FsGet(0xc0002eb600)
        /home/runner/work/alist/alist/server/handles/fsread.go:305 +0x769
github.com/gin-gonic/gin.(*Context).Next(...)
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/alist-org/alist/v3/server/middlewares.Auth(0xc0002eb600)
        /home/runner/work/alist/alist/server/middlewares/auth.go:73 +0x4d6
github.com/gin-gonic/gin.(*Context).Next(...)
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded(0xc0002eb600)
        /home/runner/work/alist/alist/server/middlewares/check.go:14 +0xbb
github.com/gin-gonic/gin.(*Context).Next(...)
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc0002eb600)
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7a
github.com/gin-gonic/gin.(*Context).Next(...)
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc0002eb600)
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xe5
github.com/gin-gonic/gin.(*Context).Next(...)
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc000b84d00, 0xc0002eb600)
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc000b84d00, {0x3d7cfe0, 0xc0002d0700}, 0xc0006fcea0)
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2
net/http.serverHandler.ServeHTTP({0x3d741d8?}, {0x3d7cfe0?, 0xc0002d0700?}, 0x6?)
        /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/net/http/server.go:3137 +0x8e
net/http.(*conn).serve(0xc000579320, {0x3d83090, 0xc000ba2210})
        /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/net/http/server.go:2039 +0x5e8
created by net/http.(*Server).Serve in goroutine 142
        /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/net/http/server.go:3285 +0x4b4

/home/runner/work/alist/alist/pkg/singleflight/singleflight.go:165 (0x992332)
/home/runner/work/alist/alist/pkg/singleflight/singleflight.go:200 (0x99d9e1)
/home/runner/work/alist/alist/pkg/singleflight/singleflight.go:108 (0x99df2e)
/home/runner/work/alist/alist/internal/op/fs.go:276 (0x9875d8)
/home/runner/work/alist/alist/internal/fs/link.go:19 (0xe32284)
/home/runner/work/alist/alist/internal/fs/fs.go:48 (0xe31264)
/home/runner/work/alist/alist/server/handles/fsread.go:305 (0x1ca2408)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0x1c646d5)
/home/runner/work/alist/alist/server/middlewares/auth.go:73 (0x1c644bd)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0x1c6503a)
/home/runner/work/alist/alist/server/middlewares/check.go:14 (0x1c65028)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xe1eff9)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 (0xe1efe7)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xe1e124)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 (0xe1e10b)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xe1d511)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 (0xe1cf80)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 (0xe1cab1)
/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/net/http/server.go:3137 (0x7a15ad)
/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/net/http/server.go:2039 (0x79c887)
/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/runtime/asm_amd64.s:1695 (0x479f60)

[GIN] 2025/01/27 - 16:56:45 | 500 |  7.537331068s |   122.96.68.145 | POST     "/api/fs/get"
@liulyxandy-codemao liulyxandy-codemao added the bug Something isn't working label Jan 27, 2025
Copy link

See

  1. 50% 希望支持 FebBox #7293

@Jason-Fly
Copy link
Contributor

可以复现,原因是调用FebBoxAPI报错:you are not active partner!

Image

@Jason-Fly
Copy link
Contributor

https://www.febbox.com/open/traffic 中要设置一下这个

Image

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

2 participants