Hello dear @jan
I install n8n on my ubuntu server by docker compose.
Can you tell me how can I upgrade to newer version?
Best regards;
Hello dear @jan
I install n8n on my ubuntu server by docker compose.
Can you tell me how can I upgrade to newer version?
Best regards;
Sure. There are multiple ways. You can either add the version number of the specific version you want to update to in the docker-compose.yml
file like this:
....
n8n:
image: n8nio/n8n:0.47.0
...
and then restart (how to restart bellow)
or you can pull the latest docker-image yourself with:
docker pull n8nio/n8n
and then after that is done, you restart.
How to restart:
# Stop current setup
sudo docker-compose stop
# Delete it (will only delete the docker-containers, data is stored separately)
sudo docker-compose rm
# Then start it again
sudo docker-compose up -d
@jan - regarding upgrades are there any additional steps ever needed for versions?
I wasnāt able to find documentation regarding changes between versions.
Ah of course. Thanks!
Sadly not that obvious and easy to find. Sorry!
Added to my To-Do-List to improve.
Just try to update using docker pull n8nio/n8n
and now itās 404
What wrong with me?
You should try turn back to 0.73.1 and turn off all workflow and try again.
Welcome to the community @vasyablack!
The command docker pull n8nio/n8n
should normally not return a 404. If it does it sounds like there is something wrong with dockerhub.
If you can pull the latest image and n8n does error on startup, then you should do exactly what @huuich mentioned. Use 0.73.1
, deactivate all workflows, use latest version, activate the workflows again.
Great! Now itās works correctly! Thank you!
That was easy! Thank you!
I have been using this every single n8n update and it works like a charm.
Just wondering,
The official documentation seems to be slightly different:
Do both ways do the exact same thing?
Hey @David_Go,
It is mostly the same thing internally, stop and down will both stop the container. The only real difference is cleaning up the old containers.
Thanks good to know.
I have been upgrading my n8n (all is working fine)
How often should I update my server?
Looks like there are 19 updates available ā¦
Hey @David_Go,
That is down to you or if for a company it would be down to company policy. I upgrade and reboot all of my servers weekly, I donāt need to do weekly reboots but I dislike having larger uptimes.
Hmmm well, I get to make that decision
So I went ahead and made a task in clickapp to update my server every 2 weeks.
Thank you very much @Jon
Hi everyone,
I followed this video: Installing N8N (nodemation) on my server. - YouTube to setup n8n. My version is about 6months old nowā¦ I am very much a newbie at this.
Iām trying to upgrade the n8n version but hereās the response Iām getting:
As per the video I did setup an admin user before, but couldnāt figure out how to login to itā¦ so just connected directly via the droplet console. Not sure if that is the problem.
Thanks in advance for your helpā¦
Update: In the meantime found this: Docker - n8n Documentation
But wonāt work, and as per below, the container ID doesnāt exist anymoreā¦ so now my entire n8n is down
Hi @Vince ,
Iām a newbie too but lets try our best to overcome your situation. As I can see youāve installed your n8n env with a yaml file. You need to find path of this file on your VM. with cd ā¦ cd ā¦ cd ā¦ commands go back to your root directory. Then try to find your docker-compose yaml file.
find . -name *.yaml
or
find . -name *.yml
Now, you must see your yaml file. Go to the correct path and try to execute āsudo docker-compose stopā command.
By the way, if you want to work with ādockerā commands;
docker run -d --restart=always --log-opt max-size=10m --log-opt max-file=5 --name n8n-main -p 5678:5678 -v /root/n8n/.n8n:/home/node/.n8n --env-file=/root/n8n/queue.env n8nio/n8n n8n
Solid answer there, So the command is failing because the compose file is not in the directory you are running the command from. Depending on what else you have set up you could also try and find the file using the history command which would output āallā the commands you have ran so you can scroll through and see what you did if you canāt remember