Giter Club home page Giter Club logo

irods-provider-postgres's People

Contributors

mjstealey avatar trel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

irods-provider-postgres's Issues

Include 4.2.0, 4.2.1

Add previous 4.2.x versions

  • Debian:jessie based
  • PostgreSQL 9.6
  • 14.04 Trusty iRODS packages

setup_irods.py hangs when environment file provided

When an --env-file is provided (as in Example 2), the setup_irods.py script eats 100% of the CPU and never completes. This is true even when the --env-file contains the exact same values specified by the ENV directives in the dockerfile. It also occurs when using the environment file provided in Example 2.

Docker container fails after docker pull request.

The docker container fails when ran from the image. I was following the example: Persistent Data when I encountered the error. Here are the steps I took...

  1. I pulled the image.
    ($ sudo docker pull mjstealey/irods-provider-postgres:latest)

  2. After that I made the volumes on the host for var_irods, var_pgdata, and etc_irods.
    ($ sudo mkdir var_irods)

  3. Then the container fails by exiting in the first second when I run it.
    ($ sudo docker run -d --name provider -h irods-provider -v /var/provider/var_irods:/var/lib/irods -v /var/provider/etc_irods:/etc/irods -v /var/provider/var_pgdata:/var/lib/postgresql/data mjstealey/irods-provider-postgres:latest -i run_irods)

I tried runnning it again with the -ti flag instead of -d and got the following message.

cp: cannot create regular file '/var/lib/postgresql/data/postgresql.tar.gz': Permission denied

restarting an irods container fails

Attempting to start a container with pre-existing configuration/database/"vault" fails within 20 seconds of the run command with no obvious cause. Two separate test cases have the same result:

  • A container with no volumes mounted, but which has been stopped and restarted.
  • A new container which has volumes mounted as in Example 3, where the volumes possess configuration and database files from a previous setup.

In essence, this feature interferes with trying to persist data through a stop-start cycle.

Provider permission issue on restarting of container

The irods provider is failing to restart after the container has been removed when using named volumes. I have been able to work around this error with bind mounts you originally presented. I wanted to bring this to your attention @mjstealey just in case anyone else is experiencing this when using named volumes. Here is the error code.

2017-11-16 17:13:55.550 UTC [48] FATAL: data directory "/var/lib/postgresql/data" has group or world access
2017-11-16 17:13:55.550 UTC [48] DETAIL: Permissions should be u=rwx (0700).

My OS is Centos 7 Atomic Host.
Here are the commands I ran to produce the error.

  1. $ docker pull mjstealey/irods-provider-postgres:latest

  2. $ docker run -ti --name provider -h irods-provider -v var_irods:/var/lib/irods:z -v etc_irods:/etc/irods:z -v var_pgdata:/var/lib/postgresql/data:z mjstealey/irods-provider-postgres:latest -i run_irods

  3. $ docker stop provider

  4. $ docker rm provider

  5. $ docker run -ti --name provider -h irods-provider -v var_irods:/var/lib/irods:z -v etc_irods:/etc/irods:z -v var_pgdata:/var/lib/postgresql/data:z mjstealey/irods-provider-postgres:latest -x run_irods

Here is an example of a working command with bind mounts.

$ docker run -ti --name provider -h irods-provider -v /var/lib/docker/var_irods:/var/lib/irods:z -v /var/lib/docker/etc_irods:/etc/irods:z -v /var/lib/docker/var_pgdata:/var/lib/postgresql/data:z mjstealey/irods-provider-postgres:latest -i run_irods

SE Linux - add documentation

Ref: #7

This permissions issue was cause by SE Linux. It was solved when adding a :z to the end of the volume mount.

($ docker run -ti --name provider -h provider -v /home/browe/var_irods:/var/lib/irods:z -v /home/browe/etc_irods:/etc/irods:z -v /home/browe/var_pgdata:/var/lib/postgresql/data:z mjstealey/irods-provider-postgres:4.2.2 -i run_irods)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.