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

adminer install error and URL redirect #2767

Closed
jamesstout opened this issue May 19, 2017 · 2 comments
Closed

adminer install error and URL redirect #2767

jamesstout opened this issue May 19, 2017 · 2 comments

Comments

@jamesstout
Copy link

Setup

Package Name: adminer
Package Version: 4.2.4-1

NAS Model: Synology DS1817+
NAS Architecture: x86_64
DSM version: DSM 6.1.1-15101 Update 2

Expected behavior

Adminer should start on http://my-ip/adminer

Actual behavior

I'm redirected to the Diskstation desktop on port 5000

Steps to reproduce

1. Use package manager to install adminer 4.2.4-1. then click run
2. go to http://my-ip/adminer

Package log

Check Package Center or /usr/local/{package}/var/

/usr/local/adminer/var/ doesn't exist

Other logs

Link to synopkg.log

<snip>
2017/05/19 17:47:06	install adminer 4.2.4-1 Begin postinst
chown: cannot access '/var/services/web/adminer': No such file or directory
2017/05/19 17:47:06	install adminer 4.2.4-1 End postinst ret=[0]

It fails to chown the adminer dir from root to http, the strange thing, is, it does exist:

root@dusky2:/var/log# ls -l /var/services/web/adminer
total 436
-rw-r--r-- 1 root root  27959 May 19 18:07 adminer.css
-rw-r--r-- 1 root root  27959 May 19 18:05 adminer.css.bak
-rw-r--r-- 1 root root 387223 Apr 13  2016 index.php

Also, the package depends on apache, which isn't installed or running:

root@dusky2:/usr/syno/sbin# synoservice --list | egrep '(apache|http)'
root@dusky2:/usr/syno/sbin#
root@dusky2:/usr/syno/sbin# ps aux | egrep '(apache|httpd)' | grep -v grep
root@dusky2:/usr/syno/sbin#

nginx is installed and running:

@dusky2:/usr/syno/sbin# ps aux | grep nginx  | grep -v grep
root     13497  0.0  0.0  34540  2540 ?        S<s  00:14   0:00 nginx: master process /usr/bin/nginx -g pid /run/nginx.pid; daemon on; master_process on;
http     18390  0.0  0.0  34544  3900 ?        S<   00:15   0:06 nginx: worker process
<snip>
root@dusky2:/usr/syno/sbin# synoservice --list | grep nginx
nginx

And there is already something listening on port 80, (full nginx conf here):

    server {
        listen 80 default_server;
        listen [::]:80 default_server;
       <snip>
        location ~ ^/$ {
            rewrite / http://$host:5000/ redirect;
        }
    }

You can see the 302 redirect in the nginx log:

192.168.1.201 - - [19/May/2017:21:08:29 +0800] "GET /adminer/ HTTP/1.1" 302 154 "http://192.168.1.13:5000/?dc=1493737127183" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" "-"

I'll try changing some of the nginx conf files to pick up /var/services/web/adminer, but should apache get installed? Be indicated as a dependancy, and not run on port 80? (for this DSM build)

Thanks

@jamesstout
Copy link
Author

Just noticed I don't have WebStation installed. That might be an issue.

@plasmacutter
Copy link

plasmacutter commented May 21, 2017

hi, please keep me updated on your efforts.
Have updated on my end with #2766 .
Have unearthed ancient docs and progressed from redirect to 403 error: Will continue to research.

as an FYI: i also did some experimentation on getting ruTorrent running on docker with some success, but was unable to lock down the UI with a password (this makes it useless as I would dmz it as a seedbox). relevant docs here: http://archive.is/KJmGY

@hgy59 hgy59 mentioned this issue Feb 23, 2020
3 tasks
@hgy59 hgy59 closed this as completed Nov 6, 2021
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

3 participants