Giter Site home page Giter Site logo

rclone-openwrt's Introduction

Rclone-OpenWrt

  • rclone
  • rclone-ng
  • rclone-webui-react
  • luci-app-rclone

Screenshot

luci-app-rclone

luci-app-rclone screenshot

RcloneNg

RcloneNg screenshot

RcloneNg screenshot

RcloneNg screenshot

rclone-web-ui-react

rclone-web-ui-react screenshot

rclone-web-ui-react screenshot

FAQ

WebUI

Rclone address http://192.168.1.1/rclone-webui-react/ is wrong in rclone-web-ui-react, and it should be replaced as http://192.168.1.1:5572 shown at the top of luci-app-rclone

Mount

Mount the remote as file system on a mountpoint

  rclone mount remote:path /path/to/mountpoint [flags]

A fatal error failed to mount FUSE fs: fusermount: exec: "fusermount": executable file not found in $PATH will be raised, if fuse-utils package isn't installed

License

GNU General Public License v3.0

rclone-openwrt's People

Contributors

elonh avatar kiddin9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rclone-openwrt's Issues

编译Error

Fetching https://github.com?go-get=1
Parsing meta tags from https://github.com?go-get=1 (status code 200)
can't load package: package github.com/rclone/rclone/.go_work/build: unknown import path "github.com/rclone/rclone/.go_work/build": cannot find module providing package github.com/rclone/rclone/.go_work/build

Cleaning module download cache (golang/go#27455)
go: finding github.com/rclone/rclone/.go_work/build latest
go: finding github.com/rclone/rclone/.go_work latest
can't load package: package github.com/rclone/rclone/.go_work/build: unknown import path "github.com/rclone/rclone/.go_work/build": cannot find module providing package github.com/rclone/rclone/.go_work/build

make[3]: *** [Makefile:77: /home/lede/lede/build_dir/target-x86_64_musl/rclone-1.50.2/.built] Error 1
make[3]: Leaving directory '/home/lede/openwrt-extra/Rclone-OpenWrt/rclone'
time: package/my-extra/Rclone-OpenWrt/rclone/compile#45.26#8.92#639.78
make[2]: *** [package/Makefile:109: package/my-extra/Rclone-OpenWrt/rclone/compile] Error 2
make[2]: Leaving directory '/home/lede/lede'
make[1]: *** [package/Makefile:103: /home/lede/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/lede/lede'
make: *** [/home/lede/lede/include/toplevel.mk:218: world] Error 2

RCD not working properly

After installing and configuring rclone packages I see in the log that it's listening HTTPS at port 5572.

When I test RCD it seems to work:

curl -X POST 'http://admin:[email protected]:5572/rc/noop?potato=1&sausage=2' { "potato": "1", "sausage": "2" }
Nevertheless when I use either RcloneNG or react it seems it's not working because I am serving my web through HTTPS and rcd opens a HTTP, therefore web browser console complains about mixed content.

Any ideas to serve RCD through HTTPS?

I'm not sure if uhttpd can be used as reverse proxy...

Thanks!!!

Luci interface error

/usr/lib/lua/luci/dispatcher.lua:469: Failed to execute cbi dispatcher target for entry '/admin/nas/rclone'.
The called action terminated with an exception:
/usr/lib/lua/luci/model/cbi/rclone.lua:30: attempt to concatenate local 'trip' (a nil value)
stack traceback:
	[C]: in function 'assert'
	/usr/lib/lua/luci/dispatcher.lua:469: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:121: in function </usr/lib/lua/luci/dispatcher.lua:120>

When I enable rclone, he will get an error

luci-app-rclone.postinst: /etc/init.d/rclone: not found

prompted while installing/removing luci package

//usr/lib/opkg/info/luci-app-rclone.postinst: line 273: /etc/init.d/rclone: not found
//usr/lib/opkg/info/luci-app-rclone.postinst: line 275: /etc/init.d/rclone: not found

无法在官方openwrt luci19.07后台启动.

官方openwrt master分支 luci19.07,无法在后台开启和关闭,只能通过命令rclone config --config /etc/rclone/rclone.conf开启

service rclone start
service rclone stop
service rclone restart
这些命令都无效. 都提示 -ash: /etc/init.d/rclone: not found,这个文件确定存在的,文件不存在的话会提示service "rclone" not found

[gcc failed] non-dynamic relocations refer to dynamic symbol __libc_start_main

Hello,

I got the errors below when building the Rclone by myself for Openwrt on MIPS(MT7621)

/usr/lib/go-1.13/pkg/tool/linux_mipsle/link: running gcc failed: exit status 1
/usr/bin/ld: non-dynamic relocations refer to dynamic symbol __libc_start_main
/usr/bin/ld: failed to set dynamic section sizes: Bad value

After searching around google, I found the similar case you faced before and posted on Openwrt forum here last month.

May I know your solution on how to tackle this error ?
Thanks in advance!

XML Parsing Error: mismatched tag. Expected: </div>

Hi;

OpenWrt SNAPSHOT, r13710-7cb721c

Getting Luci error:

XML Parsing Error: mismatched tag. Expected: </div>.
Location: https://192.168.10.1/cgi-bin/luci/admin/nas/rclone
Line Number 136, Column 186:
				Recommand: run <span style="background: lightgray;border-radius: 4px;padding-left: 4px;padding-right: 4px;">rclone config --config rclone.conf</span> to setup configuration on pc,</br>than updaload configuration to here.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^

due to html format error in "/usr/lib/lua/luci/model/cbi/rclone.lua", line 119

temp fix: comment offending code @line 119

--o.description = translate("Recommand: run ") ..
--    "<span style=\"background: lightgray;border-radius: 4px;padding-left: 4px;padding-right: 4px;\">rclone config --config rclone.conf</span>" ..
--    translate(" to setup configuration on pc,") .. "</br>" .. translate("than updaload configuration to here.")

Not sure how U want to fix formatting

Regards;
Bill

Unable to install

I clone the Git and try to compile using make and i receive error:

Makefile:34: /feeds/packages/lang/golang/golang-package.mk: No such file or directory
make: *** No rule to make target '/feeds/packages/lang/golang/golang-package.mk'. Stop.

Im sure i have made a n00b mistake but any help is appreciated.
thanks

Insufficient permissions to read UCI configuration

hello, I got the prompt below when I am installing luci-app-rclone

//usr/lib/opkg/info/luci-app-rclone.postinst: line 273: /etc/init.d/rclone: not found
//usr/lib/opkg/info/luci-app-rclone.postinst: line 275: /etc/init.d/rclone: not found

On the webpage it gives out the following error

Insufficient permissions to read UCI configuration.

According to https://forum.openwrt.org/t/insufficient-permissions-to-read-uci-configuration/61694/2, the app need to be fixed to match the current LuCI ACL recuirements.

Any way to fix this error?

Thanks

编译安装后运行起来后无法使用。

lean大神的Openwrt固件,编译后,发现有点问题,主要表现为:

1、/etc/rclone文件夹中没有正确生成对应的配置文件rclone.conf,目录为空;
2、进入Luci后,显示绿色正在运行,但是点击Web管理界面后,输入Luci中的账号密码,提示:Error connecting. Please check username password and verify if rclone is working at the specified IP.
3、建议调整配置文件存储路径为:/var/etc/Rclone/rclone.conf

init.d script problem

I am struggling with a strange issue relating to setting up an init.d script on OpenWrt to launch an rclone mount, as follows:

root@OpenWrt:/etc/init.d# cat /etc/init.d/mount-onedrive
#!/bin/sh /etc/rc.common
# Copyright (C) 2007 OpenWrt.org
exec &> /tmp/mount-onedrive.log
set -x -v
env

START=97
STOP=5

start() {
        rclone --config /etc/rclone/rclone.conf mkdir /tmp/OneDrive
        rclone --config /etc/rclone/rclone.conf mount "OneDrive:/Scanned Documents/" /tmp/OneDrive/ --vfs-cache-mode full --umask 000 --allow-other --daemon
}

stop() {
        fusermount -zu /tmp/OneDrive
}

Namely, when I run '/etc/init.d/mount-onedrive start' manually, it works fine (as in rclone process shows up with 'ps' and rclone mount is present). But when it is run from LuCi or upon router reboot it fails (as in the rclone process does not show up with 'ps' and the rclone mount is not present), with this output log:

root@OpenWrt:/etc/init.d# cat /tmp/mount-onedrive.log
env
+ env
SHLVL=1
PWD=/

START=97
+ START=97
STOP=5
+ STOP=5

start() {
        rclone --config /etc/rclone/rclone.conf mkdir /tmp/OneDrive
        rclone --config /etc/rclone/rclone.conf mount "OneDrive:/Scanned Documents/" /tmp/OneDrive/ --vfs-cache-mode full --umask 000 --allow-other --daemon
}

stop() {
        fusermount -zu /tmp/OneDrive
}

[ -n "$USE_PROCD" ] && {
        extra_command "running" "Check if service is running"
        extra_command "status" "Service status"
        extra_command "trace" "Start with syscall trace"

        . $IPKG_INSTROOT/lib/functions/procd.sh
        basescript=$(readlink "$initscript")
        rc_procd() {
                local method="set"
                [ -n "$2" ] && method="add"
                procd_open_service "$(basename ${basescript:-$initscript})" "$initscript"
                "$@"
                procd_close_service "$method"
        }

        start() {
                rc_procd start_service "$@"
                if eval "type service_started" 2>/dev/null >/dev/null; then
                        service_started
                fi
        }

        trace() {
                TRACE_SYSCALLS=1
                start "$@"
        }

        stop() {
                procd_lock
                stop_service "$@"
                procd_kill "$(basename ${basescript:-$initscript})" "$1"
                if eval "type service_stopped" 2>/dev/null >/dev/null; then
                        service_stopped
                fi
        }

        reload() {
                if eval "type reload_service" 2>/dev/null >/dev/null; then
                        procd_lock
                        reload_service "$@"
                else
                        start
                fi
        }

        running() {
                service_running "$@"
        }

        status() {
                if eval "type status_service" 2>/dev/null >/dev/null; then
                        status_service "$@"
                else
                        _procd_status "$(basename ${basescript:-$initscript})" "$1"
                fi
        }
}
+ '[' -n  ]

ALL_COMMANDS="${ALL_COMMANDS} ${EXTRA_COMMANDS}"
+ ALL_COMMANDS='boot shutdown depends start stop restart reload enable disable enabled '
ALL_HELP="${ALL_HELP}${EXTRA_HELP}"
+ ALL_HELP='\tstart           Start the service\n\tstop            Stop the service\n\trestart         Restart the service\n\treload          Reload configuration files (or restart if service does not implement reload)\n\tenable          Enable service autostart\n\tdisable         Disable service autostart\n\tenabled         Check if service is started on boot\n'
list_contains ALL_COMMANDS "$action" || action=help
+ list_contains ALL_COMMANDS start
+ local 'var=ALL_COMMANDS'
+ local 'str=start'
+ local val
+ eval 'val=" ${ALL_COMMANDS} "'
+ val=' boot shutdown depends start stop restart reload enable disable enabled  '
+ '[' ' boot shutdown depends' '!=' ' boot shutdown depends start stop restart reload enable disable enabled  ' ]
$action "$@"
+ start
+ rclone --config /etc/rclone/rclone.conf mkdir /tmp/OneDrive
+ rclone --config /etc/rclone/rclone.conf mount 'OneDrive:/Scanned Documents/' /tmp/OneDrive/ --vfs-cache-mode full --umask 000 --allow-other --daemon

在openwrt官方master分支中编译失败

2020-04-30T21:33:33.2154686Z go: downloading github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e
2020-04-30T21:33:33.3422520Z go: downloading google.golang.org/genproto v0.0.0-20200225123651-fc8f55426688
2020-04-30T21:33:35.0606328Z 
2020-04-30T21:33:35.0607177Z Building targets
2020-04-30T21:33:36.0316520Z github.com/rclone/rclone/backend/drive
2020-04-30T21:33:36.1265744Z # github.com/rclone/rclone/backend/drive
2020-04-30T21:33:36.1266221Z ../../backend/drive/drive.go:1804:3: undefined: entry
2020-04-30T21:33:36.1266463Z ../../backend/drive/drive.go:1804:10: undefined: err
2020-04-30T21:33:36.1266681Z ../../backend/drive/drive.go:1805:6: undefined: err
2020-04-30T21:33:36.1266878Z ../../backend/drive/drive.go:1808:10: undefined: entry
2020-04-30T21:33:36.1267094Z ../../backend/drive/drive.go:1808:17: undefined: err
2020-04-30T21:33:36.8856060Z 
2020-04-30T21:33:36.8857296Z Cleaning module download cache (golang/go#27455)
2020-04-30T21:33:37.3673358Z 
2020-04-30T21:33:37.3680640Z make[3]: *** [/home/runner/work/Actions-OpenWrt-Nginx/Actions-OpenWrt-Nginx/openwrt/build_dir/target-x86_64_musl/rclone-1.51.0/.built] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.