coollabsio/coolify

[Bug]: Still cannot change SERVICE_URL_BUGSINK_8000 in Bugsink Service

Opened this issue · 12 comments

Error Message and Logs

This issue has been closed and apparently fixed, but it still does not work. See issue #6035 - could you please re-open?

Steps to Reproduce

  1. Try to use BugSink Template
  2. Try and change SERVICE_URL_BUGSINK_8000
  3. Not usable if this cannot be changed.

Example Repository URL

No response

Coolify Version

v4.0.0-beta.428

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 22.04.5

Additional Information

No response

Linear Issue: COOLGH-63

@jlengrand might (or might not) know more

For Core Maintainers:

The value of SERVICE_URL_BUGSINK_8000 is not updating after updating the domain for the service (this is the issue)

  • This is only happening to Bugsink service
  • Tested on v4.0.0-beta.428 and unreleased v4.0.0-beta.429 (image id cb2a8b6bab62 created 8 hours ago)
Image

Temporary workaround:

Change this env - BASE_URL=$SERVICE_URL_BUGSINK_8000 to - BASE_URL=$SERVICE_URL_BUGSINK and redeploy the bug sink service

I've changed this and deployed and then I still get:

Image

I've changed this and deployed and then I still get:
Image

You have to wait for the migrations to complete, here is a video:

BUGSINK.COOl.mov

Thanks @ShadowArcanist - my issue was the port after the domain that needs to be included.

i can confirm that this issue also happened with Checkmate: SERVICE_FQDN_CHECKMATESERVER_5000
remove 5000 does not fix the issus, also the issues appear if i change the client service also

I've changed this and deployed and then I still get:
Image

You have to wait for the migrations to complete, here is a video:

BUGSINK.COOl.mov

I did this but used custom domain:8000 for web domain.
I cannot set my emails correctly

I've changed this and deployed and then I still get:
Image

You have to wait for the migrations to complete, here is a video:
BUGSINK.COOl.mov

I did this but used custom domain:8000 for web domain. I cannot set my emails correctly

What exactly is the issue you are facing? (I don't use bugsink at all but if you provide more info then I might be able to help)

Complete guide on how I managed to run it with email & custom domain.

Step-by-step install

  1. Before editing the environment variables and the compose file, run with the default Bugsink coolify app once. No configs changed.
  2. Click on the "Edit Compose File" button on the "General" tab & paste the compose file below, or edit it manually. I haven't changed too many things. You may remove the email settings if you want. For me, that's the whole point.
  3. (optional) Add custom domain. I have only tested with a custom domain. IMPORTANT: add :8000 at the end of the domain.
Image 4. Edit the `environment variables` like the ones I put below 5. Restart 6. Enjoy! Default username is `admin` and password is `SERVICE_PASSWORD_BUGSINK` which you can find in the `enviroment variables`

Here's my docker-compose.yaml

services:
  mysql:
    image: 'mysql:latest'
    restart: unless-stopped
    environment:
      - 'MYSQL_ROOT_PASSWORD=${SERVICE_PASSWORD_ROOT}'
      - 'MYSQL_DATABASE=${MYSQL_DATABASE:-bugsink}'
      - 'MYSQL_USER=${SERVICE_USER_BUGSINK}'
      - 'MYSQL_PASSWORD=${SERVICE_PASSWORD_BUGSINK}'
    volumes:
      - 'my-datavolume:/var/lib/mysql'
    healthcheck:
      test:
        - CMD
        - mysqladmin
        - ping
        - '-h'
        - 127.0.0.1
      interval: 5s
      timeout: 20s
      retries: 10
  web:
    image: bugsink/bugsink
    restart: unless-stopped
    environment:
      - SECRET_KEY=$SERVICE_PASSWORD_64_BUGSINK
      - 'CREATE_SUPERUSER=admin:$SERVICE_PASSWORD_BUGSINK'
      - SERVICE_URL_BUGSINK_8000
      - BASE_URL=$SERVICE_URL_BUGSINK
      - 'DATABASE_URL=mysql://${SERVICE_USER_BUGSINK}:$SERVICE_PASSWORD_BUGSINK@mysql:3306/${MYSQL_DATABASE:-bugsink}'
      - BEHIND_HTTPS_PROXY=True
      - EMAIL_HOST=xxxxxxxx
      - EMAIL_HOST_USER=xxxxxxxx
      - EMAIL_HOST_PASSWORD=xxxxxxxx
      - 'DEFAULT_FROM_EMAIL=Dragomir Dobbb<hello@xxxxxxxx.blog>'
    depends_on:
      mysql:
        condition: service_healthy
    healthcheck:
      test:
        - CMD-SHELL
        - 'python -c ''import requests; requests.get("http://localhost:8000/").raise_for_status()'''
      interval: 5s
      timeout: 20s
      retries: 10

As you can see, I haven't modified it too much from the original coolify compose file. Be aware of the '' in DEFAULT_FROM_EMAIL, the quotes have to be there since there are spaces in the env value. I suggest you diff the original coolify compose file and edit what you need.

My environment variables:

SERVICE_FQDN_WEB=bug2.em-art.xxxxxxxx
SERVICE_FQDN_WEB_8000=bug2.em-art.xxxxxxxx
SERVICE_PASSWORD_64_BUGSINK=xxxxxxxxxxx
SERVICE_PASSWORD_BUGSINK=xxxxxxxxxxxx
SERVICE_PASSWORD_ROOT=xxxxxxxxxxxxx
SERVICE_URL_BUGSINK=https://bug2.em-art.xxxxxxxx
SERVICE_URL_BUGSINK_8000=http://bugsink-8000-how8s00cg04sw8g0ow4c4gg0.128.140.58.199.sslip.io
SERVICE_URL_WEB=https://bug2.em-art.xxxxxxxx
SERVICE_URL_WEB_8000=https://bug2.em-art.xxxxxxxx
SERVICE_USER_BUGSINK=sRnAEJlXEH5j7jCA
BASE_URL=$SERVICE_URL_BUGSINK
DEFAULT_FROM_EMAIL=Dragomir Dogrwrwfefew<hello@email.blog>
EMAIL_HOST=xxxxxxxx
EMAIL_HOST_PASSWORD=xxxxxxxx
EMAIL_HOST_USER=xxxxxxxx
EMAIL_PORT=xxxxxxxx
MYSQL_DATABASE=bugsink
MYSQL_PASSWORD=${SERVICE_PASSWORD_BUGSINK}
MYSQL_ROOT_PASSWORD=${SERVICE_PASSWORD_ROOT}
MYSQL_USER=${SERVICE_USER_BUGSINK}
SECRET_KEY=$SERVICE_PASSWORD_64_BUGSINK
  • Before editing the environment variables and compose file, run with the default Bugsink coolify app once. No configs changed.

Thanks for sharing the detailed setup and solution!

However, you didn’t mention what the actual issue was or if you got any specific error messages. Without knowing the exact problem you faced, it’s a bit hard to understand how your solution helps.

Could you clarify what wasn’t working before and what this fixed?

Thanks for sharing the detailed setup and solution!

However, you didn’t mention what the actual issue was or if you got any specific error messages. Without knowing the exact problem you faced, it’s a bit hard to understand how your solution helps.

Could you clarify what wasn’t working before and what this fixed?

Bugsink was getting the wrong BASE_URL, which triggers the ALLOWED HOSTS error.

Image