wahyd4 / aria2-ariang-x-docker-compose

Docker compose files for Aria2+ AriaNg+ filerun/ Nextcloud/ h5ai + Plex. 图形化BT,磁力,离线下载,文件管理,播放,投屏
1.8k stars 282 forks source link

nextcloud无法删除文件,无法上传或创建文件 #58

Closed sea72 closed 5 years ago

sea72 commented 5 years ago

纯小白一个, 参考了以前的几个issue,问题还是没有解决,迫不得已提个issue。配置都是原始配置。

已做了的尝试: 1,更新代码,获取最近镜像 2,nextcloud下创建envrioment, 更改uid gid=0,nextcloud无法访问,错误502,已等待数分钟 3,root运行docker sudo docker-compose up 4,参照#44 ,修改文件 (1)修改/php/etc/php-fpm.conf (2)修改/etc/s6.d/php/run (3)修改/nginx/conf/nginx.conf

ps/yml文件

version: '2'

services: nextcloud: image: wonderfall/nextcloud volumes:

sea72 commented 5 years ago
default
wahyd4 commented 5 years ago

Thanks for your very detail information, I'm definitely going to find some time recently to dig more.

sea72 commented 5 years ago

Thanks for your very detail information, I'm definitely going to find some time recently to dig more.

Thank you. Feeling sorry for troubling you. And i'm tring to solve it.

sea72 commented 5 years ago

已进一步参照#44

1 设置uip gid=0 2 修改/php/etc/php-fpm.conf /etc/s6.d/php/run /nginx/conf/nginx.conf (不知是否需要重启php-fpm)

nextcloud 仍然502

ps `~ # ps -ef|grep php 50 root 0:01 s6-supervise php 2558 root 0:00 php-fpm: master process (/php/etc/php-fpm.conf) 2559 root 0:00 php-fpm: pool www 2560 root 0:00 php-fpm: pool www 2562 root 0:00 grep php

~ # exit root@curiosity:~/aria2-ariang-x-docker-compose/nextcloud# docker logs -f -t --tail=10 nextcloud_nextcloud_1 2019-01-16T15:35:16.739843391Z [16-Jan-2019 15:35:16] ERROR: [pool www] please specify user and group other than root 2019-01-16T15:35:16.739975077Z [16-Jan-2019 15:35:16] ERROR: FPM initialization failed 2019-01-16T15:35:17.741229541Z [16-Jan-2019 15:35:17] ERROR: [pool www] please specify user and group other than root 2019-01-16T15:35:17.741322478Z [16-Jan-2019 15:35:17] ERROR: FPM initialization failed 2019-01-16T15:35:18.743209550Z [16-Jan-2019 15:35:18] ERROR: [pool www] please specify user and group other than root 2019-01-16T15:35:18.743333969Z [16-Jan-2019 15:35:18] ERROR: FPM initialization failed 2019-01-16T15:35:19.743144449Z [16-Jan-2019 15:35:19] ERROR: [pool www] please specify user and group other than root 2019-01-16T15:35:19.743257329Z [16-Jan-2019 15:35:19] ERROR: FPM initialization failed 2019-01-16T15:35:20.743267087Z [16-Jan-2019 15:35:20] ERROR: [pool www] please specify user and group other than root 2019-01-16T15:35:20.743366007Z [16-Jan-2019 15:35:20] ERROR: FPM initialization failed `

wahyd4 commented 5 years ago

Thank you. if you have some time, please also jsut try to run the Nextcloud docker image wonderfall/nextcloud alone to see if you still have this permission issue or not. This docker image is the same image with what I used in the docker compose file.

To be fair, I tried and I got the same issue.

sea72 commented 5 years ago

Today, I tried to modify the permisson of "user-files" to 777 , change the owner to 991 . Unluckily still not work. I think it's beyond my capability for the moment. I'd like to use some alternative scheme. Sorry for this.

wahyd4 commented 5 years ago

That's alright, I don't like the nextcloud docker image either. It's really a plain. By the way, if you don't need a Dropbox thing rather than a file manager you can just try the aria2 + file manager one, it's just a single container. Please see the bootom of the readme for the link. Cheers. On Thu, 17 Jan 2019 at 9:24 pm, oceanwave72 notifications@github.com wrote:

Today, I tried to modify the permisson of "user-files" to 777 , change the owner to 991 . Unluckily still not work. I think it's beyond my capability for the moment. I'd like to use some alternative scheme. Sorry for this.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/wahyd4/aria2-ariang-x-docker-compose/issues/58#issuecomment-455120570, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzD4HGmwzo-cG6wfONngt8nw_rTr3LYks5vEE9PgaJpZM4aCaPL .

sea72 commented 5 years ago

Nice suggestion. Thank you.

wahyd4 commented 5 years ago

I would like to reopen it and will try to solve this issue. Maybe I'll try to make a custom Nextcloud docker image.

wahyd4 commented 5 years ago

@oceanwave72 I think this bug has been fixed from latest commits, would you like a give an another go? The only thing also the most vital command to run on your host(not inside the docker container) is:

chown -R www-data <folder> #The folder you'd like share to the container

Also do not forget to pull the latest docker images by:

docker-compose pull
sea72 commented 5 years ago

oh, yesterday I installed it again and found that no permissions to mount external storage. I am just wondering what happened. I'll reinstall it following your instructions tomorrow. I'll keep you updated.

wahyd4 commented 5 years ago

You must run the chown -R command to grant read and write access to www-data user oh your host. On Sat, 19 Jan 2019 at 10:11 pm, oceanwave72 notifications@github.com wrote:

oh, yesterday I installed it again and found that no permissions to mount external storage. I am just wondering what happened. I'll reinstall it following your instructions tomorrow. I'll keep you updated.

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/wahyd4/aria2-ariang-x-docker-compose/issues/58#issuecomment-455770976, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzD4JzugIBP5s70egv86pv7XsX1UYJtks5vEv1YgaJpZM4aCaPL .

sea72 commented 5 years ago

@wahyd4 I delete the file and reinstall it . However problem still remain. On the website , show the following warning.

1. the owner of the file

default
  1. the waring on the website

    1
  2. i am the admin of the nextcloud

    2

Thanks for your efforts. Wait for your reply.

wahyd4 commented 5 years ago

So this is not an issue it's just because you didn't find the correct menu. On the settings pages there are two external storage links. I think you clicked the wrong one, please click the one at the bottom. That's the global link for configuring he storage. On Sun, 20 Jan 2019 at 8:59 pm, oceanwave72 notifications@github.com wrote:

@wahyd4 https://github.com/wahyd4 I delete the file and reinstall it . However problem still remain. On the website , show the following warning.

1. the owner of the file [image: default] https://user-images.githubusercontent.com/24682001/51437689-8cac5d80-1cdc-11e9-9e72-300e9f073d29.PNG

  1. the waring on the website

[image: 1] https://user-images.githubusercontent.com/24682001/51437718-ddbc5180-1cdc-11e9-89e9-c08c513b9bd0.PNG

  1. i am the admin of the nextcloud

[image: 2] https://user-images.githubusercontent.com/24682001/51437721-f88ec600-1cdc-11e9-9217-3313152ed0c8.PNG

Thanks for your efforts. Wait for your reply.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/wahyd4/aria2-ariang-x-docker-compose/issues/58#issuecomment-455852583, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzD4MMwKIamexXRQvtjr_FVTJM5RUPkks5vFD4EgaJpZM4aCaPL .

sea72 commented 5 years ago

@wahyd4 Many thanks for your patient help. I've solve this finally.

sea72 commented 5 years ago

@wahyd4 By the way , i found the readme.md in nextcoud is a little different with the one of main page. - /data/nextcloud:/data VERSUS - ./data/nextcloud:/data A symbol "." seems to be lost. I am not sure if this represent the absolute path and relative path. Thank you again. The appreciation is beyond my words.

wahyd4 commented 5 years ago

I'll double check, thank you. On Sun, 20 Jan 2019 at 9:55 pm, oceanwave72 notifications@github.com wrote:

@wahyd4 https://github.com/wahyd4 By the way , i found the readme.md in nextcoud is a little different with the one of main page.

  • /data/nextcloud:/data TO - ./data/nextcloud:/data A symbol "." seems to be lost. I am not sure if this represent the absolute path and relative path. Thank you again.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/wahyd4/aria2-ariang-x-docker-compose/issues/58#issuecomment-455856006, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzD4GXJN2Zf1vYR2epViuSBsbPP6Znsks5vFEsMgaJpZM4aCaPL .

wahyd4 commented 5 years ago

@oceanwave72 whether to have . doesn't matter, it means different folder, as long as you can access those folders, then that's all good

sea72 commented 5 years ago

I found that the command needs to be executed after downloading new files. So I set a crontab task.

wahyd4 commented 5 years ago

That shouldn't be the case. Maybe because the chown has been applied to the sub folders. On Mon, 21 Jan 2019 at 1:08 pm, oceanwave72 notifications@github.com wrote:

I found that the command needs to be executed after downloading new files. So I set a crontab task.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/wahyd4/aria2-ariang-x-docker-compose/issues/58#issuecomment-455927284, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzD4ExiPiXej-qehjFGw_7iUUuA6mPsks5vFSEdgaJpZM4aCaPL .