找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 28455|回复: 168

[AC2100(RM2100)] 红米AC2100刷了OPENWRT后阿里云盘Webdav 不能运行,解决方法,已经能正常运行。

 火.. [复制链接]
发表于 2021-11-5 16:43 | 显示全部楼层 |阅读模式
本帖最后由 qihong6712 于 2021-11-11 21:25 编辑

红米AC2100刷了OPENWRT,其它一切正常,但是阿里云盘Webdav 不能运行的解决方法,发帖求助后有几个大佬指点,但还是问题依旧,这是看到项目链接点进去后,发有新版本,升级到0.55后已经运行正常了。
原来是阿里云盘Webdav 0.2版的,我以为版本有问题, 升级到0.52 ,还是不行!,升级到最新版本0.55后启动正常了!
但是最终通过客户端传输文件的时候,路由器的CPU占用会达到100%导致路由器卡死。我的是这样,不知道别人的红米AC2100如何. 我用猫盘群辉插件就一切正常!

升级命令:
opkg update
wget https://github.com/messense/aliyundrive-webdav/releases/download/v0.5.5/aliyundrive-webdav_0.5.5_mipsel_24kc.ipk
wget https://github.com/messense/aliyundrive-webdav/releases/download/v0.5.5/luci-app-aliyundrive-webdav_0.5.5_all.ipk
wget https://github.com/messense/aliyundrive-webdav/releases/download/v0.5.5/luci-i18n-aliyundrive-webdav-zh-cn_0.5.5-1_all.ipk
opkg install aliyundrive-webdav_0.5.5_mipsel_24kc.ipk
opkg install luci-app-aliyundrive-webdav_0.5.5_all.ipk
opkg install luci-i18n-aliyundrive-webdav-zh-cn_0.5.5-1_all.ipk

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2021-11-5 16:44 | 显示全部楼层
沙发!自己顶。。。。。。。。。。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-11-5 16:57 | 显示全部楼层
按路过,顶楼主一个!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-11-5 17:24 | 显示全部楼层
编辑一下路由里的这个文件 /etc/init.d/aliyundrive-webdav
文件里面删了这个参数 --workdir /var/run/$NAME
再重新运行一下试试

点评

_____ __ __________ .__.__ .___ / _ \ __ ___/ |_ ____\______ \__ __|__| | __| _/ / /_\ \| | \ __\/ _ \| | _/ | \ | | / _  详情 回复 发表于 2021-11-5 18:49
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-11-5 18:49 | 显示全部楼层
本帖最后由 qihong6712 于 2021-11-5 18:58 编辑
jjit 发表于 2021-11-5 17:24
编辑一下路由里的这个文件 /etc/init.d/aliyundrive-webdav
文件里面删了这个参数 --workdir /var/run/$NA ...
!/bin/sh /etc/rc.common                                                         

USE_PROCD=1                                                                       

START=99                                                                          
STOP=15                                                                           

NAME=aliyundrive-webdav                                                           

uci_get_by_type() {                                                               
        local ret=$(uci get $NAME.@$1[0].$2 2>/dev/null)                          
        echo ${ret:=$3}                                                           
}                                                                                 

start_service() {                                                                 
  local enable=$(uci_get_by_type server enable)                                   

case "$enable" in                                                               
    1|on|true|yes|enabled)                                                        
      local refresh_token=$(uci_get_by_type server refresh_token)                 
      local auth_user=$(uci_get_by_type server auth_user)                        
      local auth_password=$(uci_get_by_type server auth_password)                 
      local read_buf_size=$(uci_get_by_type server read_buffer_size 10485760)     
      local cache_size=$(uci_get_by_type server cache_size 1000)                  
      local cache_ttl=$(uci_get_by_type server cache_ttl 600)                     
      local host=$(uci_get_by_type server host 127.0.0.1)                        
      local port=$(uci_get_by_type server port 8080)                              
      local root=$(uci_get_by_type server root /)                                 
      local domain_id=$(uci_get_by_type server domain_id)                        

      local extra_options="-I"                                                   

      if [[ ! -z "$domain_id" ]]; then   

  extra_options="$extra_options --domain-id $domain_id"                     
      else                                                                        
        case "$(uci_get_by_type server no_trash 0)" in                           
          1|on|true|yes|enabled)                                                  
            extra_options="$extra_options --no-trash"                             
            ;;                                                                    
          *) ;;                                                                  
        esac                                                                     
      fi                                                                          

      procd_open_instance                                                         
      procd_set_param command /bin/sh -c "/usr/bin/$NAME $extra_options --host $ho
      procd_set_param pidfile /var/run/$NAME.pid                                 
      procd_set_param env REFRESH_TOKEN="$refresh_token"                          
      [[ ! -z "$auth_user" ]] && procd_append_param env WEBDAV_AUTH_USER="$auth_us
      [[ ! -z "$auth_password" ]] && procd_append_param env WEBDAV_AUTH_PASSWORD="

case $(uci_get_by_type server debug) in                                    
        1|on|true|yes|enabled)                                                   
          procd_append_param env RUST_LOG="aliyundrive_webdav=debug" ;;           
        *) ;;                                                                     
      esac                                                                        
      procd_close_instance ;;                                                     
    *)                                                                           
      stop_service ;;                                                            
  esac                                                                           
}                                                                                 

service_triggers() {                                                              
        procd_add_reload_trigger "aliyundrive-webdav"


      


以上是你说的配置文件,不见有你那行啊!?

点评

你的没有显示全: https://github.com/messense/aliyundrive-webdav/blob/main/openwrt/aliyundrive-webdav/files/aliyundrive-webdav.init 第 44 行 procd_open_instance procd_set_param command /bin/s  详情 回复 发表于 2021-11-6 10:40
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-11-6 10:40 | 显示全部楼层
qihong6712 发表于 2021-11-5 18:49
!/bin/sh /etc/rc.common                                                         

USE_PROCD=1     ...

你的没有显示全:
https://github.com/messense/aliy ... undrive-webdav.init
第 44 行
procd_open_instance
      procd_set_param command /bin/sh -c "/usr/bin/$NAME $extra_options --host $host --port $port --root $root -S $read_buf_size --cache-size $cache_size --cache-ttl $cache_ttl --workdir /var/run/$NAME >>/var/log/$NAME.log 2>&1"
      procd_set_param pidfile /var/run/$NAME.pid
      procd_set_param env REFRESH_TOKEN="$refresh_token"

点评

找到了,谢谢大佬!我删除了还是显示未运行,但是日志没有了,不显示日志了  详情 回复 发表于 2021-11-7 03:03
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-11-7 03:03 | 显示全部楼层
jjit 发表于 2021-11-6 10:40
你的没有显示全:
https://github.com/messense/aliyundrive-webdav/blob/main/openwrt/aliyundrive-web ...

找到了,谢谢大佬!我删除了还是显示未运行,但是日志没有了,不显示日志了

点评

和我的一样的 最后放弃了  详情 回复 发表于 2021-11-7 20:53
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-11-7 18:54 | 显示全部楼层
顶上去,别沉
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-11-7 20:53 | 显示全部楼层
qihong6712 发表于 2021-11-7 03:03
找到了,谢谢大佬!我删除了还是显示未运行,但是日志没有了,不显示日志了

和我的一样的
最后放弃了

点评

解决了!来看看吧  详情 回复 发表于 2021-11-11 20:36
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-11-11 20:36 | 显示全部楼层
流媒体 发表于 2021-11-7 20:53
和我的一样的
最后放弃了

解决了!来看看吧

点评

怎么解决的?  详情 回复 发表于 2022-9-14 17:21
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-11-11 21:47 | 显示全部楼层
看看啊 谢谢楼主了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-11-11 21:58 | 显示全部楼层
好帖,顶起来
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-11-12 14:16 | 显示全部楼层
看看啊 谢谢楼主了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-11-12 20:45 | 显示全部楼层

root@192.168.2.1's password:


我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-11-13 10:31 | 显示全部楼层
感谢分享!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 13:21

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表