Docker Compose build [Update] - Self Hosting

I thought i was updating my active pieces correctly however it wasn’t updating.

Looks like my docker compise is stuck on 0.14.3

i was following the docs to update, for the past 6 months

How can we fix this issue?

This is the output when i run

sh tools/update.sh

yin@service3:~/activepieces$ sudo sh tools/update.sh
Updating Activepieces...
Updating 3375bd3dd..48b019246
error: Your local changes to the following files would be overwritten by merge:
	docker-compose.yml
Please commit your changes or stash them before you merge.
Aborting
WARN[0000] /home/yin/activepieces/docker-compose.yml: `version` is obsolete 
[+] Pulling 3/3
 ✔ activepieces Pulled                                                                            2.0s 
 ✔ postgres Pulled                                                                                2.0s 
 ✔ redis Pulled                                                                                   2.0s 
WARN[0000] /home/yin/activepieces/docker-compose.yml: `version` is obsolete 
[+] Running 3/0
 ✔ Container redis         Running                                                                0.0s 
 ✔ Container postgres      Running                                                                0.0s 
 ✔ Container activepieces  Running                                                                0.0s 
Successfully updated Activepieces.

DOCKER-COMPOSE.YML

version: '3.0'
services:
  activepieces:
    image: activepieces/activepieces:0.14.3
    container_name: activepieces
    restart: unless-stopped
    ## Enable the following line if you already use AP_EXECUTION_MODE with SANDBOXED or old activepieces, checking the breaking change documentation for more info.
    ## privileged: true
    ports:
      - '6001:80'
    depends_on:
      - postgres
      - redis
    env_file: .env
    networks:
      - activepieces
  postgres:
    image: 'postgres:14.4'
    container_name: postgres
    restart: unless-stopped
    environment:
      - 'POSTGRES_DB=${AP_POSTGRES_DATABASE}'
      - 'POSTGRES_PASSWORD=${AP_POSTGRES_PASSWORD}'
      - 'POSTGRES_USER=${AP_POSTGRES_USERNAME}'
    volumes:
      - postgres_data:/var/lib/postgresql/data
    networks:
      - activepieces
  redis:
    image: 'redis:7.0.7'
    container_name: redis
    restart: unless-stopped
    volumes:
      - 'redis_data:/data'
    networks:
      - activepieces
volumes:
  postgres_data:
  redis_data:
networks:
  activepieces:

Hi

Replace the image in docker compose with this ghcr.io/activepieces/activepieces:0.26.0

Example:

1 Like

thanks but i have been running the sh tools/update.sh past 6 months doesn’t this script update the instance?

Hi @kogo

It could be git pull not working since there is files modified locally.

Try run git pull and check what it shows

yin@service3:~/activepieces$ git pull
error: cannot open '.git/FETCH_HEAD': Permission denied

yin@service3:~/activepieces$ sudo git pull
remote: Enumerating objects: 28, done.
remote: Counting objects: 100% (28/28), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 28 (delta 13), reused 22 (delta 10), pack-reused 0
Unpacking objects: 100% (28/28), 10.23 KiB | 698.00 KiB/s, done.
From https://github.com/activepieces/activepieces
   96222223c..e28fbb5d8  main                 -> origin/main
 * [new branch]          chore/rc-5-21-2024   -> origin/chore/rc-5-21-2024
   1e245d552..293231dfd  fix/monaco-on-ff-w11 -> origin/fix/monaco-on-ff-w11
Updating 3375bd3dd..e28fbb5d8
error: Your local changes to the following files would be overwritten by merge:
	docker-compose.yml
Please commit your changes or stash them before you merge.
Aborting

Yea @kogo

git pull is not working as it doesn’t want to override changes in the docker compose file

error: Your local changes to the following files would be overwritten by merge:
	docker-compose.yml
Please commit your changes or stash them before you merge.

You can always increase the version manually and follow the manual instructions in the docs :smiley:

1 Like