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
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:

https://account.synology.com/support/su ... p?lang=enu



2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
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: 237
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: 237
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'.

Post Reply

Return to “Docker”