-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Minio template error "The string :9001
is no a valid url."
#4229
Comments
Changing the “:9001” part to, for example, “:8000” still gives the same error “The string :9001 is not a valid URL,” so it looks like the problem is not in the template itself. I tried specifying the port also using an environment variable, such as: services:
minio:
image: 'quay.io/minio/minio:latest'
command: 'server /data --console-address ":${MINIO_CONSOLE_PORT}"'
environment:
- MINIO_SERVER_URL=$MINIO_SERVER_URL
- MINIO_BROWSER_REDIRECT_URL=$MINIO_BROWSER_REDIRECT_URL
- MINIO_ROOT_USER=$SERVICE_USER_MINIO
- MINIO_ROOT_PASSWORD=$SERVICE_PASSWORD_MINIO
- MINIO_CONSOLE_PORT=9001
volumes:
- 'minio-data:/data'
healthcheck:
test:
- CMD
- mc
- ready
- local
interval: 5s
timeout: 20s
retries: 10 I then get the same error again and again, even after changing the port to a different one. |
I managed to set up Minio by following these steps:
|
So tracing back through the code it seems the error may stem from here (but im no php expert 😅 ): coolify/bootstrap/helpers/docker.php Lines 241 to 244 in cb433dd
Since the variables will be blank upon a new deployment, coolify tries to validate the URL is in fact a URL but And using the same logic the issue will also effect the |
This will be fixed in the next version. |
Error Message and Logs
It seems impossible to add or save the actual MinIO template or integrate it over "New Resource -> Docker Compose Empty" with or without other containers due to an issue related to ":9001" part. The error message, "The string :9001 is not a valid URL," doesn't prevent saving the Compose configuration to Coolify Projects, but makes it impossible to save the MINIO_SERVER_URL and $MINIO_BROWSER_REDIRECT_URL variables or change other things...
Default minio template from Services list
Steps to Reproduce
Example Repository URL
https://github.com/coollabsio/coolify/blob/main/templates/compose/minio.yaml
Coolify Version
v4.0.0-beta.364
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 24.04 & Alpine-Linux:Latest & Ubuntu 24.04 ARM
Additional Information
No response
The text was updated successfully, but these errors were encountered: