OpenProject Docker fails on Synology

Discussion room for Docker, a lightweight virtualization application that gives you the ability to run thousands of containers created by developers from all over the world on DSM
Forum rules
Synology Community is the new platform for the enthusiasts' interaction, and it will soon be available to replace the Forum.
Knubbi
Rookie
Rookie
Posts: 30
Joined: Mon Nov 08, 2010 10:59 pm

OpenProject Docker fails on Synology

Unread post by Knubbi » Tue Nov 21, 2017 4:21 pm

With default settings, I only get "su: System error"

Hiere is the step-by-step install procedure: https://youtu.be/NEfvtPQhocw

Any help would be very much appreciated..

remarke
I'm New!
I'm New!
Posts: 7
Joined: Thu Jan 12, 2017 8:53 pm

Re: OpenProject Docker fails on Synology

Unread post by remarke » Fri Jun 22, 2018 2:40 pm

It seems to me that you should enter the data base settings
Did you manage to solve the problem?

mightbetrue
Versed
Versed
Posts: 262
Joined: Sun Oct 02, 2016 9:41 am

Re: OpenProject Docker fails on Synology

Unread post by mightbetrue » Sat Jun 23, 2018 9:30 am

According the Dockerfile (https://github.com/opf/openproject/blob ... ile.public), postgres should be baked in into the image.

To isolate permission problems, you should run the container with just the required port mapping and a changed SECRET_KEY_BASE variable.

If it doesn't work: wait for a fixed container
If it works: fix the permissions of the folder you map into the container.

remarke
I'm New!
I'm New!
Posts: 7
Joined: Thu Jan 12, 2017 8:53 pm

Re: OpenProject Docker fails on Synology

Unread post by remarke » Sat Jun 23, 2018 10:28 pm

I tested the container.
I have a problem, after disabling the container and restarting I have an error message with the database.

failed!
Starting PostgreSQL 9.6 database server: mainThe PostgreSQL server failed to start. Please check the log output: 2018-06-23 20:53:01.725 UTC [27] FATAL: data directory "/var/lib/postgresql/9.6/main" has group or world access 2018-06-23 20:53:01.725 UTC [27] DETAIL: Permissions should be u=rwx (0700). ... failed!
-----> Database cluster already exists, not modifying.
failed!


This is my first container. I'm starting to get lost

mightbetrue
Versed
Versed
Posts: 262
Joined: Sun Oct 02, 2016 9:41 am

Re: OpenProject Docker fails on Synology

Unread post by mightbetrue » Sun Jun 24, 2018 6:00 pm

The image itself is fine. I created a container (without volume mapping) using following command line:

Code: Select all

docker run \
  -p 8080:80 \
  -e SECRET_KEY_BASE=youshouldoverwritethiswithsomethingelse \
  openproject/community:7
After a couple of seconds the container is accessible using http://dsm-ip:8080
A restart also does not cause any problem.

Thus said, your test with just removing the volume mapping was insufficient. You should have created a new container.

If using a volume causes problems, then you should check the permissions on the share you are mapping into the container.

remarke
I'm New!
I'm New!
Posts: 7
Joined: Thu Jan 12, 2017 8:53 pm

Re: OpenProject Docker fails on Synology

Unread post by remarke » Tue Jun 26, 2018 6:08 pm

How to enter a command via putty or in the Docker application on DMS Synology?

remarke
I'm New!
I'm New!
Posts: 7
Joined: Thu Jan 12, 2017 8:53 pm

Re: OpenProject Docker fails on Synology

Unread post by remarke » Thu Jun 28, 2018 10:28 pm

Code: Select all

>   -p 8080:80 \
>   -e SECRET_KEY_BASE=xxxxxxxxxxxxxxxxxxxxxxxxxx \
>   openproject/community:7
docker: Got permission denied while trying to connect to the Docker daemon socke                t at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.29/c                ontainers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.

maravac
Novice
Novice
Posts: 48
Joined: Tue Dec 20, 2011 1:28 pm

Re: OpenProject Docker fails on Synology

Unread post by maravac » Thu Sep 06, 2018 9:27 pm

Hi people. I also would like to run the openproject in Docker of mz diskstation. Please, can you help me a bit with this?
except the openproject, what next do I need to have installed in my Docker (or in hosting DSM) or what properties should i set or change (volume path, environment etc.)? I downloaded the image and tried to install the openproject by double clicking on it. It looks liek it is installed, but when I try to run it, it start and then after short time stops again.

Post Reply

Return to “Docker”