Wirecloud / wirecloud

Widgets Container and Mashup edition tools. Reference implementation of the FIWARE Application Mashup GE
https://wirecloud.rtfd.io/
Other
60 stars 45 forks source link

Wirecloud failed to start in Firefox/Chrome #383

Closed arilwan closed 5 years ago

arilwan commented 5 years ago

Hi,

I having trouble lunching dockerized wirecloud instance running on remote server. I can confirm I set-up the server external port appropriately to the nginx port(internal) and nginxstarts correctly.

However, each time I point to the server-ip:external_port to work with wirecloud from my browsers I get the following error:

Your browser seems to lack some required features
We recommend you to upgrade your browser to the newest version of either Firefox or Google Chrome as these are the browsers currently supported by WireCloud.

WireCloud

However, I am able to access wirecloud locally using these same browsers. Any idea why I get this error please? Below is my docker-compose.yml file:

version: "3.1"

services:

 mongo:
   image: mongo:3.6
   hostname: mongo
   container_name: fiware-mongo
   ports:
     - "27017:27017"
   networks:
     - default
   command: --bind_ip_all --smallfiles
 #  volumes:
  #  - mongo-db:/data

 orion:
   image: fiware/orion
   hostname: orion
   container_name: fiware-orion
   depends_on:
     - mongo
   networks:
     - default
   ports:
     - "1026:1026"
   expose:
     - "1026"
   command: -dbhost mongo -logLevel DEBUG
   healthcheck:
    test: curl --fail -s http://localhost:1026/version || exit 1
 lightweightm2m-iotagent:
    image: telefonicaiot/lightweightm2m-iotagent
    hostname: idas
    container_name: fiware-iotagent
    depends_on:
     - mongo
    networks:
     - default
    expose:
     - "4041"
     - "5684"
    ports:
     - "4041:4041"
     - "5684:5684/udp"
    environment:
     - "IOTA_CB_HOST=orion"
     - "IOTA_CB_PORT=1026"
     - "IOTA_NORTH_PORT=4041"
     - "IOTA_REGISTRY_TYPE=mongodb"
     - "IOTA_LOG_LEVEL=DEBUG"
     - "IOTA_TIMESTAMP=true"
     - "IOTA_MONGO_HOST=mongo"
     - "IOTA_MONGO_PORT=27017"
     - "IOTA_MONGO_DB=lwm2miotagent"
     - "IOTA_HTTP_PORT=5684"
     - "IOTA_PROVIDER_URL=http://lightweightm2m-iotagent:4041"
     - "IOTA_AUTOCAST=true"
     - "IOTA_CB_NGSI_VERSION=v2"
    healthcheck:
     test: curl --fail -s http://localhost:4041/iot/about || exit 1
      comment
 cygnus:
    image: fiware/cygnus-ngsi:latest
    hostname: cygnus
    container_name: fiware-cygnus
    depends_on:
     - postgres
    networks:
     - default
    expose:
     - "5080"
    ports:
     - "5050:5050"
     - "5080:5080"
    environment:
     - "CYGNUS_POSTGRESQL_HOST=postgres"
     - "CYGNUS_POSTGRESQL_PORT=5432"
     - "CYGNUS_POSTGRESQL_USER=postgres"
     - "CYGNUS_POSTGRESQL_PASS=password"
     - "CYGNUS_LOG_LEVEL_=DEBUG"
     - "CYGNUS_SERVICE_PORT=5050"
     - "CYGNUS_API_PORT=5080"
     - "CYGNUS_POSTGRESQL_ENABLE_CACHE=true"
    healthcheck:
      test: curl --fail -s http://localhost:5080/v1/version || exit 1
 nginx:
    restart: always
    container_name: fiware-nginx
    image: nginx
    networks:
      - default
    ports:
      - 53152:80
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
      - ./wirecloud-static:/var/www/static:ro
      - ./nginx_logs:/var/log/nginx
    depends_on:
      - wirecloud
 postgres:
    restart: always
    image: postgres:10
    hostname: postgres
    container_name: fiware-postgres
    expose:
      - "5432"
    ports:
      - "5432:5432"
    networks:
      - default
    environment:
      - "POSTGRES_PASSWORD=password"
      - "POSTGRES_USER=postgres"
      - "POSTGRES_DB=postgres"
    volumes:
      - ./postgres-data:/var/lib/postgresql/data
 grafana:
    restart: always
    image: grafana/grafana
    container_name: fiware-grafana
    depends_on:
      - postgres
    ports:
      - "53153:3000"
    environment:
      - GF_INSTALL_PLUGINS=crate-datasource,grafana-clock-panel,grafana-worldmap-panel
    volumes:
      - ./grafana:/var/lib/grafana:rw
 elasticsearch:
    restart: always
    container_name: fiware-elasticsearch
    image: elasticsearch:2.4
    volumes:
      - ./elasticsearch-data:/usr/share/elasticsearch/data
    command: elasticsearch  -Des.index.max_result_window=50000
 memcached:
    restart: always
    container_name: fiware-memcached
    image: memcached:1
    command: memcached -m 2048m
 wirecloud:
    restart: always
    image: fiware/wirecloud
    container_name: fiware-wirecloud
    networks:
      - default
    depends_on:
        - postgres
        - elasticsearch
        - memcached
    environment:
        - DEBUG=False
        # - DEFAULT_THEME=wirecloud.defaulttheme
        - DB_HOST=postgres
        - DB_PASSWORD=password
        - FORWARDED_ALLOW_IPS=*
        - ELASTICSEARCH2_URL=http://elasticsearch:9200/
        - MEMCACHED_LOCATION=memcached:11211
        # Uncomment the following environment variables to enable IDM integration
        #- FIWARE_IDM_SERVER=${FIWARE_IDM_SERVER}
        #- SOCIAL_AUTH_FIWARE_KEY=${SOCIAL_AUTH_FIWARE_KEY}
        #- SOCIAL_AUTH_FIWARE_SECRET=${SOCIAL_AUTH_FIWARE_SECRET}
    volumes:
      - ./wirecloud-data:/opt/wirecloud_instance/data
      - ./static:/var/www/static
        #- ./settings.py:/opt/wirecloud_instance/wirecloud_instance/settings.py:ro
arilwan commented 5 years ago

Hi @aarranz @Mognom Can you please spot cause of the problem I am facing here? I share the docker-compose.yml file I'm using above.

aarranz commented 5 years ago

Hi, I'm closing this ticket at it was resolved on the docker-wirecloud repository. See Wirecloud/docker-wirecloud#26 for more details.