Assets not loading after changing domain name

Hello,

Like in the screenshot in the topic 1223, the sidebar on the assets page shows “Loading…” for me. This has happened after changing the domain name in OR_HOSTNAME. I have added the old domain name to OR_ADDITIONAL_HOSTNAMES, so I can access the website also via the old domain name, and this works. Do I need to update something manually in the database?

Kind regards,
Daniel

I have redeployed from scratch with just using one domain name in OR_HOSTNAME, but the issue is still present. This means that it has at least nothing to do with the domain name change.

Hi!

If no assets are loading, and you’re having issues using OR_HOSTNAME,
it might be a SSL certificate-related? Or maybe a docker configuration issue?
Please provide the docker-compose file or any related deployment details.

I’m imagining no data can be pulled at all from the manager, so please double check the console
of your browser, and paste the HTTP error in this topic :wink:

Thanks for your response, @martin.peeters!

Sure, here is the docker-compose.yml file content:

version: '2.4'

volumes:
  proxy-data:
  deployment-data:
  postgresql-data:
  manager-data:
  map-data:

services:
  deployment:
    image: registry.intranet/openremote-custom/deployment:${DEPLOYMENT_VERSION?DEPLOYMENT_VERSION must be set}
    volumes:
      - deployment-data:/deployment

  proxy:
    image: openremote/proxy:${PROXY_VERSION:-latest}
    restart: always
    depends_on:
      manager:
        condition: service_healthy
    ports:
      - "80:80"
      - "443:443"
      - "8883:8883"
    volumes:
      - proxy-data:/deployment
      - deployment-data:/data
      - /home/user/cert_with_key.pem:/etc/haproxy/certs/00-custom
    environment:
      LE_EMAIL: ''
      DOMAINNAME: ''
      DOMAINNAMES: ''

  postgresql:
    image: openremote/postgresql:${POSTGRESQL_VERSION:-latest}
    restart: always
    volumes:
      - postgresql-data:/var/lib/postgresql/data
      - manager-data:/storage

  keycloak:
    image: openremote/keycloak:${KEYCLOAK_VERSION:-latest}
    restart: always
    depends_on:
      postgresql:
        condition: service_healthy
    volumes:
      - deployment-data:/deployment
    environment:
      KEYCLOAK_ADMIN_PASSWORD: ${OR_ADMIN_PASSWORD:?OR_ADMIN_PASSWORD must be set}
      KC_HOSTNAME: ${OR_HOSTNAME:-localhost}
      KC_HOSTNAME_PORT: ${OR_SSL_PORT:--1}

  manager:
    image: registry.intranet/openremote-custom/manager:${MANAGER_VERSION:-latest}
    restart: always
    depends_on:
      keycloak:
        condition: service_healthy
    volumes:
      - manager-data:/storage
      - deployment-data:/deployment
      - map-data:/deployment.local
    environment:
      OR_ADMIN_PASSWORD: ${OR_ADMIN_PASSWORD?OR_ADMIN_PASSWORD must be set}
      OR_SETUP_TYPE: # Typical values to support are staging and production
      OR_SETUP_RUN_ON_RESTART:
      OR_EMAIL_HOST:
      OR_EMAIL_USER:
      OR_EMAIL_PASSWORD:
      OR_EMAIL_X_HEADERS:
      OR_EMAIL_FROM:
      OR_EMAIL_ADMIN:
      OR_HOSTNAME: ${OR_HOSTNAME?OR_HOSTNAME must be set}
      OR_ADDITIONAL_HOSTNAMES: ${OR_ADDITIONAL_HOSTNAMES:-}
      OR_SSL_PORT: ${OR_SSL_PORT:--1}
      OR_DEV_MODE: ${OR_DEV_MODE:-false}
      OR_MAP_TILES_PATH: '/deployment.local/mapdata.mbtiles'

The console shows that the following scripts cannot be found (404), but these were already present before:

Can you look at the docker logs for the manager container when you get this situation; please provide anything that might seem relevant.