Skip to content
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

Register sensor failed #34

Open
danji90 opened this issue Nov 15, 2018 · 2 comments
Open

Register sensor failed #34

danji90 opened this issue Nov 15, 2018 · 2 comments

Comments

@danji90
Copy link

danji90 commented Nov 15, 2018

Hello,
I am trying to use istSOS2 in a research project about sensor web standards and protocols. My problem is I can't register a new procedure once after having set up everything following the tutorial.

I have dockerised istSOS using the installation guide, which, as mentioned by SunveerSingh in issue #33, needs to be updated (e.g. the wns folder referred to in the installation guide it seems has been renamed to wnslib). I adapted the steps slightly to the newest istSOS2 stable version (2.3.1)

My Dockerfile looks like...

========================================

FROM ubuntu:14.04

RUN apt-get update \
                && apt-get install -y --no-install-recommends apache2 libapache2-mod-wsgi python-psycopg2

COPY ./istsos-2.3.1.tar.gz .

RUN tar -zxvf ./istsos-2.3.1.tar.gz -C /usr/local/ \
                && chmod 755 -R /usr/local/istsos \
                && chown -R www-data:www-data /usr/local/istsos/services \
                && chown -R www-data:www-data /usr/local/istsos/logs \
                && chown -R www-data:www-data /usr/local/istsos/wnslib \
		&& rm ./istsos-2.3.1.tar.gz

COPY ./000-default.conf /etc/apache2/sites-enabled/000-default.conf
	
EXPOSE 80
	
CMD apachectl -D FOREGROUND

========================================

and my docker-compose.yaml file like...

========================================

version: '2'

services:
  istsos:
    build: .
    ports:
      - 8083:80    
    depends_on:
      - database

  database:
    image: mdillon/postgis:9.3
    environment:
      - POSTGRES_DB=istSOS
      - POSTGRES_USER=istSOS
      - POSTGRES_PASSWORD=ChangeMe
    ports:
      - 5436:5432
    volumes:
      - ./data:/var/lib/postgresql/data

========================================

In the Admin UI I can connect successfully to the database and the app status is "up", so it seems everything is running correctly:

istsosstatus

I can create new services, insert observable properties and offerings with no problems. When I want to create a new procedure, this error is thrown:

istsoserror

I have made sure all the values I entered into the fields contain no special characters, as visible in the screenshot. I checked the apache log files, which don't show any errors.

Has anyone run into this issue, or have an idea about any possible solution?

Thanks for any advice

Daniel

@massimiliano-cannata
Copy link
Member

massimiliano-cannata commented Nov 15, 2018 via email

@danji90
Copy link
Author

danji90 commented Nov 19, 2018

Hi Massimiliano,

Thanks for your response. If I understood correctly, what you are referring to with the writing rights is done with this command...

chown -R www-data:www-data /usr/local/istsos/services

...which gives apache and istSOS application writing access. I did add this when setting up the app, here is a screenshot from my console, confirming this:

istsosconsole

Also, I can create a new service, which does write into this folder and into the database, so this shouldn't be an access problem.

Any other leads maybe?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants