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

rutorrent beta, webui redirects to synology manager #2766

Closed
plasmacutter opened this issue May 19, 2017 · 9 comments
Closed

rutorrent beta, webui redirects to synology manager #2766

plasmacutter opened this issue May 19, 2017 · 9 comments

Comments

@plasmacutter
Copy link

For new Package Requests, see the guidelines

Setup

ruTorrent
3.7-8

DS1815+
Current DSM version:
DSM 6.1.1-15101 Update 2

Expected behavior

Upon startup, clicking http://ip.of.nas.device/rutorrent/ should produce rutorrent webui

Actual behavior

Instead, httpd redirects back to synology management ui
(login via ssh confirms rtorrent is still running and listening, scripts recommended from previous issue threads show it's still active - synopkg.log indicates a failure to install some web components?)

Steps to reproduce

Install ruTorrent successfully from sinocommunity package source in package center
Launch application
click on URL present in package center once install is complete and status shows "Running"

Package log

(log is empty)

Other logs

E.g. /var/log/messages or /var/log/synopkg.log
2017/05/18 20:04:39 install rutorrent 3.7-8 Begin preinst
2017/05/18 20:04:39 install rutorrent 3.7-8 End preinst ret=[0]
2017/05/18 20:04:39 install rutorrent 3.7-8 Begin /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/rutorrent
2017/05/18 20:04:39 install rutorrent 3.7-8 End /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/rutorrent ret=[0]
2017/05/18 20:04:39 install rutorrent 3.7-8 Begin /bin/rm -rf /var/packages/rutorrent
2017/05/18 20:04:39 install rutorrent 3.7-8 End /bin/rm -rf /var/packages/rutorrent ret=[0]
2017/05/18 20:04:40 install rutorrent 3.7-8 Begin /bin/mkdir -p /var/packages/rutorrent
2017/05/18 20:04:40 install rutorrent 3.7-8 End /bin/mkdir -p /var/packages/rutorrent ret=[0]
2017/05/18 20:04:40 install rutorrent 3.7-8 Begin /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/rutorrent/INFO
2017/05/18 20:04:40 install rutorrent 3.7-8 End /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/rutorrent/INFO ret=[0]
2017/05/18 20:04:40 install rutorrent 3.7-8 Begin /bin/rm -rf /var/packages/rutorrent/scripts
2017/05/18 20:04:40 install rutorrent 3.7-8 End /bin/rm -rf /var/packages/rutorrent/scripts ret=[0]
2017/05/18 20:04:40 install rutorrent 3.7-8 Begin /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/rutorrent/scripts
2017/05/18 20:04:40 install rutorrent 3.7-8 End /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/rutorrent/scripts ret=[0]
2017/05/18 20:04:40 install rutorrent 3.7-8 Begin /bin/rm -rf /var/packages/rutorrent/WIZARD_UIFILES
2017/05/18 20:04:40 install rutorrent 3.7-8 End /bin/rm -rf /var/packages/rutorrent/WIZARD_UIFILES ret=[0]
2017/05/18 20:04:40 install rutorrent 3.7-8 Begin /bin/mv -f /volume1/@tmp/pkginstall/WIZARD_UIFILES /var/packages/rutorrent/WIZARD_UIFILES
2017/05/18 20:04:40 install rutorrent 3.7-8 End /bin/mv -f /volume1/@tmp/pkginstall/WIZARD_UIFILES /var/packages/rutorrent/WIZARD_UIFILES ret=[0]
2017/05/18 20:04:40 install rutorrent 3.7-8 Begin /bin/rm -rf /var/packages/rutorrent/conf
2017/05/18 20:04:40 install rutorrent 3.7-8 End /bin/rm -rf /var/packages/rutorrent/conf ret=[0]
2017/05/18 20:04:40 install rutorrent 3.7-8 Begin /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/rutorrent/conf
2017/05/18 20:04:40 install rutorrent 3.7-8 End /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/rutorrent/conf ret=[0]
2017/05/18 20:04:40 install rutorrent 3.7-8 Begin postinst
/var/packages/rutorrent/scripts/installer: line 78: /etc/php/conf.d/com.synocommunity.packages.rutorrent.ini: No such file or directory
sed: can't read /var/services/web/rutorrent/conf/config.php: No such file or directory
sed: can't read /etc/php/conf.d/user-settings.ini: No such file or directory
chown: cannot access '/var/services/web/rutorrent': No such file or directory
2017/05/18 20:04:41 install rutorrent 3.7-8 End postinst ret=[0]
2017/05/18 20:04:41 install rutorrent 3.7-8 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2017/05/18 20:04:41 install rutorrent 3.7-8 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2017/05/18 20:04:41 install rutorrent 3.7-8 successfully
2017/05/18 20:04:42 install rutorrent: begin to start version 3.7-8
2017/05/18 20:04:42 install rutorrent 3.7-8 Begin pre-load apparmor
2017/05/18 20:04:42 install rutorrent 3.7-8 End pre-load apparmor ret=[0]
2017/05/18 20:04:42 install rutorrent 3.7-8 Begin start-stop-status start
Starting ruTorrent ...
2017/05/18 20:04:42 install rutorrent 3.7-8 End start-stop-status start ret=[0]
2017/05/18 20:04:42 install rutorrent: start version 3.7-8 successfully, result 0

@jamesstout
Copy link

On the very latest DSM right? Is apache running? Try these with sudo or as root:

synoservice --list | egrep '(apache|http)'
ps aux | egrep '(apache|httpd)' | grep -v grep

Is nginx running and listening on port 80?

synoservice --list | grep nginx 
ps aux | grep nginx  | grep -v grep
nginx -T | grep listen

I have a similar issue with adminer: #2767

@plasmacutter
Copy link
Author

plasmacutter commented May 21, 2017

as requested:
$ sudo synoservice --list | grep -i apache
pkgctl-Apache2.2
$ sudo ps aux | grep -i -e apache -e httpd | grep -v grep
$

$ sudo nginx -T | grep listen
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
listen 5000 default_server;
listen [::]:5000 default_server;
listen 5001 default_server ssl;
listen [::]:5001 default_server ssl;
listen 80 default_server;
listen [::]:80 default_server;
listen 443 default_server ssl;
listen [::]:443 default_server ssl;

This is with ruTorrent running. Attempts to access rutorrent url redirect to port 5000 and DSM ui

Note: per #2767 , I installed and ran webstation, apache 2.2, php 5.6, and php 7.0 prior to uninstalling and re-installing ruTorrent.

I'm still seeing the following aberrant logs in the install process:
/var/packages/rutorrent/scripts/installer: line 78: /etc/php/conf.d/com.synocommunity.packages.rutorrent.ini: No such file or directory
sed: can't read /etc/php/conf.d/user-settings.ini: No such file or directory

Perhaps an in-order document for install of dependent packages ? (i know non-beta install process generally highlights these one by one)

It appears config paths for PHP might have changed?

Update: did some digging around the synology forum and found reference to the following:
https://web.archive.org/web/20160919044153/http://www.youritromp.nl/2014/06/rtorrent-seedbox-on-a-synology-nas/

followed those instructions and have made the slight progress of reaching a 403 error screen rather than straight-up redirect.

will continue to research the threads there to see if further updates can be unearthed

@Clandaries
Copy link

Something new to this?

I am stuck at error 403.

Thank you.

@melchoir55
Copy link

Has anyone figured this out?

@plasmacutter
Copy link
Author

Still poking at this. If anyone has managed a work-around please post here. I'll update thread if/when I find anything useful.

@Clandaries
Copy link

There was a firmwareupdate for my DS216J and now rutorrent is working. Not 100% but i can download and upload.
There are some permissions missing to some dirs but i dont know how to set them but it isa working, so ok...

@adamwinn
Copy link

I'm having this same issue too

@king8084
Copy link

to fix this issue, just enable web station app

@Safihre
Copy link
Contributor

Safihre commented Jun 24, 2018

Updates (like proper DSM6 support) will be handled in #2215 and maybe PR #3175.

@Safihre Safihre closed this as completed Jun 24, 2018
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

No branches or pull requests

7 participants