[Plugin] ControlR


Recommended Posts

ControlR is a companion plugin for the ControlR app.

 

Introduction

This plugin enables some operations for the ControlR app.

 

## Installation

There are 2 ways to install this application

 

- Community Applications

Go to the Apps tab

Click on the Plugins button

Look for ControlR

Click Install

 

- Plugins Tab (manual)

Go to the Plugins tab

Click on Install Plugin

Paste the following address in the input field: https://raw.githubusercontent.com/jbrodriguez/unraid/master/plugins/controlr.plg

Click Install

 

## Running the app

After installing the plugin, you'll get a QRCode to facilitate adding your server to the ControlR app (refresh the page if the image is cut off)

 

CHANGELOG

 

Check the full changelog here

 

Edited by jbrodriguez
edit changelog
  • Upvote 1
Link to comment

installed v1. Unable to login as root on web interface.

 

Unable to connect to server

401 (Unauthorized)

 

root is the only user on server.

 

Can you check the log (should be at /usr/local/emhttp/plugins/controlr/controlr.log) for any warnings ?

 

Send it over pm or email if you want.

 

I'll change the log location in the next release.

Link to comment

installed v1. Unable to login as root on web interface.

 

Unable to connect to server

401 (Unauthorized)

 

root is the only user on server.

 

Can you check the log (should be at /usr/local/emhttp/plugins/controlr/controlr.log) for any warnings ?

 

Send it over pm or email if you want.

 

I'll change the log location in the next release.

 

There is no *.log file in that folder.

Screenshot_1.jpg.9762822ad4c69d01a6b946e68f9345aa.jpg

Link to comment

installed v1. Unable to login as root on web interface.

 

Unable to connect to server

401 (Unauthorized)

 

root is the only user on server.

 

Can you check the log (should be at /usr/local/emhttp/plugins/controlr/controlr.log) for any warnings ?

 

Send it over pm or email if you want.

 

I'll change the log location in the next release.

 

There is no *.log file in that folder.

 

I am having the exact same problem. I cannot login: unable to connect to server 401 (unauthorized). Similar to interwebtech no log file being created.

Link to comment

Well, it wasn't logging at all  :o

 

I uploaded v1.0.1 with this change, log file is at /boot/logs/controlr.log

 

plugin has lost its link to open web page. Manually trying to open web page, neither http://tower:2378/ or IP work at all. No logs at that location.

 

tower refused to connect.

 

Following up... toggle Enable ControlR Server  setting brought link back and page opens. Log contents:

 

I: 2016/10/26 15:12:03 app.go:51: controlr v1.0.1-70.d2e1212 starting ...
I: 2016/10/26 15:12:03 app.go:59: No config file specified. Using app defaults ...
I: 2016/10/26 15:12:03 unraid.go:55: starting service Unraid ...
I: 2016/10/26 15:12:03 server.go:67: Starting service Server ...
I: 2016/10/26 15:12:03 server.go:86: Serving files from /usr/local/emhttp/plugins/controlr
I: 2016/10/26 15:12:03 server.go:125: Server started listening on :2378
I: 2016/10/26 15:12:03 app.go:81: Press Ctrl+C to stop ...
W: 2016/10/26 15:12:14 server.go:179: shadowHash != actualHash

Link to comment

Well, it wasn't logging at all  :o

 

I uploaded v1.0.1 with this change, log file is at /boot/logs/controlr.log

 

plugin has lost its link to open web page. Manually trying to open web page, neither http://tower:2378/ or IP work at all. No logs at that location.

 

tower refused to connect.

 

Following up... toggle Enable ControlR Server  setting brought link back and page opens. Log contents:

 

I: 2016/10/26 15:12:03 app.go:51: controlr v1.0.1-70.d2e1212 starting ...
I: 2016/10/26 15:12:03 app.go:59: No config file specified. Using app defaults ...
I: 2016/10/26 15:12:03 unraid.go:55: starting service Unraid ...
I: 2016/10/26 15:12:03 server.go:67: Starting service Server ...
I: 2016/10/26 15:12:03 server.go:86: Serving files from /usr/local/emhttp/plugins/controlr
I: 2016/10/26 15:12:03 server.go:125: Server started listening on :2378
I: 2016/10/26 15:12:03 app.go:81: Press Ctrl+C to stop ...
W: 2016/10/26 15:12:14 server.go:179: shadowHash != actualHash

 

Ok, that would indicate passwords don't match.

 

I'll pm you.

Link to comment

I am able to login but not sure if what I see is correct. I made browser narrow so it would fit in one screenshot. The red arrow points at icon that just spins ands spins with nothing happening.

 

I have no users other than root. I have no VMs. I have 4 dockers. Should I be seeing something other than this?

 

Yes, you should see the 4 dockers :)

 

Anything strange in the log ?

Link to comment

I am able to login but not sure if what I see is correct. I made browser narrow so it would fit in one screenshot. The red arrow points at icon that just spins ands spins with nothing happening.

 

