{"id":16223,"date":"2025-11-27T06:45:16","date_gmt":"2025-11-27T06:45:16","guid":{"rendered":"https:\/\/kb.cloudhostgeek.com\/docs\/hosting-faq\/n8n-vps-hosting\/how-to-restart-or-update-the-n8n-service\/"},"modified":"2026-02-11T19:01:52","modified_gmt":"2026-02-11T19:01:52","slug":"how-to-restart-or-update-the-n8n-service","status":"publish","type":"docs","link":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/n8n-vps-hosting\/how-to-restart-or-update-the-n8n-service\/","title":{"rendered":"How to restart or update the n8n service?"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"16223\" class=\"elementor elementor-16223\" data-elementor-post-type=\"docs\">\n\t\t\t\t<div class=\"elementor-element elementor-element-afc878b e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"afc878b\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-79e0e75 elementor-widget elementor-widget-text-editor\" data-id=\"79e0e75\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2><strong>Introduction<\/strong><\/h2><p><span style=\"font-weight: 400;\">Running a self-hosted n8n instance on your Virtual Private Server (VPS) requires occasional maintenance. You may need to restart the service to apply configuration changes or update it to access new features and security improvements.<\/span><\/p><p><span style=\"font-weight: 400;\">This guide explains how to safely restart and update n8n using Node.js, PM2, or Docker\u2014ensuring your automation workflows remain secure, stable, and fully functional. For best reliability and performance, running n8n on a dependable VPS such as one from<\/span><a href=\"https:\/\/www.bigcloudy.com\/\"> <span style=\"font-weight: 400;\">BigCloudy<\/span><\/a><span style=\"font-weight: 400;\"> is highly recommended.<\/span><\/p><h2><b>Why Restart or Update n8n?<\/b><\/h2><p><span style=\"font-weight: 400;\">Keeping n8n up to date and properly restarted ensures optimal performance and security.<\/span><\/p><h3><b>1. Apply Configuration Changes<\/b><\/h3><p><span style=\"font-weight: 400;\">Updates to environment variables, authentication settings, or workflow configurations require a restart to take effect.<\/span><\/p><h3><b>2. Maintain Security<\/b><\/h3><p><span style=\"font-weight: 400;\">n8n releases updates that fix bugs and patch vulnerabilities. Regular updates help protect your automation data.<\/span><\/p><h3><b>3. Access New Features and Improvements<\/b><\/h3><p><span style=\"font-weight: 400;\">New versions include additional integrations, workflow enhancements, and performance optimizations.<\/span><\/p><h3><b>Step 1: Identify How n8n Is Running<\/b><\/h3><p><span style=\"font-weight: 400;\">Before restarting or updating, identify how n8n is installed on your VPS:<\/span><\/p><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><b>Node.js Direct Installation<\/b><span style=\"font-weight: 400;\"> \u2013 Installed globally via npm<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><b>PM2 Process Manager<\/b><span style=\"font-weight: 400;\"> \u2013 Running as a managed background service<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><b>Docker or Docker Compose<\/b><span style=\"font-weight: 400;\"> \u2013 Running inside a container<\/span><\/li><\/ul><p><span style=\"font-weight: 400;\">Each setup uses different commands.<\/span><\/p><h3><b>Step 2: Restart n8n<\/b><\/h3><h4><b>Option 1: Node.js Direct Installation<\/b><\/h4><p><span style=\"font-weight: 400;\">If running n8n manually:<\/span><\/p><pre><span style=\"font-weight: 400;\">n8n stop<\/span><\/pre><p><span style=\"font-weight: 400;\">n8n start<\/span><\/p><p><span style=\"font-weight: 400;\">If the process is stuck or running in the background:<\/span><\/p><pre><span style=\"font-weight: 400;\">pkill -f n8n<\/span><\/pre><p><span style=\"font-weight: 400;\">n8n start<\/span><\/p><h4><b>Option 2: Restart n8n Using PM2<\/b><\/h4><p><span style=\"font-weight: 400;\">Restart the PM2-managed service:<\/span><\/p><pre><span style=\"font-weight: 400;\">pm2 restart n8n<\/span><\/pre><p><span style=\"font-weight: 400;\">Check the status:<\/span><\/p><pre><span style=\"font-weight: 400;\">pm2 list<\/span><\/pre><h4><b>Option 3: Restart n8n Using Docker<\/b><\/h4><p><span style=\"font-weight: 400;\">Restart using the container name or ID:<\/span><\/p><pre><span style=\"font-weight: 400;\">docker ps<\/span><\/pre><p><span style=\"font-weight: 400;\">docker restart &lt;container_name_or_id&gt;<\/span><\/p><p><span style=\"font-weight: 400;\">For Docker Compose:<\/span><\/p><pre><span style=\"font-weight: 400;\">docker-compose restart<\/span><\/pre><p><span style=\"font-weight: 400;\">Your n8n instance should now be back online.<\/span><\/p><h3><b>Step 3: Update n8n<\/b><\/h3><h4><b>Option 1: Update n8n (Node.js Installation)<\/b><\/h4><p><span style=\"font-weight: 400;\">Update using npm:<\/span><\/p><pre><span style=\"font-weight: 400;\">sudo npm install n8n -g<\/span><\/pre><p><span style=\"font-weight: 400;\">Restart n8n after updating.<\/span><\/p><h4><b>Option 2: Update n8n Using PM2<\/b><\/h4><p><span style=\"font-weight: 400;\">Update globally:<\/span><\/p><pre><span style=\"font-weight: 400;\">sudo npm install n8n -g<\/span><\/pre><p><span style=\"font-weight: 400;\">Restart PM2 service:<\/span><\/p><p><span style=\"font-weight: 400;\">pm2 restart n8n<\/span><\/p><h4><b>Option 3: Update n8n Using Docker<\/b><\/h4><p><span style=\"font-weight: 400;\">Pull the latest n8n image:<\/span><\/p><pre><span style=\"font-weight: 400;\">docker pull n8nio\/n8n<\/span><\/pre><p><span style=\"font-weight: 400;\">docker-compose down<\/span><\/p><p><span style=\"font-weight: 400;\">docker-compose up -d<\/span><\/p><p><span style=\"font-weight: 400;\">This replaces the old container with the latest version.<\/span><\/p><h3><b>Step 4: Verify the Update<\/b><\/h3><p><span style=\"font-weight: 400;\">After restarting or updating:<\/span><\/p><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Open your n8n dashboard<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Check the version (Profile \u2192 About)<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Test workflows to confirm everything works correctly<\/span><\/li><\/ul><h3><b>Step 5: Optional \u2014 Backup Before Updating<\/b><\/h3><p><span style=\"font-weight: 400;\">Creating a backup ensures you can restore your workflows if something goes wrong.<\/span><\/p><h4><b>Node.js or PM2 Backup<\/b><\/h4><p><span style=\"font-weight: 400;\">Backup the default n8n directory:<\/span><\/p><pre><span style=\"font-weight: 400;\">tar -czvf n8n_backup.tar.gz ~\/.n8n<\/span><\/pre><h4><b>Docker Backup<\/b><\/h4><p><span style=\"font-weight: 400;\">If using Docker volumes:<\/span><\/p><pre><span style=\"font-weight: 400;\">docker run --rm -v n8n-data:\/data -v $(pwd):\/backup busybox tar czvf \/backup\/n8n_backup.tar.gz \/data<\/span><\/pre><h2><b>Troubleshooting<\/b><\/h2><h3><b>1. Service Fails to Restart<\/b><\/h3><p><span style=\"font-weight: 400;\">Check logs:<\/span><\/p><pre><span style=\"font-weight: 400;\">pm2 logs n8n<\/span><\/pre><p><span style=\"font-weight: 400;\">Docker logs:<\/span><\/p><pre><span style=\"font-weight: 400;\">docker logs &lt;container_name&gt;<\/span><\/pre><h3><b>2. Version Didn\u2019t Update<\/b><\/h3><p><span style=\"font-weight: 400;\">Clear npm cache:<\/span><\/p><pre><span style=\"font-weight: 400;\">npm cache clean --force<\/span><\/pre><p><span style=\"font-weight: 400;\">Ensure you are updating the correct npm installation or Docker image.<\/span><\/p><h3><b>3. Workflow Errors After Update<\/b><\/h3><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Verify environment variables<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Check credentials<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Restore from backup if needed<\/span><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c70254b elementor-widget elementor-widget-text-editor\" data-id=\"c70254b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2><b>Conclusion<\/b><\/h2><p><span style=\"font-weight: 400;\">Restarting and updating n8n on your VPS is a simple but essential maintenance task. Whether you\u2019re using Node.js, PM2, or Docker, regular updates improve security, stability, and functionality.<\/span><\/p><p><span style=\"font-weight: 400;\">Always back up your data before major updates and use a reliable VPS provider like<\/span><a href=\"https:\/\/www.bigcloudy.com\/\"> <span style=\"font-weight: 400;\">BigCloudy<\/span><\/a><span style=\"font-weight: 400;\"> to keep your automation environment running smoothly and reliably.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8678c0a elementor-widget elementor-widget-text-editor\" data-id=\"8678c0a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2><b>Need Help?\n<\/b><\/h2>\nIf you face any issues updating your nameservers or need further assistance, our support team is always available:\n<ul>\n \t<li aria-level=\"1\"><img decoding=\"async\" class=\"emoji\" role=\"img\" draggable=\"false\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/16.0.1\/svg\/1f4e7.svg\" alt=\"mail\" \/>\u00a0<b>Email:<\/b>\u00a0support@bigcloudy.com<\/li>\n \t<li aria-level=\"1\"><img decoding=\"async\" class=\"emoji\" role=\"img\" draggable=\"false\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/16.0.1\/svg\/1f310.svg\" alt=\"website\" \/><a href=\"https:\/\/www.bigcloudy.com\/contact-us\">\u00a0<b>Submit a support ticket<\/b><\/a><\/li>\n<\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fd98bc1 elementor-widget elementor-widget-text-editor\" data-id=\"fd98bc1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2><b>FAQ<\/b><\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-419bcf7 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"419bcf7\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-72144f8 elementor-widget elementor-widget-eael-adv-accordion\" data-id=\"72144f8\" data-element_type=\"widget\" data-widget_type=\"eael-adv-accordion.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t        <div class=\"eael-adv-accordion\" id=\"eael-adv-accordion-72144f8\" data-scroll-on-click=\"no\" data-scroll-speed=\"300\" data-accordion-id=\"72144f8\" data-accordion-type=\"accordion\" data-toogle-speed=\"300\">\n    <div class=\"eael-accordion-list\">\n                <div id=\"how-often-should-i-update-n8n\" class=\"elementor-tab-title eael-accordion-header\" tabindex=\"0\" data-tab=\"1\" aria-controls=\"elementor-tab-content-1191\"><span class=\"eael-advanced-accordion-icon-closed\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-down\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z\"><\/path><\/svg><\/span><span class=\"eael-advanced-accordion-icon-opened\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-up\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z\"><\/path><\/svg><\/span><span class=\"eael-accordion-tab-title\">How often should I update n8n?<\/span><\/div><div id=\"elementor-tab-content-1191\" class=\"eael-accordion-content clearfix\" data-tab=\"1\" aria-labelledby=\"how-often-should-i-update-n8n\"><p><span style=\"font-weight: 400;\">It\u2019s recommended to update n8n every few weeks or whenever a security or feature update is released.<\/span><\/p><\/div>\n                <\/div><div class=\"eael-accordion-list\">\n                <div id=\"will-updating-n8n-delete-my-workflows\" class=\"elementor-tab-title eael-accordion-header\" tabindex=\"0\" data-tab=\"2\" aria-controls=\"elementor-tab-content-1192\"><span class=\"eael-advanced-accordion-icon-closed\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-down\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z\"><\/path><\/svg><\/span><span class=\"eael-advanced-accordion-icon-opened\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-up\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z\"><\/path><\/svg><\/span><span class=\"eael-accordion-tab-title\">Will updating n8n delete my workflows?<\/span><\/div><div id=\"elementor-tab-content-1192\" class=\"eael-accordion-content clearfix\" data-tab=\"2\" aria-labelledby=\"will-updating-n8n-delete-my-workflows\"><p><span style=\"font-weight: 400;\">No. Workflows and credentials are stored separately, especially when using volumes or the <\/span><span style=\"font-weight: 400;\">.n8n<\/span><span style=\"font-weight: 400;\"> directory.<\/span><\/p><\/div>\n                <\/div><div class=\"eael-accordion-list\">\n                <div id=\"do-i-need-to-stop-workflows-before-updating\" class=\"elementor-tab-title eael-accordion-header\" tabindex=\"0\" data-tab=\"3\" aria-controls=\"elementor-tab-content-1193\"><span class=\"eael-advanced-accordion-icon-closed\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-down\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z\"><\/path><\/svg><\/span><span class=\"eael-advanced-accordion-icon-opened\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-up\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z\"><\/path><\/svg><\/span><span class=\"eael-accordion-tab-title\">Do I need to stop workflows before updating?<\/span><\/div><div id=\"elementor-tab-content-1193\" class=\"eael-accordion-content clearfix\" data-tab=\"3\" aria-labelledby=\"do-i-need-to-stop-workflows-before-updating\"><p><span style=\"font-weight: 400;\">Active workflows may pause briefly during a restart. Updating during low-traffic periods is best.<\/span><\/p><\/div>\n                <\/div><div class=\"eael-accordion-list\">\n                <div id=\"is-docker-the-safest-way-to-update-n8n\" class=\"elementor-tab-title eael-accordion-header\" tabindex=\"0\" data-tab=\"4\" aria-controls=\"elementor-tab-content-1194\"><span class=\"eael-advanced-accordion-icon-closed\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-down\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z\"><\/path><\/svg><\/span><span class=\"eael-advanced-accordion-icon-opened\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-up\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z\"><\/path><\/svg><\/span><span class=\"eael-accordion-tab-title\">Is Docker the safest way to update n8n?<\/span><\/div><div id=\"elementor-tab-content-1194\" class=\"eael-accordion-content clearfix\" data-tab=\"4\" aria-labelledby=\"is-docker-the-safest-way-to-update-n8n\"><p><span style=\"font-weight: 400;\">Yes. Docker updates are predictable and reduce dependency conflicts, especially on VPS platforms like<\/span><a href=\"https:\/\/www.bigcloudy.com\/\"> <span style=\"font-weight: 400;\">BigCloudy<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p><\/div>\n                <\/div><div class=\"eael-accordion-list\">\n                <div id=\"can-i-roll-back-to-a-previous-version\" class=\"elementor-tab-title eael-accordion-header\" tabindex=\"0\" data-tab=\"5\" aria-controls=\"elementor-tab-content-1195\"><span class=\"eael-advanced-accordion-icon-closed\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-down\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z\"><\/path><\/svg><\/span><span class=\"eael-advanced-accordion-icon-opened\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-up\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z\"><\/path><\/svg><\/span><span class=\"eael-accordion-tab-title\">Can I roll back to a previous version?<\/span><\/div><div id=\"elementor-tab-content-1195\" class=\"eael-accordion-content clearfix\" data-tab=\"5\" aria-labelledby=\"can-i-roll-back-to-a-previous-version\"><p><span style=\"font-weight: 400;\">Yes. With Docker, you can pull a specific image tag. With Node.js, reinstall the previous version via npm.<\/span><\/p><\/div>\n                <\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-6bce917 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"6bce917\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Introduction Running a self-hosted n8n instance on your Virtual Private Server (VPS) requires occasional maintenance. You may need to restart the service to apply configuration changes or update it to access new features and security improvements. This guide explains how to safely restart and update n8n using Node.js, PM2, or Docker\u2014ensuring your automation workflows remain secure, stable, and fully functional. For best reliability and performance, running n8n on a dependable VPS such as one from BigCloudy is highly recommended. Why Restart or Update n8n? Keeping n8n up to date and properly restarted ensures optimal performance and security. 1. Apply Configuration Changes Updates to environment variables, authentication settings, or workflow configurations require a restart to take effect. 2. Maintain Security n8n releases updates that fix bugs and patch vulnerabilities. Regular updates help protect your automation data. 3. Access New Features and Improvements New versions include additional integrations, workflow enhancements, and performance optimizations. Step 1: Identify How n8n Is Running Before restarting or updating, identify how n8n is installed on your VPS: Node.js Direct Installation \u2013 Installed globally via npm PM2 Process Manager \u2013 Running as a managed background service Docker or Docker Compose \u2013 Running inside a container Each setup uses different commands. Step 2: Restart n8n Option 1: Node.js Direct Installation If running n8n manually: n8n stop n8n start If the process is stuck or running in the background: pkill -f n8n n8n start Option 2: Restart n8n Using PM2 Restart the PM2-managed service: pm2 restart n8n Check the status: pm2 list Option 3: Restart n8n Using Docker Restart using the container name or ID: docker ps docker restart &lt;container_name_or_id&gt; For Docker Compose: docker-compose restart Your n8n instance should now be back online. Step 3: Update n8n Option 1: Update n8n (Node.js Installation) Update using npm: sudo npm install n8n -g Restart n8n after updating. Option 2: Update n8n Using PM2 Update globally: sudo npm install n8n -g Restart PM2 service: pm2 restart n8n Option 3: Update n8n Using Docker Pull the latest n8n image: docker pull n8nio\/n8n docker-compose down docker-compose up -d This replaces the old container with the latest version. Step 4: Verify the Update After restarting or updating: Open your n8n dashboard Check the version (Profile \u2192 About) Test workflows to confirm everything works correctly Step 5: Optional \u2014 Backup Before Updating Creating a backup ensures you can restore your workflows if something goes wrong. Node.js or PM2 Backup Backup the default n8n directory: tar -czvf n8n_backup.tar.gz ~\/.n8n Docker Backup If using Docker volumes: docker run &#8211;rm -v n8n-data:\/data -v $(pwd):\/backup busybox tar czvf \/backup\/n8n_backup.tar.gz \/data Troubleshooting 1. Service Fails to Restart Check logs: pm2 logs n8n Docker logs: docker logs &lt;container_name&gt; 2. Version Didn\u2019t Update Clear npm cache: npm cache clean &#8211;force Ensure you are updating the correct npm installation or Docker image. 3. Workflow Errors After Update Verify environment variables Check credentials Restore from backup if needed Conclusion Restarting and updating n8n on your VPS is a simple but essential maintenance task. Whether you\u2019re using Node.js, PM2, or Docker, regular updates improve security, stability, and functionality. Always back up your data before major updates and use a reliable VPS provider like BigCloudy to keep your automation environment running smoothly and reliably. Need Help? If you face any issues updating your nameservers or need further assistance, our support team is always available: \u00a0Email:\u00a0support@bigcloudy.com \u00a0Submit a support ticket FAQ How often should I update n8n? It\u2019s recommended to update n8n every few weeks or whenever a security or feature update is released. Will updating n8n delete my workflows? No. Workflows and credentials are stored separately, especially when using volumes or the .n8n directory. Do I need to stop workflows before updating? Active workflows may pause briefly during a restart. Updating during low-traffic periods is best. Is Docker the safest way to update n8n? Yes. Docker updates are predictable and reduce dependency conflicts, especially on VPS platforms like BigCloudy. Can I roll back to a previous version? Yes. With Docker, you can pull a specific image tag. With Node.js, reinstall the previous version via npm.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":16203,"menu_order":22,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-16223","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.7 (Yoast SEO v26.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Restart or Update the n8n Service on Your VPS<\/title>\n<meta name=\"description\" content=\"Learn how to restart or update the n8n service on your BigCloudy VPS to keep your workflow automation running smoothly.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/n8n-vps-hosting\/how-to-restart-or-update-the-n8n-service\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to restart or update the n8n service?\" \/>\n<meta property=\"og:description\" content=\"Learn how to restart or update the n8n service on your BigCloudy VPS to keep your workflow automation running smoothly.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/n8n-vps-hosting\/how-to-restart-or-update-the-n8n-service\/\" \/>\n<meta property=\"og:site_name\" content=\"CloudHostGeek Help Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BigCloudyHosting\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-11T19:01:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/s.w.org\/images\/core\/emoji\/16.0.1\/svg\/1f4e7.svg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@bigcloudypvtltd\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Restart or Update the n8n Service on Your VPS","description":"Learn how to restart or update the n8n service on your BigCloudy VPS to keep your workflow automation running smoothly.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/n8n-vps-hosting\/how-to-restart-or-update-the-n8n-service\/","og_locale":"en_US","og_type":"article","og_title":"How to restart or update the n8n service?","og_description":"Learn how to restart or update the n8n service on your BigCloudy VPS to keep your workflow automation running smoothly.","og_url":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/n8n-vps-hosting\/how-to-restart-or-update-the-n8n-service\/","og_site_name":"CloudHostGeek Help Center","article_publisher":"https:\/\/www.facebook.com\/BigCloudyHosting\/","article_modified_time":"2026-02-11T19:01:52+00:00","og_image":[{"url":"https:\/\/s.w.org\/images\/core\/emoji\/16.0.1\/svg\/1f4e7.svg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@bigcloudypvtltd","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/n8n-vps-hosting\/how-to-restart-or-update-the-n8n-service\/","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/n8n-vps-hosting\/how-to-restart-or-update-the-n8n-service\/","name":"How to Restart or Update the n8n Service on Your VPS","isPartOf":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/n8n-vps-hosting\/how-to-restart-or-update-the-n8n-service\/#primaryimage"},"image":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/n8n-vps-hosting\/how-to-restart-or-update-the-n8n-service\/#primaryimage"},"thumbnailUrl":"https:\/\/s.w.org\/images\/core\/emoji\/16.0.1\/svg\/1f4e7.svg","datePublished":"2025-11-27T06:45:16+00:00","dateModified":"2026-02-11T19:01:52+00:00","description":"Learn how to restart or update the n8n service on your BigCloudy VPS to keep your workflow automation running smoothly.","breadcrumb":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/n8n-vps-hosting\/how-to-restart-or-update-the-n8n-service\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/n8n-vps-hosting\/how-to-restart-or-update-the-n8n-service\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/n8n-vps-hosting\/how-to-restart-or-update-the-n8n-service\/#primaryimage","url":"https:\/\/s.w.org\/images\/core\/emoji\/16.0.1\/svg\/1f4e7.svg","contentUrl":"https:\/\/s.w.org\/images\/core\/emoji\/16.0.1\/svg\/1f4e7.svg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/n8n-vps-hosting\/how-to-restart-or-update-the-n8n-service\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bigcloudy.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Hosting FAQ","item":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/"},{"@type":"ListItem","position":3,"name":"N8N VPS Hosting","item":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/hosting-faq\/n8n-vps-hosting\/"},{"@type":"ListItem","position":4,"name":"How to restart or update the n8n service?"}]},{"@type":"WebSite","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#website","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/","name":"https:\/\/www.bigcloudy.com\/","description":"Your step-by-step guide to hosting, servers &amp; website tools.","publisher":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bigcloudy.com\/knowledge-base\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#organization","name":"BigCloudy internt services pvt ltd.","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2024\/09\/cropped-BGC_logo.webp","contentUrl":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2024\/09\/cropped-BGC_logo.webp","width":368,"height":114,"caption":"BigCloudy internt services pvt ltd."},"image":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/BigCloudyHosting\/","https:\/\/x.com\/bigcloudypvtltd","https:\/\/www.instagram.com\/bigcloudypvtltd\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/docs\/16223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=16223"}],"version-history":[{"count":0,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/docs\/16223\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/docs\/16203"}],"wp:attachment":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=16223"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/doc_tag?post=16223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}