lychee-docker icon indicating copy to clipboard operation
lychee-docker copied to clipboard

permission denied to /uploads and /data directories

Open jujes opened this issue 8 years ago • 5 comments

someone know how fix it?

issue-lychee

my deploy script

docker run -it -d \
-v /home/vagrant/dpl/lychee/src/uploads:/uploads/ \
-v /home/vagrant/dpl/lychee/src/data:/data/ \
-v /home/vagrant/dpl/lychee/src/mysql/:/mysql/ \
kdelfour/lychee-docker

-v folders

drwxr-xr-x 2 root    root    4096 Jun 17 09:14 data
drwxr-xr-x 5 root    root    4096 Jun 17 09:14 mysql
drwxr-xr-x 2 root    root    4096 Jun 17 09:14 uploads

mysql folder

drwxr-xr-x 5 root            root                  4096 Jun 17 09:14 .
drwxrwxr-x 5 vagrant         vagrant               4096 Jun 17 09:14 ..
-rw-r--r-- 1 root            root                     0 Jun  5 14:49 debian-5.5.flag
-rw-rw---- 1 systemd-resolve systemd-bus-proxy 18874368 Jun  5 14:49 ibdata1
-rw-rw---- 1 systemd-resolve systemd-bus-proxy  5242880 Jun 17 09:14 ib_logfile0
-rw-rw---- 1 systemd-resolve systemd-bus-proxy  5242880 Jun  5 14:49 ib_logfile1
drwx------ 2 systemd-resolve systemd-bus-proxy     4096 Jun  5 14:50 lychee
drwx------ 2 systemd-resolve root                  4096 Jun  5 14:50 mysql
drwx------ 2 systemd-resolve systemd-bus-proxy     4096 Jun  5 14:50 performance_schema

someone know how fix it?

logs with bug and volumes added

2016-06-17 20:34:44,075 CRIT Supervisor running as root (no user in config file)
2016-06-17 20:34:44,075 WARN Included extra file "/etc/supervisor/conf.d/startup.conf" during parsing
2016-06-17 20:34:44,093 INFO RPC interface 'supervisor' initialized
2016-06-17 20:34:44,093 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2016-06-17 20:34:44,093 INFO supervisord started with pid 1
2016-06-17 20:34:45,096 INFO spawned: 'nginx' with pid 9
2016-06-17 20:34:45,098 INFO spawned: 'mysqld' with pid 10
2016-06-17 20:34:45,100 INFO spawned: 'php5-fpm' with pid 11
2016-06-17 20:34:45,176 INFO exited: php5-fpm (exit status 0; not expected)
2016-06-17 20:34:45,184 INFO exited: mysqld (exit status 1; not expected)
2016-06-17 20:34:46,185 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-06-17 20:34:46,188 INFO spawned: 'mysqld' with pid 22
2016-06-17 20:34:46,190 INFO spawned: 'php5-fpm' with pid 23
2016-06-17 20:34:46,252 INFO exited: php5-fpm (exit status 70; not expected)
2016-06-17 20:34:46,256 CRIT reaped unknown pid 38)
2016-06-17 20:34:47,257 INFO success: mysqld entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-06-17 20:34:48,261 INFO spawned: 'php5-fpm' with pid 45
2016-06-17 20:34:48,312 INFO exited: php5-fpm (exit status 70; not expected)
2016-06-17 20:34:48,312 CRIT reaped unknown pid 47)
2016-06-17 20:34:51,317 INFO spawned: 'php5-fpm' with pid 48
2016-06-17 20:34:51,358 INFO exited: php5-fpm (exit status 70; not expected)
2016-06-17 20:34:51,358 CRIT reaped unknown pid 50)
2016-06-17 20:34:52,359 INFO gave up: php5-fpm entered FATAL state, too many start retries too quickly
2016-06-17 20:35:15,124 WARN received SIGTERM indicating exit request
2016-06-17 20:35:15,124 INFO waiting for nginx, mysqld to die
2016-06-17 20:35:16,127 INFO stopped: mysqld (terminated by SIGTERM)
2016-06-17 20:35:16,132 INFO stopped: nginx (exit status 0)
2016-06-17 20:35:16,520 CRIT Supervisor running as root (no user in config file)
2016-06-17 20:35:16,520 WARN Included extra file "/etc/supervisor/conf.d/startup.conf" during parsing
2016-06-17 20:35:16,539 INFO RPC interface 'supervisor' initialized
2016-06-17 20:35:16,539 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2016-06-17 20:35:16,540 INFO supervisord started with pid 1
2016-06-17 20:35:17,543 INFO spawned: 'nginx' with pid 8
2016-06-17 20:35:17,546 INFO spawned: 'mysqld' with pid 9
2016-06-17 20:35:17,548 INFO spawned: 'php5-fpm' with pid 10
2016-06-17 20:35:17,653 INFO exited: php5-fpm (exit status 0; not expected)
2016-06-17 20:35:18,655 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-06-17 20:35:18,655 INFO success: mysqld entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-06-17 20:35:18,658 INFO spawned: 'php5-fpm' with pid 37
2016-06-17 20:35:18,710 INFO exited: php5-fpm (exit status 70; not expected)
2016-06-17 20:35:18,710 CRIT reaped unknown pid 40)
2016-06-17 20:35:20,715 INFO spawned: 'php5-fpm' with pid 41
2016-06-17 20:35:20,761 INFO exited: php5-fpm (exit status 70; not expected)
2016-06-17 20:35:20,761 CRIT reaped unknown pid 43)
2016-06-17 20:35:23,792 INFO spawned: 'php5-fpm' with pid 44
2016-06-17 20:35:23,833 INFO exited: php5-fpm (exit status 70; not expected)
2016-06-17 20:35:23,833 CRIT reaped unknown pid 46)
2016-06-17 20:35:24,835 INFO gave up: php5-fpm entered FATAL state, too many start retries too 

logs without bug and no volumes added

2016-06-17 20:38:44,060 CRIT Supervisor running as root (no user in config file)
2016-06-17 20:38:44,060 WARN Included extra file "/etc/supervisor/conf.d/startup.conf" during parsing
2016-06-17 20:38:44,088 INFO RPC interface 'supervisor' initialized
2016-06-17 20:38:44,088 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2016-06-17 20:38:44,088 INFO supervisord started with pid 1
2016-06-17 20:38:45,091 INFO spawned: 'nginx' with pid 9
2016-06-17 20:38:45,093 INFO spawned: 'mysqld' with pid 10
2016-06-17 20:38:45,095 INFO spawned: 'php5-fpm' with pid 11
2016-06-17 20:38:45,148 INFO exited: php5-fpm (exit status 0; not expected)
2016-06-17 20:38:45,155 INFO exited: mysqld (exit status 1; not expected)
2016-06-17 20:38:46,157 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-06-17 20:38:46,160 INFO spawned: 'mysqld' with pid 22
2016-06-17 20:38:46,162 INFO spawned: 'php5-fpm' with pid 23
2016-06-17 20:38:46,229 INFO exited: php5-fpm (exit status 70; not expected)
2016-06-17 20:38:46,233 CRIT reaped unknown pid 38)
2016-06-17 20:38:47,234 INFO success: mysqld entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-06-17 20:38:48,238 INFO spawned: 'php5-fpm' with pid 45
2016-06-17 20:38:48,289 INFO exited: php5-fpm (exit status 70; not expected)
2016-06-17 20:38:48,289 CRIT reaped unknown pid 47)

jujes avatar Jun 17 '16 12:06 jujes