Jump to content

[Plugin] controlrd


Recommended Posts

7 hours ago, jbrodriguez said:

from your screenshot, can you change Enable ControlR Server to No -> apply > Enable ControlR Server to Yes -> apply ?

does that make a difference ?

let me know if it doesn't to try something else

It never activates, that is the issue. You can already see in the screenshot. I have it set to yes, but it never activates. I flipped the switch multiple times.

 

Thanks!

Edited by Unraid-arr
Spell-check
Link to comment
43 minutes ago, Unraid-arr said:

You can already see in the screenshot. I have it set to yes, but it never activates

sometimes it's difficult to see through a screenshot 🤷‍♂️

 

try this, 

ps aux | grep controlr

then

killall controlr

then

/usr/local/emhttp/plugins/controlr/controlr ....

complete the dots with the same parameters as shown by the first command (it will something like `--port ..`

 

run that and check for any errors

Link to comment
2 hours ago, jbrodriguez said:

sometimes it's difficult to see through a screenshot 🤷‍♂️

 

try this, 

ps aux | grep controlr

then

killall controlr

then

/usr/local/emhttp/plugins/controlr/controlr ....

complete the dots with the same parameters as shown by the first command (it will something like `--port ..`

 

run that and check for any errors

 

 

There is nothing for that process name.

 

Some syslogs for good measure from the same time:

Aug 18 17:02:15 Zeus ool www[34274]: /usr/local/emhttp/plugins/controlr/scripts/stop
Aug 18 17:02:26 Zeus ool www[34950]: /usr/local/emhttp/plugins/controlr/scripts/start
Aug 18 17:02:26 Zeus sudo:     root : PWD=/usr/local/emhttp ; USER=root ; COMMAND=/usr/bin/bash -c 'env PORT=2378 SHOW_UPS=true /usr/local/emhttp/plugins/controlr/controlr --port 2378' --show-ups
Aug 18 17:02:26 Zeus sudo: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
Aug 18 17:02:26 Zeus sudo: pam_unix(sudo:session): session closed for user root

 

Screenshot -image.thumb.png.10ee46ffa9ac170e0cfaa896851788aa.png

 

Thanks!

Edited by Unraid-arr
Readability
Link to comment
16 minutes ago, Unraid-arr said:

 

 

There is nothing for that process name.

 

Some syslogs for good measure from the same time:

Aug 18 17:02:15 Zeus ool www[34274]: /usr/local/emhttp/plugins/controlr/scripts/stop
Aug 18 17:02:26 Zeus ool www[34950]: /usr/local/emhttp/plugins/controlr/scripts/start
Aug 18 17:02:26 Zeus sudo:     root : PWD=/usr/local/emhttp ; USER=root ; COMMAND=/usr/bin/bash -c 'env PORT=2378 SHOW_UPS=true /usr/local/emhttp/plugins/controlr/controlr --port 2378' --show-ups
Aug 18 17:02:26 Zeus sudo: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
Aug 18 17:02:26 Zeus sudo: pam_unix(sudo:session): session closed for user root

 

Screenshot -image.thumb.png.10ee46ffa9ac170e0cfaa896851788aa.png

 

Thanks!

So, I merged the command from logs and your message above and it works.

Started from command line, keeps the terminal busy which I can start with nohup, but this should not happen. Also, doesn't detect my network UPS (I am using NUT client).

 

Starting the server I see no difference in the app whatsoever. What functionality am I missing if remove this plugin? Because I see no additional info in the app v6.6.0.

 

Edit: One difference is logs. Which I can see only when server is running.

 

image.thumb.png.569da9890bffa3e858ad53727a43cbe3.png

Edited by Unraid-arr
Link to comment
On 8/18/2024 at 5:40 PM, jbrodriguez said:

do you have this file on your system /boot/config/plugins/nut/nut.cfg ?

Thisv above is the updated new plugin (officially), IMO.

 

Edit — Was going through your site as per other post. Found that you mention this plugin below which has been deprecated as per the pinned post on that thread. So, you might have to support the new plugin.

 

 

Hope this helps. :)

 

image.thumb.png.c54cfaa6e74fd42c6024b4d32df3090d.png

Edited by Unraid-arr
added old plugin stuff
Link to comment
On 8/18/2024 at 5:15 PM, Unraid-arr said:

So, I merged the command from logs and your message above and it works.

Started from command line, keeps the terminal busy which I can start with nohup, but this should not happen. Also, doesn't detect my network UPS (I am using NUT client).

@jbrodriguez Any fix for the server not working, do I have to keep it running from command line or there will be a patch to fix this. Just curious no pressure. :)

 

Since, you have noted the UPS issue as well, maybe it can be all in one patch?

 

Thanks for all the work.

Edited by Unraid-arr
Link to comment
Posted (edited)

hello all,

 

the ControlR plugin is now controlrd !!!

 

this release enables quite a lot of improvements:
- Open Source: the controlrd plugin is now open source, with an AGPL license 🙌


- Access: the plugin api is now accessed via the Unraid url, no need to set a port anymore

 

- Versioning: no more "v" prefix for the version name


- Performance improvements

 

this will be paired with a change in the ControlR mobile app (to be released very soon), which will now have the following requirement
- If you access your server via SSL (https), the app will only connect to the `*.myunraid.net` URL, which is backed by a certificate provisioned via Let's Encrypt (certificate_bundle) 

 

Finally, the current ControlR plugin will be deprecated

Edited by jbrodriguez
  • Like 1
Link to comment
  • jbrodriguez changed the title to [Plugin] controlrd

release controlrd 2024.08.30, which should support the new nut plugin.

 

i checked the code for the new nut plugin, the core binary is the same, so the output should be the same (unless there are some upstream changes)

 

if you're usingthe nut plugin, let me know if this now works for you :) 

Link to comment
48 minutes ago, jbrodriguez said:

release controlrd 2024.08.30, which should support the new nut plugin.

 

i checked the code for the new nut plugin, the core binary is the same, so the output should be the same (unless there are some upstream changes)

 

if you're usingthe nut plugin, let me know if this now works for you :) 

I have updated to the new plugin, restaretd both by settings to no, then yes again and dont see any stats for the UPS in controlr. Where should they be?

Link to comment
8 minutes ago, jbrodriguez said:

thank you, can you try

/usr/bin/upsc '[email protected]'

if that doesnt work

/usr/bin/upsc "[email protected]"

 

finally, would you mind sending me your /boot/config/plugins/nut-dw/nut.cfg ?

 

im not sure why the plugin cant parse it, would like to fix the parsing if possible

i have to guess that this location of 127.0.0.1 is being filled in becuase it cannot read my not.cfg file. And my file is not located in that directory

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.

×
×
  • Create New...