ControlR (Android/iOS app for unRAID)


Recommended Posts

11 minutes ago, wgstarks said:

discover is still not working

It would look like avahi/mDNS is disabled on your server, but I don't think there's even a way to do that on the Unraid gui :)

I'll add a note there and some troubleshooting instructions in the event that no server is found

Link to comment
Just now, fireplex said:

root@Tower:/var/log# cat /var/local/emhttp/network.ini | grep IPADDR
IPADDR:0="192.168.1.25"
IPADDR6:0=""
root@Tower:/var/log#
 

That looks good to.

 

Ok, one last test, try this

killall controlr

then

/usr/local/emhttp/plugins/controlr/controlr -port 2378 -certdir /boot/config/ssl/certs -showups

This is to monitor the output of the plugin.

 

Try to add server and please post back the output of the plugin

Link to comment
2 minutes ago, jbrodriguez said:

That looks good to.

 

Ok, one last test, try this


killall controlr

then


/usr/local/emhttp/plugins/controlr/controlr -port 2378 -certdir /boot/config/ssl/certs -showups

This is to monitor the output of the plugin.

 

Try to add server and please post back the output of the plugin

 

Hi, this is the log as I click the Add button on the app and receive the error message:

 

root@Tower:/var/log# killall controlr
root@Tower:/var/log#
root@Tower:/var/log# /usr/local/emhttp/plugins/controlr/controlr -port 2378 -certdir /boot/config/ssl/certs -showups
I: 2021/07/18 21:01:43 app.go:59: controlr v2021.07.11a|2.23.2 starting ...
I: 2021/07/18 21:01:43 app.go:67: No config file specified. Using app defaults ...
I: 2021/07/18 21:01:43 app.go:269: cert: found Tower_unraid_bundle.pem
I: 2021/07/18 21:01:43 app.go:77: state(&{Name:Tower Timezone:Europe/London Version:6.9.0 CsrfToken:57DC2E997527AA2C Host:http://192.168.1.25:80 Origin:{Protocol:http Host:Tower.local Port:80 Address:192.168.1.25} Secure:false Cert:Tower_unraid_bundle.pem UseSelfCerts:false})
I: 2021/07/18 21:01:43 core.go:81: starting service Core ...
I: 2021/07/18 21:01:43 core.go:320: Created system sensor ...
I: 2021/07/18 21:01:43 core.go:350: No ups detected ...
I: 2021/07/18 21:01:43 server.go:92: Starting service Server ...
I: 2021/07/18 21:01:43 server.go:111: Serving files from /usr/local/emhttp/plugins/controlr
I: 2021/07/18 21:01:43 server.go:168: Server started listening http on :2378
I: 2021/07/18 21:01:43 api.go:46: Starting service Api ...
I: 2021/07/18 21:01:43 api.go:95: Api started listening https on :2382
I: 2021/07/18 21:01:43 app.go:87: Press Ctrl+C to stop ...
⇨ http server started on [::]:2378
⇨ https server started on [::]:2382
I: 2021/07/18 21:02:13 api.go:167: received /origin
{"time":"2021-07-18T21:02:13.817266726+01:00","id":"","remote_ip":"192.168.1.180","host":"192.168.1.25:2382","method":"GET","uri":"/origin","user_agent":"okhttp/3.12.12","status":200,"error":"","latency":135920,"latency_human":"135.92µs","bytes_in":0,"bytes_out":78}
I: 2021/07/18 21:02:29 api.go:129: received /info
I: 2021/07/18 21:02:29 api.go:137: info({Version:2 Wake:{Mac:70:85:c2:f0:72:99 Broadcast:255.255.255.255} Prefs:{Number:., Unit:C} Samples:[{Key:FAN Value:2795 Unit:rpm Condition:neutral} {Key:BOARD Value:45 Unit:C Condition:neutral} {Key:CPU Value:46 Unit:C Condition:neutral}] Features:map[sleep:false]})
{"time":"2021-07-18T21:02:29.885895642+01:00","id":"","remote_ip":"192.168.1.180","host":"192.168.1.25:2382","method":"GET","uri":"/api/v1/info","user_agent":"okhttp/3.12.12","status":200,"error":"","latency":13157670,"latency_human":"13.15767ms","bytes_in":0,"bytes_out":339}

Link to comment
2 minutes ago, fireplex said:

 

Hi, this is the log as I click the Add button on the app and receive the error message:

 

root@Tower:/var/log# killall controlr
root@Tower:/var/log#
root@Tower:/var/log# /usr/local/emhttp/plugins/controlr/controlr -port 2378 -certdir /boot/config/ssl/certs -showups
I: 2021/07/18 21:01:43 app.go:59: controlr v2021.07.11a|2.23.2 starting ...
I: 2021/07/18 21:01:43 app.go:67: No config file specified. Using app defaults ...
I: 2021/07/18 21:01:43 app.go:269: cert: found Tower_unraid_bundle.pem
I: 2021/07/18 21:01:43 app.go:77: state(&{Name:Tower Timezone:Europe/London Version:6.9.0 CsrfToken:57DC2E997527AA2C Host:http://192.168.1.25:80 Origin:{Protocol:http Host:Tower.local Port:80 Address:192.168.1.25} Secure:false Cert:Tower_unraid_bundle.pem UseSelfCerts:false})
I: 2021/07/18 21:01:43 core.go:81: starting service Core ...
I: 2021/07/18 21:01:43 core.go:320: Created system sensor ...
I: 2021/07/18 21:01:43 core.go:350: No ups detected ...
I: 2021/07/18 21:01:43 server.go:92: Starting service Server ...
I: 2021/07/18 21:01:43 server.go:111: Serving files from /usr/local/emhttp/plugins/controlr
I: 2021/07/18 21:01:43 server.go:168: Server started listening http on :2378
I: 2021/07/18 21:01:43 api.go:46: Starting service Api ...
I: 2021/07/18 21:01:43 api.go:95: Api started listening https on :2382
I: 2021/07/18 21:01:43 app.go:87: Press Ctrl+C to stop ...
⇨ http server started on [::]:2378
⇨ https server started on [::]:2382
I: 2021/07/18 21:02:13 api.go:167: received /origin
{"time":"2021-07-18T21:02:13.817266726+01:00","id":"","remote_ip":"192.168.1.180","host":"192.168.1.25:2382","method":"GET","uri":"/origin","user_agent":"okhttp/3.12.12","status":200,"error":"","latency":135920,"latency_human":"135.92µs","bytes_in":0,"bytes_out":78}
I: 2021/07/18 21:02:29 api.go:129: received /info
I: 2021/07/18 21:02:29 api.go:137: info({Version:2 Wake:{Mac:70:85:c2:f0:72:99 Broadcast:255.255.255.255} Prefs:{Number:., Unit:C} Samples:[{Key:FAN Value:2795 Unit:rpm Condition:neutral} {Key:BOARD Value:45 Unit:C Condition:neutral} {Key:CPU Value:46 Unit:C Condition:neutral}] Features:map[sleep:false]})
{"time":"2021-07-18T21:02:29.885895642+01:00","id":"","remote_ip":"192.168.1.180","host":"192.168.1.25:2382","method":"GET","uri":"/api/v1/info","user_agent":"okhttp/3.12.12","status":200,"error":"","latency":13157670,"latency_human":"13.15767ms","bytes_in":0,"bytes_out":339}

 

Link to comment
46 minutes ago, jbrodriguez said:

@fireplex, everything looks good, I'm publishing an update (5.0.1. android only for now), which should improve the error message.

 

Please post the error when you get the app update, it should be available in an hour or so.

Here you go below.

 

Perhaps https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted ?

 

I am running Android 11 on Pixel 3A.

 

image.thumb.png.6b5eaf128241c99d28c44aada3f9ec2b.png

Edited by fireplex
Link to comment
12 hours ago, jbrodriguez said:

Yep, that flag got lost in the rewrite. I put it back in 5.0.2, hopefully that solves the issue.

 

I've published 5.0.2 on both stores, it will take a while longer on the App Store (probably overnight).

5.0.2 fixed my inability to add any servers to the app with the Object Object error.

Link to comment
12 hours ago, jbrodriguez said:

Yep, that flag got lost in the rewrite. I put it back in 5.0.2, hopefully that solves the issue.

 

I've published 5.0.2 on both stores, it will take a while longer on the App Store (probably overnight).

 

Thanks, all working fine now.

 

Love the new look, well done !

Link to comment

UnRaid 6.7.0 iOS 14.1 ControlR Version 5.0.0 and 5.0.2 

Discovery didn’t work for me but manually adding worked. When using the sleep function it prompted the using mover function, thought it was just a typo clicked it anyways and it was just using the mover command :D. Would really be nice if that error could be fixed. 

Link to comment
21 minutes ago, Slainor said:

When using the sleep function it prompted the using mover function

Thanks a lot for the heads up !!! I'll take a look at the code.

 

21 minutes ago, Slainor said:

Discovery didn’t work for me but manually adding worked

Did you allow the permissions the app requested ? What this screen does is ping for servers using avahi/mDNS/zeroconf request and that is baked in and on by default on Unraid servers.

wgstarks also reported the same issue, so I'm not really sure yet why it wouldn't detect online servers.

Link to comment
3 minutes ago, jbrodriguez said:

wgstarks also reported the same issue, so I'm not really sure yet why it wouldn't detect online servers

Doesn’t timeout either.

 

I hunted through the UnRAID settings but don’t see one for mDNS/avahi. I know that protocol is working elsewhere on my network, printer uses it.

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.