[bug]: cannot create project
Is there an existing issue for this?
- [x] I have searched the existing issues
Current behavior
When I try to create a project, it says "Error! Failed to upload cover image"
Steps to reproduce
simply create a project with any cover image selected
Environment
Production
Browser
Google Chrome
Variant
Self-hosted
Version
v1.9.2
Edit:
I tried Community version today, and the same problem exist. Where is the image uploading to? the S3 storage?
Edit:
Turns out the instruction on S3 endpoint url is misleading, bucket name should not appear in the url.
still occurring after upgrade to v1.3.0 self-hosted CE
Having same issue on V1.3.0 self hosted CE
I am having the same issue in v1.3.1 It says "Something went wrong" This is on self-hosted system. Any solution ?
I found the problem on my side. Basically the project title was long. I made it shorter and I was able to create the project. I think it would be useful if the UI shows a more specific error instead of just showing "Something went wrong" message.
Thank you.
Do you remember how many characters you used ? I don't recall using long titles when the bug occurred
I'm currently having the same issue and I just installed the latest version today. v1.3.1
okay this was a dumb mistake on my end
if anyone has the same issue, it's because there is a POST request on https://plane.yourdomain.com/uploads when uploading to Minio
my reverse proxy was only redirecting /uploads/ (notice the trailing slash)
this mistake also applies to /god-mode/ to access the admin panel
fixed it with the following Traefik labels config by modifying the docker compose file of Plane if in doubt of what to redirect, check Plane.so's Caddyfile example deployment (which is what I should've done earlier).
# plane-app/docker-compose.yaml
# Plane version : v1.3.1
services:
# ...
plane-minio:
image: minio/minio:latest
command: server /export --console-address ":9090"
deploy:
replicas: 1
restart_policy:
condition: any
environment:
<<: *minio-env
volumes:
- uploads:/export
networks:
- proxy
labels:
- "traefik.enable=true"
# ancient RegEx wizard formula taken from this blog
# https://crockettford.dev/blog/coolify-redirect-trailing-slash
# it seems I lack the experience to write a RegEx to redirect to the trailing slash variant
# experience i must acquire, for this magic i want to comprehend
# ~wanchai
- "traefik.http.middlewares.add-trailing-slash.redirectregex.permanent=true"
- "traefik.http.middlewares.add-trailing-slash.redirectregex.regex=^(https?://[^/]+/[^/]*)$"
- "traefik.http.middlewares.add-trailing-slash.redirectregex.replacement=$${1}/"
# S3 API for uploads
- "traefik.http.routers.plane-minio.rule=Host(`plane.domain.me`) && (PathPrefix(`/uploads/`) || Path(`/uploads`))"
- "traefik.http.routers.plane-minio.middlewares=add-trailing-slash"
- "traefik.http.routers.plane-minio.entrypoints=websecure"
- "traefik.http.routers.plane-minio.tls=true"
- "traefik.http.routers.plane-minio.tls.certresolver=myresolver" # don't forget to use your own cert resolver
- "traefik.http.routers.plane-minio.priority=100"
- "traefik.http.routers.plane-minio.service=minio-api"
- "traefik.http.services.minio-api.loadbalancer.server.port=9000"
Hey everyone ๐
I've been self-hosting Plane for our internal AI platform and spent way too long debugging the "Failed to upload cover image" error. After going through every config file, container log, and env variable I could find, I finally tracked down the root cause.
Sharing this here in case it saves someone else the headache.
Fix: "Failed to upload cover image" on self-hosted Plane
If you're hitting this error on a fresh self-hosted setup, there are two things to check:
1. MinIO container name must be exactly plane-minio
Plane's Caddy proxy routes /uploads/* to plane-minio:9000 โ this is hardcoded. Any other container name and uploads will silently fail.
minio:
container_name: plane-minio # โ must be this exact name
2. ENV variables must be inside docker-compose.yml โ not just .env
This was our root cause. We had the variables in .env but plane-api, plane-worker, and plane-beat do not read .env automatically. They only receive variables explicitly defined in their environment: block.
Inside the container, all storage variables were None:
docker exec plane-api python3 -c "
import os
print('USE_MINIO:', os.environ.get('USE_MINIO'))
print('AWS_S3_ENDPOINT_URL:', os.environ.get('AWS_S3_ENDPOINT_URL'))
"
# USE_MINIO: None
# AWS_S3_ENDPOINT_URL: None
Fix โ add these explicitly to environment: in plane-api, plane-worker, and plane-beat:
environment:
USE_MINIO: "1"
AWS_ACCESS_KEY_ID: your_minio_user
AWS_SECRET_ACCESS_KEY: your_minio_password
AWS_S3_ENDPOINT_URL: http://plane-minio:9000
AWS_S3_BUCKET_NAME: uploads
AWS_REGION: us-east-1
Note: The variable names look like AWS but they point to your local MinIO instance. Plane uses boto3 (AWS SDK) which is fully compatible with MinIO's S3 API. No actual AWS account needed.
Diagnostic + auto-fix script
Run this from your Plane docker-compose.yml directory. It checks your setup, identifies the problem, and applies the fix automatically.
# Run from your Plane docker-compose directory
bash plane_minio_fix.sh
# Or specify path:
COMPOSE_DIR=/path/to/plane bash plane_minio_fix.sh
๐ plane_minio_fix.sh โ click to expand
#!/usr/bin/env bash
# ============================================================
# Plane Self-Hosted โ MinIO Cover Image Fix
# Fixes: "Failed to upload cover image" on self-hosted Plane
# Tested on: Plane v1.3.1, Docker Compose, Ubuntu 24.04
# Usage: COMPOSE_DIR=/path/to/plane bash plane_minio_fix.sh
# ============================================================
set -uo pipefail
GREEN='\033[0;32m'; RED='\033[0;31m'; YELLOW='\033[1;33m'
CYAN='\033[0;36m'; BOLD='\033[1m'; NC='\033[0m'
ok() { echo -e " ${GREEN}โ${NC} $1"; }
miss() { echo -e " ${RED}โ${NC} $1"; }
warn() { echo -e " ${YELLOW}โ ${NC} $1"; }
info() { echo -e " ${CYAN}โ${NC} $1"; }
hdr() { echo -e "\n${BOLD}$1${NC}\n"; }
COMPOSE_DIR="${COMPOSE_DIR:-$PWD}"
MINIO_USER="${MINIO_USER:-minioadmin}"
MINIO_PASS="${MINIO_PASS:-minioadmin123}"
BUCKET="${BUCKET:-uploads}"
clear
echo -e "${BOLD}${CYAN} Plane Self-Hosted โ MinIO Cover Image Fix${NC}"
echo ""
# 1. Prerequisites
hdr "1 ยท Prerequisites"
[[ ! -f "$COMPOSE_DIR/docker-compose.yml" ]] && { miss "docker-compose.yml not found in: $COMPOSE_DIR"; exit 1; }
ok "docker-compose.yml found"
docker ps | grep -q "plane-api" || { miss "plane-api is not running โ start Plane first"; exit 1; }
ok "plane-api is running"
# 2. Diagnose ENV inside container
hdr "2 ยท Diagnosing ENV variables inside plane-api"
API_CONTAINER=$(docker ps --format "{{.Names}}" | grep "plane-api" | head -1)
USE_MINIO=$(docker exec "$API_CONTAINER" python3 -c "import os; print(os.environ.get('USE_MINIO','MISSING'))" 2>/dev/null || echo "MISSING")
S3_URL=$(docker exec "$API_CONTAINER" python3 -c "import os; print(os.environ.get('AWS_S3_ENDPOINT_URL','MISSING'))" 2>/dev/null || echo "MISSING")
NEEDS_FIX=false
[[ "$USE_MINIO" == "MISSING" || "$USE_MINIO" == "None" ]] && { warn "USE_MINIO not set โ cover image will fail"; NEEDS_FIX=true; } || ok "USE_MINIO=$USE_MINIO"
[[ "$S3_URL" == "MISSING" || "$S3_URL" == "None" ]] && { warn "AWS_S3_ENDPOINT_URL not set"; NEEDS_FIX=true; } || ok "AWS_S3_ENDPOINT_URL=$S3_URL"
# 3. Check MinIO container name
hdr "3 ยท Checking MinIO container name"
if docker ps | grep -q "plane-minio"; then
ok "plane-minio is running (correct name for Caddy routing)"
elif docker ps | grep -q "minio"; then
warn "MinIO running but container name is wrong: $(docker ps --format '{{.Names}}' | grep minio | head -1)"
warn "Caddy routes /uploads/* to plane-minio:9000 โ wrong name = failed uploads"
NEEDS_FIX=true
else
miss "No MinIO container found"; NEEDS_FIX=true
fi
[[ "$NEEDS_FIX" == "false" ]] && { ok "Everything looks correct โ issue may be elsewhere"; exit 0; }
# 4. Apply Fix
hdr "4 ยท Applying Fix"
cd "$COMPOSE_DIR"
# 4a. Add MinIO if missing
if ! grep -q "plane-minio" docker-compose.yml; then
info "Adding MinIO to docker-compose.yml..."
VLINE=$(grep -n "^volumes:" docker-compose.yml | head -1 | cut -d: -f1)
sed -i "${VLINE}i\\
\\
minio:\\
image: minio/minio:latest\\
container_name: plane-minio\\
command: server /data --console-address \":9001\"\\
restart: unless-stopped\\
environment:\\
MINIO_ROOT_USER: ${MINIO_USER}\\
MINIO_ROOT_PASSWORD: ${MINIO_PASS}\\
volumes:\\
- minio_data:/data\\
ports:\\
- \"9000:9000\"\\
- \"9001:9001\"" docker-compose.yml
echo " minio_data:" >> docker-compose.yml
ok "MinIO added"
fi
# 4b. Fix wrong container name
if docker ps | grep -q "minio" && ! docker ps | grep -q "plane-minio"; then
sed -i 's/container_name:.*minio.*/container_name: plane-minio/' docker-compose.yml
ok "Container name fixed to plane-minio"
fi
# 4c. Add ENV vars to each backend service
for SERVICE in "plane-api" "plane-worker" "plane-beat"; do
if grep -q "$SERVICE" docker-compose.yml; then
if ! grep -A 30 "container_name.*$SERVICE" docker-compose.yml | grep -q "USE_MINIO"; then
LINE=$(grep -n "DJANGO_SETTINGS_MODULE" docker-compose.yml | grep -m1 "" | cut -d: -f1)
if [[ -n "$LINE" ]]; then
sed -i "${LINE}a\\
USE_MINIO: \"1\"\\
AWS_ACCESS_KEY_ID: ${MINIO_USER}\\
AWS_SECRET_ACCESS_KEY: ${MINIO_PASS}\\
AWS_S3_ENDPOINT_URL: http://plane-minio:9000\\
AWS_S3_BUCKET_NAME: ${BUCKET}\\
AWS_REGION: us-east-1" docker-compose.yml
ok "ENV vars added to $SERVICE"
fi
else
warn "ENV vars already present in $SERVICE โ skipping"
fi
fi
done
# 4d. Start MinIO and create bucket
info "Starting MinIO..."
docker compose up -d minio && sleep 8
docker exec plane-minio mc alias set local http://localhost:9000 "$MINIO_USER" "$MINIO_PASS" 2>/dev/null && ok "MinIO alias set"
docker exec plane-minio mc mb "local/$BUCKET" 2>/dev/null && ok "Bucket '$BUCKET' created" || warn "Bucket already exists"
# 4e. Restart backend
info "Restarting Plane backend..."
docker compose up -d --force-recreate plane-api plane-worker plane-beat && sleep 10
# 5. Verify
hdr "5 ยท Verification"
API_CONTAINER=$(docker ps --format "{{.Names}}" | grep "plane-api" | head -1)
FINAL=$(docker exec "$API_CONTAINER" python3 -c "import os; print(os.environ.get('USE_MINIO','MISSING'))" 2>/dev/null)
[[ "$FINAL" == "1" ]] && { ok "USE_MINIO=1 confirmed โ fix successful!"; ok "Try creating a project in Plane UI"; } || miss "Still not working โ USE_MINIO=$FINAL"
echo ""
Tested on Plane v1.3.1 ยท Docker Compose ยท Ubuntu 24.04