Mr.Ember

Can not access WebUI until...

Recommended Posts

Hello!

I got a weird problem as the title described. Here are details:

1. Environment

OS: Ubuntu server 18.04.2
Resilio-Sync: 2.6.3(1340)
License: Home Pro
IP: 192.168.1.107
ufw Status: inactive
Config file: $HOME/.config/resilio-sync/config.json

{
    "storage_path" : "/home/[USER]/.config/resilio-sync/storage",
    "pid_file" : "/home/[USER]/.config/resilio-sync/sync.pid",

    "directory_root" : "/data/",

    "webui" :
    {
        "listen" : "0.0.0.0:8888"
    }
}

I run rslsync as my user, so the /usr/lib/systemd/user/resilio-sync.service is:

[Unit]
Description=Resilio Sync service
Documentation=https://help.getsync.com/
After=network.target network-online.target

[Service]
Type=forking
Restart=on-failure
PIDFile=%h/.config/resilio-sync/sync.pid
ExecStart=/usr/bin/rslsync --config %h/.config/resilio-sync/config.json
ExecStartPre=/etc/resilio-sync/init_user_config.sh
ExecStartPost=/bin/sleep 1

[Install]
WantedBy=default.target

 

2. Problems

  • Can not access Web UI, unless I connected to the OpenSSH server or some program(run in background as my user too) listen on other port(0.0.0.0:[what_ever_port]).

Other services like Nginx or Redis are works fine. But they are not run under my user privilege, so I guess maybe there is the problem. 

~# Before SSH connection
▶ curl -k http://192.168.1.107:8888/gui -v
*   Trying 192.168.1.107...
* TCP_NODELAY set
* Connection failed
* connect to 192.168.1.107 port 8888 failed: Connection refused
* Failed to connect to 192.168.1.107 port 8888: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 192.168.1.107 port 8888: Connection refused

~# After SSH connected
▶ curl -k http://192.168.1.107:8888/gui -v
*   Trying 192.168.1.107...
* TCP_NODELAY set
* Connected to 192.168.1.107 (192.168.1.107) port 8888 (#0)
> GET /gui HTTP/1.1
> Host: 192.168.1.107:8888
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Connection: close
< Location: /gui/
<
* Closing connection 0

BUT, I got an old RaspberryPi 2, which have the same rslsync configuration, and it works fine in the lan(2.5.13(1301) Old Person License).

Any one technical support would be thankful!

I bought the early personal license and lately Home Pro license at last year. So I think this is not a harsh demand.

@Helen @cmeisel

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.