lowcoder icon indicating copy to clipboard operation
lowcoder copied to clipboard

[Bug]: all-in-one docker compose fails to install on portainer.

Open dfear opened this issue 5 months ago • 4 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current Behavior

Trying to install lowcoder in portainer (url: docker/stacks/newstack) using either the "web editor" or the "upload" options results in the following error:

Deployment error Failed to deploy a stack: failed to resolve services environment: env file /data/compose/4/default.env not found: stat /data/compose/4/default.env: no such file or directory

Expected Behavior

lowcoder to be deployed in portainer.

Steps to reproduce

in portainer:

  1. select the desired docker environment
  2. In the left hand menu, click "stacks".
  3. click "add stack" button.
  4. Enter a "Name".
  5. Under "Build method" select "web editor" or "upload". a) select "web editor" - paste the contents of "https://github.com/lowcoder-org/lowcoder/blob/main/deploy/docker/docker-compose.yaml" b) select "upload" - download the yaml file from: https://github.com/lowcoder-org/lowcoder/blob/main/deploy/docker/docker-compose.yaml to your PC. a) Click "select file", then select the downloaded yaml file.
  6. click the " deploy this stack".

Environment

No response

Additional Information

No response

dfear avatar Aug 31 '25 18:08 dfear

To deploy in portainer use these steps (tested in portainer 2.21.5):

  • Follow your original steps 1 - 4
  • Use build method "Web editor" (just because it's easier to edit in place)
  • Place this updated compose file:
services:

  ##
  ## Start Lowcoder (all-in-one)
  ##
  lowcoder-all-in-one:
    image: lowcoderorg/lowcoder-ce:latest
    container_name: lowcoder
    env_file:
      - path: ./stack.env
        required: true
      - path: ./override.env
        required: false
    ports:
      - "3000:3000"
      - "3443:3443"
    volumes:
      - lowcoder-stacks:/lowcoder-stacks
      - lowcoder-assets:/lowcoder/assets
    restart: unless-stopped

volumes:
  lowcoder-stacks:
  lowcoder-assets:
  • Download default.env file from git
  • Click [Load variables from .env file] and select the downloaded file
  • Click [Deploy stack]

Changes in the docker compose file:

  • On line 19 renamed default.env to stack.env because portainer expects that filename
  • Added volumes section at the end of the compose file to define volumes
  • Updated volume mounts to use the volumes

When you now navigate to Volumes in portainer, you will see 2 volumes created.

ludomikula avatar Oct 18 '25 08:10 ludomikula

Hi,

I've tried following @ludomikula's instructions exactly, but it's not working for me. I want to try Lowcode on my Pi500+. Docker and Portainer are working fine, but no matter what I do (including using the Raspberry Pi instructions, compose yaml), nothing works. When I try to log in, I get an "Oops, service is busy; try again later!" error.

In the logs, I see a repeating pattern: 2025-11-14 10:57:34,915 INFO exited: redis (terminated by SIGSEGV (core dumped); not expected) 2025-11-14 10:57:35,918 INFO spawned: 'redis' with pid 1867 2025-11-14 10:57:35,926 INFO success: redis entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)

Is there a solution? I've searched extensively and tried everything, but so far, no luck...

Should i submit a new issue?

Thx Alex

Alex-e107nl avatar Nov 14 '25 11:11 Alex-e107nl

It looks like a problem with Raspberry PI5 - can you try the workaround described here: https://github.com/redis/RedisInsight/issues/4019#issuecomment-3031781014 ?

ludomikula avatar Nov 17 '25 21:11 ludomikula

Thx, in short what i have done when i got Docker and Portainer working again after updating everything on my PI500+:

https://github.com/portainer/portainer/issues/12925#issuecomment-3516549977

You can fix it without downgrading Docker or Portainer. You can add the variable DOCKER_MIN_API_VERSION=1.24 to the docker service config ( this fixes the issue for Traefik aswell if you are using this, since traefik uses the version 1.24 )

    systemctl edit docker.service
    Add this part above the line ### Lines below this comment will be discarded:
    [Service]
    Environment=DOCKER_MIN_API_VERSION=1.24
    Save the file and exit
    systemctl restart docker

Next:

From https://github.com/redis/RedisInsight/issues/4019#issuecomment-3031781014

In /boot/firmware/config.txt - (sudo nano config.txt)

# added for lowcoder 

kernel=kernel8.img

To deploy in portainer use these steps (tested in portainer 2.21.5):

  1. select the desired docker environment
  2. In the left hand menu, click "stacks".
  3. click "add stack" button.
  4. Enter a "Name".
  5. Use build method "Web editor" (just because it's easier to edit in place)

Place this updated compose file:

  services:

  ##
  ## Start Lowcoder (all-in-one)
  ##
  lowcoder-all-in-one:
  platform: linux/arm64
    image: lowcoderorg/lowcoder-ce:latest
    container_name: lowcoder
    env_file:
      - path: ./stack.env
        required: true
      - path: ./override.env
        required: false
    ports:
      - "3000:3000"
      - "3443:3443"
    volumes:
      - lowcoder-stacks:/lowcoder-stacks
      - lowcoder-assets:/lowcoder/assets
    restart: unless-stopped

volumes:
  lowcoder-stacks:
  lowcoder-assets:

Download default.env file from git Click [Load variables from .env file] and select the downloaded file Click [Deploy stack]

I can log in now and it seems to be working!!!!

Image

So let the fun begin, thx for all the help @dfear and @ludomikula .

Alex-e107nl avatar Nov 18 '25 13:11 Alex-e107nl