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

挂载webdav提示 failed get objs: failed to list objs: ReadDir / #1732

Closed
4 tasks done
kilvn opened this issue Sep 20, 2022 · 6 comments
Closed
4 tasks done

挂载webdav提示 failed get objs: failed to list objs: ReadDir / #1732

kilvn opened this issue Sep 20, 2022 · 6 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@kilvn
Copy link

kilvn commented Sep 20, 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 / 使用的存储驱动

webdav-http

Describe the bug / 问题描述

1、斐讯K3插入USB,挂载到 /data/xxx,用Nginx起webdav http服务;
2、用 Mountain Duck 挂载,查看列表,上传文件没有问题;
3、在alist存储挂载webdav,前台提示错误,无法加载列表。

挂ftp 500,挂 webdav 500,我已经累了 @_@

Reproduction / 复现链接

image

Logs / 日志

ERRO[2022-09-20 20:53:03] failed list /nas1: ReadDir /: Propfind "xxx.github.beta.tailscale.net:21000/": unsupported protocol scheme "xxx.github.beta.tailscale.net"
failed to list objs
github.com/alist-org/alist/v3/internal/op.List.func1
        /home/runner/work/alist/alist/internal/op/fs.go:62
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2
        /home/runner/work/alist/alist/pkg/singleflight/singleflight.go:193
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall
        /home/runner/work/alist/alist/pkg/singleflight/singleflight.go:195
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do
        /home/runner/work/alist/alist/pkg/singleflight/singleflight.go:108
github.com/alist-org/alist/v3/internal/op.List
        /home/runner/work/alist/alist/internal/op/fs.go:59
github.com/alist-org/alist/v3/internal/fs.list
        /home/runner/work/alist/alist/internal/fs/list.go:27
github.com/alist-org/alist/v3/internal/fs.List
        /home/runner/work/alist/alist/internal/fs/fs.go:17
github.com/alist-org/alist/v3/server/handles.FsList
        /home/runner/work/alist/alist/server/handles/fsread.go:76
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.0/context.go:173
github.com/alist-org/alist/v3/server/middlewares.Auth
        /home/runner/work/alist/alist/server/middlewares/auth.go:55
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.0/context.go:173
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
        /home/runner/work/alist/alist/server/middlewares/check.go:11
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.0/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.0/recovery.go:101
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.0/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.0/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.0/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.0/gin.go:613
github.com/gin-gonic/gin.(*Engine).ServeHTTP
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.0/gin.go:569
net/http.serverHandler.ServeHTTP
        /opt/hostedtoolcache/go/1.18.5/x64/src/net/http/server.go:2916
net/http.(*conn).serve
        /opt/hostedtoolcache/go/1.18.5/x64/src/net/http/server.go:1966
runtime.goexit
        /opt/hostedtoolcache/go/1.18.5/x64/src/runtime/asm_arm64.s:1263
failed get objs
@kilvn kilvn added the bug Something isn't working label Sep 20, 2022
@xhofe
Copy link
Collaborator

xhofe commented Sep 20, 2022

需要加协议头

@xhofe xhofe added the invalid This doesn't seem right label Sep 20, 2022
@github-actions
Copy link

Hello @kilvn, your issue is invalid and will be closed.
你好 @kilvn,你的issue无效,将被关闭。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2022
@kilvn
Copy link
Author

kilvn commented Sep 20, 2022

需要加协议头

有添加啊

server {                  
    listen 21000;     
    listen [::]:21000;
    server_name  _;                      
    charset utf-8;    
                                                 
    # Temporary folder                   
    #client_body_temp_path   /tmp/webdav;        
                                                 
    # MAX size of uploaded file, 0 mean unlimited
    client_max_body_size    0;                 
                                               
    # Allow autocreate folder here if necessary
    create_full_put_path    on;            
                                           
    dav_methods PUT DELETE MKCOL COPY MOVE;           
    dav_ext_methods PROPFIND OPTIONS;    
    dav_access user:rw group:rw all:r;                
    auth_basic "Authorized Users WebDAV";             
    auth_basic_user_file /etc/nginx/conf.d/.davpasswd;
                                      
    add_header Cache-Control no-store;
                                      
    location / {                             
        root /data/nas;                     
        autoindex on;                        
        if ($request_method = MKCOL) {       
            # 解决 MKCOL 需要以'/'结尾
            rewrite  ^(.*[^/])$  $1/  break;
        }                                    
    }                                        
}

@xhofe
Copy link
Collaborator

xhofe commented Sep 20, 2022

image

@kilvn
Copy link
Author

kilvn commented Sep 20, 2022

image

现在可以了,谢谢~

@luckyreny
Copy link

luckyreny commented Sep 26, 2022

我在NAS下用了其它的webdav工具把阿里云和115云做好了webdav,所以用alist统一管理添加webdav协议,因为在NAS的DOCKER上使用, 并不是独立网络 ,所以填 127.0.0.1:9080失败。。。看到这个后用http://127.0.0.1:9080还是失败。。。用内网IP地址才成功。http://192.168.1.66:9080这样才成功

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants