Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-14497

FIWARE.Request.Lab.Problems with Ports on Fiware Lab Server.

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-LAB-HELP
    • Labels:
      None

      Description

      Dear Sir/Madam,

      I have spent two days now trying to setup the server to open a port for
      a custom application without any success. An exact copy of my files is
      working correctly locally and on a Digital Ocean VPS, but it doesn't
      work on the FiwareLab Machine. We have wrote a custom application to
      forward the data from Fiware modules to our dashboard, but there is no
      connection on port 8000. We are using Python and Django, set up with
      Dockerfile and docker-compose. But we fail to make the ports to work for
      us. Here is a snippet. Please let us know how to open the server to work
      on port 8000 so that we could reach the application.

      #docker-compose.yml #Django application dashboard_pusher: build: .
      container_name: dashboard_pusher
      #Starting the server command: gunicorn dashboard_pusher.wsgi:application -w 2 -b :8000
      volumes: - ./dashboard_pusher:/dashboard_pusher
      env_file: - .env
      links: - mysql

      • orion
        expose: -"8000" ports: -"8000:8000" #Dockerfile
      1. .= The part for Django =.\ FROM python:2.7 ENV PYTHONBUFFERED 1 ENV
        DJANGO_ENV dev ENV DOCKER_CONTAINER 1 #Copying the files needed for
        Django COPY ./requirements.txt /web/requirements.txt #Installing the
        required modules for Django RUN pip install -r /web/requirements.txt
        #Copy the Dashboard Pusher project COPY ./dashboard_pusher
        /dashboard_pusher/ WORKDIR /dashboard_pusher #Update the system and
        install various programs RUN apt-get update && apt-get install -y
        gettext \ vim \ python-pip python-dev build-essential \
        default-libmysqlclient-dev \ gunicorn RUN adduser --disabled-password
        --gecos '' myuser EXPOSE 8000

      __________________________________________________________________________________________

      You can get more information about our cookies and privacy policies on the following links:

      Fiware-lab-help mailing list
      Fiware-lab-help@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-lab-help

      [Created via e-mail received from: Martin Anev <martianev@gmail.com>]

        Activity

        Hide
        fla Fernando Lopez added a comment -

        The issue has been emailed:

        • Time sent: 20/Aug/18 10:24 AM
        • To: martianev@gmail.com
        • with subject: *(HELP-14497) [Fiware-lab-help] Problems with Ports on Fiware Lab Server *

        Dear user,

        If I can understand your ticket, the problem is related to the access to the port 8000 in a virtual machine. Could you confirm me if the security group, that you are using, has opened this port?

        FIWARE Lab admin team

        From FIWARE JIRA - Main Help Desk ----

        -------------------------------------------------------------------------------
        Comments:

        ------------------------
        Issue id: HELP-14497
        Description:
        Dear Sir/Madam,

        I have spent two days now trying to setup the server to open a port for
        a custom application without any success. An exact copy of my files is
        working correctly locally and on a Digital Ocean VPS, but it doesn't
        work on the FiwareLab Machine. We have wrote a custom application to
        forward the data from Fiware modules to our dashboard, but there is no
        connection on port 8000. We are using Python and Django, set up with
        Dockerfile and docker-compose. But we fail to make the ports to work for
        us. Here is a snippet. Please let us know how to open the server to work
        on port 8000 so that we could reach the application.

        #docker-compose.yml #Django application dashboard_pusher: build: .
        container_name: dashboard_pusher
        #Starting the server command: gunicorn dashboard_pusher.wsgi:application -w 2 -b :8000
        volumes: - ./dashboard_pusher:/dashboard_pusher
        env_file: - .env
        links: - mysql

        • orion
          expose: -"8000" ports: -"8000:8000" #Dockerfile
        1. .= The part for Django =.\ FROM python:2.7 ENV PYTHONBUFFERED 1 ENV
          DJANGO_ENV dev ENV DOCKER_CONTAINER 1 #Copying the files needed for
          Django COPY ./requirements.txt /web/requirements.txt #Installing the
          required modules for Django RUN pip install -r /web/requirements.txt
          #Copy the Dashboard Pusher project COPY ./dashboard_pusher
          /dashboard_pusher/ WORKDIR /dashboard_pusher #Update the system and
          install various programs RUN apt-get update && apt-get install -y
          gettext \ vim \ python-pip python-dev build-essential \
          default-libmysqlclient-dev \ gunicorn RUN adduser --disabled-password
          --gecos '' myuser EXPOSE 8000

        __________________________________________________________________________________________

        You can get more information about our cookies and privacy policies on the following links:

        Fiware-lab-help mailing list
        Fiware-lab-help@lists.fiware.org
        https://lists.fiware.org/listinfo/fiware-lab-help

        [Created via e-mail received from: Martin Anev <martianev@gmail.com>]

        FIWARE Chapter:
        FIWARE GEri:

        Status: In Progress

        ---------------------
        This email was generated by FIWARE JIRA following an email received into the Main Help Desk.

        Show
        fla Fernando Lopez added a comment - The issue has been emailed: Time sent: 20/Aug/18 10:24 AM To: martianev@gmail.com with subject: *( HELP-14497 ) [Fiware-lab-help] Problems with Ports on Fiware Lab Server * Dear user, If I can understand your ticket, the problem is related to the access to the port 8000 in a virtual machine. Could you confirm me if the security group, that you are using, has opened this port? FIWARE Lab admin team From FIWARE JIRA - Main Help Desk ---- ------------------------------------------------------------------------------- Comments: ------------------------ Issue id: HELP-14497 Description: Dear Sir/Madam, I have spent two days now trying to setup the server to open a port for a custom application without any success. An exact copy of my files is working correctly locally and on a Digital Ocean VPS, but it doesn't work on the FiwareLab Machine. We have wrote a custom application to forward the data from Fiware modules to our dashboard, but there is no connection on port 8000. We are using Python and Django, set up with Dockerfile and docker-compose. But we fail to make the ports to work for us. Here is a snippet. Please let us know how to open the server to work on port 8000 so that we could reach the application. #docker-compose.yml #Django application dashboard_pusher: build: . container_name: dashboard_pusher #Starting the server command: gunicorn dashboard_pusher.wsgi:application -w 2 -b :8000 volumes: - ./dashboard_pusher:/dashboard_pusher env_file: - .env links: - mysql orion expose: -"8000" ports: -"8000:8000" #Dockerfile . = The part for Django = .\ FROM python:2.7 ENV PYTHONBUFFERED 1 ENV DJANGO_ENV dev ENV DOCKER_CONTAINER 1 #Copying the files needed for Django COPY ./requirements.txt /web/requirements.txt #Installing the required modules for Django RUN pip install -r /web/requirements.txt #Copy the Dashboard Pusher project COPY ./dashboard_pusher /dashboard_pusher/ WORKDIR /dashboard_pusher #Update the system and install various programs RUN apt-get update && apt-get install -y gettext \ vim \ python-pip python-dev build-essential \ default-libmysqlclient-dev \ gunicorn RUN adduser --disabled-password --gecos '' myuser EXPOSE 8000 __________________________________________________________________________________________ You can get more information about our cookies and privacy policies on the following links: http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/FIWARE_Privacy_Policy http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/Cookies_Policy_FIWARE Fiware-lab-help mailing list Fiware-lab-help@lists.fiware.org https://lists.fiware.org/listinfo/fiware-lab-help [Created via e-mail received from: Martin Anev <martianev@gmail.com>] FIWARE Chapter: FIWARE GEri: Status: In Progress --------------------- This email was generated by FIWARE JIRA following an email received into the Main Help Desk.
        Hide
        fw.ext.user FW External User added a comment -

        Dear Sir/Madam,

        I have managed to resolve the issue by opening the port in the dashboard
        section of the server, yes. Thanks for the reply.
        Best Regards,
        Martin

        On Mon, Aug 20, 2018 at 10:25 AM Help-Desk <jira-help-desk@jira.fiware.org>

        Show
        fw.ext.user FW External User added a comment - Dear Sir/Madam, I have managed to resolve the issue by opening the port in the dashboard section of the server, yes. Thanks for the reply. Best Regards, Martin On Mon, Aug 20, 2018 at 10:25 AM Help-Desk <jira-help-desk@jira.fiware.org>

          People

          • Assignee:
            fla Fernando Lopez
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: