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

Create RClone WebGui package #67

Open
stefaang opened this issue Nov 17, 2020 · 17 comments · Fixed by #70
Open

Create RClone WebGui package #67

stefaang opened this issue Nov 17, 2020 · 17 comments · Fixed by #70

Comments

@stefaang
Copy link
Member

https://github.com/rclone/rclone-webui-react

This powerful tool now has a web GUI... it's still a bit rough but it's easy to setup, so it deserves a package.

@stefaang stefaang linked a pull request Nov 28, 2020 that will close this issue
@stefaang
Copy link
Member Author

stefaang commented Nov 28, 2020

https://bintray.com/beta/#/tfl/wdpksrc/Rclone
Let me know if it works as expected!

EDIT
Default login credentials: mycloud - mycloud
Edit the /shares/Volume_1/Nas_Prog/rclone/env to change them

@bahusoid
Copy link

has a web GUI

Is it supposed to be installed with package? Or needs to be installed manually? I hacked a little script to create OS3 package and it's installed successfully on my WDMyCloud Gen 2 - only no WEB GUI when I click Configure in NAS App details page.

I also tried to install it manually via ssh. It seems to be installed successfully:

root@WDMyCloud root # rclone rcd --rc-web-gui
2020/11/29 22:20:42 NOTICE: A new release for gui is present at https://github.com/rclone/rclone-webui-react/releases/download/v2.0.3/currentbuild.zip
2020/11/29 22:20:42 NOTICE: Downloading webgui binary. Please wait. [Size: 4750769, Path :  /home/root/.cache/rclone/webgui/v2.0.3.zip]
2020/11/29 22:20:55 NOTICE: Unzipping webgui binary
2020/11/29 22:20:58 NOTICE: Serving Web GUI
2020/11/29 22:20:58 NOTICE: Serving remote control on http://127.0.0.1:5572/
2020/11/29 22:20:58 ERROR : Failed to open Web GUI in browser: exec: "xdg-open": executable file not found in $PATH. Manually access it at: http://gui:[email protected]:5572/?login_token=Z3VpOkJ6djNkSzFORWZ0OERCbFN1c2pFZ2c%3D

But I wasn't able to access it from my PC... Didn't dig it any deeper but doesn't look like this WEB GUI is currently easily accessible for average users :)

P.S. Path for WEB GUI installation looks suspicious: /home/root/.cache/rclone/webgui Isn't it writing to internal partition with limited space?

@stefaang
Copy link
Member Author

stefaang commented Nov 30, 2020 via email

@bahusoid
Copy link

The start script uses the OS5 way to get the local ipv4 address

No it works for me too... The following command gives correct ip for me:

ADDRESS=$(sed -n '/ip/ {s/.*<ip>\(\S*\)<\/ip>/\1/p;q}' /etc/NAS_CFG/config.xml )

And you should really say somewhere login/password...

This part looks wrong for rclone (actually whole file is about nzbget):

rm -f /usr/bin/nzbget
# remove lib
# remove web
rm -rf /var/www/nzbget

@stefaang
Copy link
Member Author

Okay, that's a copy pasta gone wrong.
I'm not used to a lot of traffic here, I'll keep my merge requests open for a bit longer so they can be reviewed better.
I intended to mention the credentials in the official announcement.. but it should've been mentionned here ofc.

@stefaang
Copy link
Member Author

2020/11/29 22:20:58 NOTICE: Serving remote control on http://127.0.0.1:5572/

That should be smt like 192.168.0.100, the network IP of you NAS.. resolvable hostname would be even better.

@stefaang stefaang reopened this Nov 30, 2020
@bahusoid
Copy link

Some progress.. Access from my PC opens request for login/password but then opens blank page with Not found message:
image

@stefaang
Copy link
Member Author

Worst case you just hard code the ipv4 in there, I'm sure that that works. But it's not really DHCP proof.

@bahusoid
Copy link

Worst case you just hard code the ipv4 in there

Yeah I fixed this part. It looks like this for me now:
2020/11/30 11:05:51 NOTICE: Serving remote control on http://192.168.1.97:5574/

And it's not the problem now as page is opened and credentials are requested. But Not Found page is opened - WEB GUI is not found or something...

@stefaang
Copy link
Member Author

Try

./stop.sh $(pwd)
./clean.sh $(pwd) --> after fix the paths
./init.sh $(pwd)
./start.sh $(pwd)

@bahusoid
Copy link

bahusoid commented Nov 30, 2020

Nope.. Same "Not Found" for me. :( Also starth.sh gave me

sh: missing ]
sh: missing ]

So I fixed it by adding && before echo:

[ ! -f /usr/bin/rclone ] && echo "rclone not found" >> /tmp/debug_apkg

[ -f /tmp/debug_apkg ] && echo "APKG_DEBUG: starting Rclone" >> /tmp/debug_apkg

@bahusoid

This comment has been minimized.

@bahusoid
Copy link

Another annoyance is clicking Configure button in NAS App settings opens http://wdmycloud/rclone/index.html which redirects to https://rclone.org/docs/. Any way to make it open actual WEB GUI http://wdmycloud:5574?

@bahusoid

This comment has been minimized.

@bahusoid
Copy link

Not sure but maybe it's something user privileges related. Adding sudo to start.sh seems fixed the issue.. Seems Web UI was working when I run it from ssh and not working when I started it from App page...

@D-stefaang
Copy link

@bahusoid it's because the apps run under a different user.. but your manually made config file (by ssh root user) is not writable via the web UI

@D-stefaang
Copy link

the proper fix is to touch the config file during install to ensure it exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants