n8n upgrade on AWS: what 2.49.7 fixes and how to upgrade safely
n8n 2.49.7 brings expression engine and MCP fixes. Here is what they mean for self-hosted teams and a safe, repeatable way to upgrade n8n on AWS.
Deploy it in minutes with our n8n automation AMI for AWS on AWS Marketplace ↗
On 26 November the n8n team shipped n8n 2.49.7, a patch release on the 2.x line, alongside n8n 1.123.102 for teams still on the 1.x line. Patch releases rarely make headlines, but for anyone running self-hosted n8n on AWS they raise the same practical question every time: should we upgrade now, and how do we do an n8n upgrade on AWS without breaking production workflows or losing credentials? This guide walks through what 2.49.7 changes, who it matters to, and a safe, repeatable upgrade routine for an EC2 instance running n8n with PostgreSQL.
What changed in n8n 2.49.7?
The official release notes for 2.49.7 list four bug fixes and no new features. That makes it a maintenance release, but the areas it touches are worth understanding because they sit close to the core of how n8n evaluates workflows and exposes data.
| Fix in 2.49.7 | Area | Why a self-hosted team should care |
|---|---|---|
| Apply execution data size limit in MCP get_workflow_execution | MCP integration | Large execution payloads returned through the MCP tool are now held to the execution data size limit, which helps protect memory and response sizes when AI clients query executions. |
| Align extractUrlPath results of isolate expression engines with legacy | Core, expressions | Expressions that work with URL paths should return the same results in the isolate expression engines as in the legacy engine. |
| Reduce memory use of concat on workflow data arrays in isolate expression engines | Core, expressions | Workflows that concatenate large arrays in expressions should use less memory, which matters on smaller instances. |
| Preserve boxed primitives across expression engines | Core, expressions | Values wrapped as boxed primitives keep their behaviour consistently between expression engines. |
Table 1. The bug fixes listed in the n8n 2.49.7 release notes and the area each one touches.
Three of the four fixes concern the isolate expression engines and their consistency with the legacy engine. In practical terms, if your workflows rely heavily on expressions that manipulate URLs, concatenate large arrays or pass unusual value types between nodes, this release reduces the chance of subtle differences in results and lowers memory pressure. The fourth fix matters to teams that have connected AI assistants to n8n through MCP and use them to inspect workflow executions.
What about n8n 1.123.102?
A 1.123.102 release was published on the same day for the 1.x line. If you are still running a 1.x version, read that release's own notes before acting, and treat a move from 1.x to 2.x as a planned migration rather than a routine patch. The rest of this guide focuses on instances already on the 2.x line.
Who should upgrade to n8n 2.49.7 first?
Not every team needs to rush a patch release into production, but some workloads benefit more than others. Prioritise the upgrade when any of the following apply to your environment.
- AI agent and MCP users. If an AI client calls
get_workflow_executionthrough MCP to read run history, the new size limit makes those calls more predictable. - Expression-heavy workflows. Data transformation flows that build arrays, rewrite URLs or pass mixed value types between Code, Set and HTTP Request nodes are directly in scope of the expression engine fixes.
- Memory-constrained instances. On a general purpose instance such as a t3.medium, lower memory use during array operations gives more headroom for concurrent executions.
If none of these apply, you can still schedule the upgrade in your next maintenance window. Staying reasonably close to current releases keeps future upgrades smaller and easier to test.
How do I upgrade n8n on AWS safely?
A safe n8n upgrade on AWS is less about the install command and more about what you do before and after it. n8n stores workflows, credentials and execution history in its database, and credentials are encrypted with an encryption key held on the instance. Losing either the database or the key turns an upgrade into a recovery exercise. The routine below assumes a single EC2 instance running n8n as a systemd service with a local PostgreSQL database.
| Step | Action | Purpose |
|---|---|---|
| 1 | Read the release notes for every version between your current one and the target | Spot breaking changes, deprecated nodes and runtime requirements before you touch the server |
| 2 | Take an EBS snapshot of the instance volume | Gives you a complete rollback point for the operating system, application and data |
| 3 | Run pg_dump on the n8n database and copy the dump to Amazon S3 | Provides a portable, application-level backup independent of the instance |
| 4 | Back up the n8n encryption key and environment configuration | Without the original key, stored credentials cannot be decrypted after a restore |
| 5 | Pause or drain active triggers, then stop the n8n service with systemctl | Avoids half-finished executions and duplicate webhook processing during the change |
| 6 | Install the target version using the same method the instance already uses | Keeps the service unit, paths and permissions consistent |
| 7 | Start the service and watch logs with journalctl until migrations finish | Database migrations can run on first start and must complete before traffic resumes |
| 8 | Run smoke tests on critical workflows, then re-enable triggers | Confirms that credentials, webhooks and expressions behave as expected |
Table 2. A step-by-step upgrade routine for self-hosted n8n on a single EC2 instance.
Back up before anything else
The EBS snapshot and the database dump protect against different failures. A snapshot is the fastest way to roll the entire instance back if the upgrade fails in an unexpected way. A pg_dump file stored in S3 lets you rebuild on a fresh instance, restore into a staging environment, or recover individual data later. Keep both until the upgraded instance has run cleanly for a few days.
Protect the encryption key
n8n encrypts stored credentials. If the key used to encrypt them changes or is lost, the workflows will still load but every credential will fail. Store a copy of the key in AWS Secrets Manager or Systems Manager Parameter Store with tight IAM permissions, and confirm the service reads the same key after the upgrade.
Use the install method you already have
Self-hosted n8n can run from the npm package, from a container image, or from a prepared machine image. Whichever method built your instance, upgrade with the same one. Mixing methods, for example installing a global npm package on a host that previously ran a container, is a common source of two different n8n versions fighting over the same port and database.
Testing the upgrade in a staging copy
The expression engine fixes in this release are good news, but any change to expression evaluation deserves a quick regression check on the workflows that matter most. The easiest way to do this on AWS is to restore your latest snapshot into a separate instance in a private subnet, upgrade that copy first, and run your key workflows against test endpoints.
Focus your tests on workflows with complex expressions, Code nodes that build arrays, HTTP Request nodes that construct URLs dynamically, and any flow called by an AI agent through MCP. Compare outputs with recent production executions. Because the staging copy shares the same credentials and data, make sure its outbound webhooks and email nodes point to test targets so it never acts on real systems.
| Check | How to verify | Healthy result |
|---|---|---|
| Service status | systemctl status for n8n and PostgreSQL | Both services active and set to start on boot |
| Version | n8n settings page or the CLI version flag | Reports the target version |
| Credentials | Open and test two or three critical credentials | Connections succeed without re-entering secrets |
| Webhooks | Call a test webhook from outside the VPC through your HTTPS endpoint | Expected response and a new execution in the history |
| Expressions | Re-run expression-heavy workflows with known input | Outputs match previous production executions |
| Resources | Amazon CloudWatch metrics for CPU and memory over the first day | No sustained spikes compared with the previous baseline |
Table 3. Post-upgrade checks to run before re-enabling production triggers.
Production hardening while you are in the maintenance window
An upgrade window is a good moment to fix the operational gaps that tend to accumulate on self-hosted automation servers. Three are worth checking every time.
HTTPS in front of the editor and webhooks. n8n listens on port 5678 by default. Exposing that port directly over plain HTTP sends logins, credentials and webhook payloads unencrypted. Put a reverse proxy such as Nginx or Caddy, or an Application Load Balancer with a certificate from AWS Certificate Manager, in front of n8n and restrict the security group so port 5678 is reachable only from the proxy.
Database exposure. PostgreSQL should listen only on localhost or a private interface. Confirm that no security group rule opens the PostgreSQL port to the internet, and that the database user n8n connects with does not have broader privileges than it needs.
Monitoring and alerting. Ship n8n and system logs to Amazon CloudWatch Logs, set alarms on instance status checks, disk usage and memory, and create an alert on failed executions for business-critical workflows. Execution data can grow quickly, so review execution pruning settings to keep the database a manageable size.
Where the n8n automation AMI fits
Teams that want to skip the initial build can start from our n8n automation AMI on AWS Marketplace, published by Techforce Services Inc. It runs on Ubuntu 26.04 LTS with n8n backed by a local PostgreSQL 18 database, and the current image ships n8n 2.8.4 on Node.js 24. n8n runs as a systemd service that starts automatically, and workflows and credentials are stored persistently. PostgreSQL is not publicly accessible, and the recommended instance type is t3.medium.
Two points from this guide apply directly. First, the AMI is a starting point, not a frozen appliance: once launched, the instance is yours to patch, so a jump from the shipped version to a current release such as 2.49.7 should follow the backup, release note review and staging test routine above, reading the notes for every version in between. Second, the editor is reached on the instance public IP at port 5678 and HTTPS is not configured by default, so adding a domain, a reverse proxy and an SSL certificate should be one of the first tasks after launch.
Building an upgrade habit, not a one-off fix
n8n moves quickly, with frequent patch releases on the 2.x line. The teams that cope best treat upgrades as a routine: a monthly or fortnightly window, automated EBS snapshots through Amazon Data Lifecycle Manager, nightly database dumps to S3 with lifecycle rules, a staging copy that can be refreshed from a snapshot in minutes, and a short list of smoke-test workflows. With that in place, a release like 2.49.7 becomes a routine maintenance task rather than a risky event, and your automation platform stays secure, predictable and ready for the AI agent and MCP workloads that are increasingly running on top of it.
We'll deploy, secure, and scale it for your workflows.
Frequently asked questions
What does n8n 2.49.7 fix?
n8n 2.49.7 is a bug fix release with four fixes. It applies the execution data size limit in the MCP get_workflow_execution tool and fixes three consistency and memory issues in the isolate expression engines, covering extractUrlPath results, concat on workflow data arrays and boxed primitives.
How do I upgrade self-hosted n8n on EC2?
Back up first, then upgrade with the method you already use. Take an EBS snapshot, dump PostgreSQL to S3, save the encryption key, stop the service, install the new version, watch logs until database migrations finish, and smoke test key workflows before re-enabling triggers.
Will I lose my n8n credentials when upgrading?
No, as long as the database and the original encryption key are preserved. Credentials are stored encrypted in the database, so keep a backup of the key in a secure store such as AWS Secrets Manager and confirm the service uses the same key after upgrading.
Should I upgrade from n8n 1.x to 2.49.7 directly?
Treat a move from 1.x to 2.x as a planned migration rather than a routine patch. Read the release notes for every version in between, test the upgrade on a staging copy restored from a snapshot, and only then upgrade production.
Does the n8n AMI include HTTPS?
No, HTTPS is not configured by default on the n8n automation AMI. The editor is reached on the instance public IP at port 5678, so you should add a domain, a reverse proxy and an SSL certificate before using it in production.
How often should I update self-hosted n8n?
A regular monthly or fortnightly maintenance window works well for most teams. n8n ships frequent patch releases, and staying close to current versions keeps each upgrade small, easier to test and simpler to roll back.
Related guides
Building automated business workflows with n8n on AWS
Transform operations from manual to intelligent with n8n workflow automation on AWS.
Orchestrating AI and LLM workflows with self-hosted n8n on AWS
Unlock advanced AI and LLM automation on AWS with self-hosted n8n, ensuring control and cost predictability.
Self-hosted n8n on AWS: predictable automation beyond SaaS limits
Compare costs & control: SaaS automation with execution caps vs. self-hosted n8n on AWS.