I have no users other than root. I have no VMs. I have 4 dockers. Should I be seeing something other than this?

 

Yes, you should see the 4 dockers :)

 

Anything strange in the log ?

 

I see nothing about scanning for dockers or VMs. I emptied the log and restarted the plugin. This is all I get in log:

I: 2016/10/27 16:34:42 app.go:85: Received signal: (terminated) ... shutting down the app now ...
I: 2016/10/27 16:34:42 server.go:132: stopped service Server ...
I: 2016/10/27 16:34:42 unraid.go:67: stopped service Unraid ...
I: 2016/10/27 16:34:48 app.go:51: controlr v1.0.2-78.dd2e5a8 starting ...
I: 2016/10/27 16:34:48 app.go:59: No config file specified. Using app defaults ...
I: 2016/10/27 16:34:48 unraid.go:55: starting service Unraid ...
I: 2016/10/27 16:34:48 server.go:69: Starting service Server ...
I: 2016/10/27 16:34:48 server.go:88: Serving files from /usr/local/emhttp/plugins/controlr
I: 2016/10/27 16:34:48 server.go:127: Server started listening on :2378
I: 2016/10/27 16:34:48 app.go:81: Press Ctrl+C to stop ...

 

All I get is the spinner. Took a peek with Chrome tools and spotted this error in console:

websocket open
Uncaught TypeError: Cannot read property 'map' of null(…)
http://192.168.1.8:2378/app/main-c6c02c5.min.js

 

 

Link to comment

I am able to login but not sure if what I see is correct. I made browser narrow so it would fit in one screenshot. The red arrow points at icon that just spins ands spins with nothing happening.

 

I have no users other than root. I have no VMs. I have 4 dockers. Should I be seeing something other than this?

 

Yes, you should see the 4 dockers :)

 

Anything strange in the log ?

 

I see nothing about scanning for dockers or VMs. I emptied the log and restarted the plugin. This is all I get in log:

I: 2016/10/27 16:34:42 app.go:85: Received signal: (terminated) ... shutting down the app now ...
I: 2016/10/27 16:34:42 server.go:132: stopped service Server ...
I: 2016/10/27 16:34:42 unraid.go:67: stopped service Unraid ...
I: 2016/10/27 16:34:48 app.go:51: controlr v1.0.2-78.dd2e5a8 starting ...
I: 2016/10/27 16:34:48 app.go:59: No config file specified. Using app defaults ...
I: 2016/10/27 16:34:48 unraid.go:55: starting service Unraid ...
I: 2016/10/27 16:34:48 server.go:69: Starting service Server ...
I: 2016/10/27 16:34:48 server.go:88: Serving files from /usr/local/emhttp/plugins/controlr
I: 2016/10/27 16:34:48 server.go:127: Server started listening on :2378
I: 2016/10/27 16:34:48 app.go:81: Press Ctrl+C to stop ...

 

All I get is the spinner. Took a peek with Chrome tools and spotted this error in console:

websocket open
Uncaught TypeError: Cannot read property 'map' of null(…)
http://192.168.1.8:2378/app/main-c6c02c5.min.js

 

Thanks, I thought the server had crashed, but it's something client related .. I'll check.

Link to comment

v1.0.3 is available

 

2016-10-28 - 1.0.3

- Fix issue when there were no users/apps

- Cosmetic fixes to UI

- Include additional logging

 

This should fix the issue where there are no users (other than root), but there are apps available (dockers/vms).

 

Note, that in this scenario, clicking on the the checkboxes is a no-op, since it's not modifying any user.

 

root has full access to the server.

Link to comment

Thanks interwebtech !

 

v1.0.4 should be available now

 

Not sure what the error is with the stop script ... I'll have to check that next

 

When updating the plug-in, i have to turn off ControlR and then back on for the UI link to show.

 

Other than that I can see all my dockers and such now. Looks great! :)

 

Thanks interwebtech !

 

It probably has to do with the error you mentioned, I'll check that.

Link to comment

updated to 1.06 and still have the bash error on reboot.

 

Yes, I haven't fixed that yet  :o

 

I think it has something to do with 6.2.x, since I can't see the same behaviour in 6.1.x.

 

My 6.2.x server is temporarily out of order (mobo died), so I can't troubleshoot the issue right now.

 

I'll look into it by next week.

Link to comment

updated to 1.06 and still have the bash error on reboot.

 

I'm unable to reproduce the error.

 

All I see is in the syslog is

Nov 10 08:56:16 hal sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/bash -c /usr/local/emhttp/plugins/controlr/controlr -port 2378

 

I tried 6.2.0 first, then 6.2.4 ... started the server, used the plugin, rebooted ... and it's there running.

 

Does the error appear in the syslog in your case ? Is it the plugin stopped ?

 

Can you check that

/boot/config/plugins/controlr/controlr.cfg

exists ?

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.