Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with upgrading older version of UISP (1.6.5 --> 2.3.57) #103

Open
rtucker666 opened this issue Feb 22, 2024 · 8 comments
Open

Issue with upgrading older version of UISP (1.6.5 --> 2.3.57) #103

rtucker666 opened this issue Feb 22, 2024 · 8 comments

Comments

@rtucker666
Copy link

Hi Nico640,

Firstly, thanks for coding and hosting this version of UISP, I run this on a docker container inside Linux and it works wonderfully. However I have 2 issues which I need help with, as I'm not very proficient with Github or Docker commands.

Firstly I would like to upgrade my current container instance of UISP to the latest, as it's very old now. I have tried the pull command but can't seem to get to the next step. I have a persistent volume set up, so could you point me in the right direction with some upgrade commands? I have a fully operational and live WISP network so I can't afford to lose the data from the container.

Secondly I would like to move my UISP persistent volume to a different disk as I'm running out of space. Not specifically your realm as not directly associated with the application but wouldn't mind a suggestion here either!

Many Thanks

@Nico640
Copy link
Owner

Nico640 commented Feb 26, 2024

Hi,

do you actually use a docker volume or do you simply mean a local directory that get's passed to the container? Do you use docker compose or did you initially simply start UISP with docker run ...? Can you post the command used for starting / the docker compose file?

A normal update would look something like this:

First of all, make sure to download the latest backup directly from the UISP web interface.

I suggest updating one major version at a time, because Ubiquiti's install script also doesn't allow you to skip major versions as far as I know.

Example for updating without docker compose to 1.7.5 (then 2.2.15, latest)

sudo docker pull nico640/docker-unms:1.7.5
sudo docker stop unms
sudo docker rm unms
docker run -d --name unms -p 80:80 -p 443:443 -p 2055:2055/udp -v </path/to/config>:/config nico640/docker-unms:1.7.5

@rtucker666
Copy link
Author

rtucker666 commented Feb 28, 2024 via email

@rtucker666
Copy link
Author

rtucker666 commented Feb 28, 2024 via email

@Nico640
Copy link
Owner

Nico640 commented Mar 10, 2024

Hi,

im not very familiar with Docker Desktop or Docker Volumes.
If your Docker Desktop installation is using the WSL 2 backend, which you can check in the Docker Desktop settings under Resources, then you should be able to move the whole WSL 2 linux VM to a different location somehow like this: https://dev.to/kim-ch/move-docker-desktop-data-distro-out-of-system-drive-4cg2

If you are not using the WSL 2 backend, then I think you can simply change the location in the Docker Desktop Resources settings, though I am not sure if that will retain the existing data. If not, you might need to export and later import the volume, e.g. https://docs.docker.com/storage/volumes/#back-up-restore-or-migrate-data-volumes (shutdown UISP prior to doing this)

Also, don't forget to download a UISP backup before doing any of this, so that you can always roll back if something goes wrong. Also, because your UISP data seems to be very important, I guess it wouldn't hurt to also export the volume (second link) in addition to downloading a UISP backup, so that there a two separate backups.

@rtucker666
Copy link
Author

rtucker666 commented Mar 11, 2024 via email

@rtucker666
Copy link
Author

rtucker666 commented Dec 11, 2024 via email

@Nico640
Copy link
Owner

Nico640 commented Dec 11, 2024

May be related to #110, can you post the log output here?

@rtucker666
Copy link
Author

rtucker666 commented Dec 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants