Skip to content

Mastering n8n Updates on Hostinger VPS: A Step-by-Step Guide

Part of guide: N8N TutorialsDeployment & Scaling

Watch the Video Tutorial

💡 Pro Tip: After watching the video, continue reading below for detailed step-by-step instructions, code examples, and additional tips that will help you implement this successfully.

Table of Contents

Open Table of Contents

Why Hostinger for n8n Self-Hosting? My Two Cents!

Alright, let’s talk about Hostinger. Why do I recommend it for self-hosting n8n? Well, for starters, it’s like the friendly giant of hosting providers. It’s reliable, super easy to use (even for us non-techy folks), and the pricing? Chef’s kiss! It really simplifies setting up and managing a Virtual Private Server (VPS), which is basically your own little slice of the internet where your n8n can live and thrive. They even have dedicated n8n VPS hosting plans, which means they’ve already done some of the heavy lifting to make sure you have the right resources.

Choosing Your Hostinger VPS Plan: Don’t Skimp on the Juice!

When you’re picking a VPS plan, think of it like choosing the right engine for your automation spaceship. You need enough power (resources) for your n8n workflows to run smoothly. Hostinger offers several KVM VPS plans. KVM 2 is usually my go-to recommendation for personal projects or even if you’re doing some intermediate stuff. Why? Because it gives you a solid 8GB of RAM and a speedy 100GB NVMe disk space. That’s plenty of room and power for n8n to stretch its legs and run those complex workflows without breaking a sweat.

The image shows a Hostinger webpage promoting VPS hosting. The main content area highlights "Up to 67% off n8n VPS hosting" and lists features like "Multiple apps. One place. No code", "Free automatic weekly backups", "Malware scanner", and "Kodee AI assistant". A price of "US$ 6.99 /mo" is displayed with a purple "Choose your plan" button below it. A guarantee of "30-day money-back guarantee" is also visible. On the right, there's a graphic with interconnected circles, resembling a workflow or process, and text indicating "Weekly automated backups are enabled". The video presenter is visible in a small inset at the bottom right.

The image displays the Hostinger website, specifically the VPS hosting plan selection page. Four different KVM VPS plans are presented in columns: KVM 1, KVM 2, KVM 4, and KVM 8. Each column shows the original price, a discounted price, and the monthly cost for a 24-month term. KVM 2 is highlighted as "MOST POPULAR" with a price of "US$ 6.99 /mo" and a "SAVE 67%" badge. Below each plan, detailed specifications are listed, including CPU cores, RAM, NVMe disk space, bandwidth, data centers, and operating systems (Linux). A "Choose plan" button is present under each option. The video presenter is visible in a small inset at the bottom right.

Applying Discount Codes: Who Doesn’t Love a Deal?

Here’s a little secret: Hostinger is often running sales! Always, always, always look for coupon codes. A little code like ‘AIWORKSHOP’ (or whatever the latest one is) can often snag you an extra 10% off. Every penny saved is a penny you can spend on, well, more automation tools, right? Or coffee. Definitely coffee.

The image displays a Hostinger website interface, specifically the 'Your cart' page for a VPS hosting plan. The main section shows 'KVM 2' with a '24 months' period selected, indicating a saving of 'US$ 264.00' and a monthly price of 'US$ 6.99/month'. On the right, a 'Subtotal' of 'US$ 167.76' is shown with a 'Discount -61%' and '-US$ 264.00'. Below this, there's a 'Have a coupon code?' section with an input field labeled 'AI WO' and an 'Apply' button. A large overlay text 'Discount Code: AIWORKSHOP' is prominently displayed in green, partially obscuring the 'Select server location' section. The bottom part of the screen shows options for 'Select operating system' with 'Plain OS', 'OS With Panel', and 'Application' tabs, and icons for 'AlmaLinux' and 'Debian'. A man is visible in the bottom right corner, looking at the screen.

Location and Billing Setup: Where in the World is Your Server?

During checkout, you’ll get to pick your server’s location. Hostinger is pretty smart; it’ll usually suggest the closest one to you for the best performance. But if your audience or your data is primarily in another part of the world, you can totally pick a server closer to them. Once you’ve got your location sorted, double-checked your billing details, and made sure that sweet discount code is applied, you’re ready to hit that payment button. You’re almost there!

The image shows the Hostinger website's 'Your cart' page, focusing on the 'Select server location' dropdown menu. The dropdown is open, displaying a list of regions under 'North America' and 'Europe', each with a corresponding latency in milliseconds. 'United States - Phoenix' is selected with 'Best latency 31 ms'. The right panel shows the 'Subtotal' as 'US$ 160.98' with a 'Discount -61%' and '-US$ 264.00', and an 'AIWORKSHOP -10%' discount of '-US$ 16.78' applied, indicated by '✓ Coupon code applied'. Below the server location, there are operating system options like 'Rocky Linux', 'Ubuntu', 'Alpine Linux', 'Arch Linux', 'CentOS', and 'CloudLinux'. A man is visible in the bottom right corner, looking at the screen.

The image displays the Hostinger website's checkout page, specifically the 'Billing address' section. The page is divided into two main columns. The left column contains input fields for 'First name', 'Last name', 'Phone number' (with '+1 (United States)' selected), 'Country of residence*' (with 'United States' selected), 'Address*', 'City*', 'State*', and 'Zip code*'. The 'State*' field shows 'Oregon' selected. A 'Continue' button is at the bottom of this section. The right column shows the 'Order summary' for 'KVM 2', a '24 months plan', with a subtotal of 'US$ 150.98', a '-61%' discount, and an 'AIWORKSHOP -10%' discount of '-US$ 16.78'. It also notes 'Taxes Calculated after you provide your billing address'. The 'Estimated total' is 'US$ 150.98'. A '✓ Coupon code applied' message is visible with 'AIWORKSHOP' listed. A man is visible in the bottom right corner, looking at the screen.

Initial n8n Setup on Hostinger: Easy Peasy!

Once your VPS is ready – think of it as your digital land being prepped for building – Hostinger makes installing n8n surprisingly simple. They have this super handy feature where you can select n8n as an application template. What does that mean? It means Hostinger automatically installs n8n for you on an Ubuntu environment. Ubuntu is just a type of operating system, like Windows or macOS, but for servers. You’ll also set a root password for your VPS, which is like the master key to your server, so keep it safe!

The image displays a Hostinger control panel interface with a modal window open in the center. The modal is titled "n8n" and indicates "Build on Ubuntu 24.04" with a "Popular" tag. Below the title, there is a description of n8n as an open-source workflow automation tool. The modal also contains links for "Quick start guide," "Documentation," and "Forum." At the bottom right of the modal, there are two buttons: "Cancel" and "Select." Behind the modal, the Hostinger interface shows a section to "Select your preferred" operating system, with a search bar labeled "Search OS" and a visible option for "n8n" with a small n8n logo. A man is visible in the bottom right corner of the screen, looking towards the interface.

The image shows a Hostinger control panel interface with a section for setting up login credentials. The main heading reads "You're Doing Great! Almost There...". Below this, there's a section to "Create root password" for logging into the VPS. An input field for "Enter root password" is visible with a masked password. Password requirements are listed with checkmarks: "One number," "One lowercase letter," "One uppercase letter," "Only symbols - !@#$%^&*()_+", "Use 12-50 characters," and "Use Latin letters." All requirements are checked except for "One number" and "One lowercase letter," which have red 'x' marks. Further down, there's a section for "Your VPS hostname" with an input field showing "srv877982.hostngr.cloud" and an option to "Add an SSH key." A purple "Continue" button is at the bottom. A man is visible in the bottom right corner of the screen, looking towards the interface.

After this initial setup, you’ll land on your Hostinger VPS dashboard. This is your command center! From here, you can manage your n8n application and, crucially for us, access the browser terminal. The browser terminal is where we’ll be doing all the cool command-line stuff, so get ready to feel like a hacker (the good kind!).

The image shows the Hostinger VPS management dashboard, specifically the 'Overview' section. The main panel displays information about the n8n application, indicating it's "Build on Ubuntu 24.04" and has a "Manage App" button. There's also a link to "Learn how to use n8n." Below this, details about the VPS are shown, including "Ubuntu 24.04," "KVM 2" with a "Running" status, and "Root access" information (ssh.root@178.16.141.21). A "Reboot VPS" button is present. A section for "Awaiting Server Usage Data" indicates that data will be available in 30 minutes. Further down, there are summary cards for "SSH key," "Firewall rules," "Snapshot & backups," and "Malware scanning." The bottom left shows "Upgrade to automated daily backups" with a cost of "US$ 6.00 /mo." A man is visible in the bottom right corner of the screen, looking towards the interface.

Updating n8n on Your Hostinger VPS: The Main Event!

Alright, this is why we’re all here! Whether you’re doing an immediate update right after installation or upgrading to a brand-spanking-new version of n8n, the process is pretty much the same. And guess what? We’re doing it all through that Hostinger browser terminal I just mentioned. It’s basically a command-line interface (CLI) right in your browser, no fancy software needed on your end.

Accessing the Browser Terminal: Your Gateway to the Matrix!

From your Hostinger VPS dashboard, look for something that says ‘Browser terminal’. Click it! A new tab will pop open, and you’ll see a command-line interface. It might have some text already there; don’t worry about it. Just type clear and hit Enter. This just tidies up the screen, giving you a fresh slate to work on.

The image shows a split screen with a web browser interface on the left and a terminal window on the right. The terminal window, labeled 'Hostinger VPS Web Terminal', displays command-line output related to an Ubuntu server, including system information like load, memory usage, and pending updates. A male presenter is visible in the bottom right corner, looking towards the screen. The browser on the left shows tabs for 'Overview | Hostinger' and 'Hostinger VPS Web Terminal'.

Step-by-Step Update Process: Follow My Lead!

Now, for the main event! We’re going to run a few commands. Don’t be intimidated; I’ll explain what each one does. Just type them in exactly as you see them and hit Enter after each one. Ready?

  1. Install Docker: Okay, first things first. n8n on Hostinger often runs inside something called Docker. Think of Docker as a magical shipping container for software. It packages n8n and all its dependencies into one neat bundle, making it super easy to run and update without messing up your server. If Docker isn’t already installed (it usually is if you used the n8n template, but it’s good to check!), we’ll install it using its official script. You typically only need to do this step once in your VPS’s lifetime.

    curl -fsSL https://get.docker.com | sh

    What to expect: You’ll see a bunch of text scrolling by as Docker gets installed. If it’s already installed, it might just say something like “Docker is already installed.” No worries, just move on.

    The image displays a split screen. On the left, a web page titled 'How to Update n8n' from 'skool.com' shows a list of steps for updating n8n, including instructions for installing Docker and deploying the n8n image. On the right, a terminal window is active, showing a command being executed: 'curl -fsSL https://get.docker.com | sh'. A male presenter is visible in the bottom right, looking at the screen. The browser on the left has tabs for 'My workflow 17 - n8n' and 'How to Update n8n'. The right browser tab is 'Hostinger VPS Web Terminal'.

  2. Enable Docker to Start on Reboot: Imagine your server needs to restart for some reason (maybe a Hostinger update, or you manually reboot it). We want Docker to automatically fire up when that happens, so n8n comes back online without you having to do anything. This command makes sure Docker is enabled to start automatically.

    systemctl enable --now docker

    What to expect: You might see output like Created symlink /etc/systemd/system/multi-user.target.wants/docker.service -> /lib/systemd/system/docker.service. This just means it successfully created a link to ensure Docker starts up.

    The image shows a split screen with a web browser on the left and a terminal window on the right. The web page on the left, titled 'How to Update n8n', highlights the step 'docker compose pull n8n' in a list of instructions. The terminal on the right displays command-line output, including the execution of 'systemctl enable --now docker' and 'systemctl daemon-reload', followed by a prompt. A male presenter is visible in the bottom right corner, looking towards the screen. The browser on the left has tabs for 'My workflow 17 - n8n' and 'How to Update n8n'. The right browser tab is 'Hostinger VPS Web Terminal'.

  3. Download the Latest n8n Docker Image: Now, we’re telling Docker to go out to the internet (specifically, to Docker Hub, which is like a giant app store for Docker images) and grab the newest version of n8n. This doesn’t run n8n yet; it just downloads the latest blueprint.

    docker compose pull n8n

    What to expect: You’ll see messages like Pulling n8n (n8n/n8n:latest)... and then Status: Downloaded newer image for n8n/n8n:latest. This means it’s successfully pulled the latest version.

  4. Safely Stop and Remove Existing n8n Container: Before we can run the new n8n, we need to gracefully shut down the old one. Think of it like swapping out an old engine for a new, shinier one. This command stops the currently running n8n container and removes it. Don’t worry, your data (workflows, credentials) is usually stored in a separate place called a Docker volume (like a persistent hard drive for your container), so it’s safe.

    docker compose down

    What to expect: You’ll likely see output like Stopping root-n8n-1 ... done and Removing root-n8n-1 ... done. This confirms the old container is stopped and removed.

    The image displays a split screen, with the left side showing a web page titled "AI Workshop" with a search bar and navigation elements. The right side shows a terminal window with a dark background, displaying command-line output related to Docker and n8n. A person is visible in the bottom right corner, looking at the screen. The terminal output shows commands like 'docker compose pull n8n' and 'docker compose down', indicating a process of updating or managing n8n. The web page on the left appears to be a community or learning platform.

  5. Deploy n8n Using the Newly Pulled Image: This is the grand finale! We’re now telling Docker to start up a new n8n container, using that fresh, new blueprint we just downloaded. The -d flag means it will run in “detached” mode, which just means it runs in the background so you can close your terminal without stopping n8n.

    docker compose up -d

    What to expect: You should see something like Creating root-n8n-1 ... done. This means your new, updated n8n container is spinning up!

    The image shows a split screen, with a web page on the left side displaying instructions for updating n8n, and a terminal window on the right side. The terminal output indicates that Docker containers, specifically 'root-trafik-1' and 'root-n8n-1', have been removed and new ones created. The commands 'docker compose up -d' are visible, suggesting the deployment of new images. A person is visible in the bottom right, observing the screen. The overall scene depicts a technical demonstration.

Confirming n8n is Running and Checking Version: Did it Work?

After all that command-line magic, let’s make sure everything is humming along nicely and that you’re indeed running the latest version. It’s like checking the dashboard after a software update.

  1. Confirm n8n is Running: This command lists all the Docker containers that are currently running on your server. You should see your n8n container listed with a “running” status.

    docker compose ps

    What to expect: You’ll see a table. Look for a row with root-n8n-1 (or similar) under the NAME column and Up under the STATUS column. If it says Up, you’re golden!

  2. Check n8n Version: This command dives into your running n8n container and asks it directly: “Hey n8n, what version are you?” It’s the definitive way to confirm your update was successful.

    docker exec -it root-n8n-1 n8n -v

    What to expect: You’ll see a version number, like 1.39.1 or 1.40.0. This should match the latest n8n version you intended to update to. If it does, you’ve nailed it!

    The image shows a split screen, with a web page on the left providing instructions for updating n8n, and a terminal window on the right displaying command-line output. The terminal shows the execution of 'docker compose ps' which lists running Docker containers, including 'root-n8n-1' and 'root-trafik-1', along with their status and ports. Below this, a command 'docker exec -it root-n8n-1 n8n -v' is being typed, likely to check the n8n version. A person is visible in the bottom right, observing the screen. The scene demonstrates the final steps of verifying the n8n update.

    The image displays a software interface, likely a workflow automation tool, with a sidebar on the left showing a notification about an outdated version. The main area is a blank canvas for building workflows. A pop-up window in the bottom left corner shows 'Version 1.91.1' and 'Released 10 hours ago', with a button to update. A man is visible in the bottom right corner, looking towards the screen. The browser tabs at the top indicate 'My workflow 17 - n8n' and 'How to Update n8n on Hostinger'.

Accessing Your Updated n8n Instance: Time to Automate!

Congratulations, you’ve successfully updated your n8n! Now, let’s go check it out. Head back to your Hostinger dashboard. You should see a button or link that says ‘Manage App’ for n8n. Click it!

If this is your very first time accessing n8n, you’ll go through a quick setup to create your administrator account. Otherwise, you’ll just log in as usual. And just like that, you’re back in the saddle, ready to create and manage all your amazing workflows with the latest and greatest n8n features. How cool is that?

The image shows the Hostinger VPS web panel interface. The left sidebar displays navigation options like 'Main menu', 'Overview', 'Kodee AI assistant', 'OS & Panel', 'Backups & Monitoring', 'Security', 'API New', 'DNS Manager', and 'Tutorials'. The main content area is an 'Overview' dashboard for a VPS. It shows details for 'n8n' built on 'Ubuntu 24.04' with a 'Manage App' button. Below, it displays 'Ubuntu 24.04', 'KVM 2', 'Running', 'Root access', 'ssh root@178.16.141.21', 'Root password', 'Change', and 'Reboot VPS'. There's a section for 'Server Usage Data' and other options like 'SSH key', 'Firewall rules', 'Snapshot & backups', and 'Malware scanner'. A man is visible in the bottom right corner, looking at the screen.

The image is a screenshot of the Hostinger VPS web panel, identical to the previous image, showing the 'Overview' dashboard. The left sidebar lists navigation options such as 'Main menu', 'Overview', 'Kodee AI assistant', 'OS & Panel', 'Backups & Monitoring', 'Security', 'API New', 'DNS Manager', and 'Tutorials'. The main section displays information about 'n8n' running on 'Ubuntu 24.04', with a prominent 'Manage App' button. Details about the Ubuntu 24.04 KVM 2 instance, including its running status, root access SSH details, and options to change root password or reboot VPS, are visible. Sections for 'Server Usage Data', 'SSH key', 'Firewall rules', 'Snapshot & backups', and 'Malware scanner' are also present. The bottom right corner shows a man speaking, looking towards the screen.

Required Resources List and Cost-Benefit Analysis: Show Me the Money (and the Value!)

Let’s break down what you need and why self-hosting n8n on Hostinger is such a smart move, especially when you compare it to managed cloud services.

Resource Checklist: What You’ll Need

ItemDescriptionEstimated Cost (Monthly)Notes
Hostinger KVM 2 VPS2 vCPU, 8GB RAM, 100GB NVMe SSD, 8TB BandwidthUS$ 6.99 (with discount)This is my sweet spot recommendation for most personal and intermediate users. It’s got enough oomph!
DockerContainerization platform (pre-installed with n8n app)FreeDocker is the magic behind the scenes that makes n8n run so smoothly.
n8n ApplicationWorkflow automation toolFree (open-source)Yes, the self-hosted version is completely free! That’s a huge win.
Internet ConnectionStable internet for managementN/AYou already have this, right?

Cost-Benefit Analysis: DIY Self-Hosting vs. Commercial n8n Cloud

This is where the rubber meets the road. Why go through the “trouble” of self-hosting when there are commercial n8n cloud options? Let’s compare, shall we?

Feature/AspectDIY Self-Hosting (Hostinger VPS)Commercial n8n Cloud (Paid Plan)
Upfront CostLow (VPS plan subscription)Varies (monthly/annual subscription)
Monthly Cost~$7 - $20 (VPS cost)~$20 - $100+ (based on usage/features)
Control & CustomizationFull root access, complete control over environmentLimited by provider’s offerings
ScalabilityManual/requires VPS upgradeOften automatic, tiered plans
MaintenanceManual updates, security patching, monitoringHandled by provider
Data PrivacyData resides on your chosen VPS, full controlDependent on provider’s data policies
Learning CurveModerate (requires terminal commands)Low (web-based interface)
ReliabilityDependent on VPS provider & your maintenanceHigh (managed by n8n team)
Backup SolutionsManual or paid Hostinger add-onOften included in higher tiers

See? While there’s a bit more hands-on work with self-hosting, the cost savings and the sheer amount of control you get are huge. It’s like owning your own car versus always taking a taxi.

💡 Critical Best Practice Tips: Don’t Skip These!

Key Takeaways: The TL;DR Version!

Conclusion: You Got This!

Successfully self-hosting and updating n8n on a Hostinger VPS is a huge win. It gives you incredible control over your automation workflows and, more importantly, your data. By following the detailed steps we walked through, you can confidently manage your n8n instance, keeping it up-to-date and running like a well-oiled machine.

Yes, the DIY approach means a bit more hands-on work compared to a fully managed cloud service. But honestly, the cost savings and the complete control you gain are massive advantages. It’s empowering!

So, what are you waiting for? Go forth and apply these methods! Experience the power of self-hosted n8n. And hey, if you found this guide helpful, do me a solid and share it with anyone else who might benefit from mastering their n8n deployments. Let’s automate the world, one workflow at a time!

Frequently Asked Questions (FAQ)

Q: What is a VPS and why do I need it for n8n?

A: A VPS, or Virtual Private Server, is essentially a virtual computer that you rent from a hosting provider like Hostinger. Think of it as having your own dedicated computer in the cloud, but without the physical hardware. You need it for n8n because n8n is a software application that needs a place to run 24/7, and a VPS provides that stable, always-on environment with dedicated resources, unlike shared hosting which might be too restrictive.

Q: My n8n isn’t starting after the update. What should I do?

A: Don’t panic! First, double-check the docker compose ps command output. Is your root-n8n-1 container showing Up? If not, try running docker compose logs to see if there are any error messages that can give you a clue. Common issues include port conflicts (if you have other services running on port 5678) or insufficient resources. You might also try rebooting your VPS from the Hostinger dashboard as a last resort, but always check the logs first!

Q: How often should I update my n8n instance?

A: It’s a good practice to keep your n8n instance relatively up-to-date. n8n releases new versions frequently, often with new features, bug fixes, and performance improvements. I’d recommend checking for updates at least once a month, or whenever you see an announcement for a major new version that has features you want to use. Just remember to back up your workflows before any major update!

Q: Can I use a different VPS provider instead of Hostinger?

A: Absolutely! While this guide focuses on Hostinger because of its user-friendliness and n8n templates, the core Docker commands for updating n8n are universal. As long as your VPS provider allows you to install Docker and gives you command-line access (usually via SSH), you can follow a very similar process. Just make sure to adapt the initial setup steps to your chosen provider’s interface.

Q: What are Docker volumes and why are they important for n8n?

A: Docker volumes are special directories on your host machine (your VPS) that are designed to persist data generated by Docker containers. When you run n8n in a Docker container, all your workflows, credentials, and settings are stored in a Docker volume. This is super important because if you stop, remove, or update your n8n container, your data remains safe and sound in the volume. Without volumes, every time you updated your container, you’d lose all your work! It’s like having a separate, dedicated hard drive for your n8n data that doesn’t get wiped when you reinstall the operating system.


Related Tutorials

Install n8n Locally for Free: Your Guide to Building AI Agents with Docker

Unlock the full potential of n8n for free by installing it locally using Docker. This guide cuts through complex setups, offering a streamlined process that saves you hours of dependency headaches and

HANDBOOK: Deployment And Scaling • DIFFICULTY: ADVANCED

Mastering N8N: A Comprehensive Guide to On-Premise Self-Hosting with Cloudflare Tunnels

Unlock the full potential of N8N by self-hosting it on-premise or in the cloud. This guide provides a step-by-step tutorial, leveraging Cloudflare Tunnels for secure external access, transforming a co

HANDBOOK: Deployment And Scaling • DIFFICULTY: ADVANCED

Seamless n8n Updates on Docker Desktop: A Data-Safe Guide

Learn how to update your n8n instance on Docker Desktop without losing any data. This comprehensive guide covers stopping containers, managing images, and reconfiguring your new n8n environment for a

HANDBOOK: Deployment And Scaling • DIFFICULTY: ADVANCED

10 Insane AI Agent Use Cases in n8n to Reclaim Your Time

Discover 10 powerful AI agent use cases in n8n that can automate up to 80% of your daily tasks, freeing up countless hours and boosting your productivity significantly.

HANDBOOK: Advanced Features • DIFFICULTY: ADVANCED

Unleashing Grok 4: A Deep Dive into XAI's Latest AI Model and Its Integration with n8n

Discover Grok 4, XAI's groundbreaking AI model, and learn how to integrate its advanced capabilities with n8n for smarter, more efficient AI automations. This guide covers Grok 4's benchmarks, key fea

HANDBOOK: Advanced Features • DIFFICULTY: ADVANCED

Automate Viral AI Videos for FREE: n8n + Veo 3 Integration Guide

Discover how to automate viral AI video creation using Google's Veo 3 and n8n, completely for free. This guide provides a step-by-step process to generate, store, and manage AI-generated video content

HANDBOOK: Advanced Features • DIFFICULTY: ADVANCED
Share this post on: