Hello <@U01PL2YSG8L>, <@U01NZ4D0LDD>, We do have ...
# community-help
n
Hello @Kishore Nallan, @Jason Bosco, We do have a self-hosted Typesense server v0.25.2 which is installed as a linux service and we want to upgrade it to v29 to take advantage of new features. But we're afraid that we might face some issues in upgrade, so we want to know the more details on below points • Steps to to downgrade the typesense service. • How we can know the status of backup of on-disk database (using Snapshot API endpoint). Thanks in advanced šŸ™‚
f
Hey Nayan, You should always snapshot and backup your data before performing any operation that will close the Typesense service. The Snapshot API will respond with a
{"result": "success"}
message if the snapshot operation is successful. You can always use
ls
to see if it correctly generated the files needed to re-index everything after updating. You can follow our backing up and restoring the data from disk guide: https://typesense.org/docs/guide/backups.html#backup-steps. You can use a docker service to always pull the exact hash of the GA build you're currently on, instead of relying on your distro's package manager to manage Typesense versions.
n
Thanks @Fanis Tharropoulos for responding to the backup query using Snapshot API. Actually we're running the Typesense server as a linux service on Production as well and we're not planning to migrate it to host it on docker container. So for now if we want to downgrade the typesense service if something goes wrong in latest version (v29) then can we downgrade it by: • Uninstalling the latest Typesense service and install the service version to which we want to downgrade OR • Directly installing the downgraded version and it will replace the typesense service's binaries and then it will boot up successful. @Fanis Tharropoulos, @User, @User: It would be great if you can provide clarifications for the downgrading typesense linux service. Thanks in advanced.
f
It depends on the Linux distribution you're using, and more importantly, its package manager.
n
@Fanis Tharropoulos, @Kishore Nallan, @Jason Bosco: The distribution is Ubuntu and package manager is apt - If you have any experience and share any details for downgrading typesense linux service it would be much helpful.
f
The Ubuntu / Debian version for Typesense is a
.deb
package. It's not part of the official apt repository and there's no PPAs to add. You can change the version number in the download link and you're going to download a different a version.
n
Thanks for sharing that @Fanis Tharropoulos. I've gone though the upgrade documentation. So, if I follow that correctly the downgrade process is same (Download the .deb package which we want to downgrade to > then install it and restart the typesense service) right? - This is just to make sure that we have steps to downgrade typesense linux service to lower versions if needed. This would be much helpful.
@Kishore Nallan, @Jason Bosco: If you can provide some clarification, that would be more helpful to us: The downgrade process is same (Download the .deb package which we want to downgrade to > then install it and restart the typesense service) right? - This is just to make sure that we have steps to downgrade typesense linux service to lower versions if needed.
j
That's correct.
The only thing to watch out for is that once upgrading, some versions can't be rolled back too far down.
This is noted in the release notes for each version, so you want to pay extra attention to that.
n
Thank you @Jason Bosco for the clarification regarding the downgrading process of typesense linux service installed on Ubuntu. This information will help us a lot. I appreciated prompt response šŸ™‚
šŸ‘ 1
j
Happy to help!
šŸ™‚ 1