Hey guys,
I am running my own N8N instance via a Google Cloud Project and it works and all but then I wanted to create a cronjob which auto updates the N8N version once a week/checks if there is a new n8n version in the git repo and pulls it if that’s the case.
Now it works and all but the problem is that after I execute the .sh file and try to access the subdomain.domain.com again it redirects to /setup and I cant login with my credentials. So I cant access the data.
I then entered
“ls -lah /home/myname/.n8n” in the shell and all the data still seems to be there but I cant access it. (workflows, credentials)
Did anyone have a problem like this before?
I mean it works but I cant access the profile and all that
this is my .sh file:
#!/bin/bash
BACKUP_DATE=$(date +‘%Y-%m-%d_%H-%M-%S’)
cp -r /home/myname/.n8n /home/myname/.n8n-backup-$BACKUP_DATE
sudo docker pull n8nio/n8n:latest
sudo docker stop n8n
sudo docker rm n8n
sudo docker run -d --restart unless-stopped -it
–name n8n
-p 5678:5678
-e N8N_HOST=“automations.domain.com”
-e WEBHOOK_TUNNEL_URL=“https://automations.domain.com/”
-e WEBHOOK_URL=“https://automations.domain.com/”
-v /home/myname/.n8n:/home/node/.n8n
n8nio/n8n
sudo docker image prune -af
- n8n version: 1.69.2
- Database (default: SQLite): QLite
- n8n EXECUTIONS_PROCESS setting (default: own, main): own, main
- Running n8n via (Docker, npm, n8n cloud, desktop app): self-hosted in google cloud
- Operating system: Windows10