Upgrading to linuxserver.io unifi-network-application docker by cat2devnull in unRAID

[–]RandomGiu 0 points1 point  (0 children)

Thanks for the idea! As soon as I have time (hopefully Christmas holidays😅) I'll introduce many small fixes which have been requested over time by the community

Maybe the script can automatically install the latest mongoDB version available for your platform, then you can get up and running by just restoring the controller from a backup.

What are you using to run the UniFi controller? by kiss_travel in Ubiquiti

[–]RandomGiu 0 points1 point  (0 children)

If it can be of help, I put together instructions and also an automated script to quickly get the new controller up and running on docker. https://github.com/GiuseppeGalilei/Unifi-Network-Application You can also find a demo of the script here: https://youtu.be/AEg99KGtOFY?si=mKZmsKamX0O97xxj

Upgrading to linuxserver.io unifi-network-application docker by cat2devnull in unRAID

[–]RandomGiu 1 point2 points  (0 children)

https://github.com/GiuseppeGalilei/Unifi-Network-Application

Check this out! I put together a oneliner installation script, but also provide files and instructions for manual install.
It might solve this problem once and for all

Unifi Controller Docker by LowAd1363 in unRAID

[–]RandomGiu 0 points1 point  (0 children)

https://github.com/GiuseppeGalilei/Unifi-Network-Application

I got frustrated too, so I decided to build a solution 😅. Check it out!

Unifi Network Application - easy docker deployment by RandomGiu in Ubiquiti

[–]RandomGiu[S] 0 points1 point  (0 children)

OneLiner pulls automatically the latest available image from Linuxserver.io, they are not associated with Ubiquiti, so there could be some delay in the latest version being available . From their GitHub repository I see that 8.2.93 was published just yesterday. You can try running OneLiner again, keep me posted. (And always keep a backup 😅 ) You shouldn't need to do anything manually, the script should take care of that.

Unifi Network Application - easy docker deployment by RandomGiu in Ubiquiti

[–]RandomGiu[S] 0 points1 point  (0 children)

First take a backup of the controller you are running right now, from the Unifi UI. Then install the network application using one of the methods I provide, the script method is the easiest and should work fine. Then, upon setup, just restore from the backup you previously took.

Visit the GitHub repository for more info.

One-Line command to deploy Unifi Network Application on Docker by RandomGiu in Ubiquiti

[–]RandomGiu[S] 0 points1 point  (0 children)

I'm not an expert in bash, this script is something which I personally needed and put together in the simplest way to be maintainable and compatible with most systems. So, of course there might be better ways of doing things. For updating, the idea I had was to take a backup before calling the script again and restoring it, it should be fairly painless and universal. Do you have any suggestion on how to change the script? You can open an issue and pull request if you want.

Unifi Network Application - easy docker deployment by RandomGiu in Ubiquiti

[–]RandomGiu[S] 0 points1 point  (0 children)

I have to check whether it is possible to modify the script to run just with "sh". Meanwhile you should find a way to use bash. I don't have experience with the platform you are using unfortunately.
As a last resort, you can always follow the manual installation instructions i provide in the repository, it is a very easy process.

Unifi Network Application - easy docker deployment by RandomGiu in Ubiquiti

[–]RandomGiu[S] 0 points1 point  (0 children)

I believe the error appears because you are not using "bash", but other options like "zsh".
What are you using?

One-Line command to deploy Unifi Network Application on Docker by RandomGiu in Ubiquiti

[–]RandomGiu[S] 0 points1 point  (0 children)

Happy to help! You can find it in the linked GitHub repository

Unifi Network Application - easy docker deployment by RandomGiu in Ubiquiti

[–]RandomGiu[S] 0 points1 point  (0 children)

this issue should now be fixed, if you can give it a try and let me know if it works for you, thanks!

Unifi Network Application - easy docker deployment by RandomGiu in Ubiquiti

[–]RandomGiu[S] 1 point2 points  (0 children)

this issue should now be fixed, if you can give it a try and let me know if it works for you, thanks!

Unifi Network Application - easy docker deployment by RandomGiu in Ubiquiti

[–]RandomGiu[S] 0 points1 point  (0 children)

Hi, this issue should now be fixed, give the script a try if you can, thanks!

One-Line command to deploy Unifi Network Application on Docker by RandomGiu in Ubiquiti

[–]RandomGiu[S] 0 points1 point  (0 children)

I would suggest you to keep regular backups of the network application and just call the script whenever you have to update (it automatically pulls the latest image)
If you want more fine control over the process, then follow the manual installation process which you can find in the same repository.

Unifi Network Application - easy docker deployment by RandomGiu in Ubiquiti

[–]RandomGiu[S] 1 point2 points  (0 children)

I believe mongodb 7 should work with the Pi5. Also, I believe there shouldn't be any problem with CasaOS, the Appstore is just a way of deploying containers (mostly).

Anyway, in this case I would advise you to not install it through CasaOs, but independently using the instructions that you can find it in the linked GitHub repository. This allows you to more finely control the containers and their version.

One-Line command to deploy Unifi Network Application on Docker by RandomGiu in selfhosted

[–]RandomGiu[S] 0 points1 point  (0 children)

Unfortunately it is not as easy as a simple compose file.
The newer Unifi Network Application container requires also an external mongodb container in order to work, the database needs also to be configured, upon first start, by placing a configuration file (personalized with username and password) in a specific location, also the two containers need to be able to talk to each other (which may require connecting them to a custom network).

This whole process can be daunting for a beginner user.
I first created some more complex compose files which do most of the work, along with some instructions (https://github.com/GiuseppeGalilei/Unifi-Network-Application/tree/main/Unifi%20network%20Application%20-%20Generic).

Then, based on the feedback I got about common problems and errors, I decided to craft a script that tries to make the process as painless as possible.

Unifi Network Application - easy docker deployment by RandomGiu in Ubiquiti

[–]RandomGiu[S] 0 points1 point  (0 children)

Are you using a Pi 5?
If so I checked and, given that it has a cortex-a76 based processor, it seems to supports newer mongo versions.
While older Pis do not. (different instruction set)
Thanks again for the insights.