[Plugin] ControlR


Recommended Posts

I'm going to release an update soon, but it boils down to what I mentioned in the app thread

 

 

Summary:

 

If the SSL setting in your unRAID is set to 

  • 'yes' -> Add the server via ip/hostname, https port, secure switch on
  • 'auto' -> Add the server via ip/hostname, http port, secure switch off
  • 'no' -> Add the server via ip/hostname, http port, secure switch off 

But, with the update about to be released, I'm going to change it to :

 

If the SSL setting in your unRAID is set to 

  • 'yes' -> Add the server via ip/hostname, https port, secure switch on
  • 'auto' -> Add the server via ip/hostname, https port, secure switch on
  • 'no' -> Add the server via ip/hostname, http port, secure switch off 

SSL = auto signals unRAID to set up a letsencrypt certificate and any http access is redirected to https (as ljm42 brought up a couple of posts back).

 

The issue you're having is most likely because

- your ssl is set to auto or no

- you added your server via https/secure switch on

 

To fix your issue, you have two options:

- add the server via http/secure switch off

- wait for the update (next couple of days)

 

It should be the final decision on this matter (along with some redirection I'll be doing on the web side of the plugin).

 

I will also add a padlock in the app to represent how the server was added: open = http, closed = https.

Link to comment

v2018-07-14 (2.12.0) is out

 

- Modify logic about which port to listen on

 

This enables redirection for the web UI side of the plugin.

 

With respect to the ControlR APP support the plugin provides, this is how you should add your server to make sure it works:

 

If the SSL setting in your unRAID is set to 

'yes' -> Add the server via ip/hostname, https port, secure switch on

'auto' -> Add the server via ip/hostname, https port, secure switch on

'no' -> Add the server via ip/hostname, http port, secure switch off 

 

This is reflected in the app's FAQ.

Link to comment

I've got a problem with this. Using UNRAID 6.5.3

 

I can't see any of my docker containers, vms, or any of my logs what-so-ever from the Android app. All I can do is see storage space and spin down/shutdown the server.

 

Also what's the login information for the Webui via the plugins tab? I do have that installed.

Edited by plantsandbinary
Link to comment
  • 2 weeks later...

It doesn't work. I've literally tried everything. I can see all information except for docker containers, vms, or any of my logs what-so-ever from the Android app. I'm using the latest plugin version and the latest Android store app. It just says that I need to install the server.

 

Can you please give me the login information so I can see maybe if there's a setting in there I need to change or something, I dunno.

Link to comment

Hi, 

 

6 hours ago, plantsandbinary said:

It just says that I need to install the server.

Where does it say that ?

Can you send me a screenshot ?

 

6 hours ago, plantsandbinary said:

Can you please give me the login information so I can see maybe if there's a setting in there I need to change or something, I dunno.

The plugin asks for the login information of your server, that would be the username ("root" is the default) and your password.

But there are no settings in the plugin.

 

Can you send me /boot/logs/controlr.log ?

 

(pm the screenshot and the log if you prefer)

 

Link to comment

Hi, thanks for the shots/logs.

 

I'm a bit confused about the 127.0.0.1 address.

 

Do you access the server from the server itself ? 

 

What I mean is, it looks you're running a browser on the server itself (maybe a docker ??)

 

If you access the webGUI from another machine (desktop, laptop) does it work ?

 

 

Link to comment
  • 2 weeks later...

Hi. I have same problem like @jmello
I am using Unraid : 6.5.3
ControlIR webgui 2.12

controlr.logUse SSL/TLS: Auto
logs : in files

have been NOT changed the Unraid access management  ports 433 or 80 
But i am using NGINX with the Let Encrypted Container. And changed pprt 443->1443 80->180

 

p.s 

As you can see in the second pic , the port that the Web UI is using its 2379 and not 2378 (I am not change it )


THANK YOU71B68356-0D78-424A-B6B1-D8A2BF18DEEF.thumb.jpeg.b147d79995e33912551677380d448a1c.jpeg

Screen Shot 2018-08-21 at 14.47.25.png

Link to comment

So, I'm trying to figure out who "owns" port 80/443 (and 180/1443).

 

Can you run (on the server)

lsof -i :80
lsof -i :180
lsof -i :443
lsof -i :1443

also, can you send me your /boot/config/ident.cfg ? (it has no private info except for the server name if I recall correctly, but delete anything you want except port numbers and ssl settings if you please)

Link to comment
11 hours ago, jbrodriguez said:

So, I'm trying to figure out who "owns" port 80/443 (and 180/1443).

 

Can you run (on the server)


lsof -i :80
lsof -i :180
lsof -i :443
lsof -i :1443

also, can you send me your /boot/config/ident.cfg ? (it has no private info except for the server name if I recall correctly, but delete anything you want except port numbers and ssl settings if you please)

1

 

root@Server:~# lsof -i :80
COMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nginx   2738   root    7u  IPv4  15415      0t0  TCP *:http (LISTEN)
nginx   2738   root    8u  IPv6  15416      0t0  TCP *:http (LISTEN)
nginx   2739 nobody    7u  IPv4  15415      0t0  TCP *:http (LISTEN)
nginx   2739 nobody    8u  IPv6  15416      0t0  TCP *:http (LISTEN)
nginx   2739 nobody   17u  IPv4  55508      0t0  TCP HassServer:http->192.168.1.235:51962 (ESTABLISHED)
nginx   2739 nobody   18u  IPv4  48831      0t0  TCP HassServer:http->192.168.1.235:51930 (ESTABLISHED)
nginx   2739 nobody   20u  IPv4  51788      0t0  TCP HassServer:http->192.168.1.235:51938 (ESTABLISHED)
nginx   2739 nobody   21u  IPv4  55509      0t0  TCP HassServer:http->192.168.1.235:51963 (ESTABLISHED)
nginx   2739 nobody   22u  IPv4  55510      0t0  TCP HassServer:http->192.168.1.235:51964 (ESTABLISHED)
root@Server:~# lsof -i :180
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
docker-pr 3803 root    4u  IPv6  18102      0t0  TCP *:ris (LISTEN)
root@Server:~# lsof -i :443
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
python    3283 root   58u  IPv4  56247      0t0  TCP HassServer:51164->fra15s11-in-f10.1e100.net:https (ESTABLISHED)
python    3283 root   59u  IPv4  60182      0t0  TCP HassServer:43772->ec2-54-77-241-118.eu-west-1.compute.amazonaws.com:https (ESTABLISHED)
python    3283 root   62u  IPv4  59486      0t0  TCP HassServer:49470->149.154.167.220:https (ESTABLISHED)
docker-pr 3336 root    6u  IPv4  60412      0t0  TCP 172.18.0.1:36690->172.18.0.2:https (ESTABLISHED)
docker-pr 3336 root   11u  IPv4  60416      0t0  TCP 172.18.0.1:36700->172.18.0.2:https (ESTABLISHED)
root@Server:~# lsof -i :1443
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
docker-pr 3791 root    4u  IPv6  18087      0t0  TCP *:ies-lm (LISTEN)

and this is the file  /boot/config/ident.cfg

# Generated settings:
NAME="Server"
timeZone="Asia/Jerusalem"
COMMENT="VirtualL Server"
SECURITY="user"
WORKGROUP="WORKGROUP"
DOMAIN=""
DOMAIN_SHORT=""
hideDotFiles="no"
localMaster="yes"
USE_NTP="yes"
NTP_SERVER1="time1.google.com"
NTP_SERVER2="time2.google.com"
NTP_SERVER3="time3.google.com"
NTP_SERVER4="time4.google.com"
DOMAIN_LOGIN="Administrator"
DOMAIN_PASSWD=""
SYS_MODEL="Custom"
SYS_ARRAY_SLOTS="4"
SYS_CACHE_SLOTS="2"
USE_SSL="auto"
PORT="80"
PORTSSL="443"
LOCAL_TLD="local"
BIND_MGT="no"
USE_TELNET="no"
PORTTELNET="23"
USE_SSH="yes"
PORTSSH="22"
START_PAGE="Dashboard"

the way my server is using SSL is Via letsencrypt (https://hub.docker.com/r/linuxserver/letsencrypt/  )

and my domain menage by CloudFlare 

Link to comment

hi , i manage to have it working 

my setting is : 

On Unraid/Settings/Identification - Use TLS/SSL = Auto

I was open new user , and get into the GUI , and give the user all the permissions

and i login in the app with the new user (not root) (p.s - its CRAZY confusing that the PASSWORD is of ROOT instead USER password- you must put some text to let the user to know it!) 

819431743_ScreenShot2018-08-28at12_57_07.thumb.png.d7f20b7bea53f3ca5dff1ed0c3c8a2db.png

I got a  Question:

How to i see the log files in the app? Only if i am logged with ROOT is see LOGS tab, also the User Panel is very Slim VS Root panel

IMG_3553.thumb.PNG.50aa970100cb6a3736cd61df703559c9.PNGIMG_3554.thumb.PNG.277cd7248370d64013e44cb3787ff560.PNG

Link to comment
28 minutes ago, VirtualL said:

p.s - its CRAZY confusing that the PASSWORD is of ROOT instead USER password- you must put some text to let the user to know it!

 

You're right, I need to add it in the FAQ.

 

28 minutes ago, VirtualL said:

How to i see the log files in the app? Only if i am logged with ROOT is see LOGS tab, also the User Panel is very Slim VS Root panel

 

It's deliberate, in non-root mode, you can only see DOCKERS/VMS, nothing else. I might considering adding LOGS, just not sure about it.

 

So, you got it working by changing SSL settings to auto ?

 

Or did you change some of the reverse proxy settings too ?

 

Link to comment
11 minutes ago, jbrodriguez said:

 

You're right, I need to add it in the FAQ.

 

 

It's deliberate, in non-root mode, you can only see DOCKERS/VMS, nothing else. I might considering adding LOGS, just not sure about it.

 

So, you got it working by changing SSL settings to auto ?

 

Or did you change some of the reverse proxy settings too ?

 

Hi , so how i will see the logs ? Even in root I don't see (like you see in the image)

 

About the Way I managed it. I don't really know ;) because I was making changes in Nginx and my Unraid

Link to comment
6 hours ago, VirtualL said:

Hi , so how i will see the logs ? Even in root I don't see (like you see in the image)

 

2 hours ago, Shyrka973 said:

Everything is OK except the display of logs (ControlR plugin is installed and actived).

 

Send me /boot/logs/controlr.log (pm if you prefer).

 

But, in the simplest terms, the plugin looks at (tail -n 40)

/var/log/syslog (system)
/var/log/docker.log (docker)
/var/log/libvirt/libvirtd.log (vms)

for the server logs.

Link to comment
9 hours ago, jbrodriguez said:

 

 

Send me /boot/logs/controlr.log (pm if you prefer).

 

But, in the simplest terms, the plugin looks at (tail -n 40)


/var/log/syslog (system)
/var/log/docker.log (docker)
/var/log/libvirt/libvirtd.log (vms)

for the server logs.

 

Access rights on the logs:

root@Tower:~# ls -l /var/log/syslog
-rw-r--r-- 1 root root 228417 Aug 28 23:15 /var/log/syslog
root@Tower:~# ls -l /var/log/docker.log
-rw-rw-rw- 1 root root 0 Aug 28 03:22 /var/log/docker.log
root@Tower:~# ls -l /var/log/libvirt/libvirtd.log
-rw------- 1 root root 0 Aug 28 03:23 /var/log/libvirt/libvirtd.log

controlR log:

root@Tower:~# cat /boot/logs/controlr.log
I: 2018/08/28 07:50:55 app.go:57: controlr v2.12.0-385-e4f90d2-v2018.07.14 starting ...
I: 2018/08/28 07:50:55 app.go:65: No config file specified. Using app defaults ...
I: 2018/08/28 07:50:55 core.go:73: starting service Core ...
I: 2018/08/28 07:50:55 core.go:266: Created system sensor ...
I: 2018/08/28 07:50:55 core.go:287: Created apc ups ...
I: 2018/08/28 07:50:55 server.go:94: Starting service Server ...
I: 2018/08/28 07:50:55 server.go:113: Serving files from /usr/local/emhttp/plugins/controlr
I: 2018/08/28 07:50:55 server.go:173: Server started listening http on :2378
I: 2018/08/28 07:50:55 server.go:185: Server started listening https on :2379
I: 2018/08/28 07:50:55 api.go:46: Starting service Api ...
I: 2018/08/28 07:50:55 api.go:90: Api started listening https on :2382
I: 2018/08/28 07:50:55 app.go:85: Press Ctrl+C to stop ...

 

Link to comment

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.   Restore formatting

  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.