ControlR (Android/iOS app for unRAID)


Recommended Posts

54 minutes ago, jbrodriguez said:

Thanks, the app 'reads' from unassigned.devices, so it's now the primary suspect for the crash :)

 

I'm unable to replicate the issue though on my server (6.8.3) with unassigned.devices installed, but I don't have any actual unassigned device.

 

Can anyone having problems run the support script on their server ?

 

Here's how to do it

 

This will hopefully help me track down the root cause.

 

I ran the script but there isn't any zip file in /boot.

root@Brunnhilde:/boot# ls
EFI-/         FSCK0002.REC      bzfirmware         bzimage.sha256    bzroot             bzroot.sha256  controlrs/   ldlinux.sys  make_bootable.bat    memtest                rotv.sh          sensors-detect.pl
FSCK0000.REC  IPMICFG/          bzfirmware.sha256  bzmodules         bzroot-gui         changes.txt    custom/      license.txt  make_bootable_linux  preclear_disk\ old.sh  scripts/         syslinux/
FSCK0001.REC  REDFISH_X10_352/  bzimage            bzmodules.sha256  bzroot-gui.sha256  config/        ldlinux.c32  logs/        make_bootable_mac    previous/              scripts_unused/  syslinux.cfg-
root@Brunnhilde:/boot# 

 

 

Here's the entire result-

root@Brunnhilde:/tmp# curl -fsSL -o support https://raw.githubusercontent.com/jbrodriguez/controlr-support/master/support
root@Brunnhilde:/tmp# chmod +x support
root@Brunnhilde:/tmp# ./support
ControlR support script starting ...
Enter server name/address [Tower]: localhost
Enter server port [80]: 443
Enter protocol [http]: https
Server password [none]: 
/tmp/controlrs /tmp
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   138  100   138    0     0  23000      0 --:--:-- --:--:-- --:--:-- 23000
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  121k    0  121k    0     0   457k      0 --:--:-- --:--:-- --:--:--  457k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 68675    0 68675    0     0   638k      0 --:--:-- --:--:-- --:--:--  632k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 65609    0 65609    0     0   167k      0 --:--:-- --:--:-- --:--:--  167k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to localhost port 2382: Connection refused
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 35634    0 35634    0     0   331k      0 --:--:-- --:--:-- --:--:--  331k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1552    0  1552    0     0   4688      0 --:--:-- --:--:-- --:--:--  4688
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3285  100  3285    0     0   534k      0 --:--:-- --:--:-- --:--:--  534k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7381  100  7381    0     0  1201k      0 --:--:-- --:--:-- --:--:-- 1201k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7100  100  7100    0     0   990k      0 --:--:-- --:--:-- --:--:--  990k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   485  100   485    0     0  80833      0 --:--:-- --:--:-- --:--:-- 80833
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   206  100   206    0     0  34333      0 --:--:-- --:--:-- --:--:-- 34333
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3285  100  3285    0     0   534k      0 --:--:-- --:--:-- --:--:--  534k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1852    0  1801  100    51  58096   1645 --:--:-- --:--:-- --:--:-- 59741
/tmp
updating: controlrs/ (stored 0%)
  adding: controlrs/udev.json (deflated 67%)
  adding: controlrs/disks.ini (deflated 82%)
  adding: controlrs/var.ini (deflated 56%)
  adding: controlrs/cpuload.ini (deflated 67%)
  adding: controlrs/users.ini (deflated 52%)
  adding: controlrs/shares.ini (deflated 86%)
  adding: controlrs/vms65.html (deflated 51%)
  adding: controlrs/docker65.html (deflated 89%)
  adding: controlrs/vms.html (deflated 69%)
  adding: controlrs/docker.html (deflated 69%)
  adding: controlrs/dashboard.html (deflated 76%)
  adding: controlrs/index.html (deflated 39%)
ControlR support script finished
Please send controlr.zip to the support email

 

Link to comment
Posted (edited)
8 minutes ago, wgstarks said:

How do I download from /tmp so I can email it?

So that's why I pointed to /boot :)

 

There are a couple of options

- From unraid terminal

cp /tmp/controlr.zip /boot/controlr.zip

after that you can access the zip file as it is in your flash drive

 

- From your PC

cd <any folder you want>
scp <unraid-server>:/tmp/controlr.zip .

For scp, you should use the same syntax as for ssh

 

Edited by jbrodriguez
Link to comment
5 minutes ago, jbrodriguez said:

So that's why I pointed to /boot :)

 

There are a couple of options

- From unraid terminal

cp /tmp/controlr.zip /boot/controlr.zip

after that you can access the zip file as it is in your flash drive

 

- From your PC

cd <any folder you want>

scp <unraid-server>:/tmp/controlr.zip .

For scp, you should use the same syntax as for ssh

 

root@Brunnhilde:~# cp /tmp/controlr.zip /boot/controlr.zip
bash: gcp: command not found

🙁

Link to comment
2 minutes ago, wgstarks said:

bash: gcp: command not found

mmm not sure about that, why would it change cp to gcp ?

That looks like gnu core utils from a macOS install, not sure what they're doing in Unraid :)

 

Try 

/usr/bin/cp /tmp/controlr.zip /boot/controlr.zip

 

Link to comment

Thanks wgstarks !

 

I'm able to add the simulated server normally.

 

There's unassigned.devices data in the zip file, so you have the plugin and some unassigned devices.

 

I'm unable to figure it out at the moment, I'll have to dig deeper.

 

screen.thumb.jpg.f6e35572e00e3f193511b3a2324e6981.jpg

Link to comment

UPDATE: I'm still unable to replicate the error.

 

I upgraded my server to 6.9.2 and tried different scenarios, but I'm still getting into my server.

 

Now, I'd like to try something else.

 

If you have the issue and you're on Android, can you send me a dm ? I want to try a new approach.

Link to comment

UPDATE:

@Dantheman has been helping me troubleshoot the issue, along with another user that contacted me via email (don't know your forum handle :))

 

It's a very weird bug, because I absolutely cannot replicate it locally, but I can see a soft crash in the logs, which is quite elusive at the moment.

 

We're still testing, let's see how it goes.

Link to comment

UPDATE:


We found the root cause of the issue !!! 🙌

 

Can't thank enough @Dantheman and Peter (don't have his handle), for the patience and willingness to help me test and troubleshoot.

 

Thank you !!!!

 

The root cause is what I had originally thought: Unassigned Devices changed its api in a recent release and that broke the app 😮 😀

 

I'll be publishing a new release to both stores in the coming hours, although Apple Store generally takes longer to review than Google Store.

 

I'll post back when they're available.

  • Thanks 2
Link to comment
Posted (edited)

UPDATE:

 

ControlR iOS is now available on the App Store (give it some time for the rollout to reach your region)

ControlR Android is in review, but should become available shortly now available on the Play Store (give it some time for the rollout to reach your region)

 

🙌

Edited by jbrodriguez
  • Like 1
Link to comment
  • 1 month later...
Posted (edited)

I'll be releasing an app upgrade very soon™, which brings some breaking changes, so I wanted to give everyone a quick heads up:

 

- Requires iOS 11+, dropping support for iOS 9 and 10

This is due to enhancements that will be listed in the release post

Android has no change at the moment (Android 5+, API level 21), but this may change in a future release

 

- Changes in app permissions

The app will request some additional permissions, related to security features, due to a change in how servers data is stored locally

 

- User permission system is deprecated

Unraid is basically a single user system (root), creating user permission on top of it is cumbersome

The controlr plugin still presents the ui interface to set permission for dockers and vms, but this will change in an upcoming release

 

- Some settings have been deprecated

Timeouts when adding servers, how to detect if a server is online or not, background refresh are no longer available due to enhancements, changes in logic and analysis of most used features

 

These are the most important changes, I'll update the post if I think of something else :)

 

Edited by jbrodriguez
Link to comment

ControlR 5.0.0 is now available on the App Store and Play Store

 

This is a complete overhaul of the app, celebrating a great milestone: the 5 year anniversary of ControlR !!!

 

Among the features, you will find:

- Completely redesigned user experience, supporting the system theme (dark/light), system notch and other device-specific features

- Dockers and Vms have their own page, more real estate to manage them. You can also perform a quick search, useful if you have many dockers/vms.

- Adding a server is now easier, using the avahi(mDNS) service built-in in Unraid servers

- Enhanced privacy: server data is now encrypted with a security key that's stored in each device keychain

- Many other improvements to make the app faster and more responsive

 

Since this version sports a brand new architecture, you will need to re-add your server(s).

As mentioned in my previous post, remember you require iOS 11+ to run the app (for iPhone users).

 

Also, if you're interested in knowing the technologies behind ControlR, make sure to check out my article React Native app built with zustand and tailwind

 

Link to comment
1 hour ago, wgstarks said:

Tried both Discover and Manual, neither seem to work. Just get a spinning wheel. QR code shows that it’s a future feature.

That's odd.

 

if you try manual, it doesn't show any error at all at the top of the page ?

 

In Discover, it never stops spinning ? Never shows your server in the list ?

Link to comment
9 minutes ago, fireplex said:

I can't add my server, keep seeing a weird error as per screenshot.

Screenshot_unraid.thumb.png.49f3035b1f14d15487215fbe90554c43.png

Thanks for the screenshot, I need to improve that error message.

Can you confirm you're not using SSL and your webUI is running on port 80 ?

Link to comment
1 hour ago, wgstarks said:

Discover just keeps spinning.

It has a  timeout of ~5 seconds, so not sure why it keeps spinning ?

You're running it inside your LAN right ?

About the logs, you need to have the ControlR plugin installed, can you confirm you have it running ?

Link to comment
1 hour ago, JohanSF said:

Mine works great. Awesome update! I do miss pull down to refresh though

Thanks for the feedback, I thought I addedd pull down to refresh to screens where it's useful, seems like this one slipped through the cracks, I'll look into it.

Link to comment
11 minutes ago, jbrodriguez said:

It has a  timeout of ~5 seconds, so not sure why it keeps spinning ?

You're running it inside your LAN right ?

About the logs, you need to have the ControlR plugin installed, can you confirm you have it running ?

It was enabled but not running.🤷🏼‍♂️🤷🏼‍♂️🤷🏼‍♂️
Disabled and re-enabled to get it running. Fixed the log issue but discover is still not working.

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